oak-domain 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/actions/action.d.ts +8 -8
- package/lib/actions/action.js +2 -2
- package/lib/actions/relation.d.ts +1 -1
- package/lib/actions/relation.js +9 -22
- package/lib/base-app-domain/ActionAuth/Schema.d.ts +68 -42
- package/lib/base-app-domain/ActionAuth/Storage.js +12 -15
- package/lib/base-app-domain/ActionDefDict.d.ts +2 -3
- package/lib/base-app-domain/ActionDefDict.js +3 -5
- package/lib/base-app-domain/EntityDict.d.ts +5 -1
- package/lib/base-app-domain/I18n/Schema.d.ts +24 -24
- package/lib/base-app-domain/I18n/Storage.js +5 -5
- package/lib/base-app-domain/Modi/Action.d.ts +4 -4
- package/lib/base-app-domain/Modi/Action.js +3 -3
- package/lib/base-app-domain/Modi/Schema.d.ts +24 -24
- package/lib/base-app-domain/Modi/Storage.js +3 -3
- package/lib/base-app-domain/ModiEntity/Schema.d.ts +128 -55
- package/lib/base-app-domain/ModiEntity/Storage.js +2 -2
- package/lib/base-app-domain/Oper/Schema.d.ts +30 -29
- package/lib/base-app-domain/Oper/Storage.js +1 -1
- package/lib/base-app-domain/OperEntity/Schema.d.ts +126 -53
- package/lib/base-app-domain/OperEntity/Storage.js +2 -2
- package/lib/base-app-domain/Path/Schema.d.ts +149 -0
- package/lib/base-app-domain/Path/Schema.js +2 -0
- package/lib/base-app-domain/Path/Storage.d.ts +3 -0
- package/lib/base-app-domain/Path/Storage.js +54 -0
- package/lib/base-app-domain/Relation/Schema.d.ts +34 -34
- package/lib/base-app-domain/Relation/Storage.js +6 -6
- package/lib/base-app-domain/Relation.d.ts +0 -8
- package/lib/base-app-domain/Relation.js +1 -7
- package/lib/base-app-domain/RelationAuth/Schema.d.ts +74 -40
- package/lib/base-app-domain/RelationAuth/Storage.js +9 -11
- package/lib/base-app-domain/Storage.js +20 -16
- package/lib/base-app-domain/User/Action.d.ts +4 -4
- package/lib/base-app-domain/User/Action.js +3 -3
- package/lib/base-app-domain/User/Schema.d.ts +40 -27
- package/lib/base-app-domain/User/Storage.js +1 -1
- package/lib/base-app-domain/UserEntityClaim/Schema.d.ts +264 -0
- package/lib/base-app-domain/UserEntityClaim/Schema.js +2 -0
- package/lib/base-app-domain/UserEntityClaim/Storage.d.ts +3 -0
- package/lib/base-app-domain/UserEntityClaim/Storage.js +37 -0
- package/lib/base-app-domain/UserEntityGrant/Action.d.ts +2 -2
- package/lib/base-app-domain/UserEntityGrant/Schema.d.ts +55 -81
- package/lib/base-app-domain/UserEntityGrant/Storage.js +7 -11
- package/lib/base-app-domain/UserRelation/Schema.d.ts +50 -36
- package/lib/base-app-domain/UserRelation/Storage.js +7 -7
- package/lib/base-app-domain/_SubQuery.d.ts +45 -15
- package/lib/base-app-domain/index.js +1 -1
- package/lib/checkers/index.js +6 -7
- package/lib/compiler/env.js +16 -18
- package/lib/compiler/localeBuilder.js +83 -79
- package/lib/compiler/schemalBuilder.d.ts +16 -0
- package/lib/compiler/schemalBuilder.js +1160 -1378
- package/lib/entities/ActionAuth.d.ts +3 -5
- package/lib/entities/ActionAuth.js +9 -7
- package/lib/entities/I18n.js +1 -1
- package/lib/entities/Modi.js +2 -2
- package/lib/entities/ModiEntity.js +1 -1
- package/lib/entities/Oper.js +1 -1
- package/lib/entities/OperEntity.js +1 -1
- package/lib/entities/Path.d.ts +8 -0
- package/lib/entities/Path.js +35 -0
- package/lib/entities/Relation.js +1 -1
- package/lib/entities/RelationAuth.d.ts +2 -2
- package/lib/entities/RelationAuth.js +1 -1
- package/lib/entities/User.js +2 -2
- package/lib/entities/UserEntityClaim.d.ts +13 -0
- package/lib/entities/UserEntityClaim.js +17 -0
- package/lib/entities/UserEntityGrant.d.ts +5 -4
- package/lib/entities/UserEntityGrant.js +4 -7
- package/lib/entities/UserRelation.js +1 -1
- package/lib/index.d.ts +23 -0
- package/lib/index.js +37 -0
- package/lib/store/AsyncRowStore.d.ts +2 -1
- package/lib/store/AsyncRowStore.js +75 -149
- package/lib/store/CascadeStore.js +968 -1341
- package/lib/store/RelationAuth.d.ts +9 -16
- package/lib/store/RelationAuth.js +752 -910
- package/lib/store/SyncRowStore.d.ts +1 -1
- package/lib/store/SyncRowStore.js +27 -26
- package/lib/store/TriggerExecutor.d.ts +17 -10
- package/lib/store/TriggerExecutor.js +350 -423
- package/lib/store/actionAuth.js +13 -28
- package/lib/store/actionDef.js +142 -215
- package/lib/store/checker.js +225 -361
- package/lib/store/filter.d.ts +2 -3
- package/lib/store/filter.js +451 -589
- package/lib/store/modi.js +116 -177
- package/lib/store/relation.js +17 -17
- package/lib/timers/oper.d.ts +1 -1
- package/lib/timers/oper.js +44 -47
- package/lib/timers/vaccum.d.ts +2 -2
- package/lib/timers/vaccum.js +100 -165
- package/lib/triggers/index.js +1 -1
- package/lib/types/Action.d.ts +7 -7
- package/lib/types/AppLoader.d.ts +8 -2
- package/lib/types/AppLoader.js +4 -4
- package/lib/types/Auth.d.ts +15 -19
- package/lib/types/Connector.d.ts +19 -14
- package/lib/types/Connector.js +0 -7
- package/lib/types/DataType.d.ts +19 -18
- package/lib/types/DataType.js +1 -1
- package/lib/types/Demand.d.ts +25 -25
- package/lib/types/Endpoint.d.ts +1 -1
- package/lib/types/Entity.d.ts +62 -53
- package/lib/types/Entity.js +4 -3
- package/lib/types/EntityDesc.d.ts +2 -1
- package/lib/types/Environment.d.ts +4 -4
- package/lib/types/Exception.d.ts +34 -2
- package/lib/types/Exception.js +214 -197
- package/lib/types/Expression.d.ts +14 -14
- package/lib/types/Expression.js +54 -87
- package/lib/types/Geo.d.ts +6 -6
- package/lib/types/Locale.d.ts +5 -5
- package/lib/types/Polyfill.d.ts +9 -9
- package/lib/types/Port.d.ts +4 -4
- package/lib/types/RowStore.d.ts +3 -3
- package/lib/types/RowStore.js +18 -19
- package/lib/types/Storage.d.ts +5 -4
- package/lib/types/Style.d.ts +2 -2
- package/lib/types/Timer.d.ts +3 -3
- package/lib/types/Trigger.d.ts +30 -14
- package/lib/types/Trigger.js +6 -2
- package/lib/types/Watcher.d.ts +2 -2
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +2 -1
- package/lib/types/schema/DataTypes.d.ts +7 -7
- package/lib/utils/SimpleConnector.d.ts +26 -10
- package/lib/utils/SimpleConnector.js +167 -141
- package/lib/utils/assert.js +2 -2
- package/lib/utils/concurrent.d.ts +1 -1
- package/lib/utils/concurrent.js +31 -57
- package/lib/utils/date.js +2 -2
- package/lib/utils/geo.js +8 -8
- package/lib/utils/lodash.d.ts +3 -1
- package/lib/utils/lodash.js +21 -34
- package/lib/utils/mask.js +12 -13
- package/lib/utils/money.d.ts +1 -1
- package/lib/utils/money.js +22 -11
- package/lib/utils/projection.d.ts +4 -0
- package/lib/utils/projection.js +15 -0
- package/lib/utils/random/random.js +11 -16
- package/lib/utils/random/random.mp.js +7 -18
- package/lib/utils/random/random.web.js +6 -12
- package/lib/utils/string.d.ts +4 -4
- package/lib/utils/string.js +19 -32
- package/lib/utils/url.js +5 -4
- package/lib/utils/uuid.d.ts +1 -1
- package/lib/utils/uuid.js +46 -85
- package/lib/utils/validator.d.ts +4 -3
- package/lib/utils/validator.js +35 -32
- package/lib/utils/version.js +6 -6
- package/package.json +7 -7
- package/src/entities/ActionAuth.ts +10 -10
- package/src/entities/Path.ts +43 -0
- package/src/entities/RelationAuth.ts +2 -1
- package/src/entities/UserEntityClaim.ts +30 -0
- package/src/entities/UserEntityGrant.ts +9 -12
|
@@ -6,18 +6,18 @@ import { String } from "../../types/DataType";
|
|
|
6
6
|
import { EntityShape } from "../../types/Entity";
|
|
7
7
|
import * as ActionAuth from "../ActionAuth/Schema";
|
|
8
8
|
import * as RelationAuth from "../RelationAuth/Schema";
|
|
9
|
-
import * as
|
|
9
|
+
import * as UserEntityClaim from "../UserEntityClaim/Schema";
|
|
10
10
|
import * as UserRelation from "../UserRelation/Schema";
|
|
11
11
|
import * as ModiEntity from "../ModiEntity/Schema";
|
|
12
12
|
import * as OperEntity from "../OperEntity/Schema";
|
|
13
|
-
export
|
|
13
|
+
export type OpSchema = EntityShape & {
|
|
14
14
|
entity: String<32>;
|
|
15
15
|
entityId?: String<64> | null;
|
|
16
16
|
name?: String<32> | null;
|
|
17
17
|
display?: String<32> | null;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export type OpAttr = keyof OpSchema;
|
|
20
|
+
export type Schema = EntityShape & {
|
|
21
21
|
entity: String<32>;
|
|
22
22
|
entityId?: String<64> | null;
|
|
23
23
|
name?: String<32> | null;
|
|
@@ -28,8 +28,8 @@ export declare type Schema = EntityShape & {
|
|
|
28
28
|
relationAuth$sourceRelation$$aggr?: AggregationResult<RelationAuth.Schema>;
|
|
29
29
|
relationAuth$destRelation?: Array<RelationAuth.Schema>;
|
|
30
30
|
relationAuth$destRelation$$aggr?: AggregationResult<RelationAuth.Schema>;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
userEntityClaim$relation?: Array<UserEntityClaim.Schema>;
|
|
32
|
+
userEntityClaim$relation$$aggr?: AggregationResult<UserEntityClaim.Schema>;
|
|
33
33
|
userRelation$relation?: Array<UserRelation.Schema>;
|
|
34
34
|
userRelation$relation$$aggr?: AggregationResult<UserRelation.Schema>;
|
|
35
35
|
modiEntity$entity?: Array<ModiEntity.Schema>;
|
|
@@ -39,7 +39,7 @@ export declare type Schema = EntityShape & {
|
|
|
39
39
|
} & {
|
|
40
40
|
[A in ExpressionKey]?: any;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
type AttrFilter = {
|
|
43
43
|
id: Q_StringValue;
|
|
44
44
|
$$createAt$$: Q_DateValue;
|
|
45
45
|
$$seq$$: Q_StringValue;
|
|
@@ -51,13 +51,13 @@ declare type AttrFilter = {
|
|
|
51
51
|
actionAuth$relation: ActionAuth.Filter & SubQueryPredicateMetadata;
|
|
52
52
|
relationAuth$sourceRelation: RelationAuth.Filter & SubQueryPredicateMetadata;
|
|
53
53
|
relationAuth$destRelation: RelationAuth.Filter & SubQueryPredicateMetadata;
|
|
54
|
-
|
|
54
|
+
userEntityClaim$relation: UserEntityClaim.Filter & SubQueryPredicateMetadata;
|
|
55
55
|
userRelation$relation: UserRelation.Filter & SubQueryPredicateMetadata;
|
|
56
56
|
modiEntity$entity: ModiEntity.Filter & SubQueryPredicateMetadata;
|
|
57
57
|
operEntity$entity: OperEntity.Filter & SubQueryPredicateMetadata;
|
|
58
58
|
};
|
|
59
|
-
export
|
|
60
|
-
export
|
|
59
|
+
export type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
|
60
|
+
export type Projection = {
|
|
61
61
|
"#id"?: NodeId;
|
|
62
62
|
[k: string]: any;
|
|
63
63
|
id?: number;
|
|
@@ -86,11 +86,11 @@ export declare type Projection = {
|
|
|
86
86
|
relationAuth$destRelation$$aggr?: RelationAuth.Aggregation & {
|
|
87
87
|
$entity: "relationAuth";
|
|
88
88
|
};
|
|
89
|
-
|
|
90
|
-
$entity: "
|
|
89
|
+
userEntityClaim$relation?: UserEntityClaim.Selection & {
|
|
90
|
+
$entity: "userEntityClaim";
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
$entity: "
|
|
92
|
+
userEntityClaim$relation$$aggr?: UserEntityClaim.Aggregation & {
|
|
93
|
+
$entity: "userEntityClaim";
|
|
94
94
|
};
|
|
95
95
|
userRelation$relation?: UserRelation.Selection & {
|
|
96
96
|
$entity: "userRelation";
|
|
@@ -111,10 +111,10 @@ export declare type Projection = {
|
|
|
111
111
|
$entity: "operEntity";
|
|
112
112
|
};
|
|
113
113
|
} & Partial<ExprOp<OpAttr | string>>;
|
|
114
|
-
|
|
114
|
+
type RelationIdProjection = OneOf<{
|
|
115
115
|
id: number;
|
|
116
116
|
}>;
|
|
117
|
-
export
|
|
117
|
+
export type SortAttr = {
|
|
118
118
|
id: number;
|
|
119
119
|
} | {
|
|
120
120
|
$$createAt$$: number;
|
|
@@ -133,15 +133,15 @@ export declare type SortAttr = {
|
|
|
133
133
|
} | {
|
|
134
134
|
[k: string]: any;
|
|
135
135
|
} | OneOf<ExprOp<OpAttr | string>>;
|
|
136
|
-
export
|
|
136
|
+
export type SortNode = {
|
|
137
137
|
$attr: SortAttr;
|
|
138
138
|
$direction?: "asc" | "desc";
|
|
139
139
|
};
|
|
140
|
-
export
|
|
141
|
-
export
|
|
142
|
-
export
|
|
143
|
-
export
|
|
144
|
-
export
|
|
140
|
+
export type Sorter = SortNode[];
|
|
141
|
+
export type SelectOperation<P extends Object = Projection> = OakSelection<"select", P, Filter, Sorter>;
|
|
142
|
+
export type Selection<P extends Object = Projection> = SelectOperation<P>;
|
|
143
|
+
export type Aggregation = DeduceAggregation<Projection, Filter, Sorter>;
|
|
144
|
+
export type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "entityId">> & ({
|
|
145
145
|
entity?: string;
|
|
146
146
|
entityId?: string;
|
|
147
147
|
[K: string]: any;
|
|
@@ -149,30 +149,30 @@ export declare type CreateOperationData = FormCreateData<Omit<OpSchema, "entity"
|
|
|
149
149
|
actionAuth$relation?: OakOperation<ActionAuth.UpdateOperation["action"], Omit<ActionAuth.UpdateOperationData, "relation" | "relationId">, Omit<ActionAuth.Filter, "relation" | "relationId">> | OakOperation<"create", Omit<ActionAuth.CreateOperationData, "relation" | "relationId">[]> | Array<OakOperation<"create", Omit<ActionAuth.CreateOperationData, "relation" | "relationId">> | OakOperation<ActionAuth.UpdateOperation["action"], Omit<ActionAuth.UpdateOperationData, "relation" | "relationId">, Omit<ActionAuth.Filter, "relation" | "relationId">>>;
|
|
150
150
|
relationAuth$sourceRelation?: OakOperation<RelationAuth.UpdateOperation["action"], Omit<RelationAuth.UpdateOperationData, "sourceRelation" | "sourceRelationId">, Omit<RelationAuth.Filter, "sourceRelation" | "sourceRelationId">> | OakOperation<"create", Omit<RelationAuth.CreateOperationData, "sourceRelation" | "sourceRelationId">[]> | Array<OakOperation<"create", Omit<RelationAuth.CreateOperationData, "sourceRelation" | "sourceRelationId">> | OakOperation<RelationAuth.UpdateOperation["action"], Omit<RelationAuth.UpdateOperationData, "sourceRelation" | "sourceRelationId">, Omit<RelationAuth.Filter, "sourceRelation" | "sourceRelationId">>>;
|
|
151
151
|
relationAuth$destRelation?: OakOperation<RelationAuth.UpdateOperation["action"], Omit<RelationAuth.UpdateOperationData, "destRelation" | "destRelationId">, Omit<RelationAuth.Filter, "destRelation" | "destRelationId">> | OakOperation<"create", Omit<RelationAuth.CreateOperationData, "destRelation" | "destRelationId">[]> | Array<OakOperation<"create", Omit<RelationAuth.CreateOperationData, "destRelation" | "destRelationId">> | OakOperation<RelationAuth.UpdateOperation["action"], Omit<RelationAuth.UpdateOperationData, "destRelation" | "destRelationId">, Omit<RelationAuth.Filter, "destRelation" | "destRelationId">>>;
|
|
152
|
-
|
|
152
|
+
userEntityClaim$relation?: OakOperation<UserEntityClaim.UpdateOperation["action"], Omit<UserEntityClaim.UpdateOperationData, "relation" | "relationId">, Omit<UserEntityClaim.Filter, "relation" | "relationId">> | OakOperation<"create", Omit<UserEntityClaim.CreateOperationData, "relation" | "relationId">[]> | Array<OakOperation<"create", Omit<UserEntityClaim.CreateOperationData, "relation" | "relationId">> | OakOperation<UserEntityClaim.UpdateOperation["action"], Omit<UserEntityClaim.UpdateOperationData, "relation" | "relationId">, Omit<UserEntityClaim.Filter, "relation" | "relationId">>>;
|
|
153
153
|
userRelation$relation?: OakOperation<UserRelation.UpdateOperation["action"], Omit<UserRelation.UpdateOperationData, "relation" | "relationId">, Omit<UserRelation.Filter, "relation" | "relationId">> | OakOperation<"create", Omit<UserRelation.CreateOperationData, "relation" | "relationId">[]> | Array<OakOperation<"create", Omit<UserRelation.CreateOperationData, "relation" | "relationId">> | OakOperation<UserRelation.UpdateOperation["action"], Omit<UserRelation.UpdateOperationData, "relation" | "relationId">, Omit<UserRelation.Filter, "relation" | "relationId">>>;
|
|
154
154
|
modiEntity$entity?: OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
155
155
|
operEntity$entity?: OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
156
156
|
};
|
|
157
|
-
export
|
|
158
|
-
export
|
|
159
|
-
export
|
|
160
|
-
export
|
|
157
|
+
export type CreateSingleOperation = OakOperation<"create", CreateOperationData>;
|
|
158
|
+
export type CreateMultipleOperation = OakOperation<"create", Array<CreateOperationData>>;
|
|
159
|
+
export type CreateOperation = CreateSingleOperation | CreateMultipleOperation;
|
|
160
|
+
export type UpdateOperationData = FormUpdateData<OpSchema> & {
|
|
161
161
|
[k: string]: any;
|
|
162
162
|
actionAuth$relation?: OakOperation<ActionAuth.UpdateOperation["action"], Omit<ActionAuth.UpdateOperationData, "relation" | "relationId">, Omit<ActionAuth.Filter, "relation" | "relationId">> | OakOperation<ActionAuth.RemoveOperation["action"], Omit<ActionAuth.RemoveOperationData, "relation" | "relationId">, Omit<ActionAuth.Filter, "relation" | "relationId">> | OakOperation<"create", Omit<ActionAuth.CreateOperationData, "relation" | "relationId">[]> | Array<OakOperation<"create", Omit<ActionAuth.CreateOperationData, "relation" | "relationId">> | OakOperation<ActionAuth.UpdateOperation["action"], Omit<ActionAuth.UpdateOperationData, "relation" | "relationId">, Omit<ActionAuth.Filter, "relation" | "relationId">> | OakOperation<ActionAuth.RemoveOperation["action"], Omit<ActionAuth.RemoveOperationData, "relation" | "relationId">, Omit<ActionAuth.Filter, "relation" | "relationId">>>;
|
|
163
163
|
relationAuth$sourceRelation?: OakOperation<RelationAuth.UpdateOperation["action"], Omit<RelationAuth.UpdateOperationData, "sourceRelation" | "sourceRelationId">, Omit<RelationAuth.Filter, "sourceRelation" | "sourceRelationId">> | OakOperation<RelationAuth.RemoveOperation["action"], Omit<RelationAuth.RemoveOperationData, "sourceRelation" | "sourceRelationId">, Omit<RelationAuth.Filter, "sourceRelation" | "sourceRelationId">> | OakOperation<"create", Omit<RelationAuth.CreateOperationData, "sourceRelation" | "sourceRelationId">[]> | Array<OakOperation<"create", Omit<RelationAuth.CreateOperationData, "sourceRelation" | "sourceRelationId">> | OakOperation<RelationAuth.UpdateOperation["action"], Omit<RelationAuth.UpdateOperationData, "sourceRelation" | "sourceRelationId">, Omit<RelationAuth.Filter, "sourceRelation" | "sourceRelationId">> | OakOperation<RelationAuth.RemoveOperation["action"], Omit<RelationAuth.RemoveOperationData, "sourceRelation" | "sourceRelationId">, Omit<RelationAuth.Filter, "sourceRelation" | "sourceRelationId">>>;
|
|
164
164
|
relationAuth$destRelation?: OakOperation<RelationAuth.UpdateOperation["action"], Omit<RelationAuth.UpdateOperationData, "destRelation" | "destRelationId">, Omit<RelationAuth.Filter, "destRelation" | "destRelationId">> | OakOperation<RelationAuth.RemoveOperation["action"], Omit<RelationAuth.RemoveOperationData, "destRelation" | "destRelationId">, Omit<RelationAuth.Filter, "destRelation" | "destRelationId">> | OakOperation<"create", Omit<RelationAuth.CreateOperationData, "destRelation" | "destRelationId">[]> | Array<OakOperation<"create", Omit<RelationAuth.CreateOperationData, "destRelation" | "destRelationId">> | OakOperation<RelationAuth.UpdateOperation["action"], Omit<RelationAuth.UpdateOperationData, "destRelation" | "destRelationId">, Omit<RelationAuth.Filter, "destRelation" | "destRelationId">> | OakOperation<RelationAuth.RemoveOperation["action"], Omit<RelationAuth.RemoveOperationData, "destRelation" | "destRelationId">, Omit<RelationAuth.Filter, "destRelation" | "destRelationId">>>;
|
|
165
|
-
|
|
165
|
+
userEntityClaim$relation?: OakOperation<UserEntityClaim.UpdateOperation["action"], Omit<UserEntityClaim.UpdateOperationData, "relation" | "relationId">, Omit<UserEntityClaim.Filter, "relation" | "relationId">> | OakOperation<UserEntityClaim.RemoveOperation["action"], Omit<UserEntityClaim.RemoveOperationData, "relation" | "relationId">, Omit<UserEntityClaim.Filter, "relation" | "relationId">> | OakOperation<"create", Omit<UserEntityClaim.CreateOperationData, "relation" | "relationId">[]> | Array<OakOperation<"create", Omit<UserEntityClaim.CreateOperationData, "relation" | "relationId">> | OakOperation<UserEntityClaim.UpdateOperation["action"], Omit<UserEntityClaim.UpdateOperationData, "relation" | "relationId">, Omit<UserEntityClaim.Filter, "relation" | "relationId">> | OakOperation<UserEntityClaim.RemoveOperation["action"], Omit<UserEntityClaim.RemoveOperationData, "relation" | "relationId">, Omit<UserEntityClaim.Filter, "relation" | "relationId">>>;
|
|
166
166
|
userRelation$relation?: OakOperation<UserRelation.UpdateOperation["action"], Omit<UserRelation.UpdateOperationData, "relation" | "relationId">, Omit<UserRelation.Filter, "relation" | "relationId">> | OakOperation<UserRelation.RemoveOperation["action"], Omit<UserRelation.RemoveOperationData, "relation" | "relationId">, Omit<UserRelation.Filter, "relation" | "relationId">> | OakOperation<"create", Omit<UserRelation.CreateOperationData, "relation" | "relationId">[]> | Array<OakOperation<"create", Omit<UserRelation.CreateOperationData, "relation" | "relationId">> | OakOperation<UserRelation.UpdateOperation["action"], Omit<UserRelation.UpdateOperationData, "relation" | "relationId">, Omit<UserRelation.Filter, "relation" | "relationId">> | OakOperation<UserRelation.RemoveOperation["action"], Omit<UserRelation.RemoveOperationData, "relation" | "relationId">, Omit<UserRelation.Filter, "relation" | "relationId">>>;
|
|
167
167
|
modiEntity$entity?: OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
168
168
|
operEntity$entity?: OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
169
169
|
};
|
|
170
|
-
export
|
|
171
|
-
export
|
|
172
|
-
export
|
|
173
|
-
export
|
|
174
|
-
export
|
|
175
|
-
export
|
|
170
|
+
export type UpdateOperation = OakOperation<"update" | string, UpdateOperationData, Filter, Sorter>;
|
|
171
|
+
export type RemoveOperationData = {};
|
|
172
|
+
export type RemoveOperation = OakOperation<"remove", RemoveOperationData, Filter, Sorter>;
|
|
173
|
+
export type Operation = CreateOperation | UpdateOperation | RemoveOperation;
|
|
174
|
+
export type RelationIdSubQuery = Selection<RelationIdProjection>;
|
|
175
|
+
export type EntityDef = {
|
|
176
176
|
Schema: Schema;
|
|
177
177
|
OpSchema: OpSchema;
|
|
178
178
|
Action: OakMakeAction<GenericAction> | string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.desc = void 0;
|
|
4
|
-
|
|
4
|
+
const action_1 = require("../../actions/action");
|
|
5
5
|
exports.desc = {
|
|
6
6
|
attributes: {
|
|
7
7
|
entity: {
|
|
@@ -37,18 +37,18 @@ exports.desc = {
|
|
|
37
37
|
name: 'index_targetEntity_entityId_name',
|
|
38
38
|
attributes: [
|
|
39
39
|
{
|
|
40
|
-
name: 'entity'
|
|
40
|
+
name: 'entity',
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
name: 'entityId'
|
|
43
|
+
name: 'entityId',
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
name: 'name'
|
|
46
|
+
name: 'name',
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
49
|
config: {
|
|
50
|
-
unique: true
|
|
51
|
-
}
|
|
50
|
+
unique: true,
|
|
51
|
+
},
|
|
52
52
|
}
|
|
53
53
|
]
|
|
54
54
|
};
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import { AuthCascadePath, AuthDeduceRelationMap } from "../types/Entity";
|
|
2
|
-
import { EntityDict } from "./EntityDict";
|
|
3
1
|
import { CreateOperationData as Relation } from "./Relation/Schema";
|
|
4
|
-
export declare const ActionCascadePathGraph: AuthCascadePath<EntityDict>[];
|
|
5
|
-
export declare const RelationCascadePathGraph: AuthCascadePath<EntityDict>[];
|
|
6
2
|
export declare const relations: Relation[];
|
|
7
|
-
export declare const deducedRelationMap: AuthDeduceRelationMap<EntityDict>;
|
|
8
|
-
export declare const selectFreeEntities: (keyof EntityDict)[];
|
|
9
|
-
export declare const updateFreeEntities: (keyof EntityDict)[];
|
|
10
|
-
export declare const createFreeEntities: (keyof EntityDict)[];
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ActionCascadePathGraph = [];
|
|
5
|
-
exports.RelationCascadePathGraph = [];
|
|
3
|
+
exports.relations = void 0;
|
|
6
4
|
exports.relations = [];
|
|
7
|
-
exports.deducedRelationMap = {};
|
|
8
|
-
exports.selectFreeEntities = [];
|
|
9
|
-
exports.updateFreeEntities = [];
|
|
10
|
-
exports.createFreeEntities = [];
|
|
@@ -3,22 +3,23 @@ import { Q_DateValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey,
|
|
|
3
3
|
import { OneOf } from "../../types/Polyfill";
|
|
4
4
|
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
5
5
|
import { GenericAction } from "../../actions/action";
|
|
6
|
-
import { String } from "../../types/DataType";
|
|
7
6
|
import { EntityShape } from "../../types/Entity";
|
|
8
7
|
import * as Relation from "../Relation/Schema";
|
|
8
|
+
import * as Path from "../Path/Schema";
|
|
9
9
|
import * as ModiEntity from "../ModiEntity/Schema";
|
|
10
10
|
import * as OperEntity from "../OperEntity/Schema";
|
|
11
|
-
export
|
|
11
|
+
export type OpSchema = EntityShape & {
|
|
12
12
|
sourceRelationId: ForeignKey<"relation">;
|
|
13
|
-
|
|
13
|
+
pathId: ForeignKey<"path">;
|
|
14
14
|
destRelationId: ForeignKey<"relation">;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
16
|
+
export type OpAttr = keyof OpSchema;
|
|
17
|
+
export type Schema = EntityShape & {
|
|
18
18
|
sourceRelationId: ForeignKey<"relation">;
|
|
19
|
-
|
|
19
|
+
pathId: ForeignKey<"path">;
|
|
20
20
|
destRelationId: ForeignKey<"relation">;
|
|
21
21
|
sourceRelation: Relation.Schema;
|
|
22
|
+
path: Path.Schema;
|
|
22
23
|
destRelation: Relation.Schema;
|
|
23
24
|
modiEntity$entity?: Array<ModiEntity.Schema>;
|
|
24
25
|
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
|
|
@@ -27,21 +28,22 @@ export declare type Schema = EntityShape & {
|
|
|
27
28
|
} & {
|
|
28
29
|
[A in ExpressionKey]?: any;
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
+
type AttrFilter = {
|
|
31
32
|
id: Q_StringValue;
|
|
32
33
|
$$createAt$$: Q_DateValue;
|
|
33
34
|
$$seq$$: Q_StringValue;
|
|
34
35
|
$$updateAt$$: Q_DateValue;
|
|
35
36
|
sourceRelationId: Q_StringValue;
|
|
36
37
|
sourceRelation: Relation.Filter;
|
|
37
|
-
|
|
38
|
+
pathId: Q_StringValue;
|
|
39
|
+
path: Path.Filter;
|
|
38
40
|
destRelationId: Q_StringValue;
|
|
39
41
|
destRelation: Relation.Filter;
|
|
40
42
|
modiEntity$entity: ModiEntity.Filter & SubQueryPredicateMetadata;
|
|
41
43
|
operEntity$entity: OperEntity.Filter & SubQueryPredicateMetadata;
|
|
42
44
|
};
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
+
export type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
|
46
|
+
export type Projection = {
|
|
45
47
|
"#id"?: NodeId;
|
|
46
48
|
[k: string]: any;
|
|
47
49
|
id?: number;
|
|
@@ -50,7 +52,8 @@ export declare type Projection = {
|
|
|
50
52
|
$$seq$$?: number;
|
|
51
53
|
sourceRelationId?: number;
|
|
52
54
|
sourceRelation?: Relation.Projection;
|
|
53
|
-
|
|
55
|
+
pathId?: number;
|
|
56
|
+
path?: Path.Projection;
|
|
54
57
|
destRelationId?: number;
|
|
55
58
|
destRelation?: Relation.Projection;
|
|
56
59
|
modiEntity$entity?: ModiEntity.Selection & {
|
|
@@ -66,14 +69,17 @@ export declare type Projection = {
|
|
|
66
69
|
$entity: "operEntity";
|
|
67
70
|
};
|
|
68
71
|
} & Partial<ExprOp<OpAttr | string>>;
|
|
69
|
-
|
|
72
|
+
type RelationAuthIdProjection = OneOf<{
|
|
70
73
|
id: number;
|
|
71
74
|
}>;
|
|
72
|
-
|
|
75
|
+
type RelationIdProjection = OneOf<{
|
|
73
76
|
sourceRelationId: number;
|
|
74
77
|
destRelationId: number;
|
|
75
78
|
}>;
|
|
76
|
-
|
|
79
|
+
type PathIdProjection = OneOf<{
|
|
80
|
+
pathId: number;
|
|
81
|
+
}>;
|
|
82
|
+
export type SortAttr = {
|
|
77
83
|
id: number;
|
|
78
84
|
} | {
|
|
79
85
|
$$createAt$$: number;
|
|
@@ -86,7 +92,9 @@ export declare type SortAttr = {
|
|
|
86
92
|
} | {
|
|
87
93
|
sourceRelation: Relation.SortAttr;
|
|
88
94
|
} | {
|
|
89
|
-
|
|
95
|
+
pathId: number;
|
|
96
|
+
} | {
|
|
97
|
+
path: Path.SortAttr;
|
|
90
98
|
} | {
|
|
91
99
|
destRelationId: number;
|
|
92
100
|
} | {
|
|
@@ -94,22 +102,32 @@ export declare type SortAttr = {
|
|
|
94
102
|
} | {
|
|
95
103
|
[k: string]: any;
|
|
96
104
|
} | OneOf<ExprOp<OpAttr | string>>;
|
|
97
|
-
export
|
|
105
|
+
export type SortNode = {
|
|
98
106
|
$attr: SortAttr;
|
|
99
107
|
$direction?: "asc" | "desc";
|
|
100
108
|
};
|
|
101
|
-
export
|
|
102
|
-
export
|
|
103
|
-
export
|
|
104
|
-
export
|
|
105
|
-
export
|
|
109
|
+
export type Sorter = SortNode[];
|
|
110
|
+
export type SelectOperation<P extends Object = Projection> = OakSelection<"select", P, Filter, Sorter>;
|
|
111
|
+
export type Selection<P extends Object = Projection> = SelectOperation<P>;
|
|
112
|
+
export type Aggregation = DeduceAggregation<Projection, Filter, Sorter>;
|
|
113
|
+
export type CreateOperationData = FormCreateData<Omit<OpSchema, "sourceRelationId" | "pathId" | "destRelationId">> & (({
|
|
106
114
|
sourceRelationId?: never;
|
|
107
115
|
sourceRelation: Relation.CreateSingleOperation;
|
|
108
116
|
} | {
|
|
109
117
|
sourceRelationId: ForeignKey<"sourceRelation">;
|
|
110
118
|
sourceRelation?: Relation.UpdateOperation;
|
|
111
119
|
} | {
|
|
120
|
+
sourceRelation?: never;
|
|
112
121
|
sourceRelationId: ForeignKey<"sourceRelation">;
|
|
122
|
+
}) & ({
|
|
123
|
+
pathId?: never;
|
|
124
|
+
path: Path.CreateSingleOperation;
|
|
125
|
+
} | {
|
|
126
|
+
pathId: ForeignKey<"path">;
|
|
127
|
+
path?: Path.UpdateOperation;
|
|
128
|
+
} | {
|
|
129
|
+
path?: never;
|
|
130
|
+
pathId: ForeignKey<"path">;
|
|
113
131
|
}) & ({
|
|
114
132
|
destRelationId?: never;
|
|
115
133
|
destRelation: Relation.CreateSingleOperation;
|
|
@@ -117,54 +135,70 @@ export declare type CreateOperationData = FormCreateData<Omit<OpSchema, "sourceR
|
|
|
117
135
|
destRelationId: ForeignKey<"destRelation">;
|
|
118
136
|
destRelation?: Relation.UpdateOperation;
|
|
119
137
|
} | {
|
|
138
|
+
destRelation?: never;
|
|
120
139
|
destRelationId: ForeignKey<"destRelation">;
|
|
121
140
|
})) & {
|
|
122
141
|
modiEntity$entity?: OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
123
142
|
operEntity$entity?: OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
124
143
|
};
|
|
125
|
-
export
|
|
126
|
-
export
|
|
127
|
-
export
|
|
128
|
-
export
|
|
129
|
-
sourceRelation
|
|
144
|
+
export type CreateSingleOperation = OakOperation<"create", CreateOperationData>;
|
|
145
|
+
export type CreateMultipleOperation = OakOperation<"create", Array<CreateOperationData>>;
|
|
146
|
+
export type CreateOperation = CreateSingleOperation | CreateMultipleOperation;
|
|
147
|
+
export type UpdateOperationData = FormUpdateData<Omit<OpSchema, "sourceRelationId" | "pathId" | "destRelationId">> & (({
|
|
148
|
+
sourceRelation?: Relation.CreateSingleOperation;
|
|
130
149
|
sourceRelationId?: never;
|
|
131
150
|
} | {
|
|
132
|
-
sourceRelation
|
|
151
|
+
sourceRelation?: Relation.UpdateOperation;
|
|
133
152
|
sourceRelationId?: never;
|
|
134
153
|
} | {
|
|
135
|
-
sourceRelation
|
|
154
|
+
sourceRelation?: Relation.RemoveOperation;
|
|
136
155
|
sourceRelationId?: never;
|
|
137
156
|
} | {
|
|
138
157
|
sourceRelation?: never;
|
|
139
|
-
sourceRelationId?: ForeignKey<"sourceRelation"
|
|
158
|
+
sourceRelationId?: ForeignKey<"sourceRelation">;
|
|
140
159
|
}) & ({
|
|
141
|
-
|
|
160
|
+
path?: Path.CreateSingleOperation;
|
|
161
|
+
pathId?: never;
|
|
162
|
+
} | {
|
|
163
|
+
path?: Path.UpdateOperation;
|
|
164
|
+
pathId?: never;
|
|
165
|
+
} | {
|
|
166
|
+
path?: Path.RemoveOperation;
|
|
167
|
+
pathId?: never;
|
|
168
|
+
} | {
|
|
169
|
+
path?: never;
|
|
170
|
+
pathId?: ForeignKey<"path">;
|
|
171
|
+
}) & ({
|
|
172
|
+
destRelation?: Relation.CreateSingleOperation;
|
|
142
173
|
destRelationId?: never;
|
|
143
174
|
} | {
|
|
144
|
-
destRelation
|
|
175
|
+
destRelation?: Relation.UpdateOperation;
|
|
145
176
|
destRelationId?: never;
|
|
146
177
|
} | {
|
|
147
|
-
destRelation
|
|
178
|
+
destRelation?: Relation.RemoveOperation;
|
|
148
179
|
destRelationId?: never;
|
|
149
180
|
} | {
|
|
150
181
|
destRelation?: never;
|
|
151
|
-
destRelationId?: ForeignKey<"destRelation"
|
|
182
|
+
destRelationId?: ForeignKey<"destRelation">;
|
|
152
183
|
})) & {
|
|
153
184
|
[k: string]: any;
|
|
154
185
|
modiEntity$entity?: OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
155
186
|
operEntity$entity?: OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
156
187
|
};
|
|
157
|
-
export
|
|
158
|
-
export
|
|
188
|
+
export type UpdateOperation = OakOperation<"update" | string, UpdateOperationData, Filter, Sorter>;
|
|
189
|
+
export type RemoveOperationData = {} & (({
|
|
159
190
|
sourceRelation?: Relation.UpdateOperation | Relation.RemoveOperation;
|
|
191
|
+
}) & ({
|
|
192
|
+
path?: Path.UpdateOperation | Path.RemoveOperation;
|
|
160
193
|
}) & ({
|
|
161
194
|
destRelation?: Relation.UpdateOperation | Relation.RemoveOperation;
|
|
162
195
|
}));
|
|
163
|
-
export
|
|
164
|
-
export
|
|
165
|
-
export
|
|
166
|
-
export
|
|
167
|
-
export
|
|
196
|
+
export type RemoveOperation = OakOperation<"remove", RemoveOperationData, Filter, Sorter>;
|
|
197
|
+
export type Operation = CreateOperation | UpdateOperation | RemoveOperation;
|
|
198
|
+
export type RelationIdSubQuery = Selection<RelationIdProjection>;
|
|
199
|
+
export type PathIdSubQuery = Selection<PathIdProjection>;
|
|
200
|
+
export type RelationAuthIdSubQuery = Selection<RelationAuthIdProjection>;
|
|
201
|
+
export type EntityDef = {
|
|
168
202
|
Schema: Schema;
|
|
169
203
|
OpSchema: OpSchema;
|
|
170
204
|
Action: OakMakeAction<GenericAction> | string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.desc = void 0;
|
|
4
|
-
|
|
4
|
+
const action_1 = require("../../actions/action");
|
|
5
5
|
exports.desc = {
|
|
6
6
|
attributes: {
|
|
7
7
|
sourceRelationId: {
|
|
@@ -9,12 +9,10 @@ exports.desc = {
|
|
|
9
9
|
type: "ref",
|
|
10
10
|
ref: "relation"
|
|
11
11
|
},
|
|
12
|
-
|
|
12
|
+
pathId: {
|
|
13
13
|
notNull: true,
|
|
14
|
-
type: "
|
|
15
|
-
|
|
16
|
-
length: 256
|
|
17
|
-
}
|
|
14
|
+
type: "ref",
|
|
15
|
+
ref: "path"
|
|
18
16
|
},
|
|
19
17
|
destRelationId: {
|
|
20
18
|
notNull: true,
|
|
@@ -29,18 +27,18 @@ exports.desc = {
|
|
|
29
27
|
name: 'index_entity_relation_path',
|
|
30
28
|
attributes: [
|
|
31
29
|
{
|
|
32
|
-
name: "sourceRelationId"
|
|
30
|
+
name: "sourceRelationId",
|
|
33
31
|
},
|
|
34
32
|
{
|
|
35
|
-
name:
|
|
33
|
+
name: "pathId",
|
|
36
34
|
},
|
|
37
35
|
{
|
|
38
|
-
name: "destRelationId"
|
|
36
|
+
name: "destRelationId",
|
|
39
37
|
},
|
|
40
38
|
],
|
|
41
39
|
config: {
|
|
42
|
-
unique: true
|
|
43
|
-
}
|
|
40
|
+
unique: true,
|
|
41
|
+
},
|
|
44
42
|
}
|
|
45
43
|
]
|
|
46
44
|
};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.storageSchema = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
const Storage_1 = require("./ActionAuth/Storage");
|
|
5
|
+
const Storage_2 = require("./I18n/Storage");
|
|
6
|
+
const Storage_3 = require("./Modi/Storage");
|
|
7
|
+
const Storage_4 = require("./ModiEntity/Storage");
|
|
8
|
+
const Storage_5 = require("./Oper/Storage");
|
|
9
|
+
const Storage_6 = require("./OperEntity/Storage");
|
|
10
|
+
const Storage_7 = require("./Path/Storage");
|
|
11
|
+
const Storage_8 = require("./Relation/Storage");
|
|
12
|
+
const Storage_9 = require("./RelationAuth/Storage");
|
|
13
|
+
const Storage_10 = require("./User/Storage");
|
|
14
|
+
const Storage_11 = require("./UserEntityClaim/Storage");
|
|
15
|
+
const Storage_12 = require("./UserEntityGrant/Storage");
|
|
16
|
+
const Storage_13 = require("./UserRelation/Storage");
|
|
15
17
|
exports.storageSchema = {
|
|
16
18
|
actionAuth: Storage_1.desc,
|
|
17
19
|
i18n: Storage_2.desc,
|
|
@@ -19,9 +21,11 @@ exports.storageSchema = {
|
|
|
19
21
|
modiEntity: Storage_4.desc,
|
|
20
22
|
oper: Storage_5.desc,
|
|
21
23
|
operEntity: Storage_6.desc,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
path: Storage_7.desc,
|
|
25
|
+
relation: Storage_8.desc,
|
|
26
|
+
relationAuth: Storage_9.desc,
|
|
27
|
+
user: Storage_10.desc,
|
|
28
|
+
userEntityClaim: Storage_11.desc,
|
|
29
|
+
userEntityGrant: Storage_12.desc,
|
|
30
|
+
userRelation: Storage_13.desc
|
|
27
31
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ActionDef } from "../../types/Action";
|
|
2
2
|
import { GenericAction, RelationAction } from "../../actions/action";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type UserAction = 'mergeTo' | string;
|
|
4
|
+
export type UserState = 'normal' | 'merged' | string;
|
|
5
|
+
export type ParticularAction = UserAction;
|
|
6
6
|
export declare const actions: string[];
|
|
7
|
-
export
|
|
7
|
+
export type Action = GenericAction | ParticularAction | RelationAction | string;
|
|
8
8
|
export declare const ActionDefDict: {
|
|
9
9
|
userState: ActionDef<string, string>;
|
|
10
10
|
};
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ActionDefDict = exports.actions = void 0;
|
|
4
4
|
exports.actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "grant", "revoke", "mergeTo"];
|
|
5
|
-
|
|
5
|
+
const UserActionDef = {
|
|
6
6
|
stm: {
|
|
7
|
-
mergeTo: ['normal', 'merged']
|
|
8
|
-
}
|
|
7
|
+
mergeTo: ['normal', 'merged'],
|
|
8
|
+
},
|
|
9
9
|
};
|
|
10
10
|
exports.ActionDefDict = {
|
|
11
11
|
userState: UserActionDef
|