23 lines
814 B
JavaScript
23 lines
814 B
JavaScript
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "grant", "revoke", "enable", "disable", "activate", "mergeTo", "mergeFrom", "verify", "accept", "reject"];
|
|
export const IdActionDef = {
|
|
stm: {
|
|
verify: ['unverified', 'verifying'],
|
|
accept: [['unverified', 'verifying'], 'verified'],
|
|
reject: [['verifying', 'verified'], 'unverified'],
|
|
},
|
|
is: 'unverified',
|
|
};
|
|
export const UserActionDef = {
|
|
stm: {
|
|
activate: ['shadow', 'normal'],
|
|
disable: [['normal', 'shadow'], 'disabled'],
|
|
enable: ['disabled', 'normal'],
|
|
mergeTo: [['normal', 'shadow'], 'merged'],
|
|
mergeFrom: ['normal', 'normal'],
|
|
},
|
|
};
|
|
export const actionDefDict = {
|
|
idState: IdActionDef,
|
|
userState: UserActionDef
|
|
};
|