@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.
Files changed (230) hide show
  1. package/README.md +103 -0
  2. package/dist/cli/config.d.ts +13 -0
  3. package/dist/cli/config.js +94 -0
  4. package/dist/cli/config.js.map +1 -0
  5. package/dist/cli/generate.d.ts +9 -0
  6. package/dist/cli/generate.js +97 -0
  7. package/dist/cli/generate.js.map +1 -0
  8. package/dist/cli/index.d.ts +2 -0
  9. package/dist/cli/index.js +37 -0
  10. package/dist/cli/index.js.map +1 -0
  11. package/dist/cli/schema-loader.d.ts +2 -0
  12. package/dist/cli/schema-loader.js +104 -0
  13. package/dist/cli/schema-loader.js.map +1 -0
  14. package/dist/commands/gendata.d.ts +1 -0
  15. package/dist/commands/gendata.js +251 -0
  16. package/dist/commands/gendata.js.map +1 -0
  17. package/dist/commands/gendb.d.ts +5 -0
  18. package/dist/commands/gendb.js +82 -0
  19. package/dist/commands/gendb.js.map +1 -0
  20. package/dist/commands/nest-express/gennestservicemodels.d.ts +5 -0
  21. package/dist/commands/nest-express/gennestservicemodels.js +505 -0
  22. package/dist/commands/nest-express/gennestservicemodels.js.map +1 -0
  23. package/dist/commands/nest-express/gentsaccessmodel.d.ts +5 -0
  24. package/dist/commands/nest-express/gentsaccessmodel.js +396 -0
  25. package/dist/commands/nest-express/gentsaccessmodel.js.map +1 -0
  26. package/dist/commands/ng/genngbaseapi.d.ts +1 -0
  27. package/dist/commands/ng/genngbaseapi.js +289 -0
  28. package/dist/commands/ng/genngbaseapi.js.map +1 -0
  29. package/dist/configs/ddi.d.ts +2 -0
  30. package/dist/configs/ddi.js +564 -0
  31. package/dist/configs/ddi.js.map +1 -0
  32. package/dist/configs/index.d.ts +2 -0
  33. package/dist/configs/index.js +24 -0
  34. package/dist/configs/index.js.map +1 -0
  35. package/dist/configs/proef-old.d.ts +2 -0
  36. package/dist/configs/proef-old.js +592 -0
  37. package/dist/configs/proef-old.js.map +1 -0
  38. package/dist/configs/proef.d.ts +2 -0
  39. package/dist/configs/proef.js +1023 -0
  40. package/dist/configs/proef.js.map +1 -0
  41. package/dist/configs/tuvens.d.ts +2 -0
  42. package/dist/configs/tuvens.js +1249 -0
  43. package/dist/configs/tuvens.js.map +1 -0
  44. package/dist/data-access/data-types/common.d.ts +40 -0
  45. package/dist/data-access/data-types/common.js +60 -0
  46. package/dist/data-access/data-types/common.js.map +1 -0
  47. package/dist/data-access/data-types/index.d.ts +3 -0
  48. package/dist/data-access/data-types/index.js +110 -0
  49. package/dist/data-access/data-types/index.js.map +1 -0
  50. package/dist/data-access/data-types/support/reg-models.d.ts +16 -0
  51. package/dist/data-access/data-types/support/reg-models.js +4 -0
  52. package/dist/data-access/data-types/support/reg-models.js.map +1 -0
  53. package/dist/data-access/data-types/template.d.ts +22 -0
  54. package/dist/data-access/data-types/template.js +17 -0
  55. package/dist/data-access/data-types/template.js.map +1 -0
  56. package/dist/data-access/data-types/types/boolean-array.d.ts +18 -0
  57. package/dist/data-access/data-types/types/boolean-array.js +32 -0
  58. package/dist/data-access/data-types/types/boolean-array.js.map +1 -0
  59. package/dist/data-access/data-types/types/boolean.d.ts +18 -0
  60. package/dist/data-access/data-types/types/boolean.js +32 -0
  61. package/dist/data-access/data-types/types/boolean.js.map +1 -0
  62. package/dist/data-access/data-types/types/child-pub-id-seq.d.ts +16 -0
  63. package/dist/data-access/data-types/types/child-pub-id-seq.js +15 -0
  64. package/dist/data-access/data-types/types/child-pub-id-seq.js.map +1 -0
  65. package/dist/data-access/data-types/types/client/client-model.d.ts +223 -0
  66. package/dist/data-access/data-types/types/client/client-model.js +26 -0
  67. package/dist/data-access/data-types/types/client/client-model.js.map +1 -0
  68. package/dist/data-access/data-types/types/client/common.d.ts +23 -0
  69. package/dist/data-access/data-types/types/client/common.js +3 -0
  70. package/dist/data-access/data-types/types/client/common.js.map +1 -0
  71. package/dist/data-access/data-types/types/client/types/boolean-array.d.ts +10 -0
  72. package/dist/data-access/data-types/types/client/types/boolean-array.js +3 -0
  73. package/dist/data-access/data-types/types/client/types/boolean-array.js.map +1 -0
  74. package/dist/data-access/data-types/types/client/types/boolean.d.ts +10 -0
  75. package/dist/data-access/data-types/types/client/types/boolean.js +3 -0
  76. package/dist/data-access/data-types/types/client/types/boolean.js.map +1 -0
  77. package/dist/data-access/data-types/types/client/types/document.d.ts +7 -0
  78. package/dist/data-access/data-types/types/client/types/document.js +4 -0
  79. package/dist/data-access/data-types/types/client/types/document.js.map +1 -0
  80. package/dist/data-access/data-types/types/client/types/fk.d.ts +13 -0
  81. package/dist/data-access/data-types/types/client/types/fk.js +3 -0
  82. package/dist/data-access/data-types/types/client/types/fk.js.map +1 -0
  83. package/dist/data-access/data-types/types/client/types/object.d.ts +10 -0
  84. package/dist/data-access/data-types/types/client/types/object.js +3 -0
  85. package/dist/data-access/data-types/types/client/types/object.js.map +1 -0
  86. package/dist/data-access/data-types/types/client/types/pk.d.ts +9 -0
  87. package/dist/data-access/data-types/types/client/types/pk.js +3 -0
  88. package/dist/data-access/data-types/types/client/types/pk.js.map +1 -0
  89. package/dist/data-access/data-types/types/client/types/pub-id.d.ts +9 -0
  90. package/dist/data-access/data-types/types/client/types/pub-id.js +3 -0
  91. package/dist/data-access/data-types/types/client/types/pub-id.js.map +1 -0
  92. package/dist/data-access/data-types/types/client/types/real-num-array.d.ts +12 -0
  93. package/dist/data-access/data-types/types/client/types/real-num-array.js +3 -0
  94. package/dist/data-access/data-types/types/client/types/real-num-array.js.map +1 -0
  95. package/dist/data-access/data-types/types/client/types/real-num.d.ts +12 -0
  96. package/dist/data-access/data-types/types/client/types/real-num.js +3 -0
  97. package/dist/data-access/data-types/types/client/types/real-num.js.map +1 -0
  98. package/dist/data-access/data-types/types/client/types/string-array.d.ts +13 -0
  99. package/dist/data-access/data-types/types/client/types/string-array.js +3 -0
  100. package/dist/data-access/data-types/types/client/types/string-array.js.map +1 -0
  101. package/dist/data-access/data-types/types/client/types/string.d.ts +15 -0
  102. package/dist/data-access/data-types/types/client/types/string.js +3 -0
  103. package/dist/data-access/data-types/types/client/types/string.js.map +1 -0
  104. package/dist/data-access/data-types/types/client/types/timestamp-array.d.ts +10 -0
  105. package/dist/data-access/data-types/types/client/types/timestamp-array.js +3 -0
  106. package/dist/data-access/data-types/types/client/types/timestamp-array.js.map +1 -0
  107. package/dist/data-access/data-types/types/client/types/timestamp.d.ts +10 -0
  108. package/dist/data-access/data-types/types/client/types/timestamp.js +3 -0
  109. package/dist/data-access/data-types/types/client/types/timestamp.js.map +1 -0
  110. package/dist/data-access/data-types/types/client/types/type-key.d.ts +19 -0
  111. package/dist/data-access/data-types/types/client/types/type-key.js +3 -0
  112. package/dist/data-access/data-types/types/client/types/type-key.js.map +1 -0
  113. package/dist/data-access/data-types/types/client/types/user-picker.d.ts +0 -0
  114. package/dist/data-access/data-types/types/client/types/user-picker.js +2 -0
  115. package/dist/data-access/data-types/types/client/types/user-picker.js.map +1 -0
  116. package/dist/data-access/data-types/types/client/types/whole-num-array.d.ts +12 -0
  117. package/dist/data-access/data-types/types/client/types/whole-num-array.js +3 -0
  118. package/dist/data-access/data-types/types/client/types/whole-num-array.js.map +1 -0
  119. package/dist/data-access/data-types/types/client/types/whole-num.d.ts +12 -0
  120. package/dist/data-access/data-types/types/client/types/whole-num.js +3 -0
  121. package/dist/data-access/data-types/types/client/types/whole-num.js.map +1 -0
  122. package/dist/data-access/data-types/types/client/union.d.ts +25 -0
  123. package/dist/data-access/data-types/types/client/union.js +24 -0
  124. package/dist/data-access/data-types/types/client/union.js.map +1 -0
  125. package/dist/data-access/data-types/types/document.d.ts +16 -0
  126. package/dist/data-access/data-types/types/document.js +28 -0
  127. package/dist/data-access/data-types/types/document.js.map +1 -0
  128. package/dist/data-access/data-types/types/fk.d.ts +46 -0
  129. package/dist/data-access/data-types/types/fk.js +66 -0
  130. package/dist/data-access/data-types/types/fk.js.map +1 -0
  131. package/dist/data-access/data-types/types/object.d.ts +18 -0
  132. package/dist/data-access/data-types/types/object.js +30 -0
  133. package/dist/data-access/data-types/types/object.js.map +1 -0
  134. package/dist/data-access/data-types/types/pk.d.ts +11 -0
  135. package/dist/data-access/data-types/types/pk.js +25 -0
  136. package/dist/data-access/data-types/types/pk.js.map +1 -0
  137. package/dist/data-access/data-types/types/pub-id.d.ts +23 -0
  138. package/dist/data-access/data-types/types/pub-id.js +31 -0
  139. package/dist/data-access/data-types/types/pub-id.js.map +1 -0
  140. package/dist/data-access/data-types/types/real-num-array.d.ts +22 -0
  141. package/dist/data-access/data-types/types/real-num-array.js +38 -0
  142. package/dist/data-access/data-types/types/real-num-array.js.map +1 -0
  143. package/dist/data-access/data-types/types/real-num.d.ts +22 -0
  144. package/dist/data-access/data-types/types/real-num.js +37 -0
  145. package/dist/data-access/data-types/types/real-num.js.map +1 -0
  146. package/dist/data-access/data-types/types/string-array.d.ts +24 -0
  147. package/dist/data-access/data-types/types/string-array.js +47 -0
  148. package/dist/data-access/data-types/types/string-array.js.map +1 -0
  149. package/dist/data-access/data-types/types/string.d.ts +37 -0
  150. package/dist/data-access/data-types/types/string.js +63 -0
  151. package/dist/data-access/data-types/types/string.js.map +1 -0
  152. package/dist/data-access/data-types/types/timestamp-array.d.ts +18 -0
  153. package/dist/data-access/data-types/types/timestamp-array.js +32 -0
  154. package/dist/data-access/data-types/types/timestamp-array.js.map +1 -0
  155. package/dist/data-access/data-types/types/timestamp.d.ts +18 -0
  156. package/dist/data-access/data-types/types/timestamp.js +32 -0
  157. package/dist/data-access/data-types/types/timestamp.js.map +1 -0
  158. package/dist/data-access/data-types/types/type-key.d.ts +87 -0
  159. package/dist/data-access/data-types/types/type-key.js +56 -0
  160. package/dist/data-access/data-types/types/type-key.js.map +1 -0
  161. package/dist/data-access/data-types/types/user-picker.d.ts +0 -0
  162. package/dist/data-access/data-types/types/user-picker.js +2 -0
  163. package/dist/data-access/data-types/types/user-picker.js.map +1 -0
  164. package/dist/data-access/data-types/types/whole-num-array.d.ts +22 -0
  165. package/dist/data-access/data-types/types/whole-num-array.js +38 -0
  166. package/dist/data-access/data-types/types/whole-num-array.js.map +1 -0
  167. package/dist/data-access/data-types/types/whole-num.d.ts +22 -0
  168. package/dist/data-access/data-types/types/whole-num.js +37 -0
  169. package/dist/data-access/data-types/types/whole-num.js.map +1 -0
  170. package/dist/data-access/data-types/union.d.ts +36 -0
  171. package/dist/data-access/data-types/union.js +44 -0
  172. package/dist/data-access/data-types/union.js.map +1 -0
  173. package/dist/datamodel/db-model/app-model.d.ts +36 -0
  174. package/dist/datamodel/db-model/app-model.js +7 -0
  175. package/dist/datamodel/db-model/app-model.js.map +1 -0
  176. package/dist/datamodel/db-model/data-model-builder.d.ts +3 -0
  177. package/dist/datamodel/db-model/data-model-builder.js +437 -0
  178. package/dist/datamodel/db-model/data-model-builder.js.map +1 -0
  179. package/dist/datamodel/db-model/data-model.d.ts +74 -0
  180. package/dist/datamodel/db-model/data-model.js +8 -0
  181. package/dist/datamodel/db-model/data-model.js.map +1 -0
  182. package/dist/datamodel/db-model/data-type.d.ts +9 -0
  183. package/dist/datamodel/db-model/data-type.js +176 -0
  184. package/dist/datamodel/db-model/data-type.js.map +1 -0
  185. package/dist/datamodel/db-model/in-app-model.d.ts +9 -0
  186. package/dist/datamodel/db-model/in-app-model.js +6 -0
  187. package/dist/datamodel/db-model/in-app-model.js.map +1 -0
  188. package/dist/datamodel/db-model/in-data-model.d.ts +36 -0
  189. package/dist/datamodel/db-model/in-data-model.js +11 -0
  190. package/dist/datamodel/db-model/in-data-model.js.map +1 -0
  191. package/dist/datamodel/pg-migrate/infoschema-models.d.ts +40 -0
  192. package/dist/datamodel/pg-migrate/infoschema-models.js +3 -0
  193. package/dist/datamodel/pg-migrate/infoschema-models.js.map +1 -0
  194. package/dist/datamodel/pg-migrate/infoschema-queries.d.ts +2 -0
  195. package/dist/datamodel/pg-migrate/infoschema-queries.js +14 -0
  196. package/dist/datamodel/pg-migrate/infoschema-queries.js.map +1 -0
  197. package/dist/datamodel/pg-migrate/migration-methods.d.ts +19 -0
  198. package/dist/datamodel/pg-migrate/migration-methods.js +75 -0
  199. package/dist/datamodel/pg-migrate/migration-methods.js.map +1 -0
  200. package/dist/datamodel/pg-migrate/migration-queries.d.ts +2 -0
  201. package/dist/datamodel/pg-migrate/migration-queries.js +127 -0
  202. package/dist/datamodel/pg-migrate/migration-queries.js.map +1 -0
  203. package/dist/datamodel/ts-gen/app/api.d.ts +2 -0
  204. package/dist/datamodel/ts-gen/app/api.js +72 -0
  205. package/dist/datamodel/ts-gen/app/api.js.map +1 -0
  206. package/dist/datamodel/ts-gen/index.d.ts +6 -0
  207. package/dist/datamodel/ts-gen/index.js +98 -0
  208. package/dist/datamodel/ts-gen/index.js.map +1 -0
  209. package/dist/env.d.ts +3 -0
  210. package/dist/env.js +87 -0
  211. package/dist/env.js.map +1 -0
  212. package/dist/index.d.ts +2 -0
  213. package/dist/index.js +7 -0
  214. package/dist/index.js.map +1 -0
  215. package/dist/utils/casing.d.ts +17 -0
  216. package/dist/utils/casing.js +66 -0
  217. package/dist/utils/casing.js.map +1 -0
  218. package/dist/utils/conventions.d.ts +2 -0
  219. package/dist/utils/conventions.js +12 -0
  220. package/dist/utils/conventions.js.map +1 -0
  221. package/dist/utils/genutils.d.ts +55 -0
  222. package/dist/utils/genutils.js +501 -0
  223. package/dist/utils/genutils.js.map +1 -0
  224. package/dist/utils/pg.utils.d.ts +1 -0
  225. package/dist/utils/pg.utils.js +302 -0
  226. package/dist/utils/pg.utils.js.map +1 -0
  227. package/dist/utils/writingutils.d.ts +12 -0
  228. package/dist/utils/writingutils.js +63 -0
  229. package/dist/utils/writingutils.js.map +1 -0
  230. 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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=common.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=boolean-array.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=boolean.js.map
@@ -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,7 @@
1
+ import { ClientPropBase } from "../common";
2
+ export type DocumentTypeKey = "document";
3
+ export type DocumentClientProp = {
4
+ type: "direct";
5
+ dataType: DocumentTypeKey;
6
+ } & ClientPropBase & DocumentBase;
7
+ export type DocumentBase = {};
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // maybe docs should refrence this, then array works
4
+ //# sourceMappingURL=document.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=fk.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=object.js.map
@@ -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,9 @@
1
+ import { ClientPropBase } from "../common";
2
+ export type PkTypeKey = "pk";
3
+ export type PkClientProp = {
4
+ type: "direct";
5
+ dataType: PkTypeKey;
6
+ } & ClientPropBase & PkBase;
7
+ export type PkBase = {
8
+ jsType: `number`;
9
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pk.js.map
@@ -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,9 @@
1
+ import { ClientPropBase } from "../common";
2
+ export type PubIdTypeKey = "pub-id";
3
+ export type PubIdClientProp = {
4
+ type: "direct";
5
+ dataType: PubIdTypeKey;
6
+ } & PubIdBase & ClientPropBase;
7
+ export type PubIdBase = {
8
+ jsType: `string`;
9
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pub-id.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=real-num-array.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=real-num.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=string-array.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=string.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=timestamp-array.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=timestamp.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=type-key.js.map
@@ -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":""}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=user-picker.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whole-num-array.js.map
@@ -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
+ };