oak-domain 4.1.0 → 4.2.0
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/base-app-domain/ActionAuth/Schema.d.ts +185 -185
- package/lib/base-app-domain/ActionDefDict.d.ts +2 -2
- package/lib/base-app-domain/I18n/Schema.d.ts +128 -128
- package/lib/base-app-domain/Modi/Schema.d.ts +135 -135
- package/lib/base-app-domain/ModiEntity/Schema.d.ts +383 -383
- package/lib/base-app-domain/Oper/Schema.d.ts +158 -152
- package/lib/base-app-domain/Oper/Storage.js +19 -1
- package/lib/base-app-domain/OperEntity/Schema.d.ts +372 -372
- package/lib/base-app-domain/Path/Schema.d.ts +148 -148
- package/lib/base-app-domain/Relation/Schema.d.ts +187 -187
- package/lib/base-app-domain/RelationAuth/Schema.d.ts +213 -213
- package/lib/base-app-domain/User/Action.d.ts +1 -0
- package/lib/base-app-domain/User/Action.js +3 -3
- package/lib/base-app-domain/User/Schema.d.ts +209 -209
- package/lib/base-app-domain/UserEntityClaim/Schema.d.ts +263 -263
- package/lib/base-app-domain/UserEntityGrant/Action.d.ts +5 -5
- package/lib/base-app-domain/UserEntityGrant/Action.js +5 -5
- package/lib/base-app-domain/UserEntityGrant/Schema.d.ts +130 -130
- package/lib/base-app-domain/UserRelation/Schema.d.ts +207 -207
- package/lib/compiler/localeBuilder.d.ts +27 -27
- package/lib/compiler/localeBuilder.js +215 -215
- package/lib/compiler/routerBuilder.js +263 -263
- package/lib/compiler/schemalBuilder.js +4167 -4160
- package/lib/entities/Oper.d.ts +2 -1
- package/lib/entities/Oper.js +16 -1
- package/lib/entities/User.d.ts +10 -0
- package/lib/entities/User.js +3 -2
- package/lib/index.d.ts +0 -22
- package/lib/index.js +1 -35
- package/lib/store/AsyncRowStore.d.ts +66 -65
- package/lib/store/AsyncRowStore.js +180 -180
- package/lib/store/CascadeStore.js +7 -31
- package/lib/store/RelationAuth.d.ts +103 -103
- package/lib/store/RelationAuth.js +1209 -1343
- package/lib/store/SyncRowStore.d.ts +29 -29
- package/lib/store/TriggerExecutor.js +468 -468
- package/lib/store/actionDef.js +278 -278
- package/lib/store/checker.js +487 -487
- package/lib/triggers/index.d.ts +2 -2
- package/lib/triggers/index.js +21 -1
- package/lib/types/Aspect.d.ts +13 -13
- package/lib/types/Configuration.d.ts +42 -0
- package/lib/types/Configuration.js +3 -0
- package/lib/types/Connector.d.ts +38 -38
- package/lib/types/Context.d.ts +7 -7
- package/lib/types/Entity.d.ts +4 -4
- package/lib/types/Environment.d.ts +93 -93
- package/lib/types/Exception.d.ts +155 -155
- package/lib/types/Exception.js +436 -436
- package/lib/types/Sync.d.ts +48 -0
- package/lib/types/Sync.js +8 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/lib/utils/SimpleConnector.d.ts +64 -64
- package/lib/utils/SimpleConnector.js +206 -206
- package/lib/utils/assert.d.ts +5 -5
- package/lib/utils/projection.d.ts +1 -1
- package/lib/utils/relationPath.d.ts +31 -0
- package/lib/utils/relationPath.js +202 -0
- package/package.json +51 -51
- package/src/entities/ActionAuth.ts +41 -41
- package/src/entities/I18n.ts +45 -45
- package/src/entities/Modi.ts +69 -69
- package/src/entities/ModiEntity.ts +26 -26
- package/src/entities/Oper.ts +48 -32
- package/src/entities/OperEntity.ts +27 -27
- package/src/entities/Path.ts +43 -43
- package/src/entities/Relation.ts +43 -43
- package/src/entities/RelationAuth.ts +44 -44
- package/src/entities/User.ts +48 -48
- package/src/entities/UserEntityClaim.ts +29 -29
- package/src/entities/UserEntityGrant.ts +24 -24
- package/src/entities/UserRelation.ts +50 -50
|
@@ -1,383 +1,383 @@
|
|
|
1
|
-
import { ForeignKey } from "../../types/DataType";
|
|
2
|
-
import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey } from "../../types/Demand";
|
|
3
|
-
import { OneOf } from "../../types/Polyfill";
|
|
4
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, EntityShape } from "../../types/Entity";
|
|
5
|
-
import { AppendOnlyAction } from "../../actions/action";
|
|
6
|
-
import { String } from "../../types/DataType";
|
|
7
|
-
import * as Modi from "../Modi/Schema";
|
|
8
|
-
import * as ActionAuth from "../ActionAuth/Schema";
|
|
9
|
-
import * as I18n from "../I18n/Schema";
|
|
10
|
-
import * as Path from "../Path/Schema";
|
|
11
|
-
import * as Relation from "../Relation/Schema";
|
|
12
|
-
import * as RelationAuth from "../RelationAuth/Schema";
|
|
13
|
-
import * as User from "../User/Schema";
|
|
14
|
-
import * as UserEntityClaim from "../UserEntityClaim/Schema";
|
|
15
|
-
import * as UserEntityGrant from "../UserEntityGrant/Schema";
|
|
16
|
-
import * as UserRelation from "../UserRelation/Schema";
|
|
17
|
-
export type OpSchema = EntityShape & {
|
|
18
|
-
modiId: ForeignKey<"modi">;
|
|
19
|
-
entity: "actionAuth" | "i18n" | "path" | "relation" | "relationAuth" | "user" | "userEntityClaim" | "userEntityGrant" | "userRelation" | string;
|
|
20
|
-
entityId: String<64>;
|
|
21
|
-
};
|
|
22
|
-
export type OpAttr = keyof OpSchema;
|
|
23
|
-
export type Schema = EntityShape & {
|
|
24
|
-
modiId: ForeignKey<"modi">;
|
|
25
|
-
entity: "actionAuth" | "i18n" | "path" | "relation" | "relationAuth" | "user" | "userEntityClaim" | "userEntityGrant" | "userRelation" | string;
|
|
26
|
-
entityId: String<64>;
|
|
27
|
-
modi: Modi.Schema;
|
|
28
|
-
actionAuth?: ActionAuth.Schema;
|
|
29
|
-
i18n?: I18n.Schema;
|
|
30
|
-
path?: Path.Schema;
|
|
31
|
-
relation?: Relation.Schema;
|
|
32
|
-
relationAuth?: RelationAuth.Schema;
|
|
33
|
-
user?: User.Schema;
|
|
34
|
-
userEntityClaim?: UserEntityClaim.Schema;
|
|
35
|
-
userEntityGrant?: UserEntityGrant.Schema;
|
|
36
|
-
userRelation?: UserRelation.Schema;
|
|
37
|
-
} & {
|
|
38
|
-
[A in ExpressionKey]?: any;
|
|
39
|
-
};
|
|
40
|
-
type AttrFilter = {
|
|
41
|
-
id: Q_StringValue;
|
|
42
|
-
$$createAt$$: Q_DateValue;
|
|
43
|
-
$$seq$$: Q_NumberValue;
|
|
44
|
-
$$updateAt$$: Q_DateValue;
|
|
45
|
-
modiId: Q_StringValue;
|
|
46
|
-
modi: Modi.Filter;
|
|
47
|
-
entity: Q_EnumValue<"actionAuth" | "i18n" | "path" | "relation" | "relationAuth" | "user" | "userEntityClaim" | "userEntityGrant" | "userRelation" | string>;
|
|
48
|
-
entityId: Q_StringValue;
|
|
49
|
-
actionAuth: ActionAuth.Filter;
|
|
50
|
-
i18n: I18n.Filter;
|
|
51
|
-
path: Path.Filter;
|
|
52
|
-
relation: Relation.Filter;
|
|
53
|
-
relationAuth: RelationAuth.Filter;
|
|
54
|
-
user: User.Filter;
|
|
55
|
-
userEntityClaim: UserEntityClaim.Filter;
|
|
56
|
-
userEntityGrant: UserEntityGrant.Filter;
|
|
57
|
-
userRelation: UserRelation.Filter;
|
|
58
|
-
};
|
|
59
|
-
export type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
|
60
|
-
export type Projection = {
|
|
61
|
-
"#id"?: NodeId;
|
|
62
|
-
[k: string]: any;
|
|
63
|
-
id?: number;
|
|
64
|
-
$$createAt$$?: number;
|
|
65
|
-
$$updateAt$$?: number;
|
|
66
|
-
$$seq$$?: number;
|
|
67
|
-
modiId?: number;
|
|
68
|
-
modi?: Modi.Projection;
|
|
69
|
-
entity?: number;
|
|
70
|
-
entityId?: number;
|
|
71
|
-
actionAuth?: ActionAuth.Projection;
|
|
72
|
-
i18n?: I18n.Projection;
|
|
73
|
-
path?: Path.Projection;
|
|
74
|
-
relation?: Relation.Projection;
|
|
75
|
-
relationAuth?: RelationAuth.Projection;
|
|
76
|
-
user?: User.Projection;
|
|
77
|
-
userEntityClaim?: UserEntityClaim.Projection;
|
|
78
|
-
userEntityGrant?: UserEntityGrant.Projection;
|
|
79
|
-
userRelation?: UserRelation.Projection;
|
|
80
|
-
} & Partial<ExprOp<OpAttr | string>>;
|
|
81
|
-
type ModiEntityIdProjection = OneOf<{
|
|
82
|
-
id: number;
|
|
83
|
-
}>;
|
|
84
|
-
type ModiIdProjection = OneOf<{
|
|
85
|
-
modiId: number;
|
|
86
|
-
}>;
|
|
87
|
-
type ActionAuthIdProjection = OneOf<{
|
|
88
|
-
entityId: number;
|
|
89
|
-
}>;
|
|
90
|
-
type I18nIdProjection = OneOf<{
|
|
91
|
-
entityId: number;
|
|
92
|
-
}>;
|
|
93
|
-
type PathIdProjection = OneOf<{
|
|
94
|
-
entityId: number;
|
|
95
|
-
}>;
|
|
96
|
-
type RelationIdProjection = OneOf<{
|
|
97
|
-
entityId: number;
|
|
98
|
-
}>;
|
|
99
|
-
type RelationAuthIdProjection = OneOf<{
|
|
100
|
-
entityId: number;
|
|
101
|
-
}>;
|
|
102
|
-
type UserIdProjection = OneOf<{
|
|
103
|
-
entityId: number;
|
|
104
|
-
}>;
|
|
105
|
-
type UserEntityClaimIdProjection = OneOf<{
|
|
106
|
-
entityId: number;
|
|
107
|
-
}>;
|
|
108
|
-
type UserEntityGrantIdProjection = OneOf<{
|
|
109
|
-
entityId: number;
|
|
110
|
-
}>;
|
|
111
|
-
type UserRelationIdProjection = OneOf<{
|
|
112
|
-
entityId: number;
|
|
113
|
-
}>;
|
|
114
|
-
export type SortAttr = {
|
|
115
|
-
id: number;
|
|
116
|
-
} | {
|
|
117
|
-
$$createAt$$: number;
|
|
118
|
-
} | {
|
|
119
|
-
$$seq$$: number;
|
|
120
|
-
} | {
|
|
121
|
-
$$updateAt$$: number;
|
|
122
|
-
} | {
|
|
123
|
-
modiId: number;
|
|
124
|
-
} | {
|
|
125
|
-
modi: Modi.SortAttr;
|
|
126
|
-
} | {
|
|
127
|
-
entity: number;
|
|
128
|
-
} | {
|
|
129
|
-
entityId: number;
|
|
130
|
-
} | {
|
|
131
|
-
actionAuth: ActionAuth.SortAttr;
|
|
132
|
-
} | {
|
|
133
|
-
i18n: I18n.SortAttr;
|
|
134
|
-
} | {
|
|
135
|
-
path: Path.SortAttr;
|
|
136
|
-
} | {
|
|
137
|
-
relation: Relation.SortAttr;
|
|
138
|
-
} | {
|
|
139
|
-
relationAuth: RelationAuth.SortAttr;
|
|
140
|
-
} | {
|
|
141
|
-
user: User.SortAttr;
|
|
142
|
-
} | {
|
|
143
|
-
userEntityClaim: UserEntityClaim.SortAttr;
|
|
144
|
-
} | {
|
|
145
|
-
userEntityGrant: UserEntityGrant.SortAttr;
|
|
146
|
-
} | {
|
|
147
|
-
userRelation: UserRelation.SortAttr;
|
|
148
|
-
} | {
|
|
149
|
-
[k: string]: any;
|
|
150
|
-
} | OneOf<ExprOp<OpAttr | string>>;
|
|
151
|
-
export type SortNode = {
|
|
152
|
-
$attr: SortAttr;
|
|
153
|
-
$direction?: "asc" | "desc";
|
|
154
|
-
};
|
|
155
|
-
export type Sorter = SortNode[];
|
|
156
|
-
export type SelectOperation<P extends Object = Projection> = OakSelection<"select", P, Filter, Sorter>;
|
|
157
|
-
export type Selection<P extends Object = Projection> = SelectOperation<P>;
|
|
158
|
-
export type Aggregation = DeduceAggregation<Projection, Filter, Sorter>;
|
|
159
|
-
export type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "entityId" | "modiId">> & (({
|
|
160
|
-
modiId?: never;
|
|
161
|
-
modi: Modi.CreateSingleOperation;
|
|
162
|
-
} | {
|
|
163
|
-
modiId: ForeignKey<"modi">;
|
|
164
|
-
modi?: Modi.UpdateOperation;
|
|
165
|
-
} | {
|
|
166
|
-
modi?: never;
|
|
167
|
-
modiId: ForeignKey<"modi">;
|
|
168
|
-
})) & ({
|
|
169
|
-
entity?: never;
|
|
170
|
-
entityId?: never;
|
|
171
|
-
actionAuth: ActionAuth.CreateSingleOperation;
|
|
172
|
-
} | {
|
|
173
|
-
entity: "actionAuth";
|
|
174
|
-
entityId: ForeignKey<"ActionAuth">;
|
|
175
|
-
actionAuth?: ActionAuth.UpdateOperation;
|
|
176
|
-
} | {
|
|
177
|
-
entity: "actionAuth";
|
|
178
|
-
entityId: ForeignKey<"ActionAuth">;
|
|
179
|
-
actionAuth?: never;
|
|
180
|
-
} | {
|
|
181
|
-
entity: "i18n";
|
|
182
|
-
entityId: ForeignKey<"I18n">;
|
|
183
|
-
i18n?: never;
|
|
184
|
-
} | {
|
|
185
|
-
entity?: never;
|
|
186
|
-
entityId?: never;
|
|
187
|
-
path: Path.CreateSingleOperation;
|
|
188
|
-
} | {
|
|
189
|
-
entity: "path";
|
|
190
|
-
entityId: ForeignKey<"Path">;
|
|
191
|
-
path?: Path.UpdateOperation;
|
|
192
|
-
} | {
|
|
193
|
-
entity: "path";
|
|
194
|
-
entityId: ForeignKey<"Path">;
|
|
195
|
-
path?: never;
|
|
196
|
-
} | {
|
|
197
|
-
entity?: never;
|
|
198
|
-
entityId?: never;
|
|
199
|
-
relation: Relation.CreateSingleOperation;
|
|
200
|
-
} | {
|
|
201
|
-
entity: "relation";
|
|
202
|
-
entityId: ForeignKey<"Relation">;
|
|
203
|
-
relation?: Relation.UpdateOperation;
|
|
204
|
-
} | {
|
|
205
|
-
entity: "relation";
|
|
206
|
-
entityId: ForeignKey<"Relation">;
|
|
207
|
-
relation?: never;
|
|
208
|
-
} | {
|
|
209
|
-
entity?: never;
|
|
210
|
-
entityId?: never;
|
|
211
|
-
relationAuth: RelationAuth.CreateSingleOperation;
|
|
212
|
-
} | {
|
|
213
|
-
entity: "relationAuth";
|
|
214
|
-
entityId: ForeignKey<"RelationAuth">;
|
|
215
|
-
relationAuth?: RelationAuth.UpdateOperation;
|
|
216
|
-
} | {
|
|
217
|
-
entity: "relationAuth";
|
|
218
|
-
entityId: ForeignKey<"RelationAuth">;
|
|
219
|
-
relationAuth?: never;
|
|
220
|
-
} | {
|
|
221
|
-
entity?: never;
|
|
222
|
-
entityId?: never;
|
|
223
|
-
user: User.CreateSingleOperation;
|
|
224
|
-
} | {
|
|
225
|
-
entity: "user";
|
|
226
|
-
entityId: ForeignKey<"User">;
|
|
227
|
-
user?: User.UpdateOperation;
|
|
228
|
-
} | {
|
|
229
|
-
entity: "user";
|
|
230
|
-
entityId: ForeignKey<"User">;
|
|
231
|
-
user?: never;
|
|
232
|
-
} | {
|
|
233
|
-
entity?: never;
|
|
234
|
-
entityId?: never;
|
|
235
|
-
userEntityClaim: UserEntityClaim.CreateSingleOperation;
|
|
236
|
-
} | {
|
|
237
|
-
entity: "userEntityClaim";
|
|
238
|
-
entityId: ForeignKey<"UserEntityClaim">;
|
|
239
|
-
userEntityClaim?: UserEntityClaim.UpdateOperation;
|
|
240
|
-
} | {
|
|
241
|
-
entity: "userEntityClaim";
|
|
242
|
-
entityId: ForeignKey<"UserEntityClaim">;
|
|
243
|
-
userEntityClaim?: never;
|
|
244
|
-
} | {
|
|
245
|
-
entity?: never;
|
|
246
|
-
entityId?: never;
|
|
247
|
-
userEntityGrant: UserEntityGrant.CreateSingleOperation;
|
|
248
|
-
} | {
|
|
249
|
-
entity: "userEntityGrant";
|
|
250
|
-
entityId: ForeignKey<"UserEntityGrant">;
|
|
251
|
-
userEntityGrant?: UserEntityGrant.UpdateOperation;
|
|
252
|
-
} | {
|
|
253
|
-
entity: "userEntityGrant";
|
|
254
|
-
entityId: ForeignKey<"UserEntityGrant">;
|
|
255
|
-
userEntityGrant?: never;
|
|
256
|
-
} | {
|
|
257
|
-
entity?: never;
|
|
258
|
-
entityId?: never;
|
|
259
|
-
userRelation: UserRelation.CreateSingleOperation;
|
|
260
|
-
} | {
|
|
261
|
-
entity: "userRelation";
|
|
262
|
-
entityId: ForeignKey<"UserRelation">;
|
|
263
|
-
userRelation?: UserRelation.UpdateOperation;
|
|
264
|
-
} | {
|
|
265
|
-
entity: "userRelation";
|
|
266
|
-
entityId: ForeignKey<"UserRelation">;
|
|
267
|
-
userRelation?: never;
|
|
268
|
-
} | {
|
|
269
|
-
entity?: string;
|
|
270
|
-
entityId?: string;
|
|
271
|
-
[K: string]: any;
|
|
272
|
-
});
|
|
273
|
-
export type CreateSingleOperation = OakOperation<"create", CreateOperationData>;
|
|
274
|
-
export type CreateMultipleOperation = OakOperation<"create", Array<CreateOperationData>>;
|
|
275
|
-
export type CreateOperation = CreateSingleOperation | CreateMultipleOperation;
|
|
276
|
-
export type UpdateOperationData = FormUpdateData<Omit<OpSchema, "entity" | "entityId" | "modiId">> & (({
|
|
277
|
-
modi?: Modi.CreateSingleOperation;
|
|
278
|
-
modiId?: never;
|
|
279
|
-
} | {
|
|
280
|
-
modi?: Modi.UpdateOperation;
|
|
281
|
-
modiId?: never;
|
|
282
|
-
} | {
|
|
283
|
-
modi?: Modi.RemoveOperation;
|
|
284
|
-
modiId?: never;
|
|
285
|
-
} | {
|
|
286
|
-
modi?: never;
|
|
287
|
-
modiId?: ForeignKey<"modi">;
|
|
288
|
-
})) & ({
|
|
289
|
-
actionAuth?: ActionAuth.CreateSingleOperation | ActionAuth.UpdateOperation | ActionAuth.RemoveOperation;
|
|
290
|
-
entityId?: never;
|
|
291
|
-
entity?: never;
|
|
292
|
-
} | {
|
|
293
|
-
path?: Path.CreateSingleOperation | Path.UpdateOperation | Path.RemoveOperation;
|
|
294
|
-
entityId?: never;
|
|
295
|
-
entity?: never;
|
|
296
|
-
} | {
|
|
297
|
-
relation?: Relation.CreateSingleOperation | Relation.UpdateOperation | Relation.RemoveOperation;
|
|
298
|
-
entityId?: never;
|
|
299
|
-
entity?: never;
|
|
300
|
-
} | {
|
|
301
|
-
relationAuth?: RelationAuth.CreateSingleOperation | RelationAuth.UpdateOperation | RelationAuth.RemoveOperation;
|
|
302
|
-
entityId?: never;
|
|
303
|
-
entity?: never;
|
|
304
|
-
} | {
|
|
305
|
-
user?: User.CreateSingleOperation | User.UpdateOperation | User.RemoveOperation;
|
|
306
|
-
entityId?: never;
|
|
307
|
-
entity?: never;
|
|
308
|
-
} | {
|
|
309
|
-
userEntityClaim?: UserEntityClaim.CreateSingleOperation | UserEntityClaim.UpdateOperation | UserEntityClaim.RemoveOperation;
|
|
310
|
-
entityId?: never;
|
|
311
|
-
entity?: never;
|
|
312
|
-
} | {
|
|
313
|
-
userEntityGrant?: UserEntityGrant.CreateSingleOperation | UserEntityGrant.UpdateOperation | UserEntityGrant.RemoveOperation;
|
|
314
|
-
entityId?: never;
|
|
315
|
-
entity?: never;
|
|
316
|
-
} | {
|
|
317
|
-
userRelation?: UserRelation.CreateSingleOperation | UserRelation.UpdateOperation | UserRelation.RemoveOperation;
|
|
318
|
-
entityId?: never;
|
|
319
|
-
entity?: never;
|
|
320
|
-
} | {
|
|
321
|
-
entity?: ("actionAuth" | "i18n" | "path" | "relation" | "relationAuth" | "user" | "userEntityClaim" | "userEntityGrant" | "userRelation" | string) | null;
|
|
322
|
-
entityId?: ForeignKey<"ActionAuth" | "I18n" | "Path" | "Relation" | "RelationAuth" | "User" | "UserEntityClaim" | "UserEntityGrant" | "UserRelation"> | null;
|
|
323
|
-
actionAuth?: never;
|
|
324
|
-
i18n?: never;
|
|
325
|
-
path?: never;
|
|
326
|
-
relation?: never;
|
|
327
|
-
relationAuth?: never;
|
|
328
|
-
user?: never;
|
|
329
|
-
userEntityClaim?: never;
|
|
330
|
-
userEntityGrant?: never;
|
|
331
|
-
userRelation?: never;
|
|
332
|
-
}) & {
|
|
333
|
-
[k: string]: any;
|
|
334
|
-
};
|
|
335
|
-
export type UpdateOperation = OakOperation<"update" | string, UpdateOperationData, Filter, Sorter>;
|
|
336
|
-
export type RemoveOperationData = {} & (({
|
|
337
|
-
modi?: Modi.UpdateOperation | Modi.RemoveOperation;
|
|
338
|
-
})) & ({
|
|
339
|
-
actionAuth?: ActionAuth.UpdateOperation | ActionAuth.RemoveOperation;
|
|
340
|
-
} | {
|
|
341
|
-
path?: Path.UpdateOperation | Path.RemoveOperation;
|
|
342
|
-
} | {
|
|
343
|
-
relation?: Relation.UpdateOperation | Relation.RemoveOperation;
|
|
344
|
-
} | {
|
|
345
|
-
relationAuth?: RelationAuth.UpdateOperation | RelationAuth.RemoveOperation;
|
|
346
|
-
} | {
|
|
347
|
-
user?: User.UpdateOperation | User.RemoveOperation;
|
|
348
|
-
} | {
|
|
349
|
-
userEntityClaim?: UserEntityClaim.UpdateOperation | UserEntityClaim.RemoveOperation;
|
|
350
|
-
} | {
|
|
351
|
-
userEntityGrant?: UserEntityGrant.UpdateOperation | UserEntityGrant.RemoveOperation;
|
|
352
|
-
} | {
|
|
353
|
-
userRelation?: UserRelation.UpdateOperation | UserRelation.RemoveOperation;
|
|
354
|
-
} | {
|
|
355
|
-
[k: string]: any;
|
|
356
|
-
});
|
|
357
|
-
export type RemoveOperation = OakOperation<"remove", RemoveOperationData, Filter, Sorter>;
|
|
358
|
-
export type Operation = CreateOperation | UpdateOperation | RemoveOperation;
|
|
359
|
-
export type ModiIdSubQuery = Selection<ModiIdProjection>;
|
|
360
|
-
export type ActionAuthIdSubQuery = Selection<ActionAuthIdProjection>;
|
|
361
|
-
export type I18nIdSubQuery = Selection<I18nIdProjection>;
|
|
362
|
-
export type PathIdSubQuery = Selection<PathIdProjection>;
|
|
363
|
-
export type RelationIdSubQuery = Selection<RelationIdProjection>;
|
|
364
|
-
export type RelationAuthIdSubQuery = Selection<RelationAuthIdProjection>;
|
|
365
|
-
export type UserIdSubQuery = Selection<UserIdProjection>;
|
|
366
|
-
export type UserEntityClaimIdSubQuery = Selection<UserEntityClaimIdProjection>;
|
|
367
|
-
export type UserEntityGrantIdSubQuery = Selection<UserEntityGrantIdProjection>;
|
|
368
|
-
export type UserRelationIdSubQuery = Selection<UserRelationIdProjection>;
|
|
369
|
-
export type ModiEntityIdSubQuery = Selection<ModiEntityIdProjection>;
|
|
370
|
-
export type EntityDef = {
|
|
371
|
-
Schema: Schema;
|
|
372
|
-
OpSchema: OpSchema;
|
|
373
|
-
Action: OakMakeAction<AppendOnlyAction> | string;
|
|
374
|
-
Selection: Selection;
|
|
375
|
-
Aggregation: Aggregation;
|
|
376
|
-
Operation: Operation;
|
|
377
|
-
Create: CreateOperation;
|
|
378
|
-
Update: UpdateOperation;
|
|
379
|
-
Remove: RemoveOperation;
|
|
380
|
-
CreateSingle: CreateSingleOperation;
|
|
381
|
-
CreateMulti: CreateMultipleOperation;
|
|
382
|
-
};
|
|
383
|
-
export {};
|
|
1
|
+
import { ForeignKey } from "../../types/DataType";
|
|
2
|
+
import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey } from "../../types/Demand";
|
|
3
|
+
import { OneOf } from "../../types/Polyfill";
|
|
4
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, EntityShape } from "../../types/Entity";
|
|
5
|
+
import { AppendOnlyAction } from "../../actions/action";
|
|
6
|
+
import { String } from "../../types/DataType";
|
|
7
|
+
import * as Modi from "../Modi/Schema";
|
|
8
|
+
import * as ActionAuth from "../ActionAuth/Schema";
|
|
9
|
+
import * as I18n from "../I18n/Schema";
|
|
10
|
+
import * as Path from "../Path/Schema";
|
|
11
|
+
import * as Relation from "../Relation/Schema";
|
|
12
|
+
import * as RelationAuth from "../RelationAuth/Schema";
|
|
13
|
+
import * as User from "../User/Schema";
|
|
14
|
+
import * as UserEntityClaim from "../UserEntityClaim/Schema";
|
|
15
|
+
import * as UserEntityGrant from "../UserEntityGrant/Schema";
|
|
16
|
+
import * as UserRelation from "../UserRelation/Schema";
|
|
17
|
+
export type OpSchema = EntityShape & {
|
|
18
|
+
modiId: ForeignKey<"modi">;
|
|
19
|
+
entity: "actionAuth" | "i18n" | "path" | "relation" | "relationAuth" | "user" | "userEntityClaim" | "userEntityGrant" | "userRelation" | string;
|
|
20
|
+
entityId: String<64>;
|
|
21
|
+
};
|
|
22
|
+
export type OpAttr = keyof OpSchema;
|
|
23
|
+
export type Schema = EntityShape & {
|
|
24
|
+
modiId: ForeignKey<"modi">;
|
|
25
|
+
entity: "actionAuth" | "i18n" | "path" | "relation" | "relationAuth" | "user" | "userEntityClaim" | "userEntityGrant" | "userRelation" | string;
|
|
26
|
+
entityId: String<64>;
|
|
27
|
+
modi: Modi.Schema;
|
|
28
|
+
actionAuth?: ActionAuth.Schema;
|
|
29
|
+
i18n?: I18n.Schema;
|
|
30
|
+
path?: Path.Schema;
|
|
31
|
+
relation?: Relation.Schema;
|
|
32
|
+
relationAuth?: RelationAuth.Schema;
|
|
33
|
+
user?: User.Schema;
|
|
34
|
+
userEntityClaim?: UserEntityClaim.Schema;
|
|
35
|
+
userEntityGrant?: UserEntityGrant.Schema;
|
|
36
|
+
userRelation?: UserRelation.Schema;
|
|
37
|
+
} & {
|
|
38
|
+
[A in ExpressionKey]?: any;
|
|
39
|
+
};
|
|
40
|
+
type AttrFilter = {
|
|
41
|
+
id: Q_StringValue;
|
|
42
|
+
$$createAt$$: Q_DateValue;
|
|
43
|
+
$$seq$$: Q_NumberValue;
|
|
44
|
+
$$updateAt$$: Q_DateValue;
|
|
45
|
+
modiId: Q_StringValue;
|
|
46
|
+
modi: Modi.Filter;
|
|
47
|
+
entity: Q_EnumValue<"actionAuth" | "i18n" | "path" | "relation" | "relationAuth" | "user" | "userEntityClaim" | "userEntityGrant" | "userRelation" | string>;
|
|
48
|
+
entityId: Q_StringValue;
|
|
49
|
+
actionAuth: ActionAuth.Filter;
|
|
50
|
+
i18n: I18n.Filter;
|
|
51
|
+
path: Path.Filter;
|
|
52
|
+
relation: Relation.Filter;
|
|
53
|
+
relationAuth: RelationAuth.Filter;
|
|
54
|
+
user: User.Filter;
|
|
55
|
+
userEntityClaim: UserEntityClaim.Filter;
|
|
56
|
+
userEntityGrant: UserEntityGrant.Filter;
|
|
57
|
+
userRelation: UserRelation.Filter;
|
|
58
|
+
};
|
|
59
|
+
export type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
|
60
|
+
export type Projection = {
|
|
61
|
+
"#id"?: NodeId;
|
|
62
|
+
[k: string]: any;
|
|
63
|
+
id?: number;
|
|
64
|
+
$$createAt$$?: number;
|
|
65
|
+
$$updateAt$$?: number;
|
|
66
|
+
$$seq$$?: number;
|
|
67
|
+
modiId?: number;
|
|
68
|
+
modi?: Modi.Projection;
|
|
69
|
+
entity?: number;
|
|
70
|
+
entityId?: number;
|
|
71
|
+
actionAuth?: ActionAuth.Projection;
|
|
72
|
+
i18n?: I18n.Projection;
|
|
73
|
+
path?: Path.Projection;
|
|
74
|
+
relation?: Relation.Projection;
|
|
75
|
+
relationAuth?: RelationAuth.Projection;
|
|
76
|
+
user?: User.Projection;
|
|
77
|
+
userEntityClaim?: UserEntityClaim.Projection;
|
|
78
|
+
userEntityGrant?: UserEntityGrant.Projection;
|
|
79
|
+
userRelation?: UserRelation.Projection;
|
|
80
|
+
} & Partial<ExprOp<OpAttr | string>>;
|
|
81
|
+
type ModiEntityIdProjection = OneOf<{
|
|
82
|
+
id: number;
|
|
83
|
+
}>;
|
|
84
|
+
type ModiIdProjection = OneOf<{
|
|
85
|
+
modiId: number;
|
|
86
|
+
}>;
|
|
87
|
+
type ActionAuthIdProjection = OneOf<{
|
|
88
|
+
entityId: number;
|
|
89
|
+
}>;
|
|
90
|
+
type I18nIdProjection = OneOf<{
|
|
91
|
+
entityId: number;
|
|
92
|
+
}>;
|
|
93
|
+
type PathIdProjection = OneOf<{
|
|
94
|
+
entityId: number;
|
|
95
|
+
}>;
|
|
96
|
+
type RelationIdProjection = OneOf<{
|
|
97
|
+
entityId: number;
|
|
98
|
+
}>;
|
|
99
|
+
type RelationAuthIdProjection = OneOf<{
|
|
100
|
+
entityId: number;
|
|
101
|
+
}>;
|
|
102
|
+
type UserIdProjection = OneOf<{
|
|
103
|
+
entityId: number;
|
|
104
|
+
}>;
|
|
105
|
+
type UserEntityClaimIdProjection = OneOf<{
|
|
106
|
+
entityId: number;
|
|
107
|
+
}>;
|
|
108
|
+
type UserEntityGrantIdProjection = OneOf<{
|
|
109
|
+
entityId: number;
|
|
110
|
+
}>;
|
|
111
|
+
type UserRelationIdProjection = OneOf<{
|
|
112
|
+
entityId: number;
|
|
113
|
+
}>;
|
|
114
|
+
export type SortAttr = {
|
|
115
|
+
id: number;
|
|
116
|
+
} | {
|
|
117
|
+
$$createAt$$: number;
|
|
118
|
+
} | {
|
|
119
|
+
$$seq$$: number;
|
|
120
|
+
} | {
|
|
121
|
+
$$updateAt$$: number;
|
|
122
|
+
} | {
|
|
123
|
+
modiId: number;
|
|
124
|
+
} | {
|
|
125
|
+
modi: Modi.SortAttr;
|
|
126
|
+
} | {
|
|
127
|
+
entity: number;
|
|
128
|
+
} | {
|
|
129
|
+
entityId: number;
|
|
130
|
+
} | {
|
|
131
|
+
actionAuth: ActionAuth.SortAttr;
|
|
132
|
+
} | {
|
|
133
|
+
i18n: I18n.SortAttr;
|
|
134
|
+
} | {
|
|
135
|
+
path: Path.SortAttr;
|
|
136
|
+
} | {
|
|
137
|
+
relation: Relation.SortAttr;
|
|
138
|
+
} | {
|
|
139
|
+
relationAuth: RelationAuth.SortAttr;
|
|
140
|
+
} | {
|
|
141
|
+
user: User.SortAttr;
|
|
142
|
+
} | {
|
|
143
|
+
userEntityClaim: UserEntityClaim.SortAttr;
|
|
144
|
+
} | {
|
|
145
|
+
userEntityGrant: UserEntityGrant.SortAttr;
|
|
146
|
+
} | {
|
|
147
|
+
userRelation: UserRelation.SortAttr;
|
|
148
|
+
} | {
|
|
149
|
+
[k: string]: any;
|
|
150
|
+
} | OneOf<ExprOp<OpAttr | string>>;
|
|
151
|
+
export type SortNode = {
|
|
152
|
+
$attr: SortAttr;
|
|
153
|
+
$direction?: "asc" | "desc";
|
|
154
|
+
};
|
|
155
|
+
export type Sorter = SortNode[];
|
|
156
|
+
export type SelectOperation<P extends Object = Projection> = OakSelection<"select", P, Filter, Sorter>;
|
|
157
|
+
export type Selection<P extends Object = Projection> = SelectOperation<P>;
|
|
158
|
+
export type Aggregation = DeduceAggregation<Projection, Filter, Sorter>;
|
|
159
|
+
export type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "entityId" | "modiId">> & (({
|
|
160
|
+
modiId?: never;
|
|
161
|
+
modi: Modi.CreateSingleOperation;
|
|
162
|
+
} | {
|
|
163
|
+
modiId: ForeignKey<"modi">;
|
|
164
|
+
modi?: Modi.UpdateOperation;
|
|
165
|
+
} | {
|
|
166
|
+
modi?: never;
|
|
167
|
+
modiId: ForeignKey<"modi">;
|
|
168
|
+
})) & ({
|
|
169
|
+
entity?: never;
|
|
170
|
+
entityId?: never;
|
|
171
|
+
actionAuth: ActionAuth.CreateSingleOperation;
|
|
172
|
+
} | {
|
|
173
|
+
entity: "actionAuth";
|
|
174
|
+
entityId: ForeignKey<"ActionAuth">;
|
|
175
|
+
actionAuth?: ActionAuth.UpdateOperation;
|
|
176
|
+
} | {
|
|
177
|
+
entity: "actionAuth";
|
|
178
|
+
entityId: ForeignKey<"ActionAuth">;
|
|
179
|
+
actionAuth?: never;
|
|
180
|
+
} | {
|
|
181
|
+
entity: "i18n";
|
|
182
|
+
entityId: ForeignKey<"I18n">;
|
|
183
|
+
i18n?: never;
|
|
184
|
+
} | {
|
|
185
|
+
entity?: never;
|
|
186
|
+
entityId?: never;
|
|
187
|
+
path: Path.CreateSingleOperation;
|
|
188
|
+
} | {
|
|
189
|
+
entity: "path";
|
|
190
|
+
entityId: ForeignKey<"Path">;
|
|
191
|
+
path?: Path.UpdateOperation;
|
|
192
|
+
} | {
|
|
193
|
+
entity: "path";
|
|
194
|
+
entityId: ForeignKey<"Path">;
|
|
195
|
+
path?: never;
|
|
196
|
+
} | {
|
|
197
|
+
entity?: never;
|
|
198
|
+
entityId?: never;
|
|
199
|
+
relation: Relation.CreateSingleOperation;
|
|
200
|
+
} | {
|
|
201
|
+
entity: "relation";
|
|
202
|
+
entityId: ForeignKey<"Relation">;
|
|
203
|
+
relation?: Relation.UpdateOperation;
|
|
204
|
+
} | {
|
|
205
|
+
entity: "relation";
|
|
206
|
+
entityId: ForeignKey<"Relation">;
|
|
207
|
+
relation?: never;
|
|
208
|
+
} | {
|
|
209
|
+
entity?: never;
|
|
210
|
+
entityId?: never;
|
|
211
|
+
relationAuth: RelationAuth.CreateSingleOperation;
|
|
212
|
+
} | {
|
|
213
|
+
entity: "relationAuth";
|
|
214
|
+
entityId: ForeignKey<"RelationAuth">;
|
|
215
|
+
relationAuth?: RelationAuth.UpdateOperation;
|
|
216
|
+
} | {
|
|
217
|
+
entity: "relationAuth";
|
|
218
|
+
entityId: ForeignKey<"RelationAuth">;
|
|
219
|
+
relationAuth?: never;
|
|
220
|
+
} | {
|
|
221
|
+
entity?: never;
|
|
222
|
+
entityId?: never;
|
|
223
|
+
user: User.CreateSingleOperation;
|
|
224
|
+
} | {
|
|
225
|
+
entity: "user";
|
|
226
|
+
entityId: ForeignKey<"User">;
|
|
227
|
+
user?: User.UpdateOperation;
|
|
228
|
+
} | {
|
|
229
|
+
entity: "user";
|
|
230
|
+
entityId: ForeignKey<"User">;
|
|
231
|
+
user?: never;
|
|
232
|
+
} | {
|
|
233
|
+
entity?: never;
|
|
234
|
+
entityId?: never;
|
|
235
|
+
userEntityClaim: UserEntityClaim.CreateSingleOperation;
|
|
236
|
+
} | {
|
|
237
|
+
entity: "userEntityClaim";
|
|
238
|
+
entityId: ForeignKey<"UserEntityClaim">;
|
|
239
|
+
userEntityClaim?: UserEntityClaim.UpdateOperation;
|
|
240
|
+
} | {
|
|
241
|
+
entity: "userEntityClaim";
|
|
242
|
+
entityId: ForeignKey<"UserEntityClaim">;
|
|
243
|
+
userEntityClaim?: never;
|
|
244
|
+
} | {
|
|
245
|
+
entity?: never;
|
|
246
|
+
entityId?: never;
|
|
247
|
+
userEntityGrant: UserEntityGrant.CreateSingleOperation;
|
|
248
|
+
} | {
|
|
249
|
+
entity: "userEntityGrant";
|
|
250
|
+
entityId: ForeignKey<"UserEntityGrant">;
|
|
251
|
+
userEntityGrant?: UserEntityGrant.UpdateOperation;
|
|
252
|
+
} | {
|
|
253
|
+
entity: "userEntityGrant";
|
|
254
|
+
entityId: ForeignKey<"UserEntityGrant">;
|
|
255
|
+
userEntityGrant?: never;
|
|
256
|
+
} | {
|
|
257
|
+
entity?: never;
|
|
258
|
+
entityId?: never;
|
|
259
|
+
userRelation: UserRelation.CreateSingleOperation;
|
|
260
|
+
} | {
|
|
261
|
+
entity: "userRelation";
|
|
262
|
+
entityId: ForeignKey<"UserRelation">;
|
|
263
|
+
userRelation?: UserRelation.UpdateOperation;
|
|
264
|
+
} | {
|
|
265
|
+
entity: "userRelation";
|
|
266
|
+
entityId: ForeignKey<"UserRelation">;
|
|
267
|
+
userRelation?: never;
|
|
268
|
+
} | {
|
|
269
|
+
entity?: string;
|
|
270
|
+
entityId?: string;
|
|
271
|
+
[K: string]: any;
|
|
272
|
+
});
|
|
273
|
+
export type CreateSingleOperation = OakOperation<"create", CreateOperationData>;
|
|
274
|
+
export type CreateMultipleOperation = OakOperation<"create", Array<CreateOperationData>>;
|
|
275
|
+
export type CreateOperation = CreateSingleOperation | CreateMultipleOperation;
|
|
276
|
+
export type UpdateOperationData = FormUpdateData<Omit<OpSchema, "entity" | "entityId" | "modiId">> & (({
|
|
277
|
+
modi?: Modi.CreateSingleOperation;
|
|
278
|
+
modiId?: never;
|
|
279
|
+
} | {
|
|
280
|
+
modi?: Modi.UpdateOperation;
|
|
281
|
+
modiId?: never;
|
|
282
|
+
} | {
|
|
283
|
+
modi?: Modi.RemoveOperation;
|
|
284
|
+
modiId?: never;
|
|
285
|
+
} | {
|
|
286
|
+
modi?: never;
|
|
287
|
+
modiId?: ForeignKey<"modi">;
|
|
288
|
+
})) & ({
|
|
289
|
+
actionAuth?: ActionAuth.CreateSingleOperation | ActionAuth.UpdateOperation | ActionAuth.RemoveOperation;
|
|
290
|
+
entityId?: never;
|
|
291
|
+
entity?: never;
|
|
292
|
+
} | {
|
|
293
|
+
path?: Path.CreateSingleOperation | Path.UpdateOperation | Path.RemoveOperation;
|
|
294
|
+
entityId?: never;
|
|
295
|
+
entity?: never;
|
|
296
|
+
} | {
|
|
297
|
+
relation?: Relation.CreateSingleOperation | Relation.UpdateOperation | Relation.RemoveOperation;
|
|
298
|
+
entityId?: never;
|
|
299
|
+
entity?: never;
|
|
300
|
+
} | {
|
|
301
|
+
relationAuth?: RelationAuth.CreateSingleOperation | RelationAuth.UpdateOperation | RelationAuth.RemoveOperation;
|
|
302
|
+
entityId?: never;
|
|
303
|
+
entity?: never;
|
|
304
|
+
} | {
|
|
305
|
+
user?: User.CreateSingleOperation | User.UpdateOperation | User.RemoveOperation;
|
|
306
|
+
entityId?: never;
|
|
307
|
+
entity?: never;
|
|
308
|
+
} | {
|
|
309
|
+
userEntityClaim?: UserEntityClaim.CreateSingleOperation | UserEntityClaim.UpdateOperation | UserEntityClaim.RemoveOperation;
|
|
310
|
+
entityId?: never;
|
|
311
|
+
entity?: never;
|
|
312
|
+
} | {
|
|
313
|
+
userEntityGrant?: UserEntityGrant.CreateSingleOperation | UserEntityGrant.UpdateOperation | UserEntityGrant.RemoveOperation;
|
|
314
|
+
entityId?: never;
|
|
315
|
+
entity?: never;
|
|
316
|
+
} | {
|
|
317
|
+
userRelation?: UserRelation.CreateSingleOperation | UserRelation.UpdateOperation | UserRelation.RemoveOperation;
|
|
318
|
+
entityId?: never;
|
|
319
|
+
entity?: never;
|
|
320
|
+
} | {
|
|
321
|
+
entity?: ("actionAuth" | "i18n" | "path" | "relation" | "relationAuth" | "user" | "userEntityClaim" | "userEntityGrant" | "userRelation" | string) | null;
|
|
322
|
+
entityId?: ForeignKey<"ActionAuth" | "I18n" | "Path" | "Relation" | "RelationAuth" | "User" | "UserEntityClaim" | "UserEntityGrant" | "UserRelation"> | null;
|
|
323
|
+
actionAuth?: never;
|
|
324
|
+
i18n?: never;
|
|
325
|
+
path?: never;
|
|
326
|
+
relation?: never;
|
|
327
|
+
relationAuth?: never;
|
|
328
|
+
user?: never;
|
|
329
|
+
userEntityClaim?: never;
|
|
330
|
+
userEntityGrant?: never;
|
|
331
|
+
userRelation?: never;
|
|
332
|
+
}) & {
|
|
333
|
+
[k: string]: any;
|
|
334
|
+
};
|
|
335
|
+
export type UpdateOperation = OakOperation<"update" | string, UpdateOperationData, Filter, Sorter>;
|
|
336
|
+
export type RemoveOperationData = {} & (({
|
|
337
|
+
modi?: Modi.UpdateOperation | Modi.RemoveOperation;
|
|
338
|
+
})) & ({
|
|
339
|
+
actionAuth?: ActionAuth.UpdateOperation | ActionAuth.RemoveOperation;
|
|
340
|
+
} | {
|
|
341
|
+
path?: Path.UpdateOperation | Path.RemoveOperation;
|
|
342
|
+
} | {
|
|
343
|
+
relation?: Relation.UpdateOperation | Relation.RemoveOperation;
|
|
344
|
+
} | {
|
|
345
|
+
relationAuth?: RelationAuth.UpdateOperation | RelationAuth.RemoveOperation;
|
|
346
|
+
} | {
|
|
347
|
+
user?: User.UpdateOperation | User.RemoveOperation;
|
|
348
|
+
} | {
|
|
349
|
+
userEntityClaim?: UserEntityClaim.UpdateOperation | UserEntityClaim.RemoveOperation;
|
|
350
|
+
} | {
|
|
351
|
+
userEntityGrant?: UserEntityGrant.UpdateOperation | UserEntityGrant.RemoveOperation;
|
|
352
|
+
} | {
|
|
353
|
+
userRelation?: UserRelation.UpdateOperation | UserRelation.RemoveOperation;
|
|
354
|
+
} | {
|
|
355
|
+
[k: string]: any;
|
|
356
|
+
});
|
|
357
|
+
export type RemoveOperation = OakOperation<"remove", RemoveOperationData, Filter, Sorter>;
|
|
358
|
+
export type Operation = CreateOperation | UpdateOperation | RemoveOperation;
|
|
359
|
+
export type ModiIdSubQuery = Selection<ModiIdProjection>;
|
|
360
|
+
export type ActionAuthIdSubQuery = Selection<ActionAuthIdProjection>;
|
|
361
|
+
export type I18nIdSubQuery = Selection<I18nIdProjection>;
|
|
362
|
+
export type PathIdSubQuery = Selection<PathIdProjection>;
|
|
363
|
+
export type RelationIdSubQuery = Selection<RelationIdProjection>;
|
|
364
|
+
export type RelationAuthIdSubQuery = Selection<RelationAuthIdProjection>;
|
|
365
|
+
export type UserIdSubQuery = Selection<UserIdProjection>;
|
|
366
|
+
export type UserEntityClaimIdSubQuery = Selection<UserEntityClaimIdProjection>;
|
|
367
|
+
export type UserEntityGrantIdSubQuery = Selection<UserEntityGrantIdProjection>;
|
|
368
|
+
export type UserRelationIdSubQuery = Selection<UserRelationIdProjection>;
|
|
369
|
+
export type ModiEntityIdSubQuery = Selection<ModiEntityIdProjection>;
|
|
370
|
+
export type EntityDef = {
|
|
371
|
+
Schema: Schema;
|
|
372
|
+
OpSchema: OpSchema;
|
|
373
|
+
Action: OakMakeAction<AppendOnlyAction> | string;
|
|
374
|
+
Selection: Selection;
|
|
375
|
+
Aggregation: Aggregation;
|
|
376
|
+
Operation: Operation;
|
|
377
|
+
Create: CreateOperation;
|
|
378
|
+
Update: UpdateOperation;
|
|
379
|
+
Remove: RemoveOperation;
|
|
380
|
+
CreateSingle: CreateSingleOperation;
|
|
381
|
+
CreateMulti: CreateMultipleOperation;
|
|
382
|
+
};
|
|
383
|
+
export {};
|