@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,37 @@
1
+ import { DbTable } from "../../../datamodel/db-model/data-model";
2
+ import { DbColumnBase, RegKeyCommon, InDbColumnNamedBase } from "../common";
3
+ import { StringTypeKey, StringBase } from "./client/types/string";
4
+ import { InTypeKeyDbCol } from "./type-key";
5
+ export declare const stringTypeKey = "string";
6
+ export type StringRegKeyModel = {
7
+ dataType: StringTypeKey;
8
+ name: string;
9
+ stringFormat: "short" | "title" | "text" | "email" | "url" | "scsv" | null;
10
+ pickValues: string[] | null;
11
+ freeEntry: boolean | null;
12
+ multiValue: boolean | null;
13
+ defaultStr: string | null;
14
+ primeText: boolean | null;
15
+ } & RegKeyCommon;
16
+ export declare function stringRegKeyToInDbCol(regKey: StringRegKeyModel): InStringDbCol;
17
+ export type InStringDbCol = {
18
+ dataType: StringTypeKey;
19
+ stringFormat?: "short" | "title" | "text" | "email" | "url" | "scsv" | "phone";
20
+ pickValues?: string | string[];
21
+ freeEntry?: boolean;
22
+ multiValue?: boolean;
23
+ defaultStr?: string;
24
+ primeText?: boolean;
25
+ mock?: {
26
+ pickFrom?: string[];
27
+ specialFormat?: "color" | "person" | "address" | "gps" | "catchphrase" | "timezone" | "venue" | "currency";
28
+ };
29
+ } & InDbColumnNamedBase;
30
+ export declare function stringInDbColToDbCol(inCol: InStringDbCol | InTypeKeyDbCol, table: DbTable): StringDbCol;
31
+ export type StringDbCol = {
32
+ dataType: StringTypeKey;
33
+ mock?: {
34
+ pickFrom?: string[];
35
+ specialFormat?: "color" | "person" | "address" | "gps" | "catchphrase" | "timezone" | "venue" | "currency";
36
+ };
37
+ } & DbColumnBase & StringBase;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stringTypeKey = void 0;
4
+ exports.stringRegKeyToInDbCol = stringRegKeyToInDbCol;
5
+ exports.stringInDbColToDbCol = stringInDbColToDbCol;
6
+ const common_1 = require("../common");
7
+ exports.stringTypeKey = "string";
8
+ function stringRegKeyToInDbCol(regKey) {
9
+ const inDbCol = Object.assign(Object.assign({}, (0, common_1.commonRegKeyToInDbCol)(regKey)), { dataType: exports.stringTypeKey, name: regKey.name });
10
+ if (regKey.stringFormat != null)
11
+ inDbCol.stringFormat = regKey.stringFormat;
12
+ if (regKey.pickValues != null)
13
+ inDbCol.pickValues = regKey.pickValues;
14
+ if (regKey.freeEntry != null)
15
+ inDbCol.freeEntry = regKey.freeEntry;
16
+ if (regKey.multiValue != null)
17
+ inDbCol.multiValue = regKey.multiValue;
18
+ if (regKey.defaultStr != null)
19
+ inDbCol.defaultStr = regKey.defaultStr;
20
+ if (regKey.primeText != null)
21
+ inDbCol.primeText = regKey.primeText;
22
+ return inDbCol;
23
+ }
24
+ function stringInDbColToDbCol(inCol, table) {
25
+ const base = (0, common_1.commonInDbColToDbCol)(inCol, inCol.name, table);
26
+ let jsType = "string";
27
+ let col;
28
+ let pickVals = [];
29
+ if (inCol.dataType == "type-key") {
30
+ col = Object.assign(Object.assign({}, base), { dataType: exports.stringTypeKey, stringFormat: "title", pickValues: [], freeEntry: true, multiValue: false, jsType: jsType, primeText: false });
31
+ }
32
+ else {
33
+ if (inCol.pickValues && inCol.pickValues.length > 0) {
34
+ if (Array.isArray(inCol.pickValues)) {
35
+ pickVals = [...inCol.pickValues];
36
+ }
37
+ else {
38
+ pickVals = inCol.pickValues.split(";").map(x => x.trim()).filter(x => x.length > 0);
39
+ }
40
+ jsType = pickVals.map(x => JSON.stringify(x)).join(" | ");
41
+ }
42
+ col = Object.assign(Object.assign({}, base), { dataType: exports.stringTypeKey, stringFormat: inCol.stringFormat || "text", pickValues: pickVals, freeEntry: inCol.freeEntry || false, multiValue: inCol.multiValue || false, default: inCol.defaultStr, jsType: jsType, primeText: inCol.primeText == true, mock: inCol.mock });
43
+ }
44
+ return col;
45
+ }
46
+ /*
47
+ export function stringDbColToClient(dbCol: StringDbCol, rights: UserAccessRights): StringClientProp {
48
+ const base = commonDbColToClient(dbCol, rights)
49
+ const clientCol: StringClientProp = {
50
+ type: "direct",
51
+ dataType: stringTypeKey,
52
+ ...base,
53
+ stringFormat: dbCol.stringFormat,
54
+ pickValues: dbCol.pickValues,
55
+ freeEntry: dbCol.freeEntry,
56
+ multiValue: dbCol.multiValue,
57
+ default: dbCol.default,
58
+ jsType: dbCol.jsType,
59
+ primeText: dbCol.primeText
60
+ }
61
+ return clientCol
62
+ }*/
63
+ //# sourceMappingURL=string.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.js","sourceRoot":"","sources":["../../../../lib/data-access/data-types/types/string.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,18 @@
1
+ import { DbTable } from "../../../datamodel/db-model/data-model";
2
+ import { DbColumnBase, RegKeyCommon, InDbColumnNamedBase } from "../common";
3
+ import { TimestampArrayTypeKey, TimestampArrayBase } from "./client/types/timestamp-array";
4
+ export declare const timestampTypeKey = "timestamp-array";
5
+ export type TimestampArrayRegKeyModel = {
6
+ dataType: TimestampArrayTypeKey;
7
+ name: string;
8
+ dateFormat: "date" | "time" | "dateTime" | null;
9
+ } & RegKeyCommon;
10
+ export declare function timestampRegKeyToInDbCol(regKey: TimestampArrayRegKeyModel): InTimestampArrayDbCol;
11
+ export type InTimestampArrayDbCol = {
12
+ dataType: TimestampArrayTypeKey;
13
+ dateFormat?: "date" | "time" | "dateTime";
14
+ } & InDbColumnNamedBase;
15
+ export declare function timestampInDbColToDbCol(inCol: InTimestampArrayDbCol, table: DbTable): TimestampArrayDbCol;
16
+ export type TimestampArrayDbCol = {
17
+ dataType: TimestampArrayTypeKey;
18
+ } & DbColumnBase & TimestampArrayBase;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.timestampTypeKey = void 0;
4
+ exports.timestampRegKeyToInDbCol = timestampRegKeyToInDbCol;
5
+ exports.timestampInDbColToDbCol = timestampInDbColToDbCol;
6
+ const common_1 = require("../common");
7
+ exports.timestampTypeKey = "timestamp-array";
8
+ function timestampRegKeyToInDbCol(regKey) {
9
+ const inDbCol = Object.assign(Object.assign({}, (0, common_1.commonRegKeyToInDbCol)(regKey)), { dataType: exports.timestampTypeKey, name: regKey.name });
10
+ if (regKey.dateFormat != null)
11
+ inDbCol.dateFormat = regKey.dateFormat;
12
+ return inDbCol;
13
+ }
14
+ function timestampInDbColToDbCol(inCol, table) {
15
+ const base = (0, common_1.commonInDbColToDbCol)(inCol, inCol.name, table);
16
+ const col = Object.assign(Object.assign({ dataType: exports.timestampTypeKey }, base), { dateFormat: inCol.dateFormat || "dateTime", jsType: "Date" });
17
+ return col;
18
+ }
19
+ /*
20
+ export function timestampDbColToClient(dbCol: TimestampArrayDbCol, rights: UserAccessRights): TimestampArrayClientProp {
21
+ const base = commonDbColToClient(dbCol, rights)
22
+ const clientCol: TimestampArrayClientProp = {
23
+ type: "direct",
24
+ dataType: timestampTypeKey,
25
+ ...base,
26
+ dateFormat: dbCol.dateFormat,
27
+ jsType: dbCol.jsType
28
+ }
29
+ return clientCol
30
+ }
31
+ */
32
+ //# sourceMappingURL=timestamp-array.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timestamp-array.js","sourceRoot":"","sources":["../../../../lib/data-access/data-types/types/timestamp-array.ts"],"names":[],"mappings":";;;AAeA,4DAQC;AAOD,0DASC;AAtCD,sCAGkB;AAGL,QAAA,gBAAgB,GAAG,iBAAiB,CAAA;AAQjD,SAAgB,wBAAwB,CAAC,MAAiC;IACzE,MAAM,OAAO,mCACT,IAAA,8BAAqB,EAAC,MAAM,CAAC,KAChC,QAAQ,EAAE,wBAAgB,EAC1B,IAAI,EAAE,MAAM,CAAC,IAAI,GACjB,CAAA;IACD,IAAI,MAAM,CAAC,UAAU,IAAI,IAAI;QAAE,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAA;IACrE,OAAO,OAAO,CAAA;AACf,CAAC;AAOD,SAAgB,uBAAuB,CAAC,KAA4B,EAAE,KAAc;IACnF,MAAM,IAAI,GAAG,IAAA,6BAAoB,EAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IAC3D,MAAM,GAAG,iCACR,QAAQ,EAAE,wBAAgB,IACvB,IAAI,KACP,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,UAAU,EAC1C,MAAM,EAAE,MAAM,GACd,CAAA;IACD,OAAO,GAAG,CAAA;AACX,CAAC;AAMD;;;;;;;;;;;;EAYE"}
@@ -0,0 +1,18 @@
1
+ import { DbTable } from "../../../datamodel/db-model/data-model";
2
+ import { DbColumnBase, RegKeyCommon, InDbColumnNamedBase } from "../common";
3
+ import { TimestampTypeKey, TimestampBase } from "./client/types/timestamp";
4
+ export declare const timestampTypeKey = "timestamp";
5
+ export type TimestampRegKeyModel = {
6
+ dataType: TimestampTypeKey;
7
+ name: string;
8
+ dateFormat: "date" | "time" | "dateTime" | null;
9
+ } & RegKeyCommon;
10
+ export declare function timestampRegKeyToInDbCol(regKey: TimestampRegKeyModel): InTimestampDbCol;
11
+ export type InTimestampDbCol = {
12
+ dataType: TimestampTypeKey;
13
+ dateFormat?: "date" | "time" | "dateTime";
14
+ } & InDbColumnNamedBase;
15
+ export declare function timestampInDbColToDbCol(inCol: InTimestampDbCol, table: DbTable): TimestampDbCol;
16
+ export type TimestampDbCol = {
17
+ dataType: TimestampTypeKey;
18
+ } & DbColumnBase & TimestampBase;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.timestampTypeKey = void 0;
4
+ exports.timestampRegKeyToInDbCol = timestampRegKeyToInDbCol;
5
+ exports.timestampInDbColToDbCol = timestampInDbColToDbCol;
6
+ const common_1 = require("../common");
7
+ exports.timestampTypeKey = "timestamp";
8
+ function timestampRegKeyToInDbCol(regKey) {
9
+ const inDbCol = Object.assign(Object.assign({}, (0, common_1.commonRegKeyToInDbCol)(regKey)), { dataType: exports.timestampTypeKey, name: regKey.name });
10
+ if (regKey.dateFormat != null)
11
+ inDbCol.dateFormat = regKey.dateFormat;
12
+ return inDbCol;
13
+ }
14
+ function timestampInDbColToDbCol(inCol, table) {
15
+ const base = (0, common_1.commonInDbColToDbCol)(inCol, inCol.name, table);
16
+ const col = Object.assign(Object.assign({ dataType: exports.timestampTypeKey }, base), { dateFormat: inCol.dateFormat || "dateTime", jsType: "Date" });
17
+ return col;
18
+ }
19
+ /*
20
+ export function timestampDbColToClient(dbCol: TimestampDbCol, rights: UserAccessRights): TimestampClientProp {
21
+ const base = commonDbColToClient(dbCol, rights)
22
+ const clientCol: TimestampClientProp = {
23
+ type: "direct",
24
+ dataType: timestampTypeKey,
25
+ ...base,
26
+ dateFormat: dbCol.dateFormat,
27
+ jsType: dbCol.jsType
28
+ }
29
+ return clientCol
30
+ }
31
+ */
32
+ //# sourceMappingURL=timestamp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../lib/data-access/data-types/types/timestamp.ts"],"names":[],"mappings":";;;AAeA,4DAQC;AAOD,0DASC;AAtCD,sCAGkB;AAGL,QAAA,gBAAgB,GAAG,WAAW,CAAA;AAQ3C,SAAgB,wBAAwB,CAAC,MAA4B;IACpE,MAAM,OAAO,mCACT,IAAA,8BAAqB,EAAC,MAAM,CAAC,KAChC,QAAQ,EAAE,wBAAgB,EAC1B,IAAI,EAAE,MAAM,CAAC,IAAI,GACjB,CAAA;IACD,IAAI,MAAM,CAAC,UAAU,IAAI,IAAI;QAAE,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAA;IACrE,OAAO,OAAO,CAAA;AACf,CAAC;AAOD,SAAgB,uBAAuB,CAAC,KAAuB,EAAE,KAAc;IAC9E,MAAM,IAAI,GAAG,IAAA,6BAAoB,EAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IAC3D,MAAM,GAAG,iCACR,QAAQ,EAAE,wBAAgB,IACvB,IAAI,KACP,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,UAAU,EAC1C,MAAM,EAAE,MAAM,GACd,CAAA;IACD,OAAO,GAAG,CAAA;AACX,CAAC;AAMD;;;;;;;;;;;;EAYE"}
@@ -0,0 +1,87 @@
1
+ import { PrimeDbTable } from "../../../datamodel/db-model/data-model";
2
+ import { VariantNamed } from "../../../utils/casing";
3
+ import { DbColumnBase, RegKeyCommon, InDbColumnNamedBase } from "../common";
4
+ import { DbColumnUnion, RegKeyModelUnion } from "../union";
5
+ import { TypeKeyTypeKey, TypeKeyBase } from "./client/types/type-key";
6
+ export declare const typekeyTypeKey = "type-key";
7
+ export type TypeKeyRegKeyModel = {
8
+ dataType: TypeKeyTypeKey;
9
+ name: string;
10
+ types?: RegTypeModel[];
11
+ useTransitions?: boolean;
12
+ } & RegKeyCommon;
13
+ export declare function typekeyRegKeyToInDbCol(regKey: TypeKeyRegKeyModel): InTypeKeyDbCol;
14
+ export type InTypeKeyDbCol = {
15
+ dataType: TypeKeyTypeKey;
16
+ types: InType[];
17
+ useTransitions?: boolean;
18
+ } & InDbColumnNamedBase;
19
+ export declare function typekeyInDbColToDbCol(inCol: InTypeKeyDbCol, table: PrimeDbTable): TypeKeyDbCol;
20
+ export type TypeKeyDbCol = {
21
+ dataType: TypeKeyTypeKey;
22
+ types: Type[];
23
+ typesDict: Map<string, Type>;
24
+ useTransitions: boolean;
25
+ jsType: `string`;
26
+ } & DbColumnBase & TypeKeyBase;
27
+ export type RegTypeModel = {
28
+ id: number;
29
+ pubId: string;
30
+ registerId: number;
31
+ typeKeyId: number;
32
+ title: string;
33
+ description: string | null;
34
+ defaultOtherKeyBehaviour: TypeColBehaviour;
35
+ canCreate: boolean;
36
+ typeKeyRules?: TypeKeyRuleModel[];
37
+ };
38
+ export type TypeKeyRuleModel = {
39
+ id: number;
40
+ pubId: string;
41
+ registerId: number;
42
+ regTypeId: number;
43
+ regKeyId: number;
44
+ title: string;
45
+ description: string | null;
46
+ behaviour: TypeColBehaviour;
47
+ behaviourIfNull: TypeColBehaviour | null;
48
+ preRequisites: string | null;
49
+ required: boolean | null;
50
+ immutable: boolean | null;
51
+ targetRegKey?: RegKeyModelUnion;
52
+ };
53
+ export type TypeColBehaviour = "open" | "closed" | "hidden";
54
+ export type InTypeColRule = {
55
+ colName: string;
56
+ behaviour?: TypeColBehaviour;
57
+ behaviourIfNull?: TypeColBehaviour;
58
+ preRequisites?: string;
59
+ required?: boolean;
60
+ immutable?: boolean;
61
+ label?: string;
62
+ };
63
+ export type InType = {
64
+ name: string;
65
+ label?: string;
66
+ colRules: InTypeColRule[];
67
+ defaultOtherTypeColBehaviour?: TypeColBehaviour;
68
+ canCreate?: boolean;
69
+ blocksDelete?: boolean;
70
+ };
71
+ export type Type = {
72
+ typeCol: TypeKeyDbCol;
73
+ colRules: TypeColRule[];
74
+ colRulesDict: Map<string, TypeColRule>;
75
+ defaultOtherTypeColBehaviour: TypeColBehaviour;
76
+ canCreate: boolean;
77
+ blocksDelete: boolean;
78
+ transitionProp: string;
79
+ } & VariantNamed;
80
+ export type TypeColRule = {
81
+ type: Type;
82
+ targetCol: DbColumnUnion;
83
+ behaviour: TypeColBehaviour;
84
+ behaviourIfNull?: TypeColBehaviour;
85
+ preRequisites?: string;
86
+ requiresValue: boolean;
87
+ };
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.typekeyTypeKey = void 0;
4
+ exports.typekeyRegKeyToInDbCol = typekeyRegKeyToInDbCol;
5
+ exports.typekeyInDbColToDbCol = typekeyInDbColToDbCol;
6
+ const casing_1 = require("../../../utils/casing");
7
+ const common_1 = require("../common");
8
+ exports.typekeyTypeKey = "type-key";
9
+ function typekeyRegKeyToInDbCol(regKey) {
10
+ const inDbCol = Object.assign(Object.assign({}, (0, common_1.commonRegKeyToInDbCol)(regKey)), { dataType: exports.typekeyTypeKey, name: regKey.name, useTransitions: regKey.useTransitions, types: [] });
11
+ if (regKey.types) {
12
+ for (let regType of regKey.types) {
13
+ const inType = {
14
+ name: (0, casing_1.toPgFormat)(regType.title),
15
+ label: regType.title,
16
+ colRules: [],
17
+ defaultOtherTypeColBehaviour: regType.defaultOtherKeyBehaviour,
18
+ canCreate: regType.canCreate
19
+ };
20
+ inDbCol.types.push(inType);
21
+ if (regType.typeKeyRules) {
22
+ for (let regRule of regType.typeKeyRules) {
23
+ let targetName = "";
24
+ if (regRule.targetRegKey) {
25
+ if (regRule.targetRegKey.dataType == "fk") {
26
+ if (regRule.targetRegKey.idPropName == null) {
27
+ throw new Error("id prop should have been set above");
28
+ }
29
+ targetName = regRule.targetRegKey.idPropName;
30
+ }
31
+ else {
32
+ targetName = regRule.targetRegKey.name;
33
+ }
34
+ }
35
+ const inRule = {
36
+ colName: targetName,
37
+ behaviour: regRule.behaviour,
38
+ behaviourIfNull: regRule.behaviourIfNull || undefined,
39
+ preRequisites: regRule.preRequisites || undefined,
40
+ required: regRule.required || undefined,
41
+ immutable: regRule.immutable || undefined,
42
+ label: regRule.title
43
+ };
44
+ inType.colRules.push(inRule);
45
+ }
46
+ }
47
+ }
48
+ }
49
+ return inDbCol;
50
+ }
51
+ function typekeyInDbColToDbCol(inCol, table) {
52
+ const base = (0, common_1.commonInDbColToDbCol)(inCol, inCol.name, table);
53
+ const col = Object.assign(Object.assign({ dataType: exports.typekeyTypeKey }, base), { types: [], typesDict: new Map(), requiresValue: true, useTransitions: inCol.useTransitions || false, jsType: "string" });
54
+ return col;
55
+ }
56
+ //# sourceMappingURL=type-key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-key.js","sourceRoot":"","sources":["../../../../lib/data-access/data-types/types/type-key.ts"],"names":[],"mappings":";;;AAgBA,wDA+CC;AAQD,sDAYC;AAlFD,kDAAiF;AACjF,sCAAwH;AAK3G,QAAA,cAAc,GAAG,UAAU,CAAA;AASxC,SAAgB,sBAAsB,CAAC,MAA0B;IAChE,MAAM,OAAO,mCACT,IAAA,8BAAqB,EAAC,MAAM,CAAC,KAChC,QAAQ,EAAE,sBAAc,EACxB,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,cAAc,EAAE,MAAM,CAAC,cAAc,EACrC,KAAK,EAAE,EAAE,GACT,CAAA;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QAClB,KAAK,IAAI,OAAO,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YAClC,MAAM,MAAM,GAAW;gBACtB,IAAI,EAAE,IAAA,mBAAU,EAAC,OAAO,CAAC,KAAK,CAAC;gBAC/B,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,QAAQ,EAAE,EAAE;gBACZ,4BAA4B,EAAE,OAAO,CAAC,wBAAwB;gBAC9D,SAAS,EAAE,OAAO,CAAC,SAAS;aAC5B,CAAA;YACD,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;YAC1B,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;gBAC1B,KAAK,IAAI,OAAO,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;oBAC1C,IAAI,UAAU,GAAG,EAAE,CAAA;oBACnB,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;wBAC1B,IAAI,OAAO,CAAC,YAAY,CAAC,QAAQ,IAAI,IAAI,EAAE,CAAC;4BAC3C,IAAI,OAAO,CAAC,YAAY,CAAC,UAAU,IAAI,IAAI,EAAE,CAAC;gCAC7C,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAA;4BACtD,CAAC;4BACD,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,UAAU,CAAA;wBAC7C,CAAC;6BACI,CAAC;4BACL,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAA;wBACvC,CAAC;oBACF,CAAC;oBACD,MAAM,MAAM,GAAkB;wBAC7B,OAAO,EAAE,UAAU;wBACnB,SAAS,EAAE,OAAO,CAAC,SAAS;wBAC5B,eAAe,EAAE,OAAO,CAAC,eAAe,IAAI,SAAS;wBACrD,aAAa,EAAE,OAAO,CAAC,aAAa,IAAI,SAAS;wBACjD,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,SAAS;wBACvC,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,SAAS;wBACzC,KAAK,EAAE,OAAO,CAAC,KAAK;qBACpB,CAAA;oBACD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;gBAC7B,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;IACD,OAAO,OAAO,CAAA;AACf,CAAC;AAQD,SAAgB,qBAAqB,CAAC,KAAqB,EAAE,KAAmB;IAC/E,MAAM,IAAI,GAAG,IAAA,6BAAoB,EAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IAC3D,MAAM,GAAG,iCACR,QAAQ,EAAE,sBAAc,IACrB,IAAI,KACP,KAAK,EAAE,EAAE,EACT,SAAS,EAAE,IAAI,GAAG,EAAE,EACpB,aAAa,EAAE,IAAI,EACnB,cAAc,EAAE,KAAK,CAAC,cAAc,IAAI,KAAK,EAC7C,MAAM,EAAE,QAAQ,GAChB,CAAA;IACD,OAAO,GAAG,CAAA;AACX,CAAC"}
@@ -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/user-picker.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ import { DbTable } from "../../../datamodel/db-model/data-model";
2
+ import { DbColumnBase, RegKeyCommon, InDbColumnNamedBase } from "../common";
3
+ import { WholeNumArrayTypeKey, WholeNumArrayBase } from "./client/types/whole-num-array";
4
+ export declare const wholeNumArrayTypeKey = "whole-num-array";
5
+ export type WholeNumArrayRegKeyModel = {
6
+ dataType: WholeNumArrayTypeKey;
7
+ name: string;
8
+ minWholeNum: number | null;
9
+ maxWholeNum: number | null;
10
+ defaultWholeNumArray: number[] | null;
11
+ } & RegKeyCommon;
12
+ export declare function wholenumRegKeyToInDbCol(regKey: WholeNumArrayRegKeyModel): InWholeNumArrayDbCol;
13
+ export type InWholeNumArrayDbCol = {
14
+ dataType: WholeNumArrayTypeKey;
15
+ minWholeNum?: number;
16
+ maxWholeNum?: number;
17
+ defaultWholeNumArray?: number[];
18
+ } & InDbColumnNamedBase;
19
+ export declare function wholenumInDbColToDbCol(inCol: InWholeNumArrayDbCol, table: DbTable): WholeNumArrayDbCol;
20
+ export type WholeNumArrayDbCol = {
21
+ dataType: WholeNumArrayTypeKey;
22
+ } & DbColumnBase & WholeNumArrayBase;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wholeNumArrayTypeKey = void 0;
4
+ exports.wholenumRegKeyToInDbCol = wholenumRegKeyToInDbCol;
5
+ exports.wholenumInDbColToDbCol = wholenumInDbColToDbCol;
6
+ const common_1 = require("../common");
7
+ exports.wholeNumArrayTypeKey = "whole-num-array";
8
+ function wholenumRegKeyToInDbCol(regKey) {
9
+ const inDbCol = Object.assign(Object.assign({}, (0, common_1.commonRegKeyToInDbCol)(regKey)), { dataType: exports.wholeNumArrayTypeKey, name: regKey.name });
10
+ if (regKey.minWholeNum != null)
11
+ inDbCol.minWholeNum = regKey.minWholeNum;
12
+ if (regKey.maxWholeNum != null)
13
+ inDbCol.maxWholeNum = regKey.maxWholeNum;
14
+ if (regKey.defaultWholeNumArray != null)
15
+ inDbCol.defaultWholeNumArray = regKey.defaultWholeNumArray;
16
+ return inDbCol;
17
+ }
18
+ function wholenumInDbColToDbCol(inCol, table) {
19
+ const base = (0, common_1.commonInDbColToDbCol)(inCol, inCol.name, table);
20
+ const col = Object.assign(Object.assign({ dataType: exports.wholeNumArrayTypeKey }, base), { min: inCol.minWholeNum, max: inCol.maxWholeNum, default: inCol.defaultWholeNumArray, jsType: "number" });
21
+ return col;
22
+ }
23
+ /*
24
+ export function wholenumDbColToClient(dbCol: WholeNumArrayDbCol, rights: UserAccessRights): WholeNumArrayClientProp {
25
+ const base = commonDbColToClient(dbCol, rights)
26
+ const clientCol: WholeNumArrayClientProp = {
27
+ type: "direct",
28
+ dataType: wholeNumArrayTypeKey,
29
+ ...base,
30
+ min: dbCol.min,
31
+ max: dbCol.max,
32
+ default: dbCol.default,
33
+ jsType: dbCol.jsType
34
+ }
35
+ return clientCol
36
+ }
37
+ */
38
+ //# 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/whole-num-array.ts"],"names":[],"mappings":";;;AAgBA,0DAUC;AASD,wDAWC;AA7CD,sCAEkB;AAGL,QAAA,oBAAoB,GAAG,iBAAiB,CAAA;AAUrD,SAAgB,uBAAuB,CAAC,MAAgC;IACvE,MAAM,OAAO,mCACT,IAAA,8BAAqB,EAAC,MAAM,CAAC,KAChC,QAAQ,EAAE,4BAAoB,EAC9B,IAAI,EAAE,MAAM,CAAC,IAAI,GACjB,CAAA;IACD,IAAI,MAAM,CAAC,WAAW,IAAI,IAAI;QAAE,OAAO,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;IACxE,IAAI,MAAM,CAAC,WAAW,IAAI,IAAI;QAAE,OAAO,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;IACxE,IAAI,MAAM,CAAC,oBAAoB,IAAI,IAAI;QAAE,OAAO,CAAC,oBAAoB,GAAG,MAAM,CAAC,oBAAoB,CAAA;IACnG,OAAO,OAAO,CAAA;AACf,CAAC;AASD,SAAgB,sBAAsB,CAAC,KAA2B,EAAE,KAAc;IACjF,MAAM,IAAI,GAAG,IAAA,6BAAoB,EAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IAC3D,MAAM,GAAG,iCACR,QAAQ,EAAE,4BAAoB,IAC3B,IAAI,KACP,GAAG,EAAE,KAAK,CAAC,WAAW,EACtB,GAAG,EAAE,KAAK,CAAC,WAAW,EACtB,OAAO,EAAE,KAAK,CAAC,oBAAoB,EACnC,MAAM,EAAE,QAAQ,GAChB,CAAA;IACD,OAAO,GAAG,CAAA;AACX,CAAC;AAMD;;;;;;;;;;;;;;EAcE"}
@@ -0,0 +1,22 @@
1
+ import { DbTable } from "../../../datamodel/db-model/data-model";
2
+ import { DbColumnBase, RegKeyCommon, InDbColumnNamedBase } from "../common";
3
+ import { WholeNumTypeKey, WholeNumBase } from "./client/types/whole-num";
4
+ export declare const wholenumTypeKey = "whole-num";
5
+ export type WholeNumRegKeyModel = {
6
+ dataType: WholeNumTypeKey;
7
+ name: string;
8
+ minWholeNum: number | null;
9
+ maxWholeNum: number | null;
10
+ defaultWholeNum: number | null;
11
+ } & RegKeyCommon;
12
+ export declare function wholenumRegKeyToInDbCol(regKey: WholeNumRegKeyModel): InWholeNumDbCol;
13
+ export type InWholeNumDbCol = {
14
+ dataType: WholeNumTypeKey;
15
+ minWholeNum?: number;
16
+ maxWholeNum?: number;
17
+ defaultWholeNum?: number;
18
+ } & InDbColumnNamedBase;
19
+ export declare function wholenumInDbColToDbCol(inCol: InWholeNumDbCol, table: DbTable): WholeNumDbCol;
20
+ export type WholeNumDbCol = {
21
+ dataType: WholeNumTypeKey;
22
+ } & DbColumnBase & WholeNumBase;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wholenumTypeKey = void 0;
4
+ exports.wholenumRegKeyToInDbCol = wholenumRegKeyToInDbCol;
5
+ exports.wholenumInDbColToDbCol = wholenumInDbColToDbCol;
6
+ const common_1 = require("../common");
7
+ exports.wholenumTypeKey = "whole-num";
8
+ function wholenumRegKeyToInDbCol(regKey) {
9
+ const inDbCol = Object.assign(Object.assign({}, (0, common_1.commonRegKeyToInDbCol)(regKey)), { dataType: exports.wholenumTypeKey, name: regKey.name });
10
+ if (regKey.minWholeNum != null)
11
+ inDbCol.minWholeNum = regKey.minWholeNum;
12
+ if (regKey.maxWholeNum != null)
13
+ inDbCol.maxWholeNum = regKey.maxWholeNum;
14
+ if (regKey.defaultWholeNum != null)
15
+ inDbCol.defaultWholeNum = regKey.defaultWholeNum;
16
+ return inDbCol;
17
+ }
18
+ function wholenumInDbColToDbCol(inCol, table) {
19
+ const base = (0, common_1.commonInDbColToDbCol)(inCol, inCol.name, table);
20
+ const col = Object.assign(Object.assign({ dataType: exports.wholenumTypeKey }, base), { min: inCol.minWholeNum, max: inCol.maxWholeNum, default: inCol.defaultWholeNum, jsType: "number" });
21
+ return col;
22
+ }
23
+ /*
24
+ export function wholenumDbColToClient(dbCol: WholeNumDbCol, rights: UserAccessRights): WholeNumClientProp {
25
+ const base = commonDbColToClient(dbCol, rights)
26
+ const clientCol: WholeNumClientProp = {
27
+ type: "direct",
28
+ dataType: wholenumTypeKey,
29
+ ...base,
30
+ min: dbCol.min,
31
+ max: dbCol.max,
32
+ default: dbCol.default,
33
+ jsType: dbCol.jsType
34
+ }
35
+ return clientCol
36
+ }*/
37
+ //# sourceMappingURL=whole-num.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whole-num.js","sourceRoot":"","sources":["../../../../lib/data-access/data-types/types/whole-num.ts"],"names":[],"mappings":";;;AAgBA,0DAUC;AASD,wDAWC;AA7CD,sCAEkB;AAGL,QAAA,eAAe,GAAG,WAAW,CAAA;AAU1C,SAAgB,uBAAuB,CAAC,MAA2B;IAClE,MAAM,OAAO,mCACT,IAAA,8BAAqB,EAAC,MAAM,CAAC,KAChC,QAAQ,EAAE,uBAAe,EACzB,IAAI,EAAE,MAAM,CAAC,IAAI,GACjB,CAAA;IACD,IAAI,MAAM,CAAC,WAAW,IAAI,IAAI;QAAE,OAAO,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;IACxE,IAAI,MAAM,CAAC,WAAW,IAAI,IAAI;QAAE,OAAO,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;IACxE,IAAI,MAAM,CAAC,eAAe,IAAI,IAAI;QAAE,OAAO,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,CAAA;IACpF,OAAO,OAAO,CAAA;AACf,CAAC;AASD,SAAgB,sBAAsB,CAAC,KAAsB,EAAE,KAAc;IAC5E,MAAM,IAAI,GAAG,IAAA,6BAAoB,EAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IAC3D,MAAM,GAAG,iCACR,QAAQ,EAAE,uBAAe,IACtB,IAAI,KACP,GAAG,EAAE,KAAK,CAAC,WAAW,EACtB,GAAG,EAAE,KAAK,CAAC,WAAW,EACtB,OAAO,EAAE,KAAK,CAAC,eAAe,EAC9B,MAAM,EAAE,QAAQ,GAChB,CAAA;IACD,OAAO,GAAG,CAAA;AACX,CAAC;AAMD;;;;;;;;;;;;;GAaG"}
@@ -0,0 +1,36 @@
1
+ import { BooleanDbCol, BooleanRegKeyModel, InBooleanDbCol } from "./types/boolean";
2
+ import { InObjectDbCol, ObjectDbCol, ObjectRegKeyModel } from "./types/object";
3
+ import { InRealNumDbCol, RealNumDbCol, RealNumRegKeyModel } from "./types/real-num";
4
+ import { InStringDbCol, StringDbCol, StringRegKeyModel } from "./types/string";
5
+ import { InTimestampDbCol, TimestampDbCol, TimestampRegKeyModel } from "./types/timestamp";
6
+ import { InWholeNumDbCol, WholeNumDbCol, WholeNumRegKeyModel } from "./types/whole-num";
7
+ import { InTypeKeyDbCol, TypeKeyDbCol, TypeKeyRegKeyModel } from "./types/type-key";
8
+ import { FkDbCol, FkRegKeyModel, InFkDbCol } from "./types/fk";
9
+ import { InPkDbCol, PkDbCol } from "./types/pk";
10
+ import { InPubIdDbCol, PubIdDbCol } from "./types/pub-id";
11
+ import { ChildPubIdSeqDbCol } from "./types/child-pub-id-seq";
12
+ export type RegKeyModelUnion = FkRegKeyModel | StringRegKeyModel | WholeNumRegKeyModel | RealNumRegKeyModel | TimestampRegKeyModel | BooleanRegKeyModel | ObjectRegKeyModel | TypeKeyRegKeyModel;
13
+ export declare const isTypeRegKeyModel: (key: RegKeyModelUnion) => key is TypeKeyRegKeyModel;
14
+ export type InDbColumnUnion = InFkDbCol | InStringDbCol | InWholeNumDbCol | InRealNumDbCol | InTimestampDbCol | InBooleanDbCol | InObjectDbCol | InTypeKeyDbCol;
15
+ export type InDbColumnSysUnion = InDbColumnUnion | InPkDbCol | InPubIdDbCol;
16
+ export declare const isInFkDbCol: (x: InDbColumnSysUnion) => x is InFkDbCol;
17
+ export declare const isInStringDbCol: (x: InDbColumnSysUnion) => x is InStringDbCol;
18
+ export declare const isInWholeNumDbCol: (x: InDbColumnSysUnion) => x is InWholeNumDbCol;
19
+ export declare const isInRealNumDbCol: (x: InDbColumnSysUnion) => x is InRealNumDbCol;
20
+ export declare const isInTimestampDbCol: (x: InDbColumnSysUnion) => x is InTimestampDbCol;
21
+ export declare const isInBooleanDbCol: (x: InDbColumnSysUnion) => x is InBooleanDbCol;
22
+ export declare const isInObjectDbCol: (x: InDbColumnSysUnion) => x is InObjectDbCol;
23
+ export declare const isInTypeKeyDbCol: (x: InDbColumnSysUnion) => x is InTypeKeyDbCol;
24
+ export type SimpleDbColumnUnion = PkDbCol | StringDbCol | WholeNumDbCol | RealNumDbCol | TimestampDbCol | BooleanDbCol | ObjectDbCol | PubIdDbCol;
25
+ export type DbColumnUnion = PkDbCol | FkDbCol | StringDbCol | WholeNumDbCol | RealNumDbCol | TimestampDbCol | BooleanDbCol | ObjectDbCol | PubIdDbCol | ChildPubIdSeqDbCol | TypeKeyDbCol;
26
+ export declare const isPkDbCol: (x: DbColumnUnion) => x is PkDbCol;
27
+ export declare const isFkDbCol: (x: DbColumnUnion) => x is FkDbCol;
28
+ export declare const isPubIdDbCol: (x: DbColumnUnion) => x is PubIdDbCol;
29
+ export declare const isChildPubIdSeqCol: (x: DbColumnUnion) => x is ChildPubIdSeqDbCol;
30
+ export declare const isStringDbCol: (x: DbColumnUnion) => x is StringDbCol;
31
+ export declare const isWholeNumDbCol: (x: DbColumnUnion) => x is WholeNumDbCol;
32
+ export declare const isRealNumDbCol: (x: DbColumnUnion) => x is RealNumDbCol;
33
+ export declare const isTimestampDbCol: (x: DbColumnUnion) => x is TimestampDbCol;
34
+ export declare const isBooleanDbCol: (x: DbColumnUnion) => x is BooleanDbCol;
35
+ export declare const isObjectDbCol: (x: DbColumnUnion) => x is ObjectDbCol;
36
+ export declare const isTypeKeyDbCol: (x: DbColumnUnion) => x is TypeKeyDbCol;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isTypeKeyDbCol = exports.isObjectDbCol = exports.isBooleanDbCol = exports.isTimestampDbCol = exports.isRealNumDbCol = exports.isWholeNumDbCol = exports.isStringDbCol = exports.isChildPubIdSeqCol = exports.isPubIdDbCol = exports.isFkDbCol = exports.isPkDbCol = exports.isInTypeKeyDbCol = exports.isInObjectDbCol = exports.isInBooleanDbCol = exports.isInTimestampDbCol = exports.isInRealNumDbCol = exports.isInWholeNumDbCol = exports.isInStringDbCol = exports.isInFkDbCol = exports.isTypeRegKeyModel = void 0;
4
+ const isTypeRegKeyModel = (key) => key.dataType == "type-key";
5
+ exports.isTypeRegKeyModel = isTypeRegKeyModel;
6
+ const isInFkDbCol = (x) => x.dataType == "fk";
7
+ exports.isInFkDbCol = isInFkDbCol;
8
+ const isInStringDbCol = (x) => x.dataType == "string";
9
+ exports.isInStringDbCol = isInStringDbCol;
10
+ const isInWholeNumDbCol = (x) => x.dataType == "whole-num";
11
+ exports.isInWholeNumDbCol = isInWholeNumDbCol;
12
+ const isInRealNumDbCol = (x) => x.dataType == "real-num";
13
+ exports.isInRealNumDbCol = isInRealNumDbCol;
14
+ const isInTimestampDbCol = (x) => x.dataType == "timestamp";
15
+ exports.isInTimestampDbCol = isInTimestampDbCol;
16
+ const isInBooleanDbCol = (x) => x.dataType == "boolean";
17
+ exports.isInBooleanDbCol = isInBooleanDbCol;
18
+ const isInObjectDbCol = (x) => x.dataType == "object";
19
+ exports.isInObjectDbCol = isInObjectDbCol;
20
+ const isInTypeKeyDbCol = (x) => x.dataType == "type-key";
21
+ exports.isInTypeKeyDbCol = isInTypeKeyDbCol;
22
+ const isPkDbCol = (x) => x.dataType == "pk";
23
+ exports.isPkDbCol = isPkDbCol;
24
+ const isFkDbCol = (x) => x.dataType == "fk";
25
+ exports.isFkDbCol = isFkDbCol;
26
+ const isPubIdDbCol = (x) => x.dataType == "pub-id";
27
+ exports.isPubIdDbCol = isPubIdDbCol;
28
+ const isChildPubIdSeqCol = (x) => x.dataType == "child-pub-id-seq";
29
+ exports.isChildPubIdSeqCol = isChildPubIdSeqCol;
30
+ const isStringDbCol = (x) => x.dataType == "string";
31
+ exports.isStringDbCol = isStringDbCol;
32
+ const isWholeNumDbCol = (x) => x.dataType == "whole-num";
33
+ exports.isWholeNumDbCol = isWholeNumDbCol;
34
+ const isRealNumDbCol = (x) => x.dataType == "real-num";
35
+ exports.isRealNumDbCol = isRealNumDbCol;
36
+ const isTimestampDbCol = (x) => x.dataType == "timestamp";
37
+ exports.isTimestampDbCol = isTimestampDbCol;
38
+ const isBooleanDbCol = (x) => x.dataType == "boolean";
39
+ exports.isBooleanDbCol = isBooleanDbCol;
40
+ const isObjectDbCol = (x) => x.dataType == "object";
41
+ exports.isObjectDbCol = isObjectDbCol;
42
+ const isTypeKeyDbCol = (x) => x.dataType == "type-key";
43
+ exports.isTypeKeyDbCol = isTypeKeyDbCol;
44
+ //# sourceMappingURL=union.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"union.js","sourceRoot":"","sources":["../../../lib/data-access/data-types/union.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,36 @@
1
+ import { FkDbCol } from "../../data-access/data-types/types/fk";
2
+ import { VariantNamed } from "../../utils/casing";
3
+ import { DataModel, PrimeDbTable } from "./data-model";
4
+ export type AppModel = {
5
+ datamodel: DataModel;
6
+ apps: AppUnion[];
7
+ };
8
+ export type AppUnion = IdBachApp | IdOwnerApp | AnonApp;
9
+ export type AppBase = {
10
+ requiresId: boolean;
11
+ rootTable: PrimeDbTable;
12
+ } & VariantNamed;
13
+ export type AnonApp = {
14
+ requiresId: false;
15
+ } & AppBase;
16
+ export type IdBachApp = {
17
+ type: "id-bach";
18
+ requiresId: true;
19
+ identityTable: PrimeDbTable;
20
+ identityBachIdProp: FkDbCol;
21
+ identityBachTable: PrimeDbTable;
22
+ identityBachRootProp: FkDbCol;
23
+ } & AppBase;
24
+ export type IdOwnerApp = {
25
+ type: "id-owner";
26
+ requiresId: true;
27
+ identityTable: PrimeDbTable;
28
+ identityProp: FkDbCol;
29
+ } & AppBase;
30
+ export type ViewBase = {} & VariantNamed;
31
+ export type TableViewBase = {
32
+ table: PrimeDbTable;
33
+ } & ViewBase;
34
+ export type ManyTableView = {
35
+ type: "many";
36
+ } & TableViewBase;