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
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ForeignKey, JsonProjection } from "../../types/DataType";
|
|
2
2
|
import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, JsonFilter, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
3
3
|
import { OneOf } from "../../types/Polyfill";
|
|
4
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
4
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "../../types/Entity";
|
|
5
5
|
import { GenericAction } from "../../actions/action";
|
|
6
|
-
import { EntityShape } from "../../types/Entity";
|
|
7
6
|
import * as Relation from "../Relation/Schema";
|
|
8
7
|
import * as Path from "../Path/Schema";
|
|
9
8
|
import * as ModiEntity from "../ModiEntity/Schema";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const ActionDefDict: {
|
|
2
2
|
modi: {
|
|
3
|
-
iState: import("
|
|
3
|
+
iState: import("../types").ActionDef<string, string>;
|
|
4
4
|
};
|
|
5
5
|
user: {
|
|
6
|
-
userState: import("
|
|
6
|
+
userState: import("../types").ActionDef<string, string>;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
2
2
|
import { OneOf } from "../../types/Polyfill";
|
|
3
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
3
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "../../types/Entity";
|
|
4
4
|
import { GenericAction } from "../../actions/action";
|
|
5
5
|
import { String } from "../../types/DataType";
|
|
6
|
-
import { EntityShape } from "../../types/Entity";
|
|
7
6
|
import * as ModiEntity from "../ModiEntity/Schema";
|
|
8
7
|
import * as OperEntity from "../OperEntity/Schema";
|
|
9
8
|
export type OpSchema = EntityShape & {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
2
2
|
import { OneOf } from "../../types/Polyfill";
|
|
3
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
3
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "../../types/Entity";
|
|
4
4
|
import { Action, ParticularAction, IState } from "./Action";
|
|
5
5
|
import { String } from "../../types/DataType";
|
|
6
|
-
import { EntityShape } from "../../types/Entity";
|
|
7
6
|
import * as ModiEntity from "../ModiEntity/Schema";
|
|
8
7
|
export type OpSchema = EntityShape & {
|
|
9
8
|
targetEntity: String<32>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ForeignKey } from "../../types/DataType";
|
|
2
2
|
import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey } from "../../types/Demand";
|
|
3
3
|
import { OneOf } from "../../types/Polyfill";
|
|
4
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction } from "../../types/Entity";
|
|
4
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, EntityShape } from "../../types/Entity";
|
|
5
5
|
import { AppendOnlyAction } from "../../actions/action";
|
|
6
6
|
import { String } from "../../types/DataType";
|
|
7
|
-
import { EntityShape } from "../../types/Entity";
|
|
8
7
|
import * as Modi from "../Modi/Schema";
|
|
9
8
|
import * as ActionAuth from "../ActionAuth/Schema";
|
|
10
9
|
import * as I18n from "../I18n/Schema";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ForeignKey } from "../../types/DataType";
|
|
2
2
|
import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
3
3
|
import { OneOf } from "../../types/Polyfill";
|
|
4
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
4
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "../../types/Entity";
|
|
5
5
|
import { AppendOnlyAction } from "../../actions/action";
|
|
6
|
-
import { String } from "../../types/DataType";
|
|
7
|
-
import { EntityShape } from "../../types/Entity";
|
|
6
|
+
import { String, Datetime } from "../../types/DataType";
|
|
8
7
|
import * as User from "../User/Schema";
|
|
9
8
|
import * as OperEntity from "../OperEntity/Schema";
|
|
10
9
|
export type OpSchema = EntityShape & {
|
|
@@ -14,6 +13,7 @@ export type OpSchema = EntityShape & {
|
|
|
14
13
|
extra?: Object | null;
|
|
15
14
|
operatorId?: ForeignKey<"user"> | null;
|
|
16
15
|
targetEntity: String<32>;
|
|
16
|
+
bornAt: Datetime;
|
|
17
17
|
};
|
|
18
18
|
export type OpAttr = keyof OpSchema;
|
|
19
19
|
export type Schema = EntityShape & {
|
|
@@ -23,6 +23,7 @@ export type Schema = EntityShape & {
|
|
|
23
23
|
extra?: Object | null;
|
|
24
24
|
operatorId?: ForeignKey<"user"> | null;
|
|
25
25
|
targetEntity: String<32>;
|
|
26
|
+
bornAt: Datetime;
|
|
26
27
|
operator?: User.Schema | null;
|
|
27
28
|
operEntity$oper?: Array<OperEntity.Schema>;
|
|
28
29
|
operEntity$oper$$aggr?: AggregationResult<OperEntity.Schema>;
|
|
@@ -41,6 +42,7 @@ type AttrFilter = {
|
|
|
41
42
|
operatorId: Q_StringValue;
|
|
42
43
|
operator: User.Filter;
|
|
43
44
|
targetEntity: Q_StringValue;
|
|
45
|
+
bornAt: Q_DateValue;
|
|
44
46
|
operEntity$oper: OperEntity.Filter & SubQueryPredicateMetadata;
|
|
45
47
|
};
|
|
46
48
|
export type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
|
@@ -58,6 +60,7 @@ export type Projection = {
|
|
|
58
60
|
operatorId?: number;
|
|
59
61
|
operator?: User.Projection;
|
|
60
62
|
targetEntity?: number;
|
|
63
|
+
bornAt?: number;
|
|
61
64
|
operEntity$oper?: OperEntity.Selection & {
|
|
62
65
|
$entity: "operEntity";
|
|
63
66
|
};
|
|
@@ -87,6 +90,8 @@ export type SortAttr = {
|
|
|
87
90
|
operator: User.SortAttr;
|
|
88
91
|
} | {
|
|
89
92
|
targetEntity: number;
|
|
93
|
+
} | {
|
|
94
|
+
bornAt: number;
|
|
90
95
|
} | {
|
|
91
96
|
[k: string]: any;
|
|
92
97
|
} | OneOf<ExprOp<OpAttr | string>>;
|
|
@@ -31,8 +31,26 @@ exports.desc = {
|
|
|
31
31
|
params: {
|
|
32
32
|
length: 32
|
|
33
33
|
}
|
|
34
|
+
},
|
|
35
|
+
bornAt: {
|
|
36
|
+
notNull: true,
|
|
37
|
+
type: "datetime"
|
|
34
38
|
}
|
|
35
39
|
},
|
|
36
40
|
actionType: "appendOnly",
|
|
37
|
-
actions: action_1.appendOnlyActions
|
|
41
|
+
actions: action_1.appendOnlyActions,
|
|
42
|
+
indexes: [
|
|
43
|
+
{
|
|
44
|
+
name: 'index_bornAt_operatorId',
|
|
45
|
+
attributes: [
|
|
46
|
+
{
|
|
47
|
+
name: 'bornAt',
|
|
48
|
+
direction: 'DESC',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "operatorId",
|
|
52
|
+
},
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
38
56
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ForeignKey } from "../../types/DataType";
|
|
2
2
|
import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey } from "../../types/Demand";
|
|
3
3
|
import { OneOf } from "../../types/Polyfill";
|
|
4
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction } from "../../types/Entity";
|
|
4
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, EntityShape } from "../../types/Entity";
|
|
5
5
|
import { AppendOnlyAction } from "../../actions/action";
|
|
6
6
|
import { String } from "../../types/DataType";
|
|
7
|
-
import { EntityShape } from "../../types/Entity";
|
|
8
7
|
import * as Oper from "../Oper/Schema";
|
|
9
8
|
import * as ActionAuth from "../ActionAuth/Schema";
|
|
10
9
|
import * as I18n from "../I18n/Schema";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Q_DateValue, Q_BooleanValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
2
2
|
import { OneOf } from "../../types/Polyfill";
|
|
3
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
3
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "../../types/Entity";
|
|
4
4
|
import { GenericAction } from "../../actions/action";
|
|
5
5
|
import { String, Boolean } from "../../types/DataType";
|
|
6
|
-
import { EntityShape } from "../../types/Entity";
|
|
7
6
|
import * as ActionAuth from "../ActionAuth/Schema";
|
|
8
7
|
import * as RelationAuth from "../RelationAuth/Schema";
|
|
9
8
|
import * as ModiEntity from "../ModiEntity/Schema";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
2
2
|
import { OneOf } from "../../types/Polyfill";
|
|
3
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
3
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "../../types/Entity";
|
|
4
4
|
import { GenericAction } from "../../actions/action";
|
|
5
5
|
import { String } from "../../types/DataType";
|
|
6
|
-
import { EntityShape } from "../../types/Entity";
|
|
7
6
|
import * as ActionAuth from "../ActionAuth/Schema";
|
|
8
7
|
import * as RelationAuth from "../RelationAuth/Schema";
|
|
9
8
|
import * as UserEntityClaim from "../UserEntityClaim/Schema";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ForeignKey } from "../../types/DataType";
|
|
2
2
|
import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
3
3
|
import { OneOf } from "../../types/Polyfill";
|
|
4
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
4
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "../../types/Entity";
|
|
5
5
|
import { GenericAction } from "../../actions/action";
|
|
6
|
-
import { EntityShape } from "../../types/Entity";
|
|
7
6
|
import * as Relation from "../Relation/Schema";
|
|
8
7
|
import * as Path from "../Path/Schema";
|
|
9
8
|
import * as ModiEntity from "../ModiEntity/Schema";
|
|
@@ -4,6 +4,7 @@ export type UserAction = 'mergeTo' | string;
|
|
|
4
4
|
export type UserState = 'normal' | 'merged' | string;
|
|
5
5
|
export type ParticularAction = UserAction;
|
|
6
6
|
export declare const actions: string[];
|
|
7
|
+
export declare const UserActionDef: ActionDef<UserAction, UserState>;
|
|
7
8
|
export type Action = GenericAction | ParticularAction | RelationAction | string;
|
|
8
9
|
export declare const ActionDefDict: {
|
|
9
10
|
userState: ActionDef<string, string>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActionDefDict = exports.actions = void 0;
|
|
3
|
+
exports.ActionDefDict = exports.UserActionDef = exports.actions = void 0;
|
|
4
4
|
exports.actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "grant", "revoke", "mergeTo"];
|
|
5
|
-
|
|
5
|
+
exports.UserActionDef = {
|
|
6
6
|
stm: {
|
|
7
7
|
mergeTo: ['normal', 'merged'],
|
|
8
8
|
},
|
|
9
9
|
};
|
|
10
10
|
exports.ActionDefDict = {
|
|
11
|
-
userState: UserActionDef
|
|
11
|
+
userState: exports.UserActionDef
|
|
12
12
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ForeignKey } from "../../types/DataType";
|
|
2
2
|
import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
3
3
|
import { OneOf } from "../../types/Polyfill";
|
|
4
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
4
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "../../types/Entity";
|
|
5
5
|
import { Action, ParticularAction, UserState } from "./Action";
|
|
6
6
|
import { RelationAction } from "../../actions/action";
|
|
7
7
|
import { String, Text } from "../../types/DataType";
|
|
8
|
-
import { EntityShape } from "../../types/Entity";
|
|
9
8
|
import * as Oper from "../Oper/Schema";
|
|
10
9
|
import * as UserEntityClaim from "../UserEntityClaim/Schema";
|
|
11
10
|
import * as UserRelation from "../UserRelation/Schema";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ForeignKey } from "../../types/DataType";
|
|
2
2
|
import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
3
3
|
import { OneOf } from "../../types/Polyfill";
|
|
4
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
4
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "../../types/Entity";
|
|
5
5
|
import { GenericAction } from "../../actions/action";
|
|
6
6
|
import { String } from "../../types/DataType";
|
|
7
|
-
import { EntityShape } from "../../types/Entity";
|
|
8
7
|
import * as UserEntityGrant from "../UserEntityGrant/Schema";
|
|
9
8
|
import * as User from "../User/Schema";
|
|
10
9
|
import * as Relation from "../Relation/Schema";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenericAction } from "../../actions/action";
|
|
2
|
-
export type ParticularAction = 'confirm';
|
|
3
|
-
export declare const actions: string[];
|
|
4
|
-
export type Action = GenericAction | ParticularAction | string;
|
|
5
|
-
export declare const ActionDefDict: {};
|
|
1
|
+
import { GenericAction } from "../../actions/action";
|
|
2
|
+
export type ParticularAction = 'confirm';
|
|
3
|
+
export declare const actions: string[];
|
|
4
|
+
export type Action = GenericAction | ParticularAction | string;
|
|
5
|
+
export declare const ActionDefDict: {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActionDefDict = exports.actions = void 0;
|
|
4
|
-
exports.actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "confirm"];
|
|
5
|
-
exports.ActionDefDict = {};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActionDefDict = exports.actions = void 0;
|
|
4
|
+
exports.actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "confirm"];
|
|
5
|
+
exports.ActionDefDict = {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { JsonProjection } from "../../types/DataType";
|
|
2
2
|
import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, JsonFilter, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
3
3
|
import { OneOf } from "../../types/Polyfill";
|
|
4
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
4
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "../../types/Entity";
|
|
5
5
|
import { GenericAction } from "../../actions/action";
|
|
6
6
|
import { String } from "../../types/DataType";
|
|
7
|
-
import { EntityShape } from "../../types/Entity";
|
|
8
7
|
import * as UserEntityClaim from "../UserEntityClaim/Schema";
|
|
9
8
|
import * as ModiEntity from "../ModiEntity/Schema";
|
|
10
9
|
import * as OperEntity from "../OperEntity/Schema";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ForeignKey } from "../../types/DataType";
|
|
2
2
|
import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "../../types/Demand";
|
|
3
3
|
import { OneOf } from "../../types/Polyfill";
|
|
4
|
-
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult } from "../../types/Entity";
|
|
4
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "../../types/Entity";
|
|
5
5
|
import { GenericAction } from "../../actions/action";
|
|
6
6
|
import { String } from "../../types/DataType";
|
|
7
|
-
import { EntityShape } from "../../types/Entity";
|
|
8
7
|
import * as User from "../User/Schema";
|
|
9
8
|
import * as Relation from "../Relation/Schema";
|
|
10
9
|
import * as UserEntityClaim from "../UserEntityClaim/Schema";
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Hash } from 'crypto';
|
|
3
|
-
/**
|
|
4
|
-
* 这个类的作用是把项目和所有相关的模块下的locales编译成为src/data/i18n中的数据
|
|
5
|
-
*/
|
|
6
|
-
export default class LocaleBuilder {
|
|
7
|
-
asLib: boolean;
|
|
8
|
-
dependencies: string[];
|
|
9
|
-
pwd: string;
|
|
10
|
-
locales: Record<string, [string, string, string, object]>;
|
|
11
|
-
hash: Hash;
|
|
12
|
-
constructor(asLib?: boolean);
|
|
13
|
-
/**
|
|
14
|
-
* 将locales输出成为data/i18n.ts中的数据
|
|
15
|
-
* 如果有Dependency需要引出来
|
|
16
|
-
*/
|
|
17
|
-
private outputDataFile;
|
|
18
|
-
/**
|
|
19
|
-
* 这里不能直接用require, webpack貌似有缓存
|
|
20
|
-
* @param filepath
|
|
21
|
-
*/
|
|
22
|
-
private readLocaleFileContent;
|
|
23
|
-
private parseFile;
|
|
24
|
-
private traverse;
|
|
25
|
-
private buildProject;
|
|
26
|
-
build(watch?: boolean): void;
|
|
27
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Hash } from 'crypto';
|
|
3
|
+
/**
|
|
4
|
+
* 这个类的作用是把项目和所有相关的模块下的locales编译成为src/data/i18n中的数据
|
|
5
|
+
*/
|
|
6
|
+
export default class LocaleBuilder {
|
|
7
|
+
asLib: boolean;
|
|
8
|
+
dependencies: string[];
|
|
9
|
+
pwd: string;
|
|
10
|
+
locales: Record<string, [string, string, string, object]>;
|
|
11
|
+
hash: Hash;
|
|
12
|
+
constructor(asLib?: boolean);
|
|
13
|
+
/**
|
|
14
|
+
* 将locales输出成为data/i18n.ts中的数据
|
|
15
|
+
* 如果有Dependency需要引出来
|
|
16
|
+
*/
|
|
17
|
+
private outputDataFile;
|
|
18
|
+
/**
|
|
19
|
+
* 这里不能直接用require, webpack貌似有缓存
|
|
20
|
+
* @param filepath
|
|
21
|
+
*/
|
|
22
|
+
private readLocaleFileContent;
|
|
23
|
+
private parseFile;
|
|
24
|
+
private traverse;
|
|
25
|
+
private buildProject;
|
|
26
|
+
build(watch?: boolean): void;
|
|
27
|
+
}
|