Select Git revision
user-settings.reducer.spec.ts
postfach.model.ts 1020 B
import { CreateCommand } from '@goofy-client/command-shared';
import { ListResource } from '@goofy-client/tech-shared';
import { Resource, ResourceUri } from '@ngxp/rest';
import { PostfachNachrichtMessageCode } from './postfach.message-code';
export interface PostfachMail {
subject: string;
createdAt: Date;
direction: Direction;
mailBody: string;
replyOption: ReplyOption;
sentAt: Date;
sentSuccessful: boolean;
messageCode: PostfachNachrichtMessageCode;
attachments: ResourceUri[];
}
export enum Direction {
IN = 'IN',
OUT = 'OUT'
}
export enum ReplyOption {
POSSIBLE = 'POSSIBLE',
MANDATORY = 'MANDATORY',
FORBIDDEN = 'FORBIDDEN'
}
export enum PostfachOrder {
SEND_POSTFACH_NACHRICHT = 'SEND_POSTFACH_NACHRICHT',
RESEND_POSTFACH_MAIL = 'RESEND_POSTFACH_MAIL'
}
export interface CreatePostfachMailCommand extends CreateCommand {
order: PostfachOrder;
}
export interface PostfachMailResource extends Resource, PostfachMail { }
export interface PostfachMailListResource extends ListResource { }