oak-domain 2.6.6 → 2.6.8

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.
Files changed (41) hide show
  1. package/lib/base-app-domain/Modi/Schema.d.ts +0 -11
  2. package/lib/base-app-domain/Modi/Storage.js +5 -0
  3. package/lib/base-app-domain/ModiEntity/Storage.js +3 -0
  4. package/lib/base-app-domain/Oper/Schema.d.ts +6 -0
  5. package/lib/base-app-domain/Oper/Storage.js +9 -0
  6. package/lib/base-app-domain/OperEntity/Schema.d.ts +4 -31
  7. package/lib/base-app-domain/OperEntity/Storage.js +4 -1
  8. package/lib/base-app-domain/User/Schema.d.ts +11 -11
  9. package/lib/base-app-domain/UserEntityGrant/Schema.d.ts +11 -11
  10. package/lib/base-app-domain/UserEntityGrant/Storage.js +3 -0
  11. package/lib/checkers/index.js +1 -0
  12. package/lib/compiler/env.d.ts +1 -0
  13. package/lib/compiler/env.js +2 -1
  14. package/lib/compiler/schemalBuilder.js +33 -16
  15. package/lib/entities/Oper.d.ts +1 -0
  16. package/lib/entities/Oper.js +1 -0
  17. package/lib/store/AsyncRowStore.d.ts +5 -1
  18. package/lib/store/CascadeStore.d.ts +7 -1
  19. package/lib/store/CascadeStore.js +387 -131
  20. package/lib/store/SyncRowStore.d.ts +1 -1
  21. package/lib/store/TriggerExecutor.js +1 -1
  22. package/lib/store/checker.d.ts +2 -1
  23. package/lib/store/checker.js +158 -5
  24. package/lib/store/modi.js +2 -2
  25. package/lib/store/relation.js +1 -0
  26. package/lib/timers/oper.d.ts +18 -0
  27. package/lib/timers/oper.js +60 -0
  28. package/lib/timers/vaccum.d.ts +20 -0
  29. package/lib/timers/vaccum.js +176 -0
  30. package/lib/types/Connector.d.ts +2 -2
  31. package/lib/types/Entity.d.ts +2 -1
  32. package/lib/types/Exception.d.ts +5 -2
  33. package/lib/types/Exception.js +15 -1
  34. package/lib/types/RowStore.d.ts +4 -0
  35. package/lib/utils/SimpleConnector.d.ts +2 -2
  36. package/lib/utils/SimpleConnector.js +24 -14
  37. package/lib/utils/validator.js +1 -1
  38. package/package.json +1 -1
  39. package/src/entities/Oper.ts +2 -0
  40. package/lib/store/selection.d.ts +0 -19
  41. package/lib/store/selection.js +0 -265
@@ -1,6 +1,6 @@
1
1
  import { EntityDict, OperateOption, SelectOption, OperationResult, AggregationResult } from "../types/Entity";
2
2
  import { EntityDict as BaseEntityDict } from '../base-app-domain';
3
- import { RowStore } from '../types/RowStore';
3
+ import { OperationRewriter, RowStore, SelectionRewriter } from '../types/RowStore';
4
4
  import { StorageSchema } from '../types/Storage';
5
5
  import { SyncContext } from "./SyncRowStore";
6
6
  import { AsyncContext } from "./AsyncRowStore";
@@ -9,6 +9,12 @@ export declare abstract class CascadeStore<ED extends EntityDict & BaseEntityDic
9
9
  constructor(storageSchema: StorageSchema<ED>);
10
10
  protected abstract supportManyToOneJoin(): boolean;
11
11
  protected abstract supportMultipleCreate(): boolean;
12
+ private selectionRewriters;
13
+ private operationRewriters;
14
+ private reinforceSelection;
15
+ private reinforceOperation;
16
+ registerOperationRewriter(rewriter: OperationRewriter<ED>): void;
17
+ registerSelectionRewriter(rewriter: SelectionRewriter<ED>): void;
12
18
  protected abstract selectAbjointRow<T extends keyof ED, OP extends SelectOption, Cxt extends SyncContext<ED>>(entity: T, selection: ED[T]['Selection'], context: Cxt, option: OP): Partial<ED[T]['Schema']>[];
13
19
  protected abstract updateAbjointRow<T extends keyof ED, OP extends OperateOption, Cxt extends SyncContext<ED>>(entity: T, operation: ED[T]['Operation'], context: Cxt, option: OP): number;
14
20
  protected abstract selectAbjointRowAsync<T extends keyof ED, OP extends SelectOption, Cxt extends AsyncContext<ED>>(entity: T, selection: ED[T]['Selection'], context: Cxt, option: OP): Promise<Partial<ED[T]['Schema']>[]>;