oak-domain 2.3.2 → 2.4.1
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 -1
- package/lib/actions/relation.js +38 -2
- package/lib/base-app-domain/ActionDefDict.d.ts +5 -5
- package/lib/base-app-domain/ActionDefDict.js +7 -7
- package/lib/base-app-domain/EntityDict.d.ts +12 -12
- package/lib/base-app-domain/EntityDict.js +2 -2
- 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 +146 -148
- package/lib/base-app-domain/Modi/Schema.js +2 -2
- package/lib/base-app-domain/Modi/Storage.d.ts +3 -3
- package/lib/base-app-domain/Modi/Storage.js +60 -60
- package/lib/base-app-domain/ModiEntity/Schema.d.ts +162 -164
- package/lib/base-app-domain/ModiEntity/Schema.js +2 -2
- package/lib/base-app-domain/ModiEntity/Storage.d.ts +3 -3
- package/lib/base-app-domain/ModiEntity/Storage.js +26 -26
- package/lib/base-app-domain/Oper/Schema.d.ts +144 -146
- package/lib/base-app-domain/Oper/Schema.js +2 -2
- package/lib/base-app-domain/Oper/Storage.d.ts +3 -3
- package/lib/base-app-domain/Oper/Storage.js +29 -29
- package/lib/base-app-domain/OperEntity/Schema.d.ts +178 -180
- package/lib/base-app-domain/OperEntity/Schema.js +2 -2
- package/lib/base-app-domain/OperEntity/Storage.d.ts +3 -3
- package/lib/base-app-domain/OperEntity/Storage.js +26 -26
- package/lib/base-app-domain/Storage.d.ts +3 -3
- package/lib/base-app-domain/Storage.js +15 -15
- package/lib/base-app-domain/User/Schema.d.ts +128 -130
- package/lib/base-app-domain/User/Schema.js +2 -2
- package/lib/base-app-domain/User/Storage.d.ts +3 -3
- package/lib/base-app-domain/User/Storage.js +25 -25
- package/lib/base-app-domain/_SubQuery.d.ts +36 -36
- package/lib/base-app-domain/_SubQuery.js +2 -2
- package/lib/base-app-domain/index.d.ts +3 -3
- package/lib/base-app-domain/index.js +6 -6
- package/lib/checkers/index.d.ts +5 -5
- package/lib/checkers/index.js +15 -13
- package/lib/compiler/env.d.ts +11 -11
- package/lib/compiler/env.js +39 -39
- package/lib/compiler/schemalBuilder.d.ts +2 -2
- package/lib/compiler/schemalBuilder.js +3301 -3245
- package/lib/compiler/uiBuilder.d.ts +1 -1
- package/lib/compiler/uiBuilder.js +3 -3
- package/lib/entities/Modi.d.ts +11 -11
- package/lib/entities/Modi.js +46 -46
- package/lib/entities/ModiEntity.d.ts +8 -8
- package/lib/entities/ModiEntity.js +15 -15
- package/lib/entities/Oper.d.ts +10 -10
- package/lib/entities/Oper.js +17 -17
- package/lib/entities/OperEntity.d.ts +8 -8
- package/lib/entities/OperEntity.js +15 -15
- package/lib/entities/User.d.ts +7 -7
- package/lib/entities/User.js +12 -12
- package/lib/store/AsyncRowStore.d.ts +48 -48
- package/lib/store/AsyncRowStore.js +183 -183
- package/lib/store/CascadeStore.d.ts +91 -91
- package/lib/store/CascadeStore.js +1594 -1594
- package/lib/store/SyncRowStore.d.ts +29 -29
- package/lib/store/SyncRowStore.js +48 -48
- package/lib/store/TriggerExecutor.d.ts +32 -32
- package/lib/store/TriggerExecutor.js +527 -508
- package/lib/store/actionDef.d.ts +9 -9
- package/lib/store/actionDef.js +135 -135
- package/lib/store/checker.d.ts +13 -7
- package/lib/store/checker.js +498 -391
- package/lib/store/filter.d.ts +109 -100
- package/lib/store/filter.js +893 -878
- package/lib/store/modi.d.ts +13 -13
- package/lib/store/modi.js +198 -206
- package/lib/store/relation.d.ts +13 -13
- package/lib/store/relation.js +66 -66
- package/lib/store/selection.d.ts +7 -7
- package/lib/store/selection.js +235 -235
- package/lib/triggers/index.d.ts +6 -6
- package/lib/triggers/index.js +11 -11
- package/lib/triggers/modi.d.ts +5 -5
- package/lib/triggers/modi.js +72 -72
- package/lib/types/Action.d.ts +18 -14
- package/lib/types/Action.js +2 -2
- package/lib/types/AppLoader.d.ts +11 -11
- package/lib/types/AppLoader.js +10 -10
- package/lib/types/Aspect.d.ts +12 -12
- package/lib/types/Aspect.js +4 -4
- package/lib/types/Auth.d.ts +66 -66
- package/lib/types/Auth.js +2 -2
- package/lib/types/Connector.d.ts +26 -26
- package/lib/types/Connector.js +9 -9
- package/lib/types/Context.d.ts +7 -7
- package/lib/types/Context.js +3 -3
- package/lib/types/DataType.d.ts +18 -18
- package/lib/types/DataType.js +5 -5
- package/lib/types/Demand.d.ts +77 -77
- package/lib/types/Demand.js +9 -9
- package/lib/types/Endpoint.d.ts +11 -0
- package/lib/types/Endpoint.js +3 -0
- package/lib/types/Entity.d.ts +176 -190
- package/lib/types/Entity.js +14 -15
- package/lib/types/Exception.d.ts +88 -83
- package/lib/types/Exception.js +267 -252
- package/lib/types/Expression.d.ts +163 -141
- package/lib/types/Expression.js +427 -402
- package/lib/types/Geo.d.ts +18 -18
- package/lib/types/Geo.js +2 -2
- package/lib/types/Locale.d.ts +24 -24
- package/lib/types/Locale.js +2 -2
- package/lib/types/Logger.d.ts +5 -5
- package/lib/types/Logger.js +3 -3
- package/lib/types/Polyfill.d.ts +23 -23
- package/lib/types/Polyfill.js +2 -2
- package/lib/types/Port.d.ts +17 -0
- package/lib/types/Port.js +2 -0
- package/lib/types/RowStore.d.ts +12 -12
- package/lib/types/RowStore.js +34 -34
- package/lib/types/Storage.d.ts +56 -56
- package/lib/types/Storage.js +2 -2
- package/lib/types/Timer.d.ts +13 -13
- package/lib/types/Timer.js +2 -2
- package/lib/types/Trigger.d.ts +100 -100
- package/lib/types/Trigger.js +39 -39
- package/lib/types/Txn.d.ts +2 -2
- package/lib/types/Txn.js +3 -3
- package/lib/types/Watcher.d.ts +19 -19
- package/lib/types/Watcher.js +4 -4
- package/lib/types/index.d.ts +21 -19
- package/lib/types/index.js +24 -22
- package/lib/types/schema/DataTypes.d.ts +32 -32
- package/lib/types/schema/DataTypes.js +3 -3
- package/lib/utils/SimpleConnector.d.ts +30 -30
- package/lib/utils/SimpleConnector.js +117 -117
- package/lib/utils/assert.d.ts +5 -5
- package/lib/utils/assert.js +9 -9
- package/lib/utils/concurrent.d.ts +15 -15
- package/lib/utils/concurrent.js +89 -89
- package/lib/utils/cron.d.ts +1 -1
- package/lib/utils/cron.js +18 -18
- package/lib/utils/date.d.ts +1 -0
- package/lib/utils/date.js +18 -0
- package/lib/utils/geo.d.ts +4 -4
- package/lib/utils/geo.js +24 -24
- package/lib/utils/lodash.d.ts +20 -20
- package/lib/utils/lodash.js +55 -55
- package/lib/utils/random/random.d.ts +1 -1
- package/lib/utils/random/random.js +24 -24
- package/lib/utils/random/random.mp.d.ts +1 -1
- package/lib/utils/random/random.mp.js +25 -25
- package/lib/utils/random/random.web.d.ts +1 -1
- package/lib/utils/random/random.web.js +17 -17
- package/lib/utils/string.d.ts +22 -22
- package/lib/utils/string.js +70 -70
- package/lib/utils/uuid.d.ts +12 -12
- package/lib/utils/uuid.js +194 -194
- package/lib/utils/validator.d.ts +23 -23
- package/lib/utils/validator.js +123 -123
- package/package.json +48 -48
- package/src/entities/Modi.ts +68 -68
- package/src/entities/ModiEntity.ts +24 -24
- package/src/entities/Oper.ts +28 -28
- package/src/entities/OperEntity.ts +24 -24
- package/src/entities/User.ts +19 -19
|
@@ -1,180 +1,178 @@
|
|
|
1
|
-
import { String, ForeignKey } from "../../types/DataType";
|
|
2
|
-
import { Q_DateValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey } from "../../types/Demand";
|
|
3
|
-
import { OneOf } from "../../types/Polyfill";
|
|
4
|
-
import * as SubQuery from "../_SubQuery";
|
|
5
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, MakeAction as OakMakeAction, EntityShape } from "../../types/Entity";
|
|
6
|
-
import { AppendOnlyAction } from "../../actions/action";
|
|
7
|
-
import * as Oper from "../Oper/Schema";
|
|
8
|
-
import * as Modi from "../Modi/Schema";
|
|
9
|
-
import * as User from "../User/Schema";
|
|
10
|
-
export
|
|
11
|
-
operId: ForeignKey<"oper">;
|
|
12
|
-
entity: "modi" | "user" | string;
|
|
13
|
-
entityId: String<64>;
|
|
14
|
-
};
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
operId: ForeignKey<"oper">;
|
|
18
|
-
entity: "modi" | "user" | string;
|
|
19
|
-
entityId: String<64>;
|
|
20
|
-
oper: Oper.Schema;
|
|
21
|
-
modi?: Modi.Schema;
|
|
22
|
-
user?: User.Schema;
|
|
23
|
-
} & {
|
|
24
|
-
[A in ExpressionKey]?: any;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
id: Q_StringValue | SubQuery.OperEntityIdSubQuery;
|
|
28
|
-
$$createAt$$: Q_DateValue;
|
|
29
|
-
$$seq$$: Q_StringValue;
|
|
30
|
-
$$updateAt$$: Q_DateValue;
|
|
31
|
-
operId: Q_StringValue | SubQuery.OperIdSubQuery;
|
|
32
|
-
oper: Oper.Filter;
|
|
33
|
-
entity: E;
|
|
34
|
-
entityId: Q_StringValue;
|
|
35
|
-
modi: Modi.Filter;
|
|
36
|
-
user: User.Filter;
|
|
37
|
-
};
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
"#id"?: NodeId;
|
|
41
|
-
[k: string]: any;
|
|
42
|
-
id?: number;
|
|
43
|
-
$$createAt$$?: number;
|
|
44
|
-
$$updateAt$$?: number;
|
|
45
|
-
$$seq$$?: number;
|
|
46
|
-
operId?: number;
|
|
47
|
-
oper?: Oper.Projection;
|
|
48
|
-
entity?: number;
|
|
49
|
-
entityId?: number;
|
|
50
|
-
modi?: Modi.Projection;
|
|
51
|
-
user?: User.Projection;
|
|
52
|
-
} & Partial<ExprOp<OpAttr | string>>;
|
|
53
|
-
|
|
54
|
-
id: number;
|
|
55
|
-
}>;
|
|
56
|
-
|
|
57
|
-
operId: number;
|
|
58
|
-
}>;
|
|
59
|
-
|
|
60
|
-
entityId: number;
|
|
61
|
-
}>;
|
|
62
|
-
|
|
63
|
-
entityId: number;
|
|
64
|
-
}>;
|
|
65
|
-
export
|
|
66
|
-
id: number;
|
|
67
|
-
} | {
|
|
68
|
-
$$createAt$$: number;
|
|
69
|
-
} | {
|
|
70
|
-
$$seq$$: number;
|
|
71
|
-
} | {
|
|
72
|
-
$$updateAt$$: number;
|
|
73
|
-
} | {
|
|
74
|
-
operId: number;
|
|
75
|
-
} | {
|
|
76
|
-
oper: Oper.SortAttr;
|
|
77
|
-
} | {
|
|
78
|
-
entity: number;
|
|
79
|
-
} | {
|
|
80
|
-
entityId: number;
|
|
81
|
-
} | {
|
|
82
|
-
modi: Modi.SortAttr;
|
|
83
|
-
} | {
|
|
84
|
-
user: User.SortAttr;
|
|
85
|
-
} | {
|
|
86
|
-
[k: string]: any;
|
|
87
|
-
} | OneOf<ExprOp<OpAttr | string>>;
|
|
88
|
-
export
|
|
89
|
-
$attr: SortAttr;
|
|
90
|
-
$direction?: "asc" | "desc";
|
|
91
|
-
};
|
|
92
|
-
export
|
|
93
|
-
export
|
|
94
|
-
export
|
|
95
|
-
export
|
|
96
|
-
export
|
|
97
|
-
operId?: never;
|
|
98
|
-
oper: Oper.CreateSingleOperation;
|
|
99
|
-
} | {
|
|
100
|
-
operId: String<64>;
|
|
101
|
-
})) & ({
|
|
102
|
-
entity?: never;
|
|
103
|
-
entityId?: never;
|
|
104
|
-
modi: Modi.CreateSingleOperation;
|
|
105
|
-
} | {
|
|
106
|
-
entity: "modi";
|
|
107
|
-
entityId: String<64>;
|
|
108
|
-
modi: Modi.UpdateOperation;
|
|
109
|
-
} | {
|
|
110
|
-
entity: "modi";
|
|
111
|
-
entityId: String<64>;
|
|
112
|
-
} | {
|
|
113
|
-
entity?: never;
|
|
114
|
-
entityId?: never;
|
|
115
|
-
user: User.CreateSingleOperation;
|
|
116
|
-
} | {
|
|
117
|
-
entity: "user";
|
|
118
|
-
entityId: String<64>;
|
|
119
|
-
user: User.UpdateOperation;
|
|
120
|
-
} | {
|
|
121
|
-
entity: "user";
|
|
122
|
-
entityId: String<64>;
|
|
123
|
-
} | {
|
|
124
|
-
entity?: string;
|
|
125
|
-
entityId?: string;
|
|
126
|
-
[K: string]: any;
|
|
127
|
-
});
|
|
128
|
-
export
|
|
129
|
-
export
|
|
130
|
-
export
|
|
131
|
-
export
|
|
132
|
-
oper: Oper.CreateSingleOperation;
|
|
133
|
-
operId?: never;
|
|
134
|
-
} | {
|
|
135
|
-
oper?: never;
|
|
136
|
-
operId?: String<64> | null;
|
|
137
|
-
})) & ({
|
|
138
|
-
modi?: Modi.CreateSingleOperation | Modi.UpdateOperation | Modi.RemoveOperation;
|
|
139
|
-
entityId?: never;
|
|
140
|
-
entity?: never;
|
|
141
|
-
} | {
|
|
142
|
-
user?: User.CreateSingleOperation | User.UpdateOperation | User.RemoveOperation;
|
|
143
|
-
entityId?: never;
|
|
144
|
-
entity?: never;
|
|
145
|
-
} | {
|
|
146
|
-
entity?: ("modi" | "user" | string) | null;
|
|
147
|
-
entityId?: String<64> | null;
|
|
148
|
-
}) & {
|
|
149
|
-
[k: string]: any;
|
|
150
|
-
};
|
|
151
|
-
export
|
|
152
|
-
export
|
|
153
|
-
modi?: Modi.UpdateOperation | Modi.RemoveOperation;
|
|
154
|
-
} | {
|
|
155
|
-
user?: User.UpdateOperation | User.RemoveOperation;
|
|
156
|
-
} | {
|
|
157
|
-
[k: string]: any;
|
|
158
|
-
});
|
|
159
|
-
export
|
|
160
|
-
export
|
|
161
|
-
export
|
|
162
|
-
export
|
|
163
|
-
export
|
|
164
|
-
export
|
|
165
|
-
export
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
};
|
|
180
|
-
export {};
|
|
1
|
+
import { String, ForeignKey } from "../../types/DataType";
|
|
2
|
+
import { Q_DateValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey } from "../../types/Demand";
|
|
3
|
+
import { OneOf } from "../../types/Polyfill";
|
|
4
|
+
import * as SubQuery from "../_SubQuery";
|
|
5
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, MakeAction as OakMakeAction, EntityShape } from "../../types/Entity";
|
|
6
|
+
import { AppendOnlyAction } from "../../actions/action";
|
|
7
|
+
import * as Oper from "../Oper/Schema";
|
|
8
|
+
import * as Modi from "../Modi/Schema";
|
|
9
|
+
import * as User from "../User/Schema";
|
|
10
|
+
export type OpSchema = EntityShape & {
|
|
11
|
+
operId: ForeignKey<"oper">;
|
|
12
|
+
entity: "modi" | "user" | string;
|
|
13
|
+
entityId: String<64>;
|
|
14
|
+
};
|
|
15
|
+
export type OpAttr = keyof OpSchema;
|
|
16
|
+
export type Schema = EntityShape & {
|
|
17
|
+
operId: ForeignKey<"oper">;
|
|
18
|
+
entity: "modi" | "user" | string;
|
|
19
|
+
entityId: String<64>;
|
|
20
|
+
oper: Oper.Schema;
|
|
21
|
+
modi?: Modi.Schema;
|
|
22
|
+
user?: User.Schema;
|
|
23
|
+
} & {
|
|
24
|
+
[A in ExpressionKey]?: any;
|
|
25
|
+
};
|
|
26
|
+
type AttrFilter<E> = {
|
|
27
|
+
id: Q_StringValue | SubQuery.OperEntityIdSubQuery;
|
|
28
|
+
$$createAt$$: Q_DateValue;
|
|
29
|
+
$$seq$$: Q_StringValue;
|
|
30
|
+
$$updateAt$$: Q_DateValue;
|
|
31
|
+
operId: Q_StringValue | SubQuery.OperIdSubQuery;
|
|
32
|
+
oper: Oper.Filter;
|
|
33
|
+
entity: E;
|
|
34
|
+
entityId: Q_StringValue;
|
|
35
|
+
modi: Modi.Filter;
|
|
36
|
+
user: User.Filter;
|
|
37
|
+
};
|
|
38
|
+
export type Filter<E = Q_EnumValue<"modi" | "user" | string>> = MakeFilter<AttrFilter<E> & ExprOp<OpAttr | string>>;
|
|
39
|
+
export type Projection = {
|
|
40
|
+
"#id"?: NodeId;
|
|
41
|
+
[k: string]: any;
|
|
42
|
+
id?: number;
|
|
43
|
+
$$createAt$$?: number;
|
|
44
|
+
$$updateAt$$?: number;
|
|
45
|
+
$$seq$$?: number;
|
|
46
|
+
operId?: number;
|
|
47
|
+
oper?: Oper.Projection;
|
|
48
|
+
entity?: number;
|
|
49
|
+
entityId?: number;
|
|
50
|
+
modi?: Modi.Projection;
|
|
51
|
+
user?: User.Projection;
|
|
52
|
+
} & Partial<ExprOp<OpAttr | string>>;
|
|
53
|
+
type OperEntityIdProjection = OneOf<{
|
|
54
|
+
id: number;
|
|
55
|
+
}>;
|
|
56
|
+
type OperIdProjection = OneOf<{
|
|
57
|
+
operId: number;
|
|
58
|
+
}>;
|
|
59
|
+
type ModiIdProjection = OneOf<{
|
|
60
|
+
entityId: number;
|
|
61
|
+
}>;
|
|
62
|
+
type UserIdProjection = OneOf<{
|
|
63
|
+
entityId: number;
|
|
64
|
+
}>;
|
|
65
|
+
export type SortAttr = {
|
|
66
|
+
id: number;
|
|
67
|
+
} | {
|
|
68
|
+
$$createAt$$: number;
|
|
69
|
+
} | {
|
|
70
|
+
$$seq$$: number;
|
|
71
|
+
} | {
|
|
72
|
+
$$updateAt$$: number;
|
|
73
|
+
} | {
|
|
74
|
+
operId: number;
|
|
75
|
+
} | {
|
|
76
|
+
oper: Oper.SortAttr;
|
|
77
|
+
} | {
|
|
78
|
+
entity: number;
|
|
79
|
+
} | {
|
|
80
|
+
entityId: number;
|
|
81
|
+
} | {
|
|
82
|
+
modi: Modi.SortAttr;
|
|
83
|
+
} | {
|
|
84
|
+
user: User.SortAttr;
|
|
85
|
+
} | {
|
|
86
|
+
[k: string]: any;
|
|
87
|
+
} | OneOf<ExprOp<OpAttr | string>>;
|
|
88
|
+
export type SortNode = {
|
|
89
|
+
$attr: SortAttr;
|
|
90
|
+
$direction?: "asc" | "desc";
|
|
91
|
+
};
|
|
92
|
+
export type Sorter = SortNode[];
|
|
93
|
+
export type SelectOperation<P extends Object = Projection> = Omit<OakOperation<"select", P, Filter, Sorter>, "id">;
|
|
94
|
+
export type Selection<P extends Object = Projection> = Omit<SelectOperation<P>, "action">;
|
|
95
|
+
export type Aggregation = Omit<DeduceAggregation<Projection, Filter, Sorter>, "id">;
|
|
96
|
+
export type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "entityId" | "operId">> & (({
|
|
97
|
+
operId?: never;
|
|
98
|
+
oper: Oper.CreateSingleOperation;
|
|
99
|
+
} | {
|
|
100
|
+
operId: String<64>;
|
|
101
|
+
})) & ({
|
|
102
|
+
entity?: never;
|
|
103
|
+
entityId?: never;
|
|
104
|
+
modi: Modi.CreateSingleOperation;
|
|
105
|
+
} | {
|
|
106
|
+
entity: "modi";
|
|
107
|
+
entityId: String<64>;
|
|
108
|
+
modi: Modi.UpdateOperation;
|
|
109
|
+
} | {
|
|
110
|
+
entity: "modi";
|
|
111
|
+
entityId: String<64>;
|
|
112
|
+
} | {
|
|
113
|
+
entity?: never;
|
|
114
|
+
entityId?: never;
|
|
115
|
+
user: User.CreateSingleOperation;
|
|
116
|
+
} | {
|
|
117
|
+
entity: "user";
|
|
118
|
+
entityId: String<64>;
|
|
119
|
+
user: User.UpdateOperation;
|
|
120
|
+
} | {
|
|
121
|
+
entity: "user";
|
|
122
|
+
entityId: String<64>;
|
|
123
|
+
} | {
|
|
124
|
+
entity?: string;
|
|
125
|
+
entityId?: string;
|
|
126
|
+
[K: string]: any;
|
|
127
|
+
});
|
|
128
|
+
export type CreateSingleOperation = OakOperation<"create", CreateOperationData>;
|
|
129
|
+
export type CreateMultipleOperation = OakOperation<"create", Array<CreateOperationData>>;
|
|
130
|
+
export type CreateOperation = CreateSingleOperation | CreateMultipleOperation;
|
|
131
|
+
export type UpdateOperationData = FormUpdateData<Omit<OpSchema, "entity" | "entityId" | "operId">> & (({
|
|
132
|
+
oper: Oper.CreateSingleOperation;
|
|
133
|
+
operId?: never;
|
|
134
|
+
} | {
|
|
135
|
+
oper?: never;
|
|
136
|
+
operId?: String<64> | null;
|
|
137
|
+
})) & ({
|
|
138
|
+
modi?: Modi.CreateSingleOperation | Modi.UpdateOperation | Modi.RemoveOperation;
|
|
139
|
+
entityId?: never;
|
|
140
|
+
entity?: never;
|
|
141
|
+
} | {
|
|
142
|
+
user?: User.CreateSingleOperation | User.UpdateOperation | User.RemoveOperation;
|
|
143
|
+
entityId?: never;
|
|
144
|
+
entity?: never;
|
|
145
|
+
} | {
|
|
146
|
+
entity?: ("modi" | "user" | string) | null;
|
|
147
|
+
entityId?: String<64> | null;
|
|
148
|
+
}) & {
|
|
149
|
+
[k: string]: any;
|
|
150
|
+
};
|
|
151
|
+
export type UpdateOperation = OakOperation<"update" | string, UpdateOperationData, Filter, Sorter>;
|
|
152
|
+
export type RemoveOperationData = {} & ({
|
|
153
|
+
modi?: Modi.UpdateOperation | Modi.RemoveOperation;
|
|
154
|
+
} | {
|
|
155
|
+
user?: User.UpdateOperation | User.RemoveOperation;
|
|
156
|
+
} | {
|
|
157
|
+
[k: string]: any;
|
|
158
|
+
});
|
|
159
|
+
export type RemoveOperation = OakOperation<"remove", RemoveOperationData, Filter, Sorter>;
|
|
160
|
+
export type Operation = CreateOperation | UpdateOperation | RemoveOperation;
|
|
161
|
+
export type OperIdSubQuery = Selection<OperIdProjection>;
|
|
162
|
+
export type ModiIdSubQuery = Selection<ModiIdProjection>;
|
|
163
|
+
export type UserIdSubQuery = Selection<UserIdProjection>;
|
|
164
|
+
export type OperEntityIdSubQuery = Selection<OperEntityIdProjection>;
|
|
165
|
+
export type EntityDef = {
|
|
166
|
+
Schema: Schema;
|
|
167
|
+
OpSchema: OpSchema;
|
|
168
|
+
Action: OakMakeAction<AppendOnlyAction> | string;
|
|
169
|
+
Selection: Selection;
|
|
170
|
+
Aggregation: Aggregation;
|
|
171
|
+
Operation: Operation;
|
|
172
|
+
Create: CreateOperation;
|
|
173
|
+
Update: UpdateOperation;
|
|
174
|
+
Remove: RemoveOperation;
|
|
175
|
+
CreateSingle: CreateSingleOperation;
|
|
176
|
+
CreateMulti: CreateMultipleOperation;
|
|
177
|
+
};
|
|
178
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StorageDesc } from "../../types/Storage";
|
|
2
|
-
import { OpSchema } from "./Schema";
|
|
3
|
-
export declare const desc: StorageDesc<OpSchema>;
|
|
1
|
+
import { StorageDesc } from "../../types/Storage";
|
|
2
|
+
import { OpSchema } from "./Schema";
|
|
3
|
+
export declare const desc: StorageDesc<OpSchema>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.desc = void 0;
|
|
4
|
-
var action_1 = require("../../actions/action");
|
|
5
|
-
exports.desc = {
|
|
6
|
-
attributes: {
|
|
7
|
-
operId: {
|
|
8
|
-
type: "ref",
|
|
9
|
-
ref: "oper"
|
|
10
|
-
},
|
|
11
|
-
entity: {
|
|
12
|
-
type: "varchar",
|
|
13
|
-
params: {
|
|
14
|
-
length: 32
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
entityId: {
|
|
18
|
-
type: "varchar",
|
|
19
|
-
params: {
|
|
20
|
-
length: 64
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
actionType: "appendOnly",
|
|
25
|
-
actions: action_1.appendOnlyActions
|
|
26
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.desc = void 0;
|
|
4
|
+
var action_1 = require("../../actions/action");
|
|
5
|
+
exports.desc = {
|
|
6
|
+
attributes: {
|
|
7
|
+
operId: {
|
|
8
|
+
type: "ref",
|
|
9
|
+
ref: "oper"
|
|
10
|
+
},
|
|
11
|
+
entity: {
|
|
12
|
+
type: "varchar",
|
|
13
|
+
params: {
|
|
14
|
+
length: 32
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
entityId: {
|
|
18
|
+
type: "varchar",
|
|
19
|
+
params: {
|
|
20
|
+
length: 64
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
actionType: "appendOnly",
|
|
25
|
+
actions: action_1.appendOnlyActions
|
|
26
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StorageSchema } from "../types/Storage";
|
|
2
|
-
import { EntityDict } from "./EntityDict";
|
|
3
|
-
export declare const storageSchema: StorageSchema<EntityDict>;
|
|
1
|
+
import { StorageSchema } from "../types/Storage";
|
|
2
|
+
import { EntityDict } from "./EntityDict";
|
|
3
|
+
export declare const storageSchema: StorageSchema<EntityDict>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.storageSchema = void 0;
|
|
4
|
-
var Storage_1 = require("./Modi/Storage");
|
|
5
|
-
var Storage_2 = require("./ModiEntity/Storage");
|
|
6
|
-
var Storage_3 = require("./Oper/Storage");
|
|
7
|
-
var Storage_4 = require("./OperEntity/Storage");
|
|
8
|
-
var Storage_5 = require("./User/Storage");
|
|
9
|
-
exports.storageSchema = {
|
|
10
|
-
modi: Storage_1.desc,
|
|
11
|
-
modiEntity: Storage_2.desc,
|
|
12
|
-
oper: Storage_3.desc,
|
|
13
|
-
operEntity: Storage_4.desc,
|
|
14
|
-
user: Storage_5.desc
|
|
15
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.storageSchema = void 0;
|
|
4
|
+
var Storage_1 = require("./Modi/Storage");
|
|
5
|
+
var Storage_2 = require("./ModiEntity/Storage");
|
|
6
|
+
var Storage_3 = require("./Oper/Storage");
|
|
7
|
+
var Storage_4 = require("./OperEntity/Storage");
|
|
8
|
+
var Storage_5 = require("./User/Storage");
|
|
9
|
+
exports.storageSchema = {
|
|
10
|
+
modi: Storage_1.desc,
|
|
11
|
+
modiEntity: Storage_2.desc,
|
|
12
|
+
oper: Storage_3.desc,
|
|
13
|
+
operEntity: Storage_4.desc,
|
|
14
|
+
user: Storage_5.desc
|
|
15
|
+
};
|