oak-general-business/es/entities/ToDo.d.ts

27 lines
875 B
TypeScript

import { String, Text } from 'oak-domain/lib/types/DataType';
import { EntityShape } from 'oak-domain/lib/types/Entity';
import { EntityDesc } from 'oak-domain/lib/types/EntityDesc';
import { ActionDef } from 'oak-domain/lib/types/Action';
export type RedirectToProps = {
batchPath: string;
singlePath?: string;
};
export interface Schema extends EntityShape {
title: Text;
description?: Text;
targetEntity: String<32>;
targetFilter: Object;
action: String<32>;
redirectTo: RedirectToProps;
entity: String<32>;
entityId: String<64>;
}
export type Relation = 'collaborator';
export type IState = 'active' | 'done';
export type IAction = 'complete';
export declare const IActionDef: ActionDef<IAction, IState>;
export type Action = IAction;
export declare const entityDesc: EntityDesc<Schema, Action, Relation, {
iState: IState;
}>;