@scmbwis/bpg-gen 0.1.6
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/README.md +103 -0
- package/dist/cli/config.d.ts +13 -0
- package/dist/cli/config.js +94 -0
- package/dist/cli/config.js.map +1 -0
- package/dist/cli/generate.d.ts +9 -0
- package/dist/cli/generate.js +97 -0
- package/dist/cli/generate.js.map +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +37 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/schema-loader.d.ts +2 -0
- package/dist/cli/schema-loader.js +104 -0
- package/dist/cli/schema-loader.js.map +1 -0
- package/dist/commands/gendata.d.ts +1 -0
- package/dist/commands/gendata.js +251 -0
- package/dist/commands/gendata.js.map +1 -0
- package/dist/commands/gendb.d.ts +5 -0
- package/dist/commands/gendb.js +82 -0
- package/dist/commands/gendb.js.map +1 -0
- package/dist/commands/nest-express/gennestservicemodels.d.ts +5 -0
- package/dist/commands/nest-express/gennestservicemodels.js +505 -0
- package/dist/commands/nest-express/gennestservicemodels.js.map +1 -0
- package/dist/commands/nest-express/gentsaccessmodel.d.ts +5 -0
- package/dist/commands/nest-express/gentsaccessmodel.js +396 -0
- package/dist/commands/nest-express/gentsaccessmodel.js.map +1 -0
- package/dist/commands/ng/genngbaseapi.d.ts +1 -0
- package/dist/commands/ng/genngbaseapi.js +289 -0
- package/dist/commands/ng/genngbaseapi.js.map +1 -0
- package/dist/configs/ddi.d.ts +2 -0
- package/dist/configs/ddi.js +564 -0
- package/dist/configs/ddi.js.map +1 -0
- package/dist/configs/index.d.ts +2 -0
- package/dist/configs/index.js +24 -0
- package/dist/configs/index.js.map +1 -0
- package/dist/configs/proef-old.d.ts +2 -0
- package/dist/configs/proef-old.js +592 -0
- package/dist/configs/proef-old.js.map +1 -0
- package/dist/configs/proef.d.ts +2 -0
- package/dist/configs/proef.js +1023 -0
- package/dist/configs/proef.js.map +1 -0
- package/dist/configs/tuvens.d.ts +2 -0
- package/dist/configs/tuvens.js +1249 -0
- package/dist/configs/tuvens.js.map +1 -0
- package/dist/data-access/data-types/common.d.ts +40 -0
- package/dist/data-access/data-types/common.js +60 -0
- package/dist/data-access/data-types/common.js.map +1 -0
- package/dist/data-access/data-types/index.d.ts +3 -0
- package/dist/data-access/data-types/index.js +110 -0
- package/dist/data-access/data-types/index.js.map +1 -0
- package/dist/data-access/data-types/support/reg-models.d.ts +16 -0
- package/dist/data-access/data-types/support/reg-models.js +4 -0
- package/dist/data-access/data-types/support/reg-models.js.map +1 -0
- package/dist/data-access/data-types/template.d.ts +22 -0
- package/dist/data-access/data-types/template.js +17 -0
- package/dist/data-access/data-types/template.js.map +1 -0
- package/dist/data-access/data-types/types/boolean-array.d.ts +18 -0
- package/dist/data-access/data-types/types/boolean-array.js +32 -0
- package/dist/data-access/data-types/types/boolean-array.js.map +1 -0
- package/dist/data-access/data-types/types/boolean.d.ts +18 -0
- package/dist/data-access/data-types/types/boolean.js +32 -0
- package/dist/data-access/data-types/types/boolean.js.map +1 -0
- package/dist/data-access/data-types/types/child-pub-id-seq.d.ts +16 -0
- package/dist/data-access/data-types/types/child-pub-id-seq.js +15 -0
- package/dist/data-access/data-types/types/child-pub-id-seq.js.map +1 -0
- package/dist/data-access/data-types/types/client/client-model.d.ts +223 -0
- package/dist/data-access/data-types/types/client/client-model.js +26 -0
- package/dist/data-access/data-types/types/client/client-model.js.map +1 -0
- package/dist/data-access/data-types/types/client/common.d.ts +23 -0
- package/dist/data-access/data-types/types/client/common.js +3 -0
- package/dist/data-access/data-types/types/client/common.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/boolean-array.d.ts +10 -0
- package/dist/data-access/data-types/types/client/types/boolean-array.js +3 -0
- package/dist/data-access/data-types/types/client/types/boolean-array.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/boolean.d.ts +10 -0
- package/dist/data-access/data-types/types/client/types/boolean.js +3 -0
- package/dist/data-access/data-types/types/client/types/boolean.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/document.d.ts +7 -0
- package/dist/data-access/data-types/types/client/types/document.js +4 -0
- package/dist/data-access/data-types/types/client/types/document.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/fk.d.ts +13 -0
- package/dist/data-access/data-types/types/client/types/fk.js +3 -0
- package/dist/data-access/data-types/types/client/types/fk.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/object.d.ts +10 -0
- package/dist/data-access/data-types/types/client/types/object.js +3 -0
- package/dist/data-access/data-types/types/client/types/object.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/pk.d.ts +9 -0
- package/dist/data-access/data-types/types/client/types/pk.js +3 -0
- package/dist/data-access/data-types/types/client/types/pk.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/pub-id.d.ts +9 -0
- package/dist/data-access/data-types/types/client/types/pub-id.js +3 -0
- package/dist/data-access/data-types/types/client/types/pub-id.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/real-num-array.d.ts +12 -0
- package/dist/data-access/data-types/types/client/types/real-num-array.js +3 -0
- package/dist/data-access/data-types/types/client/types/real-num-array.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/real-num.d.ts +12 -0
- package/dist/data-access/data-types/types/client/types/real-num.js +3 -0
- package/dist/data-access/data-types/types/client/types/real-num.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/string-array.d.ts +13 -0
- package/dist/data-access/data-types/types/client/types/string-array.js +3 -0
- package/dist/data-access/data-types/types/client/types/string-array.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/string.d.ts +15 -0
- package/dist/data-access/data-types/types/client/types/string.js +3 -0
- package/dist/data-access/data-types/types/client/types/string.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/timestamp-array.d.ts +10 -0
- package/dist/data-access/data-types/types/client/types/timestamp-array.js +3 -0
- package/dist/data-access/data-types/types/client/types/timestamp-array.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/timestamp.d.ts +10 -0
- package/dist/data-access/data-types/types/client/types/timestamp.js +3 -0
- package/dist/data-access/data-types/types/client/types/timestamp.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/type-key.d.ts +19 -0
- package/dist/data-access/data-types/types/client/types/type-key.js +3 -0
- package/dist/data-access/data-types/types/client/types/type-key.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/user-picker.d.ts +0 -0
- package/dist/data-access/data-types/types/client/types/user-picker.js +2 -0
- package/dist/data-access/data-types/types/client/types/user-picker.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/whole-num-array.d.ts +12 -0
- package/dist/data-access/data-types/types/client/types/whole-num-array.js +3 -0
- package/dist/data-access/data-types/types/client/types/whole-num-array.js.map +1 -0
- package/dist/data-access/data-types/types/client/types/whole-num.d.ts +12 -0
- package/dist/data-access/data-types/types/client/types/whole-num.js +3 -0
- package/dist/data-access/data-types/types/client/types/whole-num.js.map +1 -0
- package/dist/data-access/data-types/types/client/union.d.ts +25 -0
- package/dist/data-access/data-types/types/client/union.js +24 -0
- package/dist/data-access/data-types/types/client/union.js.map +1 -0
- package/dist/data-access/data-types/types/document.d.ts +16 -0
- package/dist/data-access/data-types/types/document.js +28 -0
- package/dist/data-access/data-types/types/document.js.map +1 -0
- package/dist/data-access/data-types/types/fk.d.ts +46 -0
- package/dist/data-access/data-types/types/fk.js +66 -0
- package/dist/data-access/data-types/types/fk.js.map +1 -0
- package/dist/data-access/data-types/types/object.d.ts +18 -0
- package/dist/data-access/data-types/types/object.js +30 -0
- package/dist/data-access/data-types/types/object.js.map +1 -0
- package/dist/data-access/data-types/types/pk.d.ts +11 -0
- package/dist/data-access/data-types/types/pk.js +25 -0
- package/dist/data-access/data-types/types/pk.js.map +1 -0
- package/dist/data-access/data-types/types/pub-id.d.ts +23 -0
- package/dist/data-access/data-types/types/pub-id.js +31 -0
- package/dist/data-access/data-types/types/pub-id.js.map +1 -0
- package/dist/data-access/data-types/types/real-num-array.d.ts +22 -0
- package/dist/data-access/data-types/types/real-num-array.js +38 -0
- package/dist/data-access/data-types/types/real-num-array.js.map +1 -0
- package/dist/data-access/data-types/types/real-num.d.ts +22 -0
- package/dist/data-access/data-types/types/real-num.js +37 -0
- package/dist/data-access/data-types/types/real-num.js.map +1 -0
- package/dist/data-access/data-types/types/string-array.d.ts +24 -0
- package/dist/data-access/data-types/types/string-array.js +47 -0
- package/dist/data-access/data-types/types/string-array.js.map +1 -0
- package/dist/data-access/data-types/types/string.d.ts +37 -0
- package/dist/data-access/data-types/types/string.js +63 -0
- package/dist/data-access/data-types/types/string.js.map +1 -0
- package/dist/data-access/data-types/types/timestamp-array.d.ts +18 -0
- package/dist/data-access/data-types/types/timestamp-array.js +32 -0
- package/dist/data-access/data-types/types/timestamp-array.js.map +1 -0
- package/dist/data-access/data-types/types/timestamp.d.ts +18 -0
- package/dist/data-access/data-types/types/timestamp.js +32 -0
- package/dist/data-access/data-types/types/timestamp.js.map +1 -0
- package/dist/data-access/data-types/types/type-key.d.ts +87 -0
- package/dist/data-access/data-types/types/type-key.js +56 -0
- package/dist/data-access/data-types/types/type-key.js.map +1 -0
- package/dist/data-access/data-types/types/user-picker.d.ts +0 -0
- package/dist/data-access/data-types/types/user-picker.js +2 -0
- package/dist/data-access/data-types/types/user-picker.js.map +1 -0
- package/dist/data-access/data-types/types/whole-num-array.d.ts +22 -0
- package/dist/data-access/data-types/types/whole-num-array.js +38 -0
- package/dist/data-access/data-types/types/whole-num-array.js.map +1 -0
- package/dist/data-access/data-types/types/whole-num.d.ts +22 -0
- package/dist/data-access/data-types/types/whole-num.js +37 -0
- package/dist/data-access/data-types/types/whole-num.js.map +1 -0
- package/dist/data-access/data-types/union.d.ts +36 -0
- package/dist/data-access/data-types/union.js +44 -0
- package/dist/data-access/data-types/union.js.map +1 -0
- package/dist/datamodel/db-model/app-model.d.ts +36 -0
- package/dist/datamodel/db-model/app-model.js +7 -0
- package/dist/datamodel/db-model/app-model.js.map +1 -0
- package/dist/datamodel/db-model/data-model-builder.d.ts +3 -0
- package/dist/datamodel/db-model/data-model-builder.js +437 -0
- package/dist/datamodel/db-model/data-model-builder.js.map +1 -0
- package/dist/datamodel/db-model/data-model.d.ts +74 -0
- package/dist/datamodel/db-model/data-model.js +8 -0
- package/dist/datamodel/db-model/data-model.js.map +1 -0
- package/dist/datamodel/db-model/data-type.d.ts +9 -0
- package/dist/datamodel/db-model/data-type.js +176 -0
- package/dist/datamodel/db-model/data-type.js.map +1 -0
- package/dist/datamodel/db-model/in-app-model.d.ts +9 -0
- package/dist/datamodel/db-model/in-app-model.js +6 -0
- package/dist/datamodel/db-model/in-app-model.js.map +1 -0
- package/dist/datamodel/db-model/in-data-model.d.ts +36 -0
- package/dist/datamodel/db-model/in-data-model.js +11 -0
- package/dist/datamodel/db-model/in-data-model.js.map +1 -0
- package/dist/datamodel/pg-migrate/infoschema-models.d.ts +40 -0
- package/dist/datamodel/pg-migrate/infoschema-models.js +3 -0
- package/dist/datamodel/pg-migrate/infoschema-models.js.map +1 -0
- package/dist/datamodel/pg-migrate/infoschema-queries.d.ts +2 -0
- package/dist/datamodel/pg-migrate/infoschema-queries.js +14 -0
- package/dist/datamodel/pg-migrate/infoschema-queries.js.map +1 -0
- package/dist/datamodel/pg-migrate/migration-methods.d.ts +19 -0
- package/dist/datamodel/pg-migrate/migration-methods.js +75 -0
- package/dist/datamodel/pg-migrate/migration-methods.js.map +1 -0
- package/dist/datamodel/pg-migrate/migration-queries.d.ts +2 -0
- package/dist/datamodel/pg-migrate/migration-queries.js +127 -0
- package/dist/datamodel/pg-migrate/migration-queries.js.map +1 -0
- package/dist/datamodel/ts-gen/app/api.d.ts +2 -0
- package/dist/datamodel/ts-gen/app/api.js +72 -0
- package/dist/datamodel/ts-gen/app/api.js.map +1 -0
- package/dist/datamodel/ts-gen/index.d.ts +6 -0
- package/dist/datamodel/ts-gen/index.js +98 -0
- package/dist/datamodel/ts-gen/index.js.map +1 -0
- package/dist/env.d.ts +3 -0
- package/dist/env.js +87 -0
- package/dist/env.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/utils/casing.d.ts +17 -0
- package/dist/utils/casing.js +66 -0
- package/dist/utils/casing.js.map +1 -0
- package/dist/utils/conventions.d.ts +2 -0
- package/dist/utils/conventions.js +12 -0
- package/dist/utils/conventions.js.map +1 -0
- package/dist/utils/genutils.d.ts +55 -0
- package/dist/utils/genutils.js +501 -0
- package/dist/utils/genutils.js.map +1 -0
- package/dist/utils/pg.utils.d.ts +1 -0
- package/dist/utils/pg.utils.js +302 -0
- package/dist/utils/pg.utils.js.map +1 -0
- package/dist/utils/writingutils.d.ts +12 -0
- package/dist/utils/writingutils.js +63 -0
- package/dist/utils/writingutils.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { ClientViewFieldUnion } from "./union";
|
|
2
|
+
export type ReturnFormatType = "view" | "items" | "item-ids" | "ref-stubs";
|
|
3
|
+
export type ClientReturnUnion = ViewReturn | SpecialViewReturn | NavInstructionReturn | ItemIdsReturn | ItemsReturn | RefStubsReturn | ImportReturn;
|
|
4
|
+
export declare const isViewReturn: (x: ClientReturnUnion) => x is ViewReturn;
|
|
5
|
+
export declare const isNavInstructionReturn: (x: ClientReturnUnion) => x is NavInstructionReturn;
|
|
6
|
+
export declare const isModifiedItemsReturn: (x: ClientReturnUnion) => x is ItemIdsReturn;
|
|
7
|
+
export declare const isRefreshReturn: (x: ClientReturnUnion) => x is ItemsReturn;
|
|
8
|
+
export declare const isRefStubsReturn: (x: ClientReturnUnion) => x is RefStubsReturn;
|
|
9
|
+
export declare const isImportReturn: (x: ClientReturnUnion) => x is ImportReturn;
|
|
10
|
+
type ClientReturnCommon = {
|
|
11
|
+
pars: Where[];
|
|
12
|
+
};
|
|
13
|
+
type DataReturnCommon = {
|
|
14
|
+
items: any[];
|
|
15
|
+
total: number;
|
|
16
|
+
options?: ReadOptions;
|
|
17
|
+
};
|
|
18
|
+
export type ImportReturn = {
|
|
19
|
+
retType: "import";
|
|
20
|
+
executionResults: boolean;
|
|
21
|
+
gridSummaries: GridImport[];
|
|
22
|
+
actions: ViewActionUnion[];
|
|
23
|
+
};
|
|
24
|
+
export type GridImport = {
|
|
25
|
+
label: string;
|
|
26
|
+
dataKey: string;
|
|
27
|
+
view: ClientReadGridView;
|
|
28
|
+
changes: ImportChangeUnion[];
|
|
29
|
+
warnings: Warning[];
|
|
30
|
+
errors: Warning[];
|
|
31
|
+
};
|
|
32
|
+
export declare const isInsertChange: (x: ImportChangeUnion) => x is InsertChange;
|
|
33
|
+
export declare const isUpdateChange: (x: ImportChangeUnion) => x is UpdateChange;
|
|
34
|
+
export type ImportChangeUnion = InsertChange | UpdateChange;
|
|
35
|
+
export interface Warning {
|
|
36
|
+
title: string;
|
|
37
|
+
details: string;
|
|
38
|
+
}
|
|
39
|
+
export type InsertChange = {
|
|
40
|
+
type: "insert";
|
|
41
|
+
values: {
|
|
42
|
+
[field: string]: any;
|
|
43
|
+
};
|
|
44
|
+
warnings: Warning[];
|
|
45
|
+
errors: Warning[];
|
|
46
|
+
};
|
|
47
|
+
export type UpdateChange = {
|
|
48
|
+
type: "update";
|
|
49
|
+
values: {
|
|
50
|
+
[field: string]: {
|
|
51
|
+
old?: any;
|
|
52
|
+
new: any;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
validChanges: number;
|
|
56
|
+
warnings: Warning[];
|
|
57
|
+
errors: Warning[];
|
|
58
|
+
};
|
|
59
|
+
export type SpecialViewReturn = {
|
|
60
|
+
retType: "special-view";
|
|
61
|
+
view: ClientReadSpecialView;
|
|
62
|
+
} & ClientReturnCommon;
|
|
63
|
+
export type ViewReturn = {
|
|
64
|
+
retType: "view";
|
|
65
|
+
view: ClientViewUnion;
|
|
66
|
+
} & ClientReturnCommon & DataReturnCommon;
|
|
67
|
+
export type ItemsReturn = {
|
|
68
|
+
retType: "items";
|
|
69
|
+
} & ClientReturnCommon & DataReturnCommon;
|
|
70
|
+
export type NavInstructionReturn = {
|
|
71
|
+
retType: "nav-instruction";
|
|
72
|
+
nav: NavUnion;
|
|
73
|
+
} & ClientReturnCommon;
|
|
74
|
+
export type ItemIdsReturn = {
|
|
75
|
+
retType: "item-ids";
|
|
76
|
+
ids: number[];
|
|
77
|
+
} & ClientReturnCommon;
|
|
78
|
+
export type RefStubsReturn = {
|
|
79
|
+
retType: "ref-stubs";
|
|
80
|
+
items: RefStub[];
|
|
81
|
+
total: number;
|
|
82
|
+
readOptions: ReadOptions;
|
|
83
|
+
} & ClientReturnCommon;
|
|
84
|
+
export type RefStub = {
|
|
85
|
+
id: number;
|
|
86
|
+
label: string;
|
|
87
|
+
value: string;
|
|
88
|
+
};
|
|
89
|
+
export type ViewActionUnion = GatherAction | SpecialAction | NavAction;
|
|
90
|
+
export declare const isGatherAction: (x: ViewActionUnion) => x is GatherAction;
|
|
91
|
+
export declare const isCustomOpAction: (x: ViewActionUnion) => x is SpecialAction;
|
|
92
|
+
export declare const isNavAction: (x: ViewActionUnion) => x is NavAction;
|
|
93
|
+
export type ViewActionCommon = {
|
|
94
|
+
label: string;
|
|
95
|
+
iconKey?: string;
|
|
96
|
+
};
|
|
97
|
+
export type GatherAction = {
|
|
98
|
+
operation: "gather";
|
|
99
|
+
actionKey: string;
|
|
100
|
+
gather: GatherForm;
|
|
101
|
+
} & ViewActionCommon;
|
|
102
|
+
export type NavAction = {
|
|
103
|
+
operation: "nav";
|
|
104
|
+
nav: NavUnion;
|
|
105
|
+
} & ViewActionCommon;
|
|
106
|
+
export type SpecialAction = {
|
|
107
|
+
operation: "special";
|
|
108
|
+
actionKey: string;
|
|
109
|
+
} & ViewActionCommon;
|
|
110
|
+
export type GatherForm = {
|
|
111
|
+
dialogTitle: string;
|
|
112
|
+
fields: ClientViewFieldUnion[];
|
|
113
|
+
};
|
|
114
|
+
export type NavUnion = GridNav | FormNav | SpecialNav | ImportNav;
|
|
115
|
+
type NavCommon = {
|
|
116
|
+
dataKey: string;
|
|
117
|
+
context?: "core-admin" | "core-me" | "space-admin" | "space-in";
|
|
118
|
+
pars?: ({
|
|
119
|
+
propToSend: string;
|
|
120
|
+
sendAs: string;
|
|
121
|
+
} | string)[];
|
|
122
|
+
shouldLinkVal?: any[];
|
|
123
|
+
};
|
|
124
|
+
type GridNav = {
|
|
125
|
+
viewType: "grid";
|
|
126
|
+
options?: ReadOptions;
|
|
127
|
+
} & NavCommon;
|
|
128
|
+
type FormNav = {
|
|
129
|
+
viewType: "form";
|
|
130
|
+
} & NavCommon;
|
|
131
|
+
type SpecialNav = {
|
|
132
|
+
viewType: "special";
|
|
133
|
+
} & NavCommon;
|
|
134
|
+
type ImportNav = {
|
|
135
|
+
viewType: "import";
|
|
136
|
+
execute: boolean;
|
|
137
|
+
fileKey: string;
|
|
138
|
+
fileFormat: ImportExportFormat;
|
|
139
|
+
} & NavCommon;
|
|
140
|
+
export type ClientViewChildColl = {
|
|
141
|
+
label: string;
|
|
142
|
+
key: string;
|
|
143
|
+
navLink?: NavUnion;
|
|
144
|
+
};
|
|
145
|
+
type ViewCommon = {
|
|
146
|
+
dataKey: string;
|
|
147
|
+
canDelete: boolean;
|
|
148
|
+
childColls: ClientViewChildColl[];
|
|
149
|
+
fields: ClientViewFieldUnion[];
|
|
150
|
+
};
|
|
151
|
+
export type ClientViewUnion = ClientReadGridView | ClientReadFormView;
|
|
152
|
+
export type ClientReadGridView = {
|
|
153
|
+
type: "grid";
|
|
154
|
+
canImport: boolean;
|
|
155
|
+
canExport: boolean;
|
|
156
|
+
actions: {
|
|
157
|
+
scope: "none" | "parent" | "one-child";
|
|
158
|
+
action: ViewActionUnion;
|
|
159
|
+
}[];
|
|
160
|
+
} & ViewCommon;
|
|
161
|
+
export type ClientReadFormView = {
|
|
162
|
+
type: "form";
|
|
163
|
+
actions: {
|
|
164
|
+
scope: "none" | "item";
|
|
165
|
+
action: ViewActionUnion;
|
|
166
|
+
}[];
|
|
167
|
+
} & ViewCommon;
|
|
168
|
+
export type ClientReadSpecialView = {
|
|
169
|
+
type: "special";
|
|
170
|
+
info: {
|
|
171
|
+
text: string;
|
|
172
|
+
class: string;
|
|
173
|
+
}[];
|
|
174
|
+
actions: {
|
|
175
|
+
action: ViewActionUnion;
|
|
176
|
+
}[];
|
|
177
|
+
};
|
|
178
|
+
export interface ReadSort {
|
|
179
|
+
asc: boolean;
|
|
180
|
+
prop: string;
|
|
181
|
+
sortFirstValues?: any[];
|
|
182
|
+
}
|
|
183
|
+
export type Where = {
|
|
184
|
+
prop: string;
|
|
185
|
+
value: WhereValue | WhereValue[];
|
|
186
|
+
orGroup?: string;
|
|
187
|
+
};
|
|
188
|
+
export type WhereValue = string | number | boolean | null | {
|
|
189
|
+
like?: string;
|
|
190
|
+
min?: number;
|
|
191
|
+
max?: number;
|
|
192
|
+
};
|
|
193
|
+
export interface ReadPagingOptions {
|
|
194
|
+
pageNum: number;
|
|
195
|
+
pageSize: number;
|
|
196
|
+
}
|
|
197
|
+
export interface ReadOptions {
|
|
198
|
+
paging?: ReadPagingOptions;
|
|
199
|
+
sort?: ReadSort[];
|
|
200
|
+
filters?: Where[];
|
|
201
|
+
}
|
|
202
|
+
export type ImportExportFormat = "json" | "xls" | "csv";
|
|
203
|
+
export interface ExportOptions {
|
|
204
|
+
format: ImportExportFormat;
|
|
205
|
+
asTemplate: boolean;
|
|
206
|
+
children?: string[];
|
|
207
|
+
}
|
|
208
|
+
export interface ImportOptions {
|
|
209
|
+
format: ImportExportFormat;
|
|
210
|
+
}
|
|
211
|
+
export type ItemTypeStatusUnion = CurrentTypeStatus | TransitionTypeStatus;
|
|
212
|
+
type ItemTypeStatusCommon = {
|
|
213
|
+
issues: string[];
|
|
214
|
+
};
|
|
215
|
+
export type CurrentTypeStatus = {
|
|
216
|
+
currentType: true;
|
|
217
|
+
workNeeded: boolean;
|
|
218
|
+
} & ItemTypeStatusCommon;
|
|
219
|
+
export type TransitionTypeStatus = {
|
|
220
|
+
currentType: false;
|
|
221
|
+
canTransition: boolean;
|
|
222
|
+
} & ItemTypeStatusCommon;
|
|
223
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isNavAction = exports.isCustomOpAction = exports.isGatherAction = exports.isUpdateChange = exports.isInsertChange = exports.isImportReturn = exports.isRefStubsReturn = exports.isRefreshReturn = exports.isModifiedItemsReturn = exports.isNavInstructionReturn = exports.isViewReturn = void 0;
|
|
4
|
+
const isViewReturn = (x) => x.retType == "view";
|
|
5
|
+
exports.isViewReturn = isViewReturn;
|
|
6
|
+
const isNavInstructionReturn = (x) => x.retType == "nav-instruction";
|
|
7
|
+
exports.isNavInstructionReturn = isNavInstructionReturn;
|
|
8
|
+
const isModifiedItemsReturn = (x) => x.retType == "item-ids";
|
|
9
|
+
exports.isModifiedItemsReturn = isModifiedItemsReturn;
|
|
10
|
+
const isRefreshReturn = (x) => x.retType == "items";
|
|
11
|
+
exports.isRefreshReturn = isRefreshReturn;
|
|
12
|
+
const isRefStubsReturn = (x) => x.retType == "ref-stubs";
|
|
13
|
+
exports.isRefStubsReturn = isRefStubsReturn;
|
|
14
|
+
const isImportReturn = (x) => x.retType == "import";
|
|
15
|
+
exports.isImportReturn = isImportReturn;
|
|
16
|
+
const isInsertChange = (x) => x.type == "insert";
|
|
17
|
+
exports.isInsertChange = isInsertChange;
|
|
18
|
+
const isUpdateChange = (x) => x.type == "update";
|
|
19
|
+
exports.isUpdateChange = isUpdateChange;
|
|
20
|
+
const isGatherAction = (x) => x.operation == "gather";
|
|
21
|
+
exports.isGatherAction = isGatherAction;
|
|
22
|
+
const isCustomOpAction = (x) => x.operation == "special";
|
|
23
|
+
exports.isCustomOpAction = isCustomOpAction;
|
|
24
|
+
const isNavAction = (x) => x.operation == "nav";
|
|
25
|
+
exports.isNavAction = isNavAction;
|
|
26
|
+
//# sourceMappingURL=client-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-model.js","sourceRoot":"","sources":["../../../../../lib/data-access/data-types/types/client/client-model.ts"],"names":[],"mappings":";;;AAMO,MAAM,YAAY,GAAG,CAAC,CAAoB,EAAmB,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,MAAM,CAAA;AAA7E,QAAA,YAAY,gBAAiE;AACnF,MAAM,sBAAsB,GAAG,CAAC,CAAoB,EAA6B,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,iBAAiB,CAAA;AAA5G,QAAA,sBAAsB,0BAAsF;AAClH,MAAM,qBAAqB,GAAG,CAAC,CAAoB,EAAsB,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,UAAU,CAAA;AAA7F,QAAA,qBAAqB,yBAAwE;AACnG,MAAM,eAAe,GAAG,CAAC,CAAoB,EAAoB,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,OAAO,CAAA;AAAlF,QAAA,eAAe,mBAAmE;AACxF,MAAM,gBAAgB,GAAG,CAAC,CAAoB,EAAuB,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,WAAW,CAAA;AAA1F,QAAA,gBAAgB,oBAA0E;AAChG,MAAM,cAAc,GAAG,CAAC,CAAoB,EAAqB,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,QAAQ,CAAA;AAAnF,QAAA,cAAc,kBAAqE;AA6BzF,MAAM,cAAc,GAAG,CAAC,CAAoB,EAAqB,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,QAAQ,CAAA;AAAhF,QAAA,cAAc,kBAAkE;AACtF,MAAM,cAAc,GAAG,CAAC,CAAoB,EAAqB,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,QAAQ,CAAA;AAAhF,QAAA,cAAc,kBAAkE;AAqDtF,MAAM,cAAc,GAAG,CAAC,CAAkB,EAAqB,EAAE,CAAC,CAAC,CAAC,SAAS,IAAI,QAAQ,CAAA;AAAnF,QAAA,cAAc,kBAAqE;AACzF,MAAM,gBAAgB,GAAG,CAAC,CAAkB,EAAsB,EAAE,CAAC,CAAC,CAAC,SAAS,IAAI,SAAS,CAAA;AAAvF,QAAA,gBAAgB,oBAAuE;AAC7F,MAAM,WAAW,GAAG,CAAC,CAAkB,EAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,IAAI,KAAK,CAAA;AAA1E,QAAA,WAAW,eAA+D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NavUnion } from "./client-model";
|
|
2
|
+
export type ClientPropBase = {
|
|
3
|
+
name: string;
|
|
4
|
+
required: boolean;
|
|
5
|
+
createBehaviour: "open" | "closed" | "hidden";
|
|
6
|
+
editBehaviour: "open" | "closed" | "hidden";
|
|
7
|
+
viewBehaviour: "closed" | "hidden";
|
|
8
|
+
jsonName: string;
|
|
9
|
+
upperLabel: string;
|
|
10
|
+
lowerLabel: string;
|
|
11
|
+
tableKey: string;
|
|
12
|
+
navLink?: NavUnion;
|
|
13
|
+
typeImpacts: {
|
|
14
|
+
[key: string]: TypeFieldImpact;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type TypeFieldImpact = {
|
|
18
|
+
createBehaviour: "open" | "closed" | "hidden";
|
|
19
|
+
editBehaviour: "open" | "closed" | "hidden";
|
|
20
|
+
viewBehaviour: "closed" | "hidden";
|
|
21
|
+
hideOnEditIfNoValue: boolean;
|
|
22
|
+
required: boolean;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../lib/data-access/data-types/types/client/common.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type BooleanArrayTypeKey = "boolean-array";
|
|
3
|
+
export type BooleanArrayClientProp = {
|
|
4
|
+
type: "direct";
|
|
5
|
+
dataType: BooleanArrayTypeKey;
|
|
6
|
+
} & ClientPropBase & BooleanArrayBase;
|
|
7
|
+
export type BooleanArrayBase = {
|
|
8
|
+
default?: boolean[];
|
|
9
|
+
jsType: `boolean[]`;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boolean-array.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/boolean-array.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type BooleanTypeKey = "boolean";
|
|
3
|
+
export type BooleanClientProp = {
|
|
4
|
+
type: "direct";
|
|
5
|
+
dataType: BooleanTypeKey;
|
|
6
|
+
} & ClientPropBase & BooleanBase;
|
|
7
|
+
export type BooleanBase = {
|
|
8
|
+
default?: boolean;
|
|
9
|
+
jsType: `boolean`;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boolean.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/boolean.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/document.ts"],"names":[],"mappings":";;AAWA,oDAAoD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type FkTypeKey = "fk";
|
|
3
|
+
export type FkClientProp = {
|
|
4
|
+
type: "join";
|
|
5
|
+
dataType: FkTypeKey;
|
|
6
|
+
targetTableName: string;
|
|
7
|
+
textJsonName: string;
|
|
8
|
+
pubIdJsonName: string;
|
|
9
|
+
deletedJsonName: string;
|
|
10
|
+
} & ClientPropBase & FkBase;
|
|
11
|
+
export type FkBase = {
|
|
12
|
+
jsType: `number`;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fk.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/fk.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type ObjectTypeKey = "object";
|
|
3
|
+
export type ObjectClientProp = {
|
|
4
|
+
type: "direct";
|
|
5
|
+
dataType: ObjectTypeKey;
|
|
6
|
+
} & ClientPropBase & ObjectBase;
|
|
7
|
+
export type ObjectBase = {
|
|
8
|
+
jsType: `object`;
|
|
9
|
+
default?: object;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/object.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pk.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/pk.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pub-id.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/pub-id.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type RealNumArrayTypeKey = "real-num-array";
|
|
3
|
+
export type RealNumArrayClientProp = {
|
|
4
|
+
type: "direct";
|
|
5
|
+
dataType: RealNumArrayTypeKey;
|
|
6
|
+
} & ClientPropBase & RealNumArrayBase;
|
|
7
|
+
export type RealNumArrayBase = {
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
default?: number[];
|
|
11
|
+
jsType: `number[]`;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"real-num-array.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/real-num-array.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type RealNumTypeKey = "real-num";
|
|
3
|
+
export type RealNumClientProp = {
|
|
4
|
+
type: "direct";
|
|
5
|
+
dataType: RealNumTypeKey;
|
|
6
|
+
} & ClientPropBase & RealNumBase;
|
|
7
|
+
export type RealNumBase = {
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
default?: number;
|
|
11
|
+
jsType: `number`;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"real-num.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/real-num.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type StringArrayTypeKey = "string-array";
|
|
3
|
+
export type StringArrayClientProp = {
|
|
4
|
+
type: "direct";
|
|
5
|
+
dataType: StringArrayTypeKey;
|
|
6
|
+
} & ClientPropBase & StringArrayBase;
|
|
7
|
+
export type StringArrayBase = {
|
|
8
|
+
stringFormat: "short" | "title" | "text" | "email" | "url" | "scsv";
|
|
9
|
+
pickValues: string[];
|
|
10
|
+
freeEntry: boolean;
|
|
11
|
+
default?: string[];
|
|
12
|
+
jsType: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-array.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/string-array.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type StringTypeKey = "string";
|
|
3
|
+
export type StringClientProp = {
|
|
4
|
+
type: "direct";
|
|
5
|
+
dataType: StringTypeKey;
|
|
6
|
+
} & ClientPropBase & StringBase;
|
|
7
|
+
export type StringBase = {
|
|
8
|
+
stringFormat: "short" | "title" | "text" | "email" | "url" | "scsv" | "phone";
|
|
9
|
+
pickValues: string[];
|
|
10
|
+
freeEntry: boolean;
|
|
11
|
+
multiValue: boolean;
|
|
12
|
+
default?: string;
|
|
13
|
+
jsType: string;
|
|
14
|
+
primeText: boolean;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/string.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type TimestampArrayTypeKey = "timestamp-array";
|
|
3
|
+
export type TimestampArrayClientProp = {
|
|
4
|
+
type: "direct";
|
|
5
|
+
dataType: TimestampArrayTypeKey;
|
|
6
|
+
} & ClientPropBase & TimestampArrayBase;
|
|
7
|
+
export type TimestampArrayBase = {
|
|
8
|
+
dateFormat: "date" | "time" | "dateTime";
|
|
9
|
+
jsType: `Date`;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timestamp-array.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/timestamp-array.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type TimestampTypeKey = "timestamp";
|
|
3
|
+
export type TimestampClientProp = {
|
|
4
|
+
type: "direct";
|
|
5
|
+
dataType: TimestampTypeKey;
|
|
6
|
+
} & ClientPropBase & TimestampBase;
|
|
7
|
+
export type TimestampBase = {
|
|
8
|
+
dateFormat: "date" | "time" | "dateTime";
|
|
9
|
+
jsType: `Date`;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/timestamp.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type TypeKeyTypeKey = "type-key";
|
|
3
|
+
export type TypeKeyClientProp = {
|
|
4
|
+
type: "type-key";
|
|
5
|
+
dataType: TypeKeyTypeKey;
|
|
6
|
+
typeKeyLabels: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
|
+
useTransitions: boolean;
|
|
10
|
+
jsType: string;
|
|
11
|
+
types: ClientTypeInfo[];
|
|
12
|
+
} & ClientPropBase & TypeKeyBase;
|
|
13
|
+
export type TypeKeyBase = {};
|
|
14
|
+
export type ClientTypeInfo = {
|
|
15
|
+
typeKey: string;
|
|
16
|
+
label: string;
|
|
17
|
+
canCreate: boolean;
|
|
18
|
+
transitionProp: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-key.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/type-key.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-picker.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/user-picker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type WholeNumArrayTypeKey = "whole-num-array";
|
|
3
|
+
export type WholeNumArrayClientProp = {
|
|
4
|
+
type: "direct";
|
|
5
|
+
dataType: WholeNumArrayTypeKey;
|
|
6
|
+
} & ClientPropBase & WholeNumArrayBase;
|
|
7
|
+
export type WholeNumArrayBase = {
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
default?: number[];
|
|
11
|
+
jsType: `number`;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whole-num-array.js","sourceRoot":"","sources":["../../../../../../lib/data-access/data-types/types/client/types/whole-num-array.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClientPropBase } from "../common";
|
|
2
|
+
export type WholeNumTypeKey = "whole-num";
|
|
3
|
+
export type WholeNumClientProp = {
|
|
4
|
+
type: "direct";
|
|
5
|
+
dataType: WholeNumTypeKey;
|
|
6
|
+
} & ClientPropBase & WholeNumBase;
|
|
7
|
+
export type WholeNumBase = {
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
default?: number;
|
|
11
|
+
jsType: `number`;
|
|
12
|
+
};
|