编译器调整后Action的语句顺序有小的变化

This commit is contained in:
Xu Chang 2023-08-14 19:41:39 +08:00
parent 23130918d1
commit ed1300f4eb
22 changed files with 22 additions and 22 deletions

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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: {};

View File

@ -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>;
};

View File

@ -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>;

View File

@ -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: {};

View File

@ -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: {};

View File

@ -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
};

View File

@ -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
};

View File

@ -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

View File

@ -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
};

View File

@ -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
};

View File

@ -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
};

View File

@ -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 = {};

View File

@ -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
};

View File

@ -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

View File

@ -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 = {};

View File

@ -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 = {};