oak-domain 4.0.1 → 4.0.3
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 +16 -16
- package/lib/actions/action.js +17 -17
- package/lib/actions/relation.d.ts +5 -5
- package/lib/actions/relation.js +25 -25
- package/lib/base-app-domain/ActionAuth/Schema.d.ts +186 -186
- package/lib/base-app-domain/ActionAuth/Storage.js +39 -39
- package/lib/base-app-domain/ActionDefDict.d.ts +8 -8
- package/lib/base-app-domain/ActionDefDict.js +9 -9
- package/lib/base-app-domain/EntityDict.d.ts +28 -28
- package/lib/base-app-domain/I18n/Schema.d.ts +129 -129
- package/lib/base-app-domain/I18n/Schema.js +2 -2
- package/lib/base-app-domain/I18n/Storage.d.ts +3 -3
- package/lib/base-app-domain/I18n/Storage.js +59 -59
- package/lib/base-app-domain/Modi/Action.d.ts +10 -10
- package/lib/base-app-domain/Modi/Action.js +14 -14
- package/lib/base-app-domain/Modi/Schema.d.ts +136 -136
- package/lib/base-app-domain/Modi/Storage.js +63 -63
- package/lib/base-app-domain/ModiEntity/Schema.d.ts +384 -384
- package/lib/base-app-domain/ModiEntity/Storage.js +30 -30
- package/lib/base-app-domain/Oper/Schema.d.ts +153 -153
- package/lib/base-app-domain/Oper/Storage.js +38 -38
- package/lib/base-app-domain/OperEntity/Schema.d.ts +373 -373
- package/lib/base-app-domain/OperEntity/Storage.js +30 -30
- package/lib/base-app-domain/Path/Schema.d.ts +149 -149
- package/lib/base-app-domain/Path/Schema.js +2 -2
- package/lib/base-app-domain/Path/Storage.d.ts +3 -3
- package/lib/base-app-domain/Path/Storage.js +54 -54
- package/lib/base-app-domain/Relation/Schema.d.ts +188 -188
- package/lib/base-app-domain/Relation/Storage.js +54 -54
- package/lib/base-app-domain/Relation.d.ts +2 -2
- package/lib/base-app-domain/Relation.js +4 -4
- package/lib/base-app-domain/RelationAuth/Schema.d.ts +214 -214
- package/lib/base-app-domain/RelationAuth/Storage.js +44 -44
- package/lib/base-app-domain/Storage.js +31 -31
- package/lib/base-app-domain/User/Action.d.ts +10 -10
- package/lib/base-app-domain/User/Action.js +12 -12
- package/lib/base-app-domain/User/Schema.d.ts +210 -210
- package/lib/base-app-domain/User/Storage.js +33 -33
- package/lib/base-app-domain/UserEntityClaim/Schema.d.ts +264 -264
- package/lib/base-app-domain/UserEntityClaim/Schema.js +2 -2
- package/lib/base-app-domain/UserEntityClaim/Storage.d.ts +3 -3
- package/lib/base-app-domain/UserEntityClaim/Storage.js +37 -37
- package/lib/base-app-domain/UserEntityGrant/Schema.d.ts +131 -131
- package/lib/base-app-domain/UserEntityGrant/Storage.js +25 -25
- package/lib/base-app-domain/UserRelation/Schema.d.ts +208 -208
- package/lib/base-app-domain/UserRelation/Storage.js +56 -56
- package/lib/base-app-domain/_SubQuery.d.ts +142 -142
- package/lib/base-app-domain/index.d.ts +4 -4
- package/lib/base-app-domain/index.js +7 -7
- package/lib/checkers/index.d.ts +5 -5
- package/lib/checkers/index.js +13 -13
- package/lib/compiler/entities.d.ts +2 -2
- package/lib/compiler/entities.js +7 -7
- package/lib/compiler/env.d.ts +13 -13
- package/lib/compiler/env.js +45 -45
- package/lib/compiler/localeBuilder.d.ts +1 -1
- package/lib/compiler/localeBuilder.js +49 -18
- package/lib/compiler/routerBuilder.d.ts +1 -0
- package/lib/compiler/routerBuilder.js +263 -0
- package/lib/compiler/schemalBuilder.d.ts +27 -27
- package/lib/compiler/schemalBuilder.js +3565 -3565
- package/lib/entities/ActionAuth.d.ts +10 -10
- package/lib/entities/ActionAuth.js +31 -31
- package/lib/entities/I18n.d.ts +9 -9
- package/lib/entities/I18n.js +36 -36
- package/lib/entities/Modi.js +49 -49
- package/lib/entities/ModiEntity.js +18 -18
- package/lib/entities/Oper.js +21 -21
- package/lib/entities/OperEntity.js +18 -18
- package/lib/entities/Path.d.ts +8 -8
- package/lib/entities/Path.js +35 -35
- package/lib/entities/Relation.d.ts +8 -8
- package/lib/entities/Relation.js +35 -35
- package/lib/entities/RelationAuth.d.ts +8 -8
- package/lib/entities/RelationAuth.js +34 -34
- package/lib/entities/User.js +31 -31
- package/lib/entities/UserEntityClaim.d.ts +13 -13
- package/lib/entities/UserEntityClaim.js +17 -17
- package/lib/entities/UserEntityGrant.d.ts +9 -9
- package/lib/entities/UserEntityGrant.js +15 -15
- package/lib/entities/UserRelation.d.ts +10 -10
- package/lib/entities/UserRelation.js +38 -38
- package/lib/index.d.ts +23 -23
- package/lib/index.js +37 -37
- package/lib/store/AsyncRowStore.d.ts +65 -65
- package/lib/store/AsyncRowStore.js +9 -5
- package/lib/store/CascadeStore.d.ts +109 -106
- package/lib/store/CascadeStore.js +1748 -1740
- package/lib/store/RelationAuth.d.ts +7 -0
- package/lib/store/RelationAuth.js +11 -4
- package/lib/store/SyncRowStore.d.ts +29 -29
- package/lib/store/SyncRowStore.js +50 -50
- package/lib/store/TriggerExecutor.d.ts +41 -41
- package/lib/store/TriggerExecutor.js +468 -468
- package/lib/store/actionAuth.d.ts +4 -4
- package/lib/store/actionAuth.js +25 -25
- package/lib/store/actionDef.d.ts +10 -10
- package/lib/store/actionDef.js +278 -278
- package/lib/store/checker.d.ts +26 -26
- package/lib/store/checker.js +2 -2
- package/lib/store/filter.d.ts +85 -85
- package/lib/store/filter.js +1652 -1652
- package/lib/store/modi.d.ts +13 -13
- package/lib/store/modi.js +254 -254
- package/lib/store/relation.d.ts +12 -12
- package/lib/store/relation.js +67 -67
- package/lib/timers/oper.d.ts +18 -18
- package/lib/timers/oper.js +57 -57
- package/lib/timers/vaccum.d.ts +20 -20
- package/lib/timers/vaccum.js +111 -111
- package/lib/triggers/index.d.ts +5 -5
- package/lib/triggers/index.js +8 -8
- package/lib/types/Action.d.ts +20 -20
- package/lib/types/AppLoader.d.ts +17 -17
- package/lib/types/AppLoader.js +10 -10
- package/lib/types/Auth.d.ts +70 -70
- package/lib/types/Cluster.d.ts +5 -5
- package/lib/types/Cluster.js +2 -2
- package/lib/types/Connector.d.ts +38 -38
- package/lib/types/Connector.js +2 -2
- package/lib/types/DataType.d.ts +25 -25
- package/lib/types/DataType.js +6 -6
- package/lib/types/Demand.d.ts +89 -89
- package/lib/types/Demand.js +10 -10
- package/lib/types/Endpoint.d.ts +11 -11
- package/lib/types/Entity.d.ts +209 -209
- package/lib/types/Entity.js +15 -15
- package/lib/types/EntityDesc.d.ts +9 -9
- package/lib/types/EntityDesc.js +2 -2
- package/lib/types/Environment.d.ts +90 -90
- package/lib/types/Environment.js +2 -2
- package/lib/types/Exception.d.ts +10 -2
- package/lib/types/Exception.js +32 -2
- package/lib/types/Expression.d.ts +163 -163
- package/lib/types/Expression.js +397 -397
- package/lib/types/Geo.d.ts +18 -18
- package/lib/types/Locale.d.ts +25 -25
- package/lib/types/Logger.d.ts +6 -6
- package/lib/types/Polyfill.d.ts +24 -24
- package/lib/types/Port.d.ts +18 -18
- package/lib/types/RowStore.d.ts +19 -19
- package/lib/types/RowStore.js +33 -33
- package/lib/types/Storage.d.ts +58 -58
- package/lib/types/Style.d.ts +11 -11
- package/lib/types/Timer.d.ts +20 -20
- package/lib/types/Trigger.d.ts +118 -118
- package/lib/types/Trigger.js +35 -35
- package/lib/types/Watcher.d.ts +19 -19
- package/lib/types/index.d.ts +26 -26
- package/lib/types/index.js +29 -29
- package/lib/types/schema/DataTypes.d.ts +34 -34
- package/lib/utils/SimpleConnector.d.ts +64 -64
- package/lib/utils/SimpleConnector.js +206 -206
- package/lib/utils/assert.d.ts +6 -5
- package/lib/utils/assert.js +9 -9
- package/lib/utils/concurrent.d.ts +15 -15
- package/lib/utils/concurrent.js +63 -63
- package/lib/utils/date.js +18 -18
- package/lib/utils/domain.d.ts +1 -1
- package/lib/utils/domain.js +11 -11
- package/lib/utils/geo.js +24 -24
- package/lib/utils/lodash.d.ts +24 -24
- package/lib/utils/lodash.js +46 -46
- package/lib/utils/mask.js +34 -34
- package/lib/utils/money.d.ts +6 -6
- package/lib/utils/money.js +51 -51
- package/lib/utils/projection.d.ts +4 -4
- package/lib/utils/projection.js +15 -15
- package/lib/utils/random/random.js +19 -19
- package/lib/utils/random/random.mp.js +14 -14
- package/lib/utils/random/random.native.d.ts +1 -1
- package/lib/utils/random/random.native.js +14 -14
- package/lib/utils/random/random.web.js +11 -11
- package/lib/utils/string.d.ts +28 -28
- package/lib/utils/string.js +69 -69
- package/lib/utils/url/index.d.ts +7 -7
- package/lib/utils/url/index.js +8 -8
- package/lib/utils/url/index.mp.d.ts +3 -3
- package/lib/utils/url/index.mp.js +8 -8
- package/lib/utils/url/index.native.d.ts +12 -12
- package/lib/utils/url/index.native.js +7 -7
- package/lib/utils/url/index.web.d.ts +12 -12
- package/lib/utils/url/index.web.js +7 -7
- package/lib/utils/url/whatwg-url/index.d.ts +3 -3
- package/lib/utils/url/whatwg-url/index.js +16 -16
- package/lib/utils/url/whatwg-url/lib/URL-impl.d.ts +20 -20
- package/lib/utils/url/whatwg-url/lib/URL-impl.js +175 -175
- package/lib/utils/url/whatwg-url/lib/URL.d.ts +1 -1
- package/lib/utils/url/whatwg-url/lib/URL.js +298 -298
- package/lib/utils/url/whatwg-url/lib/URLSearchParams-impl.d.ts +19 -19
- package/lib/utils/url/whatwg-url/lib/URLSearchParams-impl.js +126 -126
- package/lib/utils/url/whatwg-url/lib/URLSearchParams.d.ts +1 -1
- package/lib/utils/url/whatwg-url/lib/URLSearchParams.js +426 -426
- package/lib/utils/url/whatwg-url/lib/infra.d.ts +12 -12
- package/lib/utils/url/whatwg-url/lib/infra.js +25 -25
- package/lib/utils/url/whatwg-url/lib/url-state-machine.d.ts +24 -24
- package/lib/utils/url/whatwg-url/lib/url-state-machine.js +1238 -1238
- package/lib/utils/url/whatwg-url/lib/urlencoded.d.ts +15 -15
- package/lib/utils/url/whatwg-url/lib/urlencoded.js +162 -162
- package/lib/utils/url/whatwg-url/lib/utils.d.ts +37 -37
- package/lib/utils/url/whatwg-url/lib/utils.js +101 -101
- package/lib/utils/uuid.d.ts +17 -17
- package/lib/utils/uuid.js +218 -218
- package/lib/utils/validator.d.ts +26 -26
- package/lib/utils/validator.js +131 -131
- package/lib/utils/version.js +21 -21
- package/package.json +2 -1
|
@@ -1,188 +1,188 @@
|
|
|
1
|
-
import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
2
|
-
import { OneOf } from "../../types/Polyfill";
|
|
3
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
4
|
-
import { GenericAction } from "../../actions/action";
|
|
5
|
-
import { String } from "../../types/DataType";
|
|
6
|
-
import { EntityShape } from "../../types/Entity";
|
|
7
|
-
import * as ActionAuth from "../ActionAuth/Schema";
|
|
8
|
-
import * as RelationAuth from "../RelationAuth/Schema";
|
|
9
|
-
import * as UserEntityClaim from "../UserEntityClaim/Schema";
|
|
10
|
-
import * as UserRelation from "../UserRelation/Schema";
|
|
11
|
-
import * as ModiEntity from "../ModiEntity/Schema";
|
|
12
|
-
import * as OperEntity from "../OperEntity/Schema";
|
|
13
|
-
export type OpSchema = EntityShape & {
|
|
14
|
-
entity: String<32>;
|
|
15
|
-
entityId?: String<64> | null;
|
|
16
|
-
name?: String<32> | null;
|
|
17
|
-
display?: String<32> | null;
|
|
18
|
-
};
|
|
19
|
-
export type OpAttr = keyof OpSchema;
|
|
20
|
-
export type Schema = EntityShape & {
|
|
21
|
-
entity: String<32>;
|
|
22
|
-
entityId?: String<64> | null;
|
|
23
|
-
name?: String<32> | null;
|
|
24
|
-
display?: String<32> | null;
|
|
25
|
-
actionAuth$relation?: Array<ActionAuth.Schema>;
|
|
26
|
-
actionAuth$relation$$aggr?: AggregationResult<ActionAuth.Schema>;
|
|
27
|
-
relationAuth$sourceRelation?: Array<RelationAuth.Schema>;
|
|
28
|
-
relationAuth$sourceRelation$$aggr?: AggregationResult<RelationAuth.Schema>;
|
|
29
|
-
relationAuth$destRelation?: Array<RelationAuth.Schema>;
|
|
30
|
-
relationAuth$destRelation$$aggr?: AggregationResult<RelationAuth.Schema>;
|
|
31
|
-
userEntityClaim$relation?: Array<UserEntityClaim.Schema>;
|
|
32
|
-
userEntityClaim$relation$$aggr?: AggregationResult<UserEntityClaim.Schema>;
|
|
33
|
-
userRelation$relation?: Array<UserRelation.Schema>;
|
|
34
|
-
userRelation$relation$$aggr?: AggregationResult<UserRelation.Schema>;
|
|
35
|
-
modiEntity$entity?: Array<ModiEntity.Schema>;
|
|
36
|
-
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
|
|
37
|
-
operEntity$entity?: Array<OperEntity.Schema>;
|
|
38
|
-
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
|
|
39
|
-
} & {
|
|
40
|
-
[A in ExpressionKey]?: any;
|
|
41
|
-
};
|
|
42
|
-
type AttrFilter = {
|
|
43
|
-
id: Q_StringValue;
|
|
44
|
-
$$createAt$$: Q_DateValue;
|
|
45
|
-
$$seq$$: Q_NumberValue;
|
|
46
|
-
$$updateAt$$: Q_DateValue;
|
|
47
|
-
entity: Q_StringValue;
|
|
48
|
-
entityId: Q_StringValue;
|
|
49
|
-
name: Q_StringValue;
|
|
50
|
-
display: Q_StringValue;
|
|
51
|
-
actionAuth$relation: ActionAuth.Filter & SubQueryPredicateMetadata;
|
|
52
|
-
relationAuth$sourceRelation: RelationAuth.Filter & SubQueryPredicateMetadata;
|
|
53
|
-
relationAuth$destRelation: RelationAuth.Filter & SubQueryPredicateMetadata;
|
|
54
|
-
userEntityClaim$relation: UserEntityClaim.Filter & SubQueryPredicateMetadata;
|
|
55
|
-
userRelation$relation: UserRelation.Filter & SubQueryPredicateMetadata;
|
|
56
|
-
modiEntity$entity: ModiEntity.Filter & SubQueryPredicateMetadata;
|
|
57
|
-
operEntity$entity: OperEntity.Filter & SubQueryPredicateMetadata;
|
|
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
|
-
entity?: number;
|
|
68
|
-
entityId?: number;
|
|
69
|
-
name?: number;
|
|
70
|
-
display?: number;
|
|
71
|
-
actionAuth$relation?: ActionAuth.Selection & {
|
|
72
|
-
$entity: "actionAuth";
|
|
73
|
-
};
|
|
74
|
-
actionAuth$relation$$aggr?: ActionAuth.Aggregation & {
|
|
75
|
-
$entity: "actionAuth";
|
|
76
|
-
};
|
|
77
|
-
relationAuth$sourceRelation?: RelationAuth.Selection & {
|
|
78
|
-
$entity: "relationAuth";
|
|
79
|
-
};
|
|
80
|
-
relationAuth$sourceRelation$$aggr?: RelationAuth.Aggregation & {
|
|
81
|
-
$entity: "relationAuth";
|
|
82
|
-
};
|
|
83
|
-
relationAuth$destRelation?: RelationAuth.Selection & {
|
|
84
|
-
$entity: "relationAuth";
|
|
85
|
-
};
|
|
86
|
-
relationAuth$destRelation$$aggr?: RelationAuth.Aggregation & {
|
|
87
|
-
$entity: "relationAuth";
|
|
88
|
-
};
|
|
89
|
-
userEntityClaim$relation?: UserEntityClaim.Selection & {
|
|
90
|
-
$entity: "userEntityClaim";
|
|
91
|
-
};
|
|
92
|
-
userEntityClaim$relation$$aggr?: UserEntityClaim.Aggregation & {
|
|
93
|
-
$entity: "userEntityClaim";
|
|
94
|
-
};
|
|
95
|
-
userRelation$relation?: UserRelation.Selection & {
|
|
96
|
-
$entity: "userRelation";
|
|
97
|
-
};
|
|
98
|
-
userRelation$relation$$aggr?: UserRelation.Aggregation & {
|
|
99
|
-
$entity: "userRelation";
|
|
100
|
-
};
|
|
101
|
-
modiEntity$entity?: ModiEntity.Selection & {
|
|
102
|
-
$entity: "modiEntity";
|
|
103
|
-
};
|
|
104
|
-
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
|
|
105
|
-
$entity: "modiEntity";
|
|
106
|
-
};
|
|
107
|
-
operEntity$entity?: OperEntity.Selection & {
|
|
108
|
-
$entity: "operEntity";
|
|
109
|
-
};
|
|
110
|
-
operEntity$entity$$aggr?: OperEntity.Aggregation & {
|
|
111
|
-
$entity: "operEntity";
|
|
112
|
-
};
|
|
113
|
-
} & Partial<ExprOp<OpAttr | string>>;
|
|
114
|
-
type RelationIdProjection = OneOf<{
|
|
115
|
-
id: number;
|
|
116
|
-
}>;
|
|
117
|
-
export type SortAttr = {
|
|
118
|
-
id: number;
|
|
119
|
-
} | {
|
|
120
|
-
$$createAt$$: number;
|
|
121
|
-
} | {
|
|
122
|
-
$$seq$$: number;
|
|
123
|
-
} | {
|
|
124
|
-
$$updateAt$$: number;
|
|
125
|
-
} | {
|
|
126
|
-
entity: number;
|
|
127
|
-
} | {
|
|
128
|
-
entityId: number;
|
|
129
|
-
} | {
|
|
130
|
-
name: number;
|
|
131
|
-
} | {
|
|
132
|
-
display: number;
|
|
133
|
-
} | {
|
|
134
|
-
[k: string]: any;
|
|
135
|
-
} | OneOf<ExprOp<OpAttr | string>>;
|
|
136
|
-
export type SortNode = {
|
|
137
|
-
$attr: SortAttr;
|
|
138
|
-
$direction?: "asc" | "desc";
|
|
139
|
-
};
|
|
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
|
-
entity?: string;
|
|
146
|
-
entityId?: string;
|
|
147
|
-
[K: string]: any;
|
|
148
|
-
}) & {
|
|
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
|
-
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
|
-
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
|
-
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
|
-
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
|
-
modiEntity$entity?: OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
155
|
-
operEntity$entity?: OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
156
|
-
};
|
|
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
|
-
[k: string]: any;
|
|
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
|
-
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
|
-
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
|
-
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
|
-
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
|
-
modiEntity$entity?: OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
168
|
-
operEntity$entity?: OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
169
|
-
};
|
|
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
|
-
Schema: Schema;
|
|
177
|
-
OpSchema: OpSchema;
|
|
178
|
-
Action: OakMakeAction<GenericAction> | string;
|
|
179
|
-
Selection: Selection;
|
|
180
|
-
Aggregation: Aggregation;
|
|
181
|
-
Operation: Operation;
|
|
182
|
-
Create: CreateOperation;
|
|
183
|
-
Update: UpdateOperation;
|
|
184
|
-
Remove: RemoveOperation;
|
|
185
|
-
CreateSingle: CreateSingleOperation;
|
|
186
|
-
CreateMulti: CreateMultipleOperation;
|
|
187
|
-
};
|
|
188
|
-
export {};
|
|
1
|
+
import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
2
|
+
import { OneOf } from "../../types/Polyfill";
|
|
3
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
4
|
+
import { GenericAction } from "../../actions/action";
|
|
5
|
+
import { String } from "../../types/DataType";
|
|
6
|
+
import { EntityShape } from "../../types/Entity";
|
|
7
|
+
import * as ActionAuth from "../ActionAuth/Schema";
|
|
8
|
+
import * as RelationAuth from "../RelationAuth/Schema";
|
|
9
|
+
import * as UserEntityClaim from "../UserEntityClaim/Schema";
|
|
10
|
+
import * as UserRelation from "../UserRelation/Schema";
|
|
11
|
+
import * as ModiEntity from "../ModiEntity/Schema";
|
|
12
|
+
import * as OperEntity from "../OperEntity/Schema";
|
|
13
|
+
export type OpSchema = EntityShape & {
|
|
14
|
+
entity: String<32>;
|
|
15
|
+
entityId?: String<64> | null;
|
|
16
|
+
name?: String<32> | null;
|
|
17
|
+
display?: String<32> | null;
|
|
18
|
+
};
|
|
19
|
+
export type OpAttr = keyof OpSchema;
|
|
20
|
+
export type Schema = EntityShape & {
|
|
21
|
+
entity: String<32>;
|
|
22
|
+
entityId?: String<64> | null;
|
|
23
|
+
name?: String<32> | null;
|
|
24
|
+
display?: String<32> | null;
|
|
25
|
+
actionAuth$relation?: Array<ActionAuth.Schema>;
|
|
26
|
+
actionAuth$relation$$aggr?: AggregationResult<ActionAuth.Schema>;
|
|
27
|
+
relationAuth$sourceRelation?: Array<RelationAuth.Schema>;
|
|
28
|
+
relationAuth$sourceRelation$$aggr?: AggregationResult<RelationAuth.Schema>;
|
|
29
|
+
relationAuth$destRelation?: Array<RelationAuth.Schema>;
|
|
30
|
+
relationAuth$destRelation$$aggr?: AggregationResult<RelationAuth.Schema>;
|
|
31
|
+
userEntityClaim$relation?: Array<UserEntityClaim.Schema>;
|
|
32
|
+
userEntityClaim$relation$$aggr?: AggregationResult<UserEntityClaim.Schema>;
|
|
33
|
+
userRelation$relation?: Array<UserRelation.Schema>;
|
|
34
|
+
userRelation$relation$$aggr?: AggregationResult<UserRelation.Schema>;
|
|
35
|
+
modiEntity$entity?: Array<ModiEntity.Schema>;
|
|
36
|
+
modiEntity$entity$$aggr?: AggregationResult<ModiEntity.Schema>;
|
|
37
|
+
operEntity$entity?: Array<OperEntity.Schema>;
|
|
38
|
+
operEntity$entity$$aggr?: AggregationResult<OperEntity.Schema>;
|
|
39
|
+
} & {
|
|
40
|
+
[A in ExpressionKey]?: any;
|
|
41
|
+
};
|
|
42
|
+
type AttrFilter = {
|
|
43
|
+
id: Q_StringValue;
|
|
44
|
+
$$createAt$$: Q_DateValue;
|
|
45
|
+
$$seq$$: Q_NumberValue;
|
|
46
|
+
$$updateAt$$: Q_DateValue;
|
|
47
|
+
entity: Q_StringValue;
|
|
48
|
+
entityId: Q_StringValue;
|
|
49
|
+
name: Q_StringValue;
|
|
50
|
+
display: Q_StringValue;
|
|
51
|
+
actionAuth$relation: ActionAuth.Filter & SubQueryPredicateMetadata;
|
|
52
|
+
relationAuth$sourceRelation: RelationAuth.Filter & SubQueryPredicateMetadata;
|
|
53
|
+
relationAuth$destRelation: RelationAuth.Filter & SubQueryPredicateMetadata;
|
|
54
|
+
userEntityClaim$relation: UserEntityClaim.Filter & SubQueryPredicateMetadata;
|
|
55
|
+
userRelation$relation: UserRelation.Filter & SubQueryPredicateMetadata;
|
|
56
|
+
modiEntity$entity: ModiEntity.Filter & SubQueryPredicateMetadata;
|
|
57
|
+
operEntity$entity: OperEntity.Filter & SubQueryPredicateMetadata;
|
|
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
|
+
entity?: number;
|
|
68
|
+
entityId?: number;
|
|
69
|
+
name?: number;
|
|
70
|
+
display?: number;
|
|
71
|
+
actionAuth$relation?: ActionAuth.Selection & {
|
|
72
|
+
$entity: "actionAuth";
|
|
73
|
+
};
|
|
74
|
+
actionAuth$relation$$aggr?: ActionAuth.Aggregation & {
|
|
75
|
+
$entity: "actionAuth";
|
|
76
|
+
};
|
|
77
|
+
relationAuth$sourceRelation?: RelationAuth.Selection & {
|
|
78
|
+
$entity: "relationAuth";
|
|
79
|
+
};
|
|
80
|
+
relationAuth$sourceRelation$$aggr?: RelationAuth.Aggregation & {
|
|
81
|
+
$entity: "relationAuth";
|
|
82
|
+
};
|
|
83
|
+
relationAuth$destRelation?: RelationAuth.Selection & {
|
|
84
|
+
$entity: "relationAuth";
|
|
85
|
+
};
|
|
86
|
+
relationAuth$destRelation$$aggr?: RelationAuth.Aggregation & {
|
|
87
|
+
$entity: "relationAuth";
|
|
88
|
+
};
|
|
89
|
+
userEntityClaim$relation?: UserEntityClaim.Selection & {
|
|
90
|
+
$entity: "userEntityClaim";
|
|
91
|
+
};
|
|
92
|
+
userEntityClaim$relation$$aggr?: UserEntityClaim.Aggregation & {
|
|
93
|
+
$entity: "userEntityClaim";
|
|
94
|
+
};
|
|
95
|
+
userRelation$relation?: UserRelation.Selection & {
|
|
96
|
+
$entity: "userRelation";
|
|
97
|
+
};
|
|
98
|
+
userRelation$relation$$aggr?: UserRelation.Aggregation & {
|
|
99
|
+
$entity: "userRelation";
|
|
100
|
+
};
|
|
101
|
+
modiEntity$entity?: ModiEntity.Selection & {
|
|
102
|
+
$entity: "modiEntity";
|
|
103
|
+
};
|
|
104
|
+
modiEntity$entity$$aggr?: ModiEntity.Aggregation & {
|
|
105
|
+
$entity: "modiEntity";
|
|
106
|
+
};
|
|
107
|
+
operEntity$entity?: OperEntity.Selection & {
|
|
108
|
+
$entity: "operEntity";
|
|
109
|
+
};
|
|
110
|
+
operEntity$entity$$aggr?: OperEntity.Aggregation & {
|
|
111
|
+
$entity: "operEntity";
|
|
112
|
+
};
|
|
113
|
+
} & Partial<ExprOp<OpAttr | string>>;
|
|
114
|
+
type RelationIdProjection = OneOf<{
|
|
115
|
+
id: number;
|
|
116
|
+
}>;
|
|
117
|
+
export type SortAttr = {
|
|
118
|
+
id: number;
|
|
119
|
+
} | {
|
|
120
|
+
$$createAt$$: number;
|
|
121
|
+
} | {
|
|
122
|
+
$$seq$$: number;
|
|
123
|
+
} | {
|
|
124
|
+
$$updateAt$$: number;
|
|
125
|
+
} | {
|
|
126
|
+
entity: number;
|
|
127
|
+
} | {
|
|
128
|
+
entityId: number;
|
|
129
|
+
} | {
|
|
130
|
+
name: number;
|
|
131
|
+
} | {
|
|
132
|
+
display: number;
|
|
133
|
+
} | {
|
|
134
|
+
[k: string]: any;
|
|
135
|
+
} | OneOf<ExprOp<OpAttr | string>>;
|
|
136
|
+
export type SortNode = {
|
|
137
|
+
$attr: SortAttr;
|
|
138
|
+
$direction?: "asc" | "desc";
|
|
139
|
+
};
|
|
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
|
+
entity?: string;
|
|
146
|
+
entityId?: string;
|
|
147
|
+
[K: string]: any;
|
|
148
|
+
}) & {
|
|
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
|
+
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
|
+
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
|
+
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
|
+
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
|
+
modiEntity$entity?: OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
155
|
+
operEntity$entity?: OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
156
|
+
};
|
|
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
|
+
[k: string]: any;
|
|
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
|
+
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
|
+
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
|
+
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
|
+
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
|
+
modiEntity$entity?: OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<ModiEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
168
|
+
operEntity$entity?: OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<OperEntity.CreateOperationData, "entity" | "entityId">>>;
|
|
169
|
+
};
|
|
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
|
+
Schema: Schema;
|
|
177
|
+
OpSchema: OpSchema;
|
|
178
|
+
Action: OakMakeAction<GenericAction> | string;
|
|
179
|
+
Selection: Selection;
|
|
180
|
+
Aggregation: Aggregation;
|
|
181
|
+
Operation: Operation;
|
|
182
|
+
Create: CreateOperation;
|
|
183
|
+
Update: UpdateOperation;
|
|
184
|
+
Remove: RemoveOperation;
|
|
185
|
+
CreateSingle: CreateSingleOperation;
|
|
186
|
+
CreateMulti: CreateMultipleOperation;
|
|
187
|
+
};
|
|
188
|
+
export {};
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.desc = void 0;
|
|
4
|
-
const action_1 = require("../../actions/action");
|
|
5
|
-
exports.desc = {
|
|
6
|
-
attributes: {
|
|
7
|
-
entity: {
|
|
8
|
-
notNull: true,
|
|
9
|
-
type: "varchar",
|
|
10
|
-
params: {
|
|
11
|
-
length: 32
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
entityId: {
|
|
15
|
-
type: "varchar",
|
|
16
|
-
params: {
|
|
17
|
-
length: 64
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
name: {
|
|
21
|
-
type: "varchar",
|
|
22
|
-
params: {
|
|
23
|
-
length: 32
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
display: {
|
|
27
|
-
type: "varchar",
|
|
28
|
-
params: {
|
|
29
|
-
length: 32
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
actionType: "crud",
|
|
34
|
-
actions: action_1.genericActions,
|
|
35
|
-
indexes: [
|
|
36
|
-
{
|
|
37
|
-
name: 'index_targetEntity_entityId_name',
|
|
38
|
-
attributes: [
|
|
39
|
-
{
|
|
40
|
-
name: 'entity',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: 'entityId',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'name',
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
config: {
|
|
50
|
-
unique: true,
|
|
51
|
-
},
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.desc = void 0;
|
|
4
|
+
const action_1 = require("../../actions/action");
|
|
5
|
+
exports.desc = {
|
|
6
|
+
attributes: {
|
|
7
|
+
entity: {
|
|
8
|
+
notNull: true,
|
|
9
|
+
type: "varchar",
|
|
10
|
+
params: {
|
|
11
|
+
length: 32
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
entityId: {
|
|
15
|
+
type: "varchar",
|
|
16
|
+
params: {
|
|
17
|
+
length: 64
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
name: {
|
|
21
|
+
type: "varchar",
|
|
22
|
+
params: {
|
|
23
|
+
length: 32
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
display: {
|
|
27
|
+
type: "varchar",
|
|
28
|
+
params: {
|
|
29
|
+
length: 32
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
actionType: "crud",
|
|
34
|
+
actions: action_1.genericActions,
|
|
35
|
+
indexes: [
|
|
36
|
+
{
|
|
37
|
+
name: 'index_targetEntity_entityId_name',
|
|
38
|
+
attributes: [
|
|
39
|
+
{
|
|
40
|
+
name: 'entity',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'entityId',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'name',
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
config: {
|
|
50
|
+
unique: true,
|
|
51
|
+
},
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CreateOperationData as Relation } from "./Relation/Schema";
|
|
2
|
-
export declare const relations: Relation[];
|
|
1
|
+
import { CreateOperationData as Relation } from "./Relation/Schema";
|
|
2
|
+
export declare const relations: Relation[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.relations = void 0;
|
|
4
|
-
exports.relations = [];
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.relations = void 0;
|
|
4
|
+
exports.relations = [];
|