编译器调整后Action的语句顺序有小的变化
This commit is contained in:
parent
23130918d1
commit
ed1300f4eb
|
|
@ -3,8 +3,8 @@ import { GenericAction } from "oak-domain/lib/actions/action";
|
|||
export declare type IState = 'unsent' | 'sending' | 'sent' | 'failure' | string;
|
||||
export declare type IAction = 'send' | 'success' | 'fail' | string;
|
||||
export declare type ParticularAction = IAction;
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const actions: string[];
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
iState: ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import { AbleAction, AbleState } from 'oak-domain/lib/actions/action';
|
|||
import { ActionDef } from "oak-domain/lib/types/Action";
|
||||
import { GenericAction } from "oak-domain/lib/actions/action";
|
||||
export declare type ParticularAction = AbleAction;
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const actions: string[];
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
ableState: ActionDef<AbleAction, AbleState>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ export declare type IState = 'sending' | 'success' | 'failure' | string;
|
|||
export declare type VisitState = 'unvisited' | 'visited' | string;
|
||||
export declare type VisitAction = 'visit' | string;
|
||||
export declare type ParticularAction = IAction | VisitAction;
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const actions: string[];
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
iState: ActionDef<string, string>;
|
||||
visitState: ActionDef<string, string>;
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import { AbleAction, AbleState } from 'oak-domain/lib/actions/action';
|
|||
import { ActionDef } from "oak-domain/lib/types/Action";
|
||||
import { GenericAction } from "oak-domain/lib/actions/action";
|
||||
export declare type ParticularAction = AbleAction;
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const actions: string[];
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
ableState: ActionDef<AbleAction, AbleState>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import { GenericAction } from "oak-domain/lib/actions/action";
|
|||
export declare type IState = 'active' | 'applied' | 'abandoned' | string;
|
||||
export declare type IAction = 'apply' | 'abandon' | string;
|
||||
export declare type ParticularAction = IAction;
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const actions: string[];
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
iState: ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import { GenericAction } from "oak-domain/lib/actions/action";
|
|||
export declare type IAction = 'succeed' | 'fail' | string;
|
||||
export declare type IState = 'sending' | 'success' | 'failure' | string;
|
||||
export declare type ParticularAction = IAction;
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const actions: string[];
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
iState: ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { GenericAction } from "oak-domain/lib/actions/action";
|
||||
export declare type IAction = 'wakeup' | 'cancel' | 'qrcode' | string;
|
||||
export declare type ParticularAction = IAction;
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const actions: string[];
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {};
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import { AbleAction, AbleState } from 'oak-domain/lib/actions/action';
|
|||
import { ActionDef } from "oak-domain/lib/types/Action";
|
||||
import { GenericAction } from "oak-domain/lib/actions/action";
|
||||
export declare type ParticularAction = AbleAction;
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const actions: string[];
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
ableState: ActionDef<AbleAction, AbleState>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ export declare type IdState = 'unverified' | 'verified' | 'verifying' | string;
|
|||
export declare type UserAction = 'activate' | 'disable' | 'enable' | 'mergeTo' | 'mergeFrom' | string;
|
||||
export declare type UserState = 'shadow' | 'normal' | 'disabled' | 'merged' | string;
|
||||
export declare type ParticularAction = UserAction | IdAction;
|
||||
export declare type Action = GenericAction | ParticularAction | RelationAction | string;
|
||||
export declare const actions: string[];
|
||||
export declare type Action = GenericAction | ParticularAction | RelationAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
idState: ActionDef<string, string>;
|
||||
userState: ActionDef<string, string>;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { GenericAction } from "oak-domain/lib/actions/action";
|
||||
export declare type ParticularAction = 'confirm';
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const actions: string[];
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { GenericAction } from "oak-domain/lib/actions/action";
|
||||
export declare type ParticularAction = 'success';
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const actions: string[];
|
||||
export declare type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {};
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ const IActionDef: ActionDef<IAction, IState> = {
|
|||
is: 'unsent'
|
||||
};
|
||||
export type ParticularAction = IAction;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "send", "success", "fail"];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const ActionDefDict = {
|
||||
iState: IActionDef
|
||||
};
|
||||
|
|
@ -2,9 +2,9 @@ import { AbleAction, AbleState, makeAbleActionDef } from 'oak-domain/lib/actions
|
|||
import { ActionDef } from "oak-domain/lib/types/Action";
|
||||
import { GenericAction, AppendOnlyAction, ReadOnlyAction, ExcludeUpdateAction, ExcludeRemoveAction, RelationAction } from "oak-domain/lib/actions/action";
|
||||
export type ParticularAction = AbleAction;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "enable", "disable"];
|
||||
const AbleActionDef: ActionDef<AbleAction, AbleState> = makeAbleActionDef('enabled');
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const ActionDefDict = {
|
||||
ableState: AbleActionDef
|
||||
};
|
||||
|
|
@ -5,7 +5,6 @@ export type IState = 'sending' | 'success' | 'failure' | string;
|
|||
export type VisitState = 'unvisited' | 'visited' | string;
|
||||
export type VisitAction = 'visit' | string;
|
||||
export type ParticularAction = IAction | VisitAction;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "succeed", "fail", "visit"];
|
||||
const IActionDef: ActionDef<IAction, IState> = {
|
||||
stm: {
|
||||
|
|
@ -19,6 +18,7 @@ const VisitActionDef: ActionDef<VisitAction, VisitState> = {
|
|||
},
|
||||
is: 'unvisited'
|
||||
};
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const ActionDefDict = {
|
||||
iState: IActionDef,
|
||||
visitState: VisitActionDef
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import { AbleAction, AbleState, makeAbleActionDef } from 'oak-domain/lib/actions
|
|||
import { ActionDef } from "oak-domain/lib/types/Action";
|
||||
import { GenericAction, AppendOnlyAction, ReadOnlyAction, ExcludeUpdateAction, ExcludeRemoveAction, RelationAction } from "oak-domain/lib/actions/action";
|
||||
export type ParticularAction = AbleAction;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "enable", "disable"];
|
||||
const AbleActionDef: ActionDef<AbleAction, AbleState> = makeAbleActionDef('enabled');
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const ActionDefDict = {
|
||||
ableState: AbleActionDef
|
||||
};
|
||||
|
|
@ -10,8 +10,8 @@ const IActionDef: ActionDef<IAction, IState> = {
|
|||
is: 'active'
|
||||
};
|
||||
export type ParticularAction = IAction;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "apply", "abandon"];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const ActionDefDict = {
|
||||
iState: IActionDef
|
||||
};
|
||||
|
|
@ -3,7 +3,6 @@ import { GenericAction, AppendOnlyAction, ReadOnlyAction, ExcludeUpdateAction, E
|
|||
export type IAction = 'succeed' | 'fail' | string;
|
||||
export type IState = 'sending' | 'success' | 'failure' | string;
|
||||
export type ParticularAction = IAction;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "succeed", "fail"];
|
||||
const IActionDef: ActionDef<IAction, IState> = {
|
||||
stm: {
|
||||
|
|
@ -12,6 +11,7 @@ const IActionDef: ActionDef<IAction, IState> = {
|
|||
},
|
||||
is: 'sending'
|
||||
};
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const ActionDefDict = {
|
||||
iState: IActionDef
|
||||
};
|
||||
|
|
@ -2,6 +2,6 @@ import { ActionDef } from "oak-domain/lib/types/Action";
|
|||
import { GenericAction, AppendOnlyAction, ReadOnlyAction, ExcludeUpdateAction, ExcludeRemoveAction, RelationAction } from "oak-domain/lib/actions/action";
|
||||
export type IAction = 'wakeup' | 'cancel' | 'qrcode' | string;
|
||||
export type ParticularAction = IAction;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "wakeup", "cancel", "qrcode"];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const ActionDefDict = {};
|
||||
|
|
@ -2,9 +2,9 @@ import { AbleAction, AbleState, makeAbleActionDef } from 'oak-domain/lib/actions
|
|||
import { ActionDef } from "oak-domain/lib/types/Action";
|
||||
import { GenericAction, AppendOnlyAction, ReadOnlyAction, ExcludeUpdateAction, ExcludeRemoveAction, RelationAction } from "oak-domain/lib/actions/action";
|
||||
export type ParticularAction = AbleAction;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "enable", "disable"];
|
||||
const AbleActionDef: ActionDef<AbleAction, AbleState> = makeAbleActionDef('enabled');
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const ActionDefDict = {
|
||||
ableState: AbleActionDef
|
||||
};
|
||||
|
|
@ -22,8 +22,8 @@ const UserActionDef: ActionDef<UserAction, UserState> = {
|
|||
}
|
||||
};
|
||||
export type ParticularAction = UserAction | IdAction;
|
||||
export type Action = GenericAction | ParticularAction | RelationAction | string;
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "grant", "revoke", "activate", "disable", "enable", "mergeTo", "mergeFrom", "verify", "accept", "reject"];
|
||||
export type Action = GenericAction | ParticularAction | RelationAction | string;
|
||||
export const ActionDefDict = {
|
||||
idState: IdActionDef,
|
||||
userState: UserActionDef
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { ActionDef } from "oak-domain/lib/types/Action";
|
||||
import { GenericAction, AppendOnlyAction, ReadOnlyAction, ExcludeUpdateAction, ExcludeRemoveAction, RelationAction } from "oak-domain/lib/actions/action";
|
||||
export type ParticularAction = 'confirm';
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "confirm"];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const ActionDefDict = {};
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import { ActionDef } from "oak-domain/lib/types/Action";
|
||||
import { GenericAction, AppendOnlyAction, ReadOnlyAction, ExcludeUpdateAction, ExcludeRemoveAction, RelationAction } from "oak-domain/lib/actions/action";
|
||||
export type ParticularAction = 'success';
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "success"];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export const ActionDefDict = {};
|
||||
Loading…
Reference in New Issue