oak-general-business/lib/entities/Notification.d.ts

22 lines
740 B
TypeScript

import { String } from 'oak-domain/lib/types/DataType';
import { EntityShape } from 'oak-domain/lib/types/Entity';
import { Schema as Application } from './Application';
import { Schema as MessageSystem } from './MessageSystem';
import { EntityDesc } from 'oak-domain/lib/types/EntityDesc';
export interface Schema extends EntityShape {
channel: String<32>;
application?: Application;
data?: Object;
messageSystem: MessageSystem;
data1?: Object;
data2?: Object;
templateId?: String<128>;
}
export type IAction = 'succeed' | 'fail';
export type IState = 'sending' | 'success' | 'failure';
type Action = IAction;
export declare const entityDesc: EntityDesc<Schema, Action, '', {
iState: IState;
}>;
export {};