oak-domain 1.1.13 → 2.0.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.
Files changed (79) hide show
  1. package/lib/base-app-domain/Modi/Schema.d.ts +29 -32
  2. package/lib/base-app-domain/ModiEntity/Schema.d.ts +24 -27
  3. package/lib/base-app-domain/Oper/Schema.d.ts +24 -27
  4. package/lib/base-app-domain/OperEntity/Schema.d.ts +25 -28
  5. package/lib/base-app-domain/User/Schema.d.ts +22 -25
  6. package/lib/checkers/index.d.ts +4 -2
  7. package/lib/compiler/schemalBuilder.js +22 -24
  8. package/lib/store/AsyncRowStore.d.ts +45 -0
  9. package/lib/store/{UniversalContext.js → AsyncRowStore.js} +39 -29
  10. package/lib/store/CascadeStore.d.ts +46 -20
  11. package/lib/store/CascadeStore.js +960 -996
  12. package/lib/store/SyncRowStore.d.ts +26 -0
  13. package/lib/store/SyncRowStore.js +45 -0
  14. package/lib/store/TriggerExecutor.d.ts +14 -14
  15. package/lib/store/TriggerExecutor.js +225 -238
  16. package/lib/store/actionDef.d.ts +5 -4
  17. package/lib/store/actionDef.js +44 -133
  18. package/lib/store/checker.d.ts +6 -0
  19. package/lib/store/checker.js +165 -0
  20. package/lib/store/filter.d.ts +5 -0
  21. package/lib/store/filter.js +395 -3
  22. package/lib/store/modi.d.ts +7 -6
  23. package/lib/store/modi.js +35 -46
  24. package/lib/store/relation.d.ts +1 -1
  25. package/lib/store/selection.js +1 -0
  26. package/lib/triggers/index.d.ts +4 -3
  27. package/lib/triggers/modi.d.ts +2 -2
  28. package/lib/triggers/modi.js +5 -5
  29. package/lib/types/AppLoader.d.ts +3 -3
  30. package/lib/types/Aspect.d.ts +3 -3
  31. package/lib/types/Auth.d.ts +25 -22
  32. package/lib/types/Connector.d.ts +7 -7
  33. package/lib/types/Context.d.ts +4 -14
  34. package/lib/types/DataType.d.ts +1 -0
  35. package/lib/types/Entity.d.ts +26 -18
  36. package/lib/types/Entity.js +9 -2
  37. package/lib/types/Exception.d.ts +6 -1
  38. package/lib/types/Exception.js +30 -13
  39. package/lib/types/RowStore.d.ts +2 -13
  40. package/lib/types/RowStore.js +1 -6
  41. package/lib/types/Storage.d.ts +1 -0
  42. package/lib/types/Trigger.d.ts +32 -48
  43. package/lib/types/Trigger.js +24 -9
  44. package/lib/types/Watcher.d.ts +7 -8
  45. package/lib/types/schema/DataTypes.d.ts +1 -1
  46. package/lib/utils/SimpleConnector.d.ts +9 -8
  47. package/lib/utils/SimpleConnector.js +4 -5
  48. package/lib/utils/random/random.d.ts +1 -0
  49. package/lib/utils/random/random.js +24 -0
  50. package/lib/utils/random/random.mp.d.ts +1 -0
  51. package/lib/utils/random/random.mp.js +25 -0
  52. package/lib/utils/random/random.web.d.ts +1 -0
  53. package/lib/utils/random/random.web.js +17 -0
  54. package/lib/utils/string.d.ts +20 -0
  55. package/lib/utils/string.js +60 -1
  56. package/lib/utils/uuid.d.ts +10 -0
  57. package/lib/utils/uuid.js +172 -1
  58. package/lib/utils/validator.d.ts +2 -2
  59. package/lib/utils/validator.js +5 -5
  60. package/package.json +5 -3
  61. package/lib/OakError.d.ts +0 -7
  62. package/lib/OakError.js +0 -15
  63. package/lib/compiler/utils.d.ts +0 -2
  64. package/lib/compiler/utils.js +0 -11
  65. package/lib/entities/Action.d.ts +0 -12
  66. package/lib/entities/Action.js +0 -17
  67. package/lib/entities/Ooperation.d.ts +0 -12
  68. package/lib/entities/Ooperation.js +0 -17
  69. package/lib/entities/Update.d.ts +0 -9
  70. package/lib/entities/Update.js +0 -44
  71. package/lib/entities/Uupdate.d.ts +0 -9
  72. package/lib/entities/Uupdate.js +0 -44
  73. package/lib/store/UniversalContext.d.ts +0 -32
  74. package/lib/store/action.d.ts +0 -6
  75. package/lib/store/action.js +0 -14
  76. package/lib/store/projection.d.ts +0 -7
  77. package/lib/store/projection.js +0 -211
  78. package/lib/store/watchers.d.ts +0 -2
  79. package/lib/store/watchers.js +0 -32
@@ -1,16 +1,12 @@
1
- import { String, Datetime, PrimaryKey } from "../../types/DataType";
1
+ import { String } from "../../types/DataType";
2
2
  import { Q_DateValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey } from "../../types/Demand";
3
3
  import { OneOf } from "../../types/Polyfill";
4
4
  import * as SubQuery from "../_SubQuery";
5
- import { FormCreateData, FormUpdateData, Operation as OakOperation, MakeAction as OakMakeAction } from "../../types/Entity";
5
+ import { FormCreateData, FormUpdateData, Operation as OakOperation, MakeAction as OakMakeAction, EntityShape } from "../../types/Entity";
6
6
  import { Action, ParticularAction, IState } from "./Action";
7
7
  import * as ModiEntity from "../ModiEntity/Schema";
8
8
  import * as OperEntity from "../OperEntity/Schema";
9
- export declare type OpSchema = {
10
- id: PrimaryKey;
11
- $$createAt$$: Datetime;
12
- $$updateAt$$: Datetime;
13
- $$deleteAt$$?: Datetime | null;
9
+ export declare type OpSchema = EntityShape & {
14
10
  targetEntity: String<32>;
15
11
  entity: String<32>;
16
12
  entityId: String<64>;
@@ -21,11 +17,7 @@ export declare type OpSchema = {
21
17
  iState?: IState | null;
22
18
  };
23
19
  export declare type OpAttr = keyof OpSchema;
24
- export declare type Schema = {
25
- id: PrimaryKey;
26
- $$createAt$$: Datetime;
27
- $$updateAt$$: Datetime;
28
- $$deleteAt$$?: Datetime | null;
20
+ export declare type Schema = EntityShape & {
29
21
  targetEntity: String<32>;
30
22
  entity: String<32>;
31
23
  entityId: String<64>;
@@ -42,6 +34,7 @@ export declare type Schema = {
42
34
  declare type AttrFilter = {
43
35
  id: Q_StringValue | SubQuery.ModiIdSubQuery;
44
36
  $$createAt$$: Q_DateValue;
37
+ $$seq$$: Q_StringValue;
45
38
  $$updateAt$$: Q_DateValue;
46
39
  targetEntity: Q_StringValue;
47
40
  entity: Q_StringValue;
@@ -56,17 +49,18 @@ export declare type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
56
49
  export declare type Projection = {
57
50
  "#id"?: NodeId;
58
51
  [k: string]: any;
59
- id: 1;
60
- $$createAt$$?: 1;
61
- $$updateAt$$?: 1;
62
- targetEntity?: 1;
63
- entity?: 1;
64
- entityId?: 1;
65
- action?: 1;
66
- data?: 1;
67
- filter?: 1;
68
- extra?: 1;
69
- iState?: 1;
52
+ id: number;
53
+ $$createAt$$?: number;
54
+ $$updateAt$$?: number;
55
+ $$seq$$?: number;
56
+ targetEntity?: number;
57
+ entity?: number;
58
+ entityId?: number;
59
+ action?: number;
60
+ data?: number;
61
+ filter?: number;
62
+ extra?: number;
63
+ iState?: number;
70
64
  modiEntity$modi?: ModiEntity.Selection & {
71
65
  $entity: "modiEntity";
72
66
  };
@@ -80,6 +74,7 @@ export declare type ExportProjection = {
80
74
  id?: string;
81
75
  $$createAt$$?: string;
82
76
  $$updateAt$$?: string;
77
+ $$seq$$?: string;
83
78
  targetEntity?: string;
84
79
  entity?: string;
85
80
  entityId?: string;
@@ -96,24 +91,26 @@ export declare type ExportProjection = {
96
91
  };
97
92
  } & Partial<ExprOp<OpAttr | string>>;
98
93
  declare type ModiIdProjection = OneOf<{
99
- id: 1;
94
+ id: number;
100
95
  }>;
101
96
  export declare type SortAttr = {
102
- id: 1;
97
+ id: number;
103
98
  } | {
104
- $$createAt$$: 1;
99
+ $$createAt$$: number;
105
100
  } | {
106
- $$updateAt$$: 1;
101
+ $$seq$$: number;
107
102
  } | {
108
- targetEntity: 1;
103
+ $$updateAt$$: number;
109
104
  } | {
110
- entity: 1;
105
+ targetEntity: number;
111
106
  } | {
112
- entityId: 1;
107
+ entity: number;
113
108
  } | {
114
- action: 1;
109
+ entityId: number;
115
110
  } | {
116
- iState: 1;
111
+ action: number;
112
+ } | {
113
+ iState: number;
117
114
  } | {
118
115
  [k: string]: any;
119
116
  } | OneOf<ExprOp<OpAttr | string>>;
@@ -1,26 +1,18 @@
1
- import { String, Datetime, PrimaryKey, ForeignKey } from "../../types/DataType";
1
+ import { String, ForeignKey } from "../../types/DataType";
2
2
  import { Q_DateValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey } from "../../types/Demand";
3
3
  import { OneOf } from "../../types/Polyfill";
4
4
  import * as SubQuery from "../_SubQuery";
5
- import { FormCreateData, FormUpdateData, Operation as OakOperation, MakeAction as OakMakeAction } from "../../types/Entity";
5
+ import { FormCreateData, FormUpdateData, Operation as OakOperation, MakeAction as OakMakeAction, EntityShape } from "../../types/Entity";
6
6
  import { AppendOnlyAction } from "../../actions/action";
7
7
  import * as Modi from "../Modi/Schema";
8
8
  import * as User from "../User/Schema";
9
- export declare type OpSchema = {
10
- id: PrimaryKey;
11
- $$createAt$$: Datetime;
12
- $$updateAt$$: Datetime;
13
- $$deleteAt$$?: Datetime | null;
9
+ export declare type OpSchema = EntityShape & {
14
10
  modiId: ForeignKey<"modi">;
15
11
  entity: "user" | string;
16
12
  entityId: String<64>;
17
13
  };
18
14
  export declare type OpAttr = keyof OpSchema;
19
- export declare type Schema = {
20
- id: PrimaryKey;
21
- $$createAt$$: Datetime;
22
- $$updateAt$$: Datetime;
23
- $$deleteAt$$?: Datetime | null;
15
+ export declare type Schema = EntityShape & {
24
16
  modiId: ForeignKey<"modi">;
25
17
  entity: "user" | string;
26
18
  entityId: String<64>;
@@ -32,6 +24,7 @@ export declare type Schema = {
32
24
  declare type AttrFilter<E> = {
33
25
  id: Q_StringValue | SubQuery.ModiEntityIdSubQuery;
34
26
  $$createAt$$: Q_DateValue;
27
+ $$seq$$: Q_StringValue;
35
28
  $$updateAt$$: Q_DateValue;
36
29
  modiId: Q_StringValue | SubQuery.ModiIdSubQuery;
37
30
  modi: Modi.Filter;
@@ -43,13 +36,14 @@ export declare type Filter<E = Q_EnumValue<"user" | string>> = MakeFilter<AttrFi
43
36
  export declare type Projection = {
44
37
  "#id"?: NodeId;
45
38
  [k: string]: any;
46
- id: 1;
47
- $$createAt$$?: 1;
48
- $$updateAt$$?: 1;
49
- modiId?: 1;
39
+ id: number;
40
+ $$createAt$$?: number;
41
+ $$updateAt$$?: number;
42
+ $$seq$$?: number;
43
+ modiId?: number;
50
44
  modi?: Modi.Projection;
51
- entity?: 1;
52
- entityId?: 1;
45
+ entity?: number;
46
+ entityId?: number;
53
47
  user?: User.Projection;
54
48
  } & Partial<ExprOp<OpAttr | string>>;
55
49
  export declare type ExportProjection = {
@@ -58,6 +52,7 @@ export declare type ExportProjection = {
58
52
  id?: string;
59
53
  $$createAt$$?: string;
60
54
  $$updateAt$$?: string;
55
+ $$seq$$?: string;
61
56
  modiId?: string;
62
57
  modi?: Modi.ExportProjection;
63
58
  entity?: string;
@@ -65,28 +60,30 @@ export declare type ExportProjection = {
65
60
  user?: User.ExportProjection;
66
61
  } & Partial<ExprOp<OpAttr | string>>;
67
62
  declare type ModiEntityIdProjection = OneOf<{
68
- id: 1;
63
+ id: number;
69
64
  }>;
70
65
  declare type ModiIdProjection = OneOf<{
71
- modiId: 1;
66
+ modiId: number;
72
67
  }>;
73
68
  declare type UserIdProjection = OneOf<{
74
- entityId: 1;
69
+ entityId: number;
75
70
  }>;
76
71
  export declare type SortAttr = {
77
- id: 1;
72
+ id: number;
78
73
  } | {
79
- $$createAt$$: 1;
74
+ $$createAt$$: number;
80
75
  } | {
81
- $$updateAt$$: 1;
76
+ $$seq$$: number;
82
77
  } | {
83
- modiId: 1;
78
+ $$updateAt$$: number;
79
+ } | {
80
+ modiId: number;
84
81
  } | {
85
82
  modi: Modi.SortAttr;
86
83
  } | {
87
- entity: 1;
84
+ entity: number;
88
85
  } | {
89
- entityId: 1;
86
+ entityId: number;
90
87
  } | {
91
88
  user: User.SortAttr;
92
89
  } | {
@@ -1,16 +1,12 @@
1
- import { String, Datetime, PrimaryKey, ForeignKey } from "../../types/DataType";
1
+ import { String, ForeignKey } from "../../types/DataType";
2
2
  import { Q_DateValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey } from "../../types/Demand";
3
3
  import { OneOf } from "../../types/Polyfill";
4
4
  import * as SubQuery from "../_SubQuery";
5
- import { FormCreateData, FormUpdateData, Operation as OakOperation, MakeAction as OakMakeAction } from "../../types/Entity";
5
+ import { FormCreateData, FormUpdateData, Operation as OakOperation, MakeAction as OakMakeAction, EntityShape } from "../../types/Entity";
6
6
  import { AppendOnlyAction } from "../../actions/action";
7
7
  import * as User from "../User/Schema";
8
8
  import * as OperEntity from "../OperEntity/Schema";
9
- export declare type OpSchema = {
10
- id: PrimaryKey;
11
- $$createAt$$: Datetime;
12
- $$updateAt$$: Datetime;
13
- $$deleteAt$$?: Datetime | null;
9
+ export declare type OpSchema = EntityShape & {
14
10
  action: String<16>;
15
11
  data: Object;
16
12
  filter?: Object | null;
@@ -18,11 +14,7 @@ export declare type OpSchema = {
18
14
  operatorId?: ForeignKey<"user"> | null;
19
15
  };
20
16
  export declare type OpAttr = keyof OpSchema;
21
- export declare type Schema = {
22
- id: PrimaryKey;
23
- $$createAt$$: Datetime;
24
- $$updateAt$$: Datetime;
25
- $$deleteAt$$?: Datetime | null;
17
+ export declare type Schema = EntityShape & {
26
18
  action: String<16>;
27
19
  data: Object;
28
20
  filter?: Object | null;
@@ -36,6 +28,7 @@ export declare type Schema = {
36
28
  declare type AttrFilter = {
37
29
  id: Q_StringValue | SubQuery.OperIdSubQuery;
38
30
  $$createAt$$: Q_DateValue;
31
+ $$seq$$: Q_StringValue;
39
32
  $$updateAt$$: Q_DateValue;
40
33
  action: Q_StringValue;
41
34
  data: Object;
@@ -48,14 +41,15 @@ export declare type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
48
41
  export declare type Projection = {
49
42
  "#id"?: NodeId;
50
43
  [k: string]: any;
51
- id: 1;
52
- $$createAt$$?: 1;
53
- $$updateAt$$?: 1;
54
- action?: 1;
55
- data?: 1;
56
- filter?: 1;
57
- extra?: 1;
58
- operatorId?: 1;
44
+ id: number;
45
+ $$createAt$$?: number;
46
+ $$updateAt$$?: number;
47
+ $$seq$$?: number;
48
+ action?: number;
49
+ data?: number;
50
+ filter?: number;
51
+ extra?: number;
52
+ operatorId?: number;
59
53
  operator?: User.Projection;
60
54
  operEntity$oper?: OperEntity.Selection & {
61
55
  $entity: "operEntity";
@@ -67,6 +61,7 @@ export declare type ExportProjection = {
67
61
  id?: string;
68
62
  $$createAt$$?: string;
69
63
  $$updateAt$$?: string;
64
+ $$seq$$?: string;
70
65
  action?: string;
71
66
  data?: string;
72
67
  filter?: string;
@@ -78,21 +73,23 @@ export declare type ExportProjection = {
78
73
  };
79
74
  } & Partial<ExprOp<OpAttr | string>>;
80
75
  declare type OperIdProjection = OneOf<{
81
- id: 1;
76
+ id: number;
82
77
  }>;
83
78
  declare type UserIdProjection = OneOf<{
84
- operatorId: 1;
79
+ operatorId: number;
85
80
  }>;
86
81
  export declare type SortAttr = {
87
- id: 1;
82
+ id: number;
88
83
  } | {
89
- $$createAt$$: 1;
84
+ $$createAt$$: number;
90
85
  } | {
91
- $$updateAt$$: 1;
86
+ $$seq$$: number;
92
87
  } | {
93
- action: 1;
88
+ $$updateAt$$: number;
94
89
  } | {
95
- operatorId: 1;
90
+ action: number;
91
+ } | {
92
+ operatorId: number;
96
93
  } | {
97
94
  operator: User.SortAttr;
98
95
  } | {
@@ -1,27 +1,19 @@
1
- import { String, Datetime, PrimaryKey, ForeignKey } from "../../types/DataType";
1
+ import { String, ForeignKey } from "../../types/DataType";
2
2
  import { Q_DateValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey } from "../../types/Demand";
3
3
  import { OneOf } from "../../types/Polyfill";
4
4
  import * as SubQuery from "../_SubQuery";
5
- import { FormCreateData, FormUpdateData, Operation as OakOperation, MakeAction as OakMakeAction } from "../../types/Entity";
5
+ import { FormCreateData, FormUpdateData, Operation as OakOperation, MakeAction as OakMakeAction, EntityShape } from "../../types/Entity";
6
6
  import { AppendOnlyAction } from "../../actions/action";
7
7
  import * as Oper from "../Oper/Schema";
8
8
  import * as Modi from "../Modi/Schema";
9
9
  import * as User from "../User/Schema";
10
- export declare type OpSchema = {
11
- id: PrimaryKey;
12
- $$createAt$$: Datetime;
13
- $$updateAt$$: Datetime;
14
- $$deleteAt$$?: Datetime | null;
10
+ export declare type OpSchema = EntityShape & {
15
11
  operId: ForeignKey<"oper">;
16
12
  entity: "modi" | "user" | string;
17
13
  entityId: String<64>;
18
14
  };
19
15
  export declare type OpAttr = keyof OpSchema;
20
- export declare type Schema = {
21
- id: PrimaryKey;
22
- $$createAt$$: Datetime;
23
- $$updateAt$$: Datetime;
24
- $$deleteAt$$?: Datetime | null;
16
+ export declare type Schema = EntityShape & {
25
17
  operId: ForeignKey<"oper">;
26
18
  entity: "modi" | "user" | string;
27
19
  entityId: String<64>;
@@ -34,6 +26,7 @@ export declare type Schema = {
34
26
  declare type AttrFilter<E> = {
35
27
  id: Q_StringValue | SubQuery.OperEntityIdSubQuery;
36
28
  $$createAt$$: Q_DateValue;
29
+ $$seq$$: Q_StringValue;
37
30
  $$updateAt$$: Q_DateValue;
38
31
  operId: Q_StringValue | SubQuery.OperIdSubQuery;
39
32
  oper: Oper.Filter;
@@ -46,13 +39,14 @@ export declare type Filter<E = Q_EnumValue<"modi" | "user" | string>> = MakeFilt
46
39
  export declare type Projection = {
47
40
  "#id"?: NodeId;
48
41
  [k: string]: any;
49
- id: 1;
50
- $$createAt$$?: 1;
51
- $$updateAt$$?: 1;
52
- operId?: 1;
42
+ id: number;
43
+ $$createAt$$?: number;
44
+ $$updateAt$$?: number;
45
+ $$seq$$?: number;
46
+ operId?: number;
53
47
  oper?: Oper.Projection;
54
- entity?: 1;
55
- entityId?: 1;
48
+ entity?: number;
49
+ entityId?: number;
56
50
  modi?: Modi.Projection;
57
51
  user?: User.Projection;
58
52
  } & Partial<ExprOp<OpAttr | string>>;
@@ -62,6 +56,7 @@ export declare type ExportProjection = {
62
56
  id?: string;
63
57
  $$createAt$$?: string;
64
58
  $$updateAt$$?: string;
59
+ $$seq$$?: string;
65
60
  operId?: string;
66
61
  oper?: Oper.ExportProjection;
67
62
  entity?: string;
@@ -70,31 +65,33 @@ export declare type ExportProjection = {
70
65
  user?: User.ExportProjection;
71
66
  } & Partial<ExprOp<OpAttr | string>>;
72
67
  declare type OperEntityIdProjection = OneOf<{
73
- id: 1;
68
+ id: number;
74
69
  }>;
75
70
  declare type OperIdProjection = OneOf<{
76
- operId: 1;
71
+ operId: number;
77
72
  }>;
78
73
  declare type ModiIdProjection = OneOf<{
79
- entityId: 1;
74
+ entityId: number;
80
75
  }>;
81
76
  declare type UserIdProjection = OneOf<{
82
- entityId: 1;
77
+ entityId: number;
83
78
  }>;
84
79
  export declare type SortAttr = {
85
- id: 1;
80
+ id: number;
86
81
  } | {
87
- $$createAt$$: 1;
82
+ $$createAt$$: number;
88
83
  } | {
89
- $$updateAt$$: 1;
84
+ $$seq$$: number;
90
85
  } | {
91
- operId: 1;
86
+ $$updateAt$$: number;
87
+ } | {
88
+ operId: number;
92
89
  } | {
93
90
  oper: Oper.SortAttr;
94
91
  } | {
95
- entity: 1;
92
+ entity: number;
96
93
  } | {
97
- entityId: 1;
94
+ entityId: number;
98
95
  } | {
99
96
  modi: Modi.SortAttr;
100
97
  } | {
@@ -1,27 +1,19 @@
1
- import { String, Text, Datetime, PrimaryKey } from "../../types/DataType";
1
+ import { String, Text } from "../../types/DataType";
2
2
  import { Q_DateValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey } from "../../types/Demand";
3
3
  import { OneOf } from "../../types/Polyfill";
4
4
  import * as SubQuery from "../_SubQuery";
5
- import { FormCreateData, FormUpdateData, Operation as OakOperation, MakeAction as OakMakeAction } from "../../types/Entity";
5
+ import { FormCreateData, FormUpdateData, Operation as OakOperation, MakeAction as OakMakeAction, EntityShape } from "../../types/Entity";
6
6
  import { GenericAction, RelationAction } from "../../actions/action";
7
7
  import * as Oper from "../Oper/Schema";
8
8
  import * as OperEntity from "../OperEntity/Schema";
9
9
  import * as ModiEntity from "../ModiEntity/Schema";
10
- export declare type OpSchema = {
11
- id: PrimaryKey;
12
- $$createAt$$: Datetime;
13
- $$updateAt$$: Datetime;
14
- $$deleteAt$$?: Datetime | null;
10
+ export declare type OpSchema = EntityShape & {
15
11
  name?: String<16> | null;
16
12
  nickname?: String<64> | null;
17
13
  password?: Text | null;
18
14
  };
19
15
  export declare type OpAttr = keyof OpSchema;
20
- export declare type Schema = {
21
- id: PrimaryKey;
22
- $$createAt$$: Datetime;
23
- $$updateAt$$: Datetime;
24
- $$deleteAt$$?: Datetime | null;
16
+ export declare type Schema = EntityShape & {
25
17
  name?: String<16> | null;
26
18
  nickname?: String<64> | null;
27
19
  password?: Text | null;
@@ -34,6 +26,7 @@ export declare type Schema = {
34
26
  declare type AttrFilter = {
35
27
  id: Q_StringValue | SubQuery.UserIdSubQuery;
36
28
  $$createAt$$: Q_DateValue;
29
+ $$seq$$: Q_StringValue;
37
30
  $$updateAt$$: Q_DateValue;
38
31
  name: Q_StringValue;
39
32
  nickname: Q_StringValue;
@@ -43,12 +36,13 @@ export declare type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
43
36
  export declare type Projection = {
44
37
  "#id"?: NodeId;
45
38
  [k: string]: any;
46
- id: 1;
47
- $$createAt$$?: 1;
48
- $$updateAt$$?: 1;
49
- name?: 1;
50
- nickname?: 1;
51
- password?: 1;
39
+ id: number;
40
+ $$createAt$$?: number;
41
+ $$updateAt$$?: number;
42
+ $$seq$$?: number;
43
+ name?: number;
44
+ nickname?: number;
45
+ password?: number;
52
46
  oper$operator?: Oper.Selection & {
53
47
  $entity: "oper";
54
48
  };
@@ -65,6 +59,7 @@ export declare type ExportProjection = {
65
59
  id?: string;
66
60
  $$createAt$$?: string;
67
61
  $$updateAt$$?: string;
62
+ $$seq$$?: string;
68
63
  name?: string;
69
64
  nickname?: string;
70
65
  password?: string;
@@ -79,20 +74,22 @@ export declare type ExportProjection = {
79
74
  };
80
75
  } & Partial<ExprOp<OpAttr | string>>;
81
76
  declare type UserIdProjection = OneOf<{
82
- id: 1;
77
+ id: number;
83
78
  }>;
84
79
  export declare type SortAttr = {
85
- id: 1;
80
+ id: number;
86
81
  } | {
87
- $$createAt$$: 1;
82
+ $$createAt$$: number;
88
83
  } | {
89
- $$updateAt$$: 1;
84
+ $$seq$$: number;
90
85
  } | {
91
- name: 1;
86
+ $$updateAt$$: number;
92
87
  } | {
93
- nickname: 1;
88
+ name: number;
94
89
  } | {
95
- password: 1;
90
+ nickname: number;
91
+ } | {
92
+ password: number;
96
93
  } | {
97
94
  [k: string]: any;
98
95
  } | OneOf<ExprOp<OpAttr | string>>;
@@ -1,3 +1,5 @@
1
1
  import { EntityDict } from '../base-app-domain';
2
- import { StorageSchema, EntityDict as BaseEntityDict, Context } from '../types';
3
- export declare function createDynamicCheckers<ED extends EntityDict & BaseEntityDict, Cxt extends Context<ED>>(schema: StorageSchema<ED>): import("../types").Checker<ED, keyof ED, Cxt>[];
2
+ import { AsyncContext } from '../store/AsyncRowStore';
3
+ import { SyncContext } from '../store/SyncRowStore';
4
+ import { StorageSchema, EntityDict as BaseEntityDict } from '../types';
5
+ export declare function createDynamicCheckers<ED extends EntityDict & BaseEntityDict, Cxt extends AsyncContext<ED> | SyncContext<ED>>(schema: StorageSchema<ED>): import("../types").RowChecker<ED, keyof ED, Cxt>[];