oak-domain 4.0.3 → 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 +1 -2
- package/lib/base-app-domain/ActionDefDict.d.ts +2 -2
- package/lib/base-app-domain/I18n/Schema.d.ts +1 -2
- package/lib/base-app-domain/Modi/Schema.d.ts +1 -2
- package/lib/base-app-domain/ModiEntity/Schema.d.ts +1 -2
- package/lib/base-app-domain/Oper/Schema.d.ts +8 -3
- package/lib/base-app-domain/Oper/Storage.js +19 -1
- package/lib/base-app-domain/OperEntity/Schema.d.ts +1 -2
- package/lib/base-app-domain/Path/Schema.d.ts +1 -2
- package/lib/base-app-domain/Relation/Schema.d.ts +1 -2
- package/lib/base-app-domain/RelationAuth/Schema.d.ts +1 -2
- 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 +1 -2
- package/lib/base-app-domain/UserEntityClaim/Schema.d.ts +1 -2
- 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 +1 -2
- package/lib/base-app-domain/UserRelation/Schema.d.ts +1 -2
- 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 +1058 -460
- 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 +2 -1
- 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 +1 -1
- package/lib/store/TriggerExecutor.js +1 -1
- package/lib/store/actionDef.js +4 -4
- 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 +1 -1
- package/lib/types/Configuration.d.ts +42 -0
- package/lib/types/Configuration.js +3 -0
- package/lib/types/Connector.d.ts +1 -1
- package/lib/types/Context.d.ts +1 -1
- package/lib/types/Entity.d.ts +4 -4
- package/lib/types/Environment.d.ts +3 -0
- 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 +1 -1
- package/lib/utils/SimpleConnector.js +1 -1
- package/lib/utils/assert.d.ts +0 -1
- 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
|
@@ -5,7 +5,7 @@ export declare abstract class SyncContext<ED extends EntityDict> implements Cont
|
|
|
5
5
|
constructor(rowStore: SyncRowStore<ED, SyncContext<ED>>);
|
|
6
6
|
abstract getCurrentUserId(allowUnloggedIn?: boolean): string | undefined;
|
|
7
7
|
abstract isRoot(): boolean;
|
|
8
|
-
abstract toString(): string
|
|
8
|
+
abstract toString(): Promise<string>;
|
|
9
9
|
begin(option?: TxnOption): void;
|
|
10
10
|
commit(): void;
|
|
11
11
|
rollback(): void;
|
package/lib/store/actionDef.js
CHANGED
|
@@ -146,7 +146,7 @@ function makeIntrinsicCTWs(schema, actionDefDict) {
|
|
|
146
146
|
action: 'create',
|
|
147
147
|
type: 'data',
|
|
148
148
|
entity,
|
|
149
|
-
priority: 10,
|
|
149
|
+
priority: 10,
|
|
150
150
|
checker: (data) => {
|
|
151
151
|
if (data instanceof Array) {
|
|
152
152
|
data.forEach(ele => {
|
|
@@ -181,7 +181,7 @@ function makeIntrinsicCTWs(schema, actionDefDict) {
|
|
|
181
181
|
entity,
|
|
182
182
|
action: 'create',
|
|
183
183
|
type: 'logicalData',
|
|
184
|
-
priority: types_1.CHECKER_MAX_PRIORITY,
|
|
184
|
+
priority: types_1.CHECKER_MAX_PRIORITY,
|
|
185
185
|
checker: (operation, context) => {
|
|
186
186
|
const { data } = operation;
|
|
187
187
|
if (data instanceof Array) {
|
|
@@ -197,9 +197,9 @@ function makeIntrinsicCTWs(schema, actionDefDict) {
|
|
|
197
197
|
}
|
|
198
198
|
}, {
|
|
199
199
|
entity,
|
|
200
|
-
action: 'update',
|
|
200
|
+
action: 'update',
|
|
201
201
|
type: 'logicalData',
|
|
202
|
-
priority: types_1.CHECKER_MAX_PRIORITY,
|
|
202
|
+
priority: types_1.CHECKER_MAX_PRIORITY,
|
|
203
203
|
checker: (operation, context) => {
|
|
204
204
|
const { data, filter: operationFilter } = operation;
|
|
205
205
|
if (data) {
|