@golemio/fypr 1.1.1-dev.2368450356 → 1.1.1-dev.2387575538

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 (88) hide show
  1. package/db/example/01_display_cases.sql +4 -4
  2. package/db/example/02_information_panels.sql +4 -4
  3. package/db/example/03_obelisks.sql +4 -4
  4. package/db/example/05_totems.sql +1 -1
  5. package/db/migrations/postgresql/20260312000000-schema-updates.js +53 -0
  6. package/db/migrations/postgresql/20260316093713-add-source-created-at-index.js +53 -0
  7. package/db/migrations/postgresql/sqls/20260312000000-schema-updates-down.sql +14 -0
  8. package/db/migrations/postgresql/sqls/20260312000000-schema-updates-up.sql +14 -0
  9. package/db/migrations/postgresql/sqls/20260316093713-add-source-created-at-index-down.sql +6 -0
  10. package/db/migrations/postgresql/sqls/20260316093713-add-source-created-at-index-up.sql +17 -0
  11. package/dist/integration-engine/transformations/AbstractElementTransformation.js +1 -0
  12. package/dist/integration-engine/transformations/AbstractElementTransformation.js.map +1 -1
  13. package/dist/integration-engine/transformations/InformationPanelsTransformation.js +7 -0
  14. package/dist/integration-engine/transformations/InformationPanelsTransformation.js.map +1 -1
  15. package/dist/integration-engine/transformations/TotemsTransformation.js +2 -1
  16. package/dist/integration-engine/transformations/TotemsTransformation.js.map +1 -1
  17. package/dist/output-gateway/fypr/controllers/v1/V1FyprElementKindsController.d.ts +13 -0
  18. package/dist/output-gateway/fypr/controllers/v1/V1FyprElementKindsController.js +67 -0
  19. package/dist/output-gateway/fypr/controllers/v1/V1FyprElementKindsController.js.map +1 -0
  20. package/dist/output-gateway/fypr/data-access/FyprElementRepository.d.ts +18 -0
  21. package/dist/output-gateway/fypr/data-access/FyprElementRepository.js +46 -0
  22. package/dist/output-gateway/fypr/data-access/FyprElementRepository.js.map +1 -0
  23. package/dist/output-gateway/fypr/routers/index.d.ts +1 -0
  24. package/dist/output-gateway/fypr/routers/index.js +6 -0
  25. package/dist/output-gateway/fypr/routers/index.js.map +1 -0
  26. package/dist/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.d.ts +10 -0
  27. package/dist/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.js +44 -0
  28. package/dist/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.js.map +1 -0
  29. package/dist/output-gateway/index.js +2 -3
  30. package/dist/output-gateway/index.js.map +1 -1
  31. package/dist/output-gateway/ioc/Di.d.ts +2 -0
  32. package/dist/output-gateway/ioc/Di.js +26 -0
  33. package/dist/output-gateway/ioc/Di.js.map +1 -0
  34. package/dist/output-gateway/ioc/FYPROGContainerTokens.d.ts +4 -0
  35. package/dist/output-gateway/ioc/FYPROGContainerTokens.js +12 -0
  36. package/dist/output-gateway/ioc/FYPROGContainerTokens.js.map +1 -0
  37. package/dist/output-gateway/shared/constants/element-kinds.d.ts +1 -0
  38. package/dist/output-gateway/shared/constants/element-kinds.js +6 -0
  39. package/dist/output-gateway/shared/constants/element-kinds.js.map +1 -0
  40. package/dist/output-gateway/shared/constants/index.d.ts +1 -0
  41. package/dist/output-gateway/shared/constants/index.js +18 -0
  42. package/dist/output-gateway/shared/constants/index.js.map +1 -0
  43. package/dist/schema-definitions/FyprElementTypes.d.ts +6 -0
  44. package/dist/schema-definitions/FyprElementTypes.js +3 -0
  45. package/dist/schema-definitions/FyprElementTypes.js.map +1 -0
  46. package/dist/schema-definitions/const.d.ts +44 -0
  47. package/dist/schema-definitions/const.js +17 -1
  48. package/dist/schema-definitions/const.js.map +1 -1
  49. package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.js +22 -71
  50. package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.js.map +1 -1
  51. package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.js +15 -45
  52. package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.js.map +1 -1
  53. package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.js +85 -281
  54. package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.js.map +1 -1
  55. package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.js +17 -53
  56. package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.js.map +1 -1
  57. package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.js +19 -59
  58. package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.js.map +1 -1
  59. package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.js +59 -203
  60. package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.js.map +1 -1
  61. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRInformationPanel.d.ts +7 -0
  62. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRTotem.d.ts +3 -1
  63. package/dist/schema-definitions/index.d.ts +34 -2
  64. package/dist/schema-definitions/index.js +34 -1
  65. package/dist/schema-definitions/index.js.map +1 -1
  66. package/dist/schema-definitions/models/AbstractElementModel.d.ts +9 -0
  67. package/dist/schema-definitions/models/AbstractElementModel.js +15 -35
  68. package/dist/schema-definitions/models/AbstractElementModel.js.map +1 -1
  69. package/dist/schema-definitions/models/DisplayCaseModel.js +20 -60
  70. package/dist/schema-definitions/models/DisplayCaseModel.js.map +1 -1
  71. package/dist/schema-definitions/models/InformationPanelModel.d.ts +7 -0
  72. package/dist/schema-definitions/models/InformationPanelModel.js +90 -261
  73. package/dist/schema-definitions/models/InformationPanelModel.js.map +1 -1
  74. package/dist/schema-definitions/models/ObeliskModel.js +15 -42
  75. package/dist/schema-definitions/models/ObeliskModel.js.map +1 -1
  76. package/dist/schema-definitions/models/SignpostModel.js +17 -48
  77. package/dist/schema-definitions/models/SignpostModel.js.map +1 -1
  78. package/dist/schema-definitions/models/TotemModel.d.ts +1 -1
  79. package/dist/schema-definitions/models/TotemModel.js +53 -177
  80. package/dist/schema-definitions/models/TotemModel.js.map +1 -1
  81. package/dist/schema-definitions/models/interfaces/IElement.d.ts +1 -0
  82. package/dist/schema-definitions/models/interfaces/IInformationPanel.d.ts +7 -0
  83. package/dist/schema-definitions/models/interfaces/ITotem.d.ts +1 -1
  84. package/docs/asyncapi.yaml +26 -0
  85. package/docs/implementation_documentation.md +67 -16
  86. package/docs/openapi-output.yaml +437 -249
  87. package/docs/translations.md +9 -1
  88. package/package.json +13 -4
@@ -1,216 +1,72 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.dbfyprTotemsJSONSchema = void 0;
4
+ const const_1 = require("../const");
4
5
  const DBFYPRElementsJSONSchema_1 = require("./DBFYPRElementsJSONSchema");
6
+ // cena_vyroba_bez_dph and cena_prvku_bez_dph are optional (?) in IDBFYPRTotem — JSONSchemaType cannot express
7
+ // optional fields alongside additionalProperties: true, so they are excluded from the type parameter here.
8
+ // TODO: once the migration is done and cena_prvku_bez_dph is removed from IDBFYPRTotem, drop the explicit
9
+ // key exclusions and restore: JSONSchemaType<Array<Omit<IDBFYPRTotem, keyof IDBFYPRElement>>>
5
10
  const dbfyprTotemsJSONSchemaAux = {
6
11
  type: "array",
7
12
  items: {
8
13
  type: "object",
9
14
  properties: {
10
- velikost_panelu: {
11
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
12
- },
13
- lokalita: {
14
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
15
- },
16
- zobrazena_ikona: {
17
- oneOf: [
18
- {
19
- type: "array",
20
- items: { type: "string" },
21
- },
22
- { type: "null", nullable: true },
23
- ],
24
- },
25
- linka: {
26
- oneOf: [
27
- {
28
- type: "array",
29
- items: { type: "string" },
30
- },
31
- { type: "null", nullable: true },
32
- ],
33
- },
34
- priorita: {
35
- oneOf: [{ type: "number" }, { type: "null", nullable: true }],
36
- },
37
- mistni_setreni: {
38
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
39
- },
40
- vyska_instalace: {
41
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
42
- },
43
- cislo_vo: {
44
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
45
- },
46
- obmena_vo: {
47
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
48
- },
49
- cislo_tv: {
50
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
51
- },
52
- ss_stavebni_rizeni: {
53
- oneOf: [{ type: "boolean" }, { type: "null", nullable: true }],
54
- },
55
- ss_stavebni_rizeni_stav: {
56
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
57
- },
58
- umisteni_poznamka: {
59
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
60
- },
61
- mistni_setreni_zprava: {
62
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
63
- },
64
- objednavka_stav: {
65
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
66
- },
67
- objednavka_cislo: {
68
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
69
- },
70
- cena_projekce_bez_dph: {
71
- oneOf: [{ type: "number" }, { type: "null", nullable: true }],
72
- },
73
- cena_realizace_bez_dph: {
74
- oneOf: [{ type: "number" }, { type: "null", nullable: true }],
75
- },
76
- konec_zaruky: {
77
- oneOf: [
78
- { type: "string", format: "date" },
79
- { type: "null", nullable: true },
80
- ],
81
- },
82
- revize_nasledujici: {
83
- oneOf: [
84
- { type: "string", format: "date" },
85
- { type: "null", nullable: true },
86
- ],
87
- },
88
- qr_kod: {
89
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
90
- },
91
- dodavatel: {
92
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
93
- },
94
- predani_do_spravy: {
95
- oneOf: [{ type: "boolean" }, { type: "null", nullable: true }],
96
- },
97
- predani_do_spravy_datum: {
98
- oneOf: [
99
- { type: "string", format: "date" },
100
- { type: "null", nullable: true },
101
- ],
102
- },
103
- zastavka_nazev: {
104
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
105
- },
106
- zastavka_typ: {
107
- oneOf: [
108
- {
109
- type: "array",
110
- items: { type: "string" },
111
- },
112
- { type: "null", nullable: true },
113
- ],
114
- },
115
- mistni_setreni_datum: {
116
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
117
- },
118
- objednavka_planovany_termin: {
119
- oneOf: [
120
- { type: "string", format: "date" },
121
- { type: "null", nullable: true },
122
- ],
123
- },
124
- objednavka_zverejneni_v_registru: {
125
- oneOf: [{ type: "boolean" }, { type: "null", nullable: true }],
126
- },
127
- faktura_proplacena: {
128
- oneOf: [{ type: "boolean" }, { type: "null", nullable: true }],
129
- },
130
- revize_vychozi: {
131
- oneOf: [
132
- { type: "string", format: "date" },
133
- { type: "null", nullable: true },
134
- ],
135
- },
136
- evidence_v_majetku: {
137
- oneOf: [{ type: "boolean" }, { type: "null", nullable: true }],
138
- },
139
- cislo_majetku: {
140
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
141
- },
142
- pojisteni: {
143
- oneOf: [{ type: "boolean" }, { type: "null", nullable: true }],
144
- },
145
- predano_ozp_do_spravy: {
146
- oneOf: [{ type: "boolean" }, { type: "null", nullable: true }],
147
- },
148
- dokumentace_pro_ropid_predana: {
149
- oneOf: [
150
- {
151
- type: "array",
152
- items: { type: "string" },
153
- },
154
- { type: "null", nullable: true },
155
- ],
156
- },
157
- dokumentace_pro_ropid_datum_predani: {
158
- oneOf: [
159
- { type: "string", format: "date" },
160
- { type: "null", nullable: true },
161
- ],
162
- },
163
- ulice_nazev: {
164
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
165
- },
166
- exit_cislo: {
167
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
168
- },
169
- priorita_dpp: {
170
- oneOf: [{ type: "number" }, { type: "null", nullable: true }],
171
- },
172
- pojisteni_stav: {
173
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
174
- },
175
- komentare: {
176
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
177
- },
178
- asw_node_id: {
179
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
180
- },
181
- asw_stop_id: {
182
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
183
- },
184
- prikon_watt: {
185
- oneOf: [{ type: "number" }, { type: "null", nullable: true }],
186
- },
187
- cislo_prvku_thmp: {
188
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
189
- },
190
- smlouva_odber_elektriny: {
191
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
192
- },
193
- cetnost_uklidu: {
194
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
195
- },
196
- cena_za_odber_elektriny: {
197
- oneOf: [{ type: "number" }, { type: "null", nullable: true }],
198
- },
199
- id_prvku_ropid: {
200
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
201
- },
202
- typ_konstrukce_prvku: {
203
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
204
- },
205
- cena_prvku_bez_dph: {
206
- oneOf: [{ type: "number" }, { type: "null", nullable: true }],
207
- },
208
- vyrobni_cislo_prvku: {
209
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
210
- },
15
+ velikost_panelu: const_1.nullableString,
16
+ lokalita: const_1.nullableString,
17
+ zobrazena_ikona: const_1.nullableStringArray,
18
+ linka: const_1.nullableStringArray,
19
+ priorita: const_1.nullableNumber,
20
+ mistni_setreni: const_1.nullableString,
21
+ vyska_instalace: const_1.nullableString,
22
+ cislo_vo: const_1.nullableString,
23
+ obmena_vo: const_1.nullableString,
24
+ cislo_tv: const_1.nullableString,
25
+ ss_stavebni_rizeni: const_1.nullableBoolean,
26
+ ss_stavebni_rizeni_stav: const_1.nullableString,
27
+ umisteni_poznamka: const_1.nullableString,
28
+ mistni_setreni_zprava: const_1.nullableString,
29
+ objednavka_stav: const_1.nullableString,
30
+ objednavka_cislo: const_1.nullableString,
31
+ cena_projekce_bez_dph: const_1.nullableNumber,
32
+ cena_realizace_bez_dph: const_1.nullableNumber,
33
+ konec_zaruky: const_1.nullableDateString,
34
+ revize_nasledujici: const_1.nullableDateString,
35
+ qr_kod: const_1.nullableString,
36
+ dodavatel: const_1.nullableString,
37
+ zastavka_nazev: const_1.nullableString,
38
+ zastavka_typ: const_1.nullableStringArray,
39
+ mistni_setreni_datum: const_1.nullableString,
40
+ objednavka_planovany_termin: const_1.nullableDateString,
41
+ objednavka_zverejneni_v_registru: const_1.nullableBoolean,
42
+ faktura_proplacena: const_1.nullableBoolean,
43
+ revize_vychozi: const_1.nullableDateString,
44
+ evidence_v_majetku: const_1.nullableBoolean,
45
+ cislo_majetku: const_1.nullableString,
46
+ pojisteni: const_1.nullableBoolean,
47
+ predano_ozp_do_spravy: const_1.nullableBoolean,
48
+ dokumentace_pro_ropid_predana: const_1.nullableStringArray,
49
+ dokumentace_pro_ropid_datum_predani: const_1.nullableDateString,
50
+ ulice_nazev: const_1.nullableString,
51
+ exit_cislo: const_1.nullableString,
52
+ priorita_dpp: const_1.nullableNumber,
53
+ pojisteni_stav: const_1.nullableString,
54
+ komentare: const_1.nullableString,
55
+ asw_node_id: const_1.nullableString,
56
+ asw_stop_id: const_1.nullableString,
57
+ prikon_watt: const_1.nullableNumber,
58
+ cislo_prvku_thmp: const_1.nullableString,
59
+ smlouva_odber_elektriny: const_1.nullableString,
60
+ cetnost_uklidu: const_1.nullableString,
61
+ cena_za_odber_elektriny: const_1.nullableNumber,
62
+ id_prvku_ropid: const_1.nullableString,
63
+ typ_konstrukce_prvku: const_1.nullableString,
64
+ cena_vyroba_bez_dph: const_1.nullableNumber,
65
+ cena_prvku_bez_dph: const_1.nullableNumber,
66
+ vyrobni_cislo_prvku: const_1.nullableString,
211
67
  },
212
68
  required: [],
213
- additionalProperties: false,
69
+ additionalProperties: true,
214
70
  },
215
71
  };
216
72
  exports.dbfyprTotemsJSONSchema = {
@@ -223,7 +79,7 @@ exports.dbfyprTotemsJSONSchema = {
223
79
  ...dbfyprTotemsJSONSchemaAux.items.properties,
224
80
  },
225
81
  required: [...DBFYPRElementsJSONSchema_1.dbfyprElementsJSONSchema.items.required, ...dbfyprTotemsJSONSchemaAux.items.required],
226
- additionalProperties: false,
82
+ additionalProperties: true,
227
83
  },
228
84
  };
229
85
  //# sourceMappingURL=DBFYPRTotemsJSONSchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DBFYPRTotemsJSONSchema.js","sourceRoot":"","sources":["../../../src/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.ts"],"names":[],"mappings":";;;AACA,yEAAsE;AAItE,MAAM,yBAAyB,GAAoE;IAC/F,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,eAAe,EAAE;gBACb,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aAChE;YACD,QAAQ,EAAE;gBACN,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aAChE;YACD,eAAe,EAAE;gBACb,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;qBAC5B;oBACD,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACnC;aACJ;YACD,KAAK,EAAE;gBACH,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;qBAC5B;oBACD,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACnC;aACJ;YACD,QAAQ,EAAE;gBACN,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aAChE;YACD,cAAc,EAAE;gBACZ,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAA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AAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,gHAAgH;YAChH,GAAG,mDAAwB,CAAC,KAAK,CAAC,UAAU;YAC5C,GAAG,yBAAyB,CAAC,KAAK,CAAC,UAAU;SAChD;QACD,QAAQ,EAAE,CAAC,GAAG,mDAAwB,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,yBAAyB,CAAC,KAAK,CAAC,QAAQ,CAAC;QACnG,oBAAoB,EAAE,KAAK;KAC9B;CACJ,CAAC"}
1
+ {"version":3,"file":"DBFYPRTotemsJSONSchema.js","sourceRoot":"","sources":["../../../src/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.ts"],"names":[],"mappings":";;;AACA,oCAAsH;AACtH,yEAAsE;AAItE,8GAA8G;AAC9G,2GAA2G;AAC3G,0GAA0G;AAC1G,8FAA8F;AAC9F,MAAM,yBAAyB,GAE3B;IACA,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,eAAe,EAAE,sBAAc;YAC/B,QAAQ,EAAE,sBAAc;YACxB,eAAe,EAAE,2BAAmB;YACpC,KAAK,EAAE,2BAAmB;YAC1B,QAAQ,EAAE,sBAAc;YACxB,cAAc,EAAE,sBAAc;YAC9B,eAAe,EAAE,sBAAc;YAC/B,QAAQ,EAAE,sBAAc;YACxB,SAAS,EAAE,sBAAc;YACzB,QAAQ,EAAE,sBAAc;YACxB,kBAAkB,EAAE,uBAAe;YACnC,uBAAuB,EAAE,sBAAc;YACvC,iBAAiB,EAAE,sBAAc;YACjC,qBAAqB,EAAE,sBAAc;YACrC,eAAe,EAAE,sBAAc;YAC/B,gBAAgB,EAAE,sBAAc;YAChC,qBAAqB,EAAE,sBAAc;YACrC,sBAAsB,EAAE,sBAAc;YACtC,YAAY,EAAE,0BAAkB;YAChC,kBAAkB,EAAE,0BAAkB;YACtC,MAAM,EAAE,sBAAc;YACtB,SAAS,EAAE,sBAAc;YACzB,cAAc,EAAE,s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;KAC7B;CACJ,CAAC"}
@@ -75,4 +75,11 @@ export interface IDBFYPRInformationPanel extends IDBFYPRElement {
75
75
  cena_vyroba_bez_dph: number | null;
76
76
  cena_realizace_bez_dph: number | null;
77
77
  vyrobni_cislo_prvku: string | null;
78
+ vyrobce: string | null;
79
+ kontaktni_osoba_vyrobce: string | null;
80
+ technologie: string | null;
81
+ model_panelu: string | null;
82
+ kontakt_na_majitele: string | null;
83
+ konektivita_internet: string | null;
84
+ telefonni_cislo: string | null;
78
85
  }
@@ -49,6 +49,8 @@ export interface IDBFYPRTotem extends IDBFYPRElement {
49
49
  cena_za_odber_elektriny: number | null;
50
50
  id_prvku_ropid: string | null;
51
51
  typ_konstrukce_prvku: string | null;
52
- cena_prvku_bez_dph: number | null;
52
+ cena_vyroba_bez_dph?: number | null;
53
+ /** @deprecated Replaced by cena_vyroba_bez_dph. Present only for backwards compatibility during the migration period. */
54
+ cena_prvku_bez_dph?: number | null;
53
55
  vyrobni_cislo_prvku: string | null;
54
56
  }
@@ -1,2 +1,34 @@
1
- declare const _default: {};
2
- export default _default;
1
+ import { DisplayCaseModel } from "./models/DisplayCaseModel";
2
+ import { InformationPanelModel } from "./models/InformationPanelModel";
3
+ import { ObeliskModel } from "./models/ObeliskModel";
4
+ import { SignpostModel } from "./models/SignpostModel";
5
+ import { TotemModel } from "./models/TotemModel";
6
+ export declare const FyprElements: {
7
+ "display-cases": {
8
+ modelName: string;
9
+ tableName: string;
10
+ attributeModel: import("sequelize").ModelAttributes<DisplayCaseModel, any>;
11
+ };
12
+ "information-panels": {
13
+ modelName: string;
14
+ tableName: string;
15
+ attributeModel: import("sequelize").ModelAttributes<InformationPanelModel, any>;
16
+ };
17
+ obelisks: {
18
+ modelName: string;
19
+ tableName: string;
20
+ attributeModel: import("sequelize").ModelAttributes<ObeliskModel, any>;
21
+ };
22
+ signposts: {
23
+ modelName: string;
24
+ tableName: string;
25
+ attributeModel: import("sequelize").ModelAttributes<SignpostModel, any>;
26
+ };
27
+ totems: {
28
+ modelName: string;
29
+ tableName: string;
30
+ attributeModel: import("sequelize").ModelAttributes<TotemModel, any>;
31
+ };
32
+ };
33
+ export type FyprElementKind = keyof typeof FyprElements;
34
+ export declare const fyprElementKinds: FyprElementKind[];
@@ -1,4 +1,37 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {};
3
+ exports.fyprElementKinds = exports.FyprElements = void 0;
4
+ const DisplayCaseModel_1 = require("./models/DisplayCaseModel");
5
+ const InformationPanelModel_1 = require("./models/InformationPanelModel");
6
+ const ObeliskModel_1 = require("./models/ObeliskModel");
7
+ const SignpostModel_1 = require("./models/SignpostModel");
8
+ const TotemModel_1 = require("./models/TotemModel");
9
+ exports.FyprElements = {
10
+ "display-cases": {
11
+ modelName: "display_cases",
12
+ tableName: DisplayCaseModel_1.DisplayCaseModel.tableName,
13
+ attributeModel: DisplayCaseModel_1.DisplayCaseModel.attributeModel,
14
+ },
15
+ "information-panels": {
16
+ modelName: "information_panels",
17
+ tableName: InformationPanelModel_1.InformationPanelModel.tableName,
18
+ attributeModel: InformationPanelModel_1.InformationPanelModel.attributeModel,
19
+ },
20
+ obelisks: {
21
+ modelName: "obelisks",
22
+ tableName: ObeliskModel_1.ObeliskModel.tableName,
23
+ attributeModel: ObeliskModel_1.ObeliskModel.attributeModel,
24
+ },
25
+ signposts: {
26
+ modelName: "signposts",
27
+ tableName: SignpostModel_1.SignpostModel.tableName,
28
+ attributeModel: SignpostModel_1.SignpostModel.attributeModel,
29
+ },
30
+ totems: {
31
+ modelName: "totems",
32
+ tableName: TotemModel_1.TotemModel.tableName,
33
+ attributeModel: TotemModel_1.TotemModel.attributeModel,
34
+ },
35
+ };
36
+ exports.fyprElementKinds = Object.keys(exports.FyprElements);
4
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema-definitions/index.ts"],"names":[],"mappings":";;AAAA,kBAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema-definitions/index.ts"],"names":[],"mappings":";;;AAAA,gEAA6D;AAC7D,0EAAuE;AACvE,wDAAqD;AACrD,0DAAuD;AACvD,oDAAiD;AAEpC,QAAA,YAAY,GAAG;IACxB,eAAe,EAAE;QACb,SAAS,EAAE,eAAe;QAC1B,SAAS,EAAE,mCAAgB,CAAC,SAAS;QACrC,cAAc,EAAE,mCAAgB,CAAC,cAAc;KAClD;IACD,oBAAoB,EAAE;QAClB,SAAS,EAAE,oBAAoB;QAC/B,SAAS,EAAE,6CAAqB,CAAC,SAAS;QAC1C,cAAc,EAAE,6CAAqB,CAAC,cAAc;KACvD;IACD,QAAQ,EAAE;QACN,SAAS,EAAE,UAAU;QACrB,SAAS,EAAE,2BAAY,CAAC,SAAS;QACjC,cAAc,EAAE,2BAAY,CAAC,cAAc;KAC9C;IACD,SAAS,EAAE;QACP,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,6BAAa,CAAC,SAAS;QAClC,cAAc,EAAE,6BAAa,CAAC,cAAc;KAC/C;IACD,MAAM,EAAE;QACJ,SAAS,EAAE,QAAQ;QACnB,SAAS,EAAE,uBAAU,CAAC,SAAS;QAC/B,cAAc,EAAE,uBAAU,CAAC,cAAc;KAC5C;CACJ,CAAC;AAIW,QAAA,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,oBAAY,CAAsB,CAAC"}
@@ -8,6 +8,7 @@ export declare abstract class AbstractElementModel extends Model<InferAttributes
8
8
  name: string | null;
9
9
  state: string | null;
10
10
  owner: string | null;
11
+ manager: string | null;
11
12
  city_district: string | null;
12
13
  lat: number | null;
13
14
  lon: number | null;
@@ -67,6 +68,14 @@ export declare abstract class AbstractElementModel extends Model<InferAttributes
67
68
  readonly nullable: true;
68
69
  }];
69
70
  };
71
+ readonly manager: {
72
+ readonly oneOf: readonly [{
73
+ readonly type: "string";
74
+ }, {
75
+ readonly type: "null";
76
+ readonly nullable: true;
77
+ }];
78
+ };
70
79
  readonly city_district: {
71
80
  readonly oneOf: readonly [{
72
81
  readonly type: "string";
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AbstractElementModel = void 0;
4
4
  const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ const const_1 = require("../const");
5
6
  class AbstractElementModel extends sequelize_1.Model {
6
7
  }
7
8
  exports.AbstractElementModel = AbstractElementModel;
@@ -25,6 +26,7 @@ AbstractElementModel.elementAttributeModel = {
25
26
  name: { type: sequelize_1.DataTypes.STRING(255) },
26
27
  state: { type: sequelize_1.DataTypes.STRING(255) },
27
28
  owner: { type: sequelize_1.DataTypes.STRING(255) },
29
+ manager: { type: sequelize_1.DataTypes.STRING(255) },
28
30
  city_district: { type: sequelize_1.DataTypes.STRING(255) },
29
31
  lat: { type: sequelize_1.DataTypes.DOUBLE },
30
32
  lon: { type: sequelize_1.DataTypes.DOUBLE },
@@ -48,41 +50,19 @@ AbstractElementModel.elementJSONSchemaProperties = {
48
50
  { type: "null", nullable: true },
49
51
  ],
50
52
  },
51
- kind: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
52
- name: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
53
- state: {
54
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
55
- },
56
- owner: {
57
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
58
- },
59
- city_district: {
60
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
61
- },
62
- lat: {
63
- oneOf: [{ type: "number" }, { type: "null", nullable: true }],
64
- },
65
- lon: {
66
- oneOf: [{ type: "number" }, { type: "null", nullable: true }],
67
- },
68
- map_link: {
69
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
70
- },
71
- planned_year_of_realization: {
72
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
73
- },
74
- note: {
75
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
76
- },
77
- handover: {
78
- oneOf: [{ type: "boolean" }, { type: "null", nullable: true }],
79
- },
80
- handover_date: {
81
- oneOf: [
82
- { type: "string", format: "date" },
83
- { type: "null", nullable: true },
84
- ],
85
- },
53
+ kind: const_1.nullableString,
54
+ name: const_1.nullableString,
55
+ state: const_1.nullableString,
56
+ owner: const_1.nullableString,
57
+ manager: const_1.nullableString,
58
+ city_district: const_1.nullableString,
59
+ lat: const_1.nullableNumber,
60
+ lon: const_1.nullableNumber,
61
+ map_link: const_1.nullableString,
62
+ planned_year_of_realization: const_1.nullableString,
63
+ note: const_1.nullableString,
64
+ handover: const_1.nullableBoolean,
65
+ handover_date: const_1.nullableDateString,
86
66
  source_created_at: {
87
67
  oneOf: [{ type: "object", required: ["toISOString"] }],
88
68
  },
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractElementModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/AbstractElementModel.ts"],"names":[],"mappings":";;;AAAA,mEAO6C;AAK7C,MAAsB,oBAClB,SAAQ,iBAA2F;;AADvG,oDA+HC;AAjG6B,0CAAqB,GAA0C;IACrF,EAAE,EAAE;QACA,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,qBAAS,CAAC,IAAI;QACpB,YAAY,EAAE,qBAAS,CAAC,MAAM;KACjC;IACD,WAAW,EAAE;QACT,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;QAC3B,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE,IAAI;KACf;IACD,GAAG,EAAE;QACD,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC;QAC3B,MAAM,EAAE,IAAI;KACf;IACD,IAAI,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;IACrC,IAAI,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;IACrC,KAAK,EAAE,EAAE,IAAI,EAAE,qBAA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,EAAE,uBAAe;IACzB,aAAa,EAAE,0BAAkB;IACjC,iBAAiB,EAAE;QACf,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;KACzD;IACD,iBAAiB,EAAE;QACf,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;KACzD;IACD,mBAAmB,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE;IAC/E,kDAAkD;IAClD,kDAAkD;CAC5C,CAAC;AACe,8CAAyB,GAAG;IAClD,QAAQ;IACR,aAAa;IACb,KAAK;IACL,mBAAmB;IACnB,mBAAmB;IACnB,qBAAqB;CACf,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DisplayCaseModel = void 0;
4
4
  const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ const const_1 = require("../const");
5
6
  const AbstractElementModel_1 = require("./AbstractElementModel");
6
7
  class DisplayCaseModel extends AbstractElementModel_1.AbstractElementModel {
7
8
  }
@@ -35,66 +36,25 @@ DisplayCaseModel.jsonSchema = {
35
36
  type: "object",
36
37
  properties: {
37
38
  ...AbstractElementModel_1.AbstractElementModel.elementJSONSchemaProperties,
38
- stop_name: {
39
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
40
- },
41
- stop_direction: {
42
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
43
- },
44
- platform_code: {
45
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
46
- },
47
- stop_type: {
48
- oneOf: [
49
- { type: "array", items: { type: "string" } },
50
- { type: "null", nullable: true },
51
- ],
52
- },
53
- thmp_stop_id: {
54
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
55
- },
56
- shelter_type: {
57
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
58
- },
59
- shelter_id: {
60
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
61
- },
62
- qr_code: {
63
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
64
- },
65
- supplier: {
66
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
67
- },
68
- comments: {
69
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
70
- },
71
- asw_node_id: {
72
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
73
- },
74
- asw_stop_id: {
75
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
76
- },
77
- location_description: {
78
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
79
- },
80
- street_name: {
81
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
82
- },
83
- ropid_element_id: {
84
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
85
- },
86
- price_without_vat: {
87
- oneOf: [{ type: "number" }, { type: "null", nullable: true }],
88
- },
89
- serial_number: {
90
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
91
- },
92
- thmp_element_number: {
93
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
94
- },
95
- cleaning_frequency: {
96
- oneOf: [{ type: "string" }, { type: "null", nullable: true }],
97
- },
39
+ stop_name: const_1.nullableString,
40
+ stop_direction: const_1.nullableString,
41
+ platform_code: const_1.nullableString,
42
+ stop_type: const_1.nullableStringArray,
43
+ thmp_stop_id: const_1.nullableString,
44
+ shelter_type: const_1.nullableString,
45
+ shelter_id: const_1.nullableString,
46
+ qr_code: const_1.nullableString,
47
+ supplier: const_1.nullableString,
48
+ comments: const_1.nullableString,
49
+ asw_node_id: const_1.nullableString,
50
+ asw_stop_id: const_1.nullableString,
51
+ location_description: const_1.nullableString,
52
+ street_name: const_1.nullableString,
53
+ ropid_element_id: const_1.nullableString,
54
+ price_without_vat: const_1.nullableNumber,
55
+ serial_number: const_1.nullableString,
56
+ thmp_element_number: const_1.nullableString,
57
+ cleaning_frequency: const_1.nullableString,
98
58
  },
99
59
  required: AbstractElementModel_1.AbstractElementModel.elementJSONSchemaRequired,
100
60
  additionalProperties: false,