@golemio/fypr 1.0.1 → 1.0.2-dev.2343920210

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 (190) hide show
  1. package/db/example/00_clear_test_data.sql +7 -7
  2. package/db/example/01_display_cases.sql +4 -0
  3. package/db/example/02_information_panels.sql +4 -0
  4. package/db/example/03_obelisks.sql +4 -0
  5. package/db/example/04_signposts.sql +2 -0
  6. package/db/example/05_totems.sql +4 -0
  7. package/db/migrations/postgresql/20260212140121-init-dbfypr-integration.js +53 -0
  8. package/db/migrations/postgresql/package.json +3 -0
  9. package/db/migrations/postgresql/sqls/20260212140121-init-dbfypr-integration-down.sql +9 -0
  10. package/db/migrations/postgresql/sqls/20260212140121-init-dbfypr-integration-up.sql +242 -0
  11. package/db/migrations/postgresql/sqls/package.json +3 -0
  12. package/dist/helpers/errors/ErrorHelper.d.ts +4 -0
  13. package/dist/helpers/errors/ErrorHelper.js +11 -0
  14. package/dist/helpers/errors/ErrorHelper.js.map +1 -0
  15. package/dist/integration-engine/data-sources/AbstractDBFYPRDataSourceFactory.d.ts +11 -0
  16. package/dist/integration-engine/data-sources/AbstractDBFYPRDataSourceFactory.js +32 -0
  17. package/dist/integration-engine/data-sources/AbstractDBFYPRDataSourceFactory.js.map +1 -0
  18. package/dist/integration-engine/data-sources/DBFYPRDisplayCasesDataSourceFactory.d.ts +9 -0
  19. package/dist/integration-engine/data-sources/DBFYPRDisplayCasesDataSourceFactory.js +36 -0
  20. package/dist/integration-engine/data-sources/DBFYPRDisplayCasesDataSourceFactory.js.map +1 -0
  21. package/dist/integration-engine/data-sources/DBFYPRInformationPanelsDataSourceFactory.d.ts +9 -0
  22. package/dist/integration-engine/data-sources/DBFYPRInformationPanelsDataSourceFactory.js +36 -0
  23. package/dist/integration-engine/data-sources/DBFYPRInformationPanelsDataSourceFactory.js.map +1 -0
  24. package/dist/integration-engine/data-sources/DBFYPRObelisksDataSourceFactory.d.ts +9 -0
  25. package/dist/integration-engine/data-sources/DBFYPRObelisksDataSourceFactory.js +36 -0
  26. package/dist/integration-engine/data-sources/DBFYPRObelisksDataSourceFactory.js.map +1 -0
  27. package/dist/integration-engine/data-sources/DBFYPRSignpostsDataSourceFactory.d.ts +9 -0
  28. package/dist/integration-engine/data-sources/DBFYPRSignpostsDataSourceFactory.js +36 -0
  29. package/dist/integration-engine/data-sources/DBFYPRSignpostsDataSourceFactory.js.map +1 -0
  30. package/dist/integration-engine/data-sources/DBFYPRTotemsDataSourceFactory.d.ts +9 -0
  31. package/dist/integration-engine/data-sources/DBFYPRTotemsDataSourceFactory.js +36 -0
  32. package/dist/integration-engine/data-sources/DBFYPRTotemsDataSourceFactory.js.map +1 -0
  33. package/dist/integration-engine/data-sources/protocol-strategies/StrapiPaginatedHTTPProtocolStrategy.d.ts +21 -0
  34. package/dist/integration-engine/data-sources/protocol-strategies/StrapiPaginatedHTTPProtocolStrategy.js +59 -0
  35. package/dist/integration-engine/data-sources/protocol-strategies/StrapiPaginatedHTTPProtocolStrategy.js.map +1 -0
  36. package/dist/integration-engine/helpers/StrapiPaginationHelper.d.ts +10 -0
  37. package/dist/integration-engine/helpers/StrapiPaginationHelper.js +41 -0
  38. package/dist/integration-engine/helpers/StrapiPaginationHelper.js.map +1 -0
  39. package/dist/integration-engine/index.js +2 -3
  40. package/dist/integration-engine/index.js.map +1 -1
  41. package/dist/integration-engine/ioc/Di.d.ts +2 -0
  42. package/dist/integration-engine/ioc/Di.js +63 -0
  43. package/dist/integration-engine/ioc/Di.js.map +1 -0
  44. package/dist/integration-engine/ioc/FYPRIEContainerTokens.d.ts +23 -0
  45. package/dist/integration-engine/ioc/FYPRIEContainerTokens.js +35 -0
  46. package/dist/integration-engine/ioc/FYPRIEContainerTokens.js.map +1 -0
  47. package/dist/integration-engine/repositories/AbstractFyprRepository.d.ts +11 -0
  48. package/dist/integration-engine/repositories/AbstractFyprRepository.js +14 -0
  49. package/dist/integration-engine/repositories/AbstractFyprRepository.js.map +1 -0
  50. package/dist/integration-engine/repositories/DisplayCaseRepository.d.ts +14 -0
  51. package/dist/integration-engine/repositories/DisplayCaseRepository.js +58 -0
  52. package/dist/integration-engine/repositories/DisplayCaseRepository.js.map +1 -0
  53. package/dist/integration-engine/repositories/InformationPanelRepository.d.ts +14 -0
  54. package/dist/integration-engine/repositories/InformationPanelRepository.js +58 -0
  55. package/dist/integration-engine/repositories/InformationPanelRepository.js.map +1 -0
  56. package/dist/integration-engine/repositories/ObeliskRepository.d.ts +14 -0
  57. package/dist/integration-engine/repositories/ObeliskRepository.js +58 -0
  58. package/dist/integration-engine/repositories/ObeliskRepository.js.map +1 -0
  59. package/dist/integration-engine/repositories/SignpostRepository.d.ts +14 -0
  60. package/dist/integration-engine/repositories/SignpostRepository.js +58 -0
  61. package/dist/integration-engine/repositories/SignpostRepository.js.map +1 -0
  62. package/dist/integration-engine/repositories/TotemRepository.d.ts +14 -0
  63. package/dist/integration-engine/repositories/TotemRepository.js +58 -0
  64. package/dist/integration-engine/repositories/TotemRepository.js.map +1 -0
  65. package/dist/integration-engine/transformations/AbstractElementTransformation.d.ts +7 -0
  66. package/dist/integration-engine/transformations/AbstractElementTransformation.js +36 -0
  67. package/dist/integration-engine/transformations/AbstractElementTransformation.js.map +1 -0
  68. package/dist/integration-engine/transformations/DisplayCasesTransformation.d.ts +10 -0
  69. package/dist/integration-engine/transformations/DisplayCasesTransformation.js +46 -0
  70. package/dist/integration-engine/transformations/DisplayCasesTransformation.js.map +1 -0
  71. package/dist/integration-engine/transformations/InformationPanelsTransformation.d.ts +10 -0
  72. package/dist/integration-engine/transformations/InformationPanelsTransformation.js +102 -0
  73. package/dist/integration-engine/transformations/InformationPanelsTransformation.js.map +1 -0
  74. package/dist/integration-engine/transformations/ObelisksTransformation.d.ts +10 -0
  75. package/dist/integration-engine/transformations/ObelisksTransformation.js +41 -0
  76. package/dist/integration-engine/transformations/ObelisksTransformation.js.map +1 -0
  77. package/dist/integration-engine/transformations/SignpostsTransformation.d.ts +10 -0
  78. package/dist/integration-engine/transformations/SignpostsTransformation.js +43 -0
  79. package/dist/integration-engine/transformations/SignpostsTransformation.js.map +1 -0
  80. package/dist/integration-engine/transformations/TotemsTransformation.d.ts +10 -0
  81. package/dist/integration-engine/transformations/TotemsTransformation.js +78 -0
  82. package/dist/integration-engine/transformations/TotemsTransformation.js.map +1 -0
  83. package/dist/integration-engine/workers/FYPRWorker.d.ts +8 -0
  84. package/dist/integration-engine/workers/FYPRWorker.js +33 -0
  85. package/dist/integration-engine/workers/FYPRWorker.js.map +1 -0
  86. package/dist/integration-engine/workers/constants.d.ts +1 -0
  87. package/dist/integration-engine/workers/constants.js +5 -0
  88. package/dist/integration-engine/workers/constants.js.map +1 -0
  89. package/dist/integration-engine/workers/tasks/AbstractUpdateElementsTask.d.ts +12 -0
  90. package/dist/integration-engine/workers/tasks/AbstractUpdateElementsTask.js +26 -0
  91. package/dist/integration-engine/workers/tasks/AbstractUpdateElementsTask.js.map +1 -0
  92. package/dist/integration-engine/workers/tasks/FetchDBFYPRTask.d.ts +21 -0
  93. package/dist/integration-engine/workers/tasks/FetchDBFYPRTask.js +96 -0
  94. package/dist/integration-engine/workers/tasks/FetchDBFYPRTask.js.map +1 -0
  95. package/dist/integration-engine/workers/tasks/UpdateDisplayCasesTask.d.ts +11 -0
  96. package/dist/integration-engine/workers/tasks/UpdateDisplayCasesTask.js +38 -0
  97. package/dist/integration-engine/workers/tasks/UpdateDisplayCasesTask.js.map +1 -0
  98. package/dist/integration-engine/workers/tasks/UpdateInformationPanelsTask.d.ts +11 -0
  99. package/dist/integration-engine/workers/tasks/UpdateInformationPanelsTask.js +38 -0
  100. package/dist/integration-engine/workers/tasks/UpdateInformationPanelsTask.js.map +1 -0
  101. package/dist/integration-engine/workers/tasks/UpdateObelisksTask.d.ts +11 -0
  102. package/dist/integration-engine/workers/tasks/UpdateObelisksTask.js +38 -0
  103. package/dist/integration-engine/workers/tasks/UpdateObelisksTask.js.map +1 -0
  104. package/dist/integration-engine/workers/tasks/UpdateSignpostsTask.d.ts +11 -0
  105. package/dist/integration-engine/workers/tasks/UpdateSignpostsTask.js +38 -0
  106. package/dist/integration-engine/workers/tasks/UpdateSignpostsTask.js.map +1 -0
  107. package/dist/integration-engine/workers/tasks/UpdateTotemsTask.d.ts +11 -0
  108. package/dist/integration-engine/workers/tasks/UpdateTotemsTask.js +38 -0
  109. package/dist/integration-engine/workers/tasks/UpdateTotemsTask.js.map +1 -0
  110. package/dist/schema-definitions/const.d.ts +1 -0
  111. package/dist/schema-definitions/const.js +5 -0
  112. package/dist/schema-definitions/const.js.map +1 -0
  113. package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.d.ts +3 -0
  114. package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.js +97 -0
  115. package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.js.map +1 -0
  116. package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.d.ts +3 -0
  117. package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.js +64 -0
  118. package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.js.map +1 -0
  119. package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.d.ts +3 -0
  120. package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.js +307 -0
  121. package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.js.map +1 -0
  122. package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.d.ts +3 -0
  123. package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.js +79 -0
  124. package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.js.map +1 -0
  125. package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.d.ts +3 -0
  126. package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.js +85 -0
  127. package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.js.map +1 -0
  128. package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.d.ts +3 -0
  129. package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.js +229 -0
  130. package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.js.map +1 -0
  131. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRDisplayCase.d.ts +22 -0
  132. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRDisplayCase.js +3 -0
  133. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRDisplayCase.js.map +1 -0
  134. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRElement.d.ts +21 -0
  135. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRElement.js +3 -0
  136. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRElement.js.map +1 -0
  137. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRInformationPanel.d.ts +78 -0
  138. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRInformationPanel.js +3 -0
  139. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRInformationPanel.js.map +1 -0
  140. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRObelisk.d.ts +17 -0
  141. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRObelisk.js +3 -0
  142. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRObelisk.js.map +1 -0
  143. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRSignpost.d.ts +19 -0
  144. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRSignpost.js +3 -0
  145. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRSignpost.js.map +1 -0
  146. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRTotem.d.ts +54 -0
  147. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRTotem.js +3 -0
  148. package/dist/schema-definitions/data-sources/interfaces/IDBFYPRTotem.js.map +1 -0
  149. package/dist/schema-definitions/index.js +0 -1
  150. package/dist/schema-definitions/index.js.map +1 -1
  151. package/dist/schema-definitions/models/AbstractElementModel.d.ts +155 -0
  152. package/dist/schema-definitions/models/AbstractElementModel.js +104 -0
  153. package/dist/schema-definitions/models/AbstractElementModel.js.map +1 -0
  154. package/dist/schema-definitions/models/DisplayCaseModel.d.ts +28 -0
  155. package/dist/schema-definitions/models/DisplayCaseModel.js +103 -0
  156. package/dist/schema-definitions/models/DisplayCaseModel.js.map +1 -0
  157. package/dist/schema-definitions/models/InformationPanelModel.d.ts +84 -0
  158. package/dist/schema-definitions/models/InformationPanelModel.js +360 -0
  159. package/dist/schema-definitions/models/InformationPanelModel.js.map +1 -0
  160. package/dist/schema-definitions/models/ObeliskModel.d.ts +23 -0
  161. package/dist/schema-definitions/models/ObeliskModel.js +80 -0
  162. package/dist/schema-definitions/models/ObeliskModel.js.map +1 -0
  163. package/dist/schema-definitions/models/SignpostModel.d.ts +25 -0
  164. package/dist/schema-definitions/models/SignpostModel.js +88 -0
  165. package/dist/schema-definitions/models/SignpostModel.js.map +1 -0
  166. package/dist/schema-definitions/models/TotemModel.d.ts +60 -0
  167. package/dist/schema-definitions/models/TotemModel.js +251 -0
  168. package/dist/schema-definitions/models/TotemModel.js.map +1 -0
  169. package/dist/schema-definitions/models/interfaces/IDisplayCase.d.ts +22 -0
  170. package/dist/schema-definitions/models/interfaces/IDisplayCase.js +3 -0
  171. package/dist/schema-definitions/models/interfaces/IDisplayCase.js.map +1 -0
  172. package/dist/schema-definitions/models/interfaces/IElement.d.ts +19 -0
  173. package/dist/schema-definitions/models/interfaces/IElement.js +3 -0
  174. package/dist/schema-definitions/models/interfaces/IElement.js.map +1 -0
  175. package/dist/schema-definitions/models/interfaces/IInformationPanel.d.ts +78 -0
  176. package/dist/schema-definitions/models/interfaces/IInformationPanel.js +3 -0
  177. package/dist/schema-definitions/models/interfaces/IInformationPanel.js.map +1 -0
  178. package/dist/schema-definitions/models/interfaces/IObelisk.d.ts +17 -0
  179. package/dist/schema-definitions/models/interfaces/IObelisk.js +3 -0
  180. package/dist/schema-definitions/models/interfaces/IObelisk.js.map +1 -0
  181. package/dist/schema-definitions/models/interfaces/ISignpost.d.ts +19 -0
  182. package/dist/schema-definitions/models/interfaces/ISignpost.js +3 -0
  183. package/dist/schema-definitions/models/interfaces/ISignpost.js.map +1 -0
  184. package/dist/schema-definitions/models/interfaces/ITotem.d.ts +54 -0
  185. package/dist/schema-definitions/models/interfaces/ITotem.js +3 -0
  186. package/dist/schema-definitions/models/interfaces/ITotem.js.map +1 -0
  187. package/docs/asyncapi.yaml +823 -3
  188. package/docs/implementation_documentation.md +162 -39
  189. package/docs/translations.md +212 -0
  190. package/package.json +7 -5
@@ -0,0 +1,155 @@
1
+ import { CreationOptional, InferAttributes, InferCreationAttributes, Model, ModelAttributes } from "@golemio/core/dist/shared/sequelize";
2
+ import { IElement } from "./interfaces/IElement";
3
+ export declare abstract class AbstractElementModel extends Model<InferAttributes<AbstractElementModel>, InferCreationAttributes<AbstractElementModel>> implements IElement {
4
+ id: CreationOptional<string>;
5
+ document_id: string;
6
+ uid: string | null;
7
+ kind: string | null;
8
+ name: string | null;
9
+ state: string | null;
10
+ owner: string | null;
11
+ city_district: string | null;
12
+ lat: number | null;
13
+ lon: number | null;
14
+ map_link: string | null;
15
+ planned_year_of_realization: string | null;
16
+ note: string | null;
17
+ handover: boolean | null;
18
+ handover_date: string | null;
19
+ source_created_at: Date;
20
+ source_updated_at: Date;
21
+ source_published_at: Date;
22
+ created_at: CreationOptional<Date>;
23
+ updated_at: CreationOptional<Date>;
24
+ protected static readonly elementAttributeModel: ModelAttributes<AbstractElementModel>;
25
+ protected static readonly elementJSONSchemaProperties: {
26
+ readonly document_id: {
27
+ readonly type: "string";
28
+ };
29
+ readonly uid: {
30
+ readonly oneOf: readonly [{
31
+ readonly type: "string";
32
+ readonly format: "uuid";
33
+ }, {
34
+ readonly type: "null";
35
+ readonly nullable: true;
36
+ }];
37
+ };
38
+ readonly kind: {
39
+ readonly oneOf: readonly [{
40
+ readonly type: "string";
41
+ }, {
42
+ readonly type: "null";
43
+ readonly nullable: true;
44
+ }];
45
+ };
46
+ readonly name: {
47
+ readonly oneOf: readonly [{
48
+ readonly type: "string";
49
+ }, {
50
+ readonly type: "null";
51
+ readonly nullable: true;
52
+ }];
53
+ };
54
+ readonly state: {
55
+ readonly oneOf: readonly [{
56
+ readonly type: "string";
57
+ }, {
58
+ readonly type: "null";
59
+ readonly nullable: true;
60
+ }];
61
+ };
62
+ readonly owner: {
63
+ readonly oneOf: readonly [{
64
+ readonly type: "string";
65
+ }, {
66
+ readonly type: "null";
67
+ readonly nullable: true;
68
+ }];
69
+ };
70
+ readonly city_district: {
71
+ readonly oneOf: readonly [{
72
+ readonly type: "string";
73
+ }, {
74
+ readonly type: "null";
75
+ readonly nullable: true;
76
+ }];
77
+ };
78
+ readonly lat: {
79
+ readonly oneOf: readonly [{
80
+ readonly type: "number";
81
+ }, {
82
+ readonly type: "null";
83
+ readonly nullable: true;
84
+ }];
85
+ };
86
+ readonly lon: {
87
+ readonly oneOf: readonly [{
88
+ readonly type: "number";
89
+ }, {
90
+ readonly type: "null";
91
+ readonly nullable: true;
92
+ }];
93
+ };
94
+ readonly map_link: {
95
+ readonly oneOf: readonly [{
96
+ readonly type: "string";
97
+ }, {
98
+ readonly type: "null";
99
+ readonly nullable: true;
100
+ }];
101
+ };
102
+ readonly planned_year_of_realization: {
103
+ readonly oneOf: readonly [{
104
+ readonly type: "string";
105
+ }, {
106
+ readonly type: "null";
107
+ readonly nullable: true;
108
+ }];
109
+ };
110
+ readonly note: {
111
+ readonly oneOf: readonly [{
112
+ readonly type: "string";
113
+ }, {
114
+ readonly type: "null";
115
+ readonly nullable: true;
116
+ }];
117
+ };
118
+ readonly handover: {
119
+ readonly oneOf: readonly [{
120
+ readonly type: "boolean";
121
+ }, {
122
+ readonly type: "null";
123
+ readonly nullable: true;
124
+ }];
125
+ };
126
+ readonly handover_date: {
127
+ readonly oneOf: readonly [{
128
+ readonly type: "string";
129
+ readonly format: "date";
130
+ }, {
131
+ readonly type: "null";
132
+ readonly nullable: true;
133
+ }];
134
+ };
135
+ readonly source_created_at: {
136
+ readonly oneOf: readonly [{
137
+ readonly type: "object";
138
+ readonly required: readonly ["toISOString"];
139
+ }];
140
+ };
141
+ readonly source_updated_at: {
142
+ readonly oneOf: readonly [{
143
+ readonly type: "object";
144
+ readonly required: readonly ["toISOString"];
145
+ }];
146
+ };
147
+ readonly source_published_at: {
148
+ readonly oneOf: readonly [{
149
+ readonly type: "object";
150
+ readonly required: readonly ["toISOString"];
151
+ }];
152
+ };
153
+ };
154
+ protected static readonly elementJSONSchemaRequired: readonly ["document_id", "uid", "source_created_at", "source_updated_at", "source_published_at"];
155
+ }
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AbstractElementModel = void 0;
4
+ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ class AbstractElementModel extends sequelize_1.Model {
6
+ }
7
+ exports.AbstractElementModel = AbstractElementModel;
8
+ AbstractElementModel.elementAttributeModel = {
9
+ id: {
10
+ primaryKey: true,
11
+ allowNull: false,
12
+ type: sequelize_1.DataTypes.UUID,
13
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
14
+ },
15
+ document_id: {
16
+ type: sequelize_1.DataTypes.STRING(255),
17
+ allowNull: false,
18
+ unique: true,
19
+ },
20
+ uid: {
21
+ type: sequelize_1.DataTypes.STRING(255),
22
+ unique: true,
23
+ },
24
+ kind: { type: sequelize_1.DataTypes.STRING(255) },
25
+ name: { type: sequelize_1.DataTypes.STRING(255) },
26
+ state: { type: sequelize_1.DataTypes.STRING(255) },
27
+ owner: { type: sequelize_1.DataTypes.STRING(255) },
28
+ city_district: { type: sequelize_1.DataTypes.STRING(255) },
29
+ lat: { type: sequelize_1.DataTypes.DOUBLE },
30
+ lon: { type: sequelize_1.DataTypes.DOUBLE },
31
+ map_link: { type: sequelize_1.DataTypes.TEXT },
32
+ planned_year_of_realization: { type: sequelize_1.DataTypes.STRING(255) },
33
+ note: { type: sequelize_1.DataTypes.TEXT },
34
+ handover: { type: sequelize_1.DataTypes.BOOLEAN },
35
+ handover_date: { type: sequelize_1.DataTypes.DATEONLY },
36
+ source_created_at: { type: sequelize_1.DataTypes.DATE, allowNull: false },
37
+ source_updated_at: { type: sequelize_1.DataTypes.DATE, allowNull: false },
38
+ source_published_at: { type: sequelize_1.DataTypes.DATE, allowNull: false },
39
+ created_at: { type: sequelize_1.DataTypes.DATE, allowNull: false },
40
+ updated_at: { type: sequelize_1.DataTypes.DATE, allowNull: false },
41
+ };
42
+ AbstractElementModel.elementJSONSchemaProperties = {
43
+ // id: { type: "string", format: "uuid" },
44
+ document_id: { type: "string" },
45
+ uid: {
46
+ oneOf: [
47
+ { type: "string", format: "uuid" },
48
+ { type: "null", nullable: true },
49
+ ],
50
+ },
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
+ },
86
+ source_created_at: {
87
+ oneOf: [{ type: "object", required: ["toISOString"] }],
88
+ },
89
+ source_updated_at: {
90
+ oneOf: [{ type: "object", required: ["toISOString"] }],
91
+ },
92
+ source_published_at: { oneOf: [{ type: "object", required: ["toISOString"] }] },
93
+ // created_at: { type: "string", format: "date" },
94
+ // updated_at: { type: "string", format: "date" },
95
+ };
96
+ AbstractElementModel.elementJSONSchemaRequired = [
97
+ // "id",
98
+ "document_id",
99
+ "uid",
100
+ "source_created_at",
101
+ "source_updated_at",
102
+ "source_published_at",
103
+ ];
104
+ //# sourceMappingURL=AbstractElementModel.js.map
@@ -0,0 +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,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;IACtC,KAAK,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAA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,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KAChE;IACD,IAAI,EAAE;QACF,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KAChE;IACD,QAAQ,EAAE;QACN,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KACjE;IACD,aAAa,EAAE;QACX,KAAK,EAAE;YACH,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE;YAClC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;SACnC;KACJ;IACD,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"}
@@ -0,0 +1,28 @@
1
+ import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
2
+ import { ModelAttributes } from "@golemio/core/dist/shared/sequelize";
3
+ import { AbstractElementModel } from "./AbstractElementModel";
4
+ import { IDisplayCase } from "./interfaces/IDisplayCase";
5
+ export declare class DisplayCaseModel extends AbstractElementModel implements IDisplayCase {
6
+ static readonly tableName = "display_cases";
7
+ stop_name: string | null;
8
+ stop_direction: string | null;
9
+ platform_code: string | null;
10
+ stop_type: string[] | null;
11
+ thmp_stop_id: string | null;
12
+ shelter_type: string | null;
13
+ shelter_id: string | null;
14
+ qr_code: string | null;
15
+ supplier: string | null;
16
+ comments: string | null;
17
+ asw_node_id: string | null;
18
+ asw_stop_id: string | null;
19
+ location_description: string | null;
20
+ street_name: string | null;
21
+ ropid_element_id: string | null;
22
+ price_without_vat: number | null;
23
+ serial_number: string | null;
24
+ thmp_element_number: string | null;
25
+ cleaning_frequency: string | null;
26
+ static readonly attributeModel: ModelAttributes<DisplayCaseModel>;
27
+ static readonly jsonSchema: JSONSchemaType<IDisplayCase[]>;
28
+ }
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DisplayCaseModel = void 0;
4
+ const sequelize_1 = require("@golemio/core/dist/shared/sequelize");
5
+ const AbstractElementModel_1 = require("./AbstractElementModel");
6
+ class DisplayCaseModel extends AbstractElementModel_1.AbstractElementModel {
7
+ }
8
+ exports.DisplayCaseModel = DisplayCaseModel;
9
+ DisplayCaseModel.tableName = "display_cases";
10
+ DisplayCaseModel.attributeModel = {
11
+ ...AbstractElementModel_1.AbstractElementModel.elementAttributeModel,
12
+ stop_name: { type: sequelize_1.DataTypes.STRING(255) },
13
+ stop_direction: { type: sequelize_1.DataTypes.STRING(255) },
14
+ platform_code: { type: sequelize_1.DataTypes.STRING(255) },
15
+ stop_type: { type: sequelize_1.DataTypes.JSONB },
16
+ thmp_stop_id: { type: sequelize_1.DataTypes.STRING(255) },
17
+ shelter_type: { type: sequelize_1.DataTypes.STRING(255) },
18
+ shelter_id: { type: sequelize_1.DataTypes.STRING(255) },
19
+ qr_code: { type: sequelize_1.DataTypes.STRING(255) },
20
+ supplier: { type: sequelize_1.DataTypes.STRING(255) },
21
+ comments: { type: sequelize_1.DataTypes.TEXT },
22
+ asw_node_id: { type: sequelize_1.DataTypes.STRING(255) },
23
+ asw_stop_id: { type: sequelize_1.DataTypes.STRING(255) },
24
+ location_description: { type: sequelize_1.DataTypes.STRING(255) },
25
+ street_name: { type: sequelize_1.DataTypes.STRING(255) },
26
+ ropid_element_id: { type: sequelize_1.DataTypes.STRING(255) },
27
+ price_without_vat: { type: sequelize_1.DataTypes.DECIMAL(10, 2) },
28
+ serial_number: { type: sequelize_1.DataTypes.STRING(255) },
29
+ thmp_element_number: { type: sequelize_1.DataTypes.STRING(255) },
30
+ cleaning_frequency: { type: sequelize_1.DataTypes.STRING(255) },
31
+ };
32
+ DisplayCaseModel.jsonSchema = {
33
+ type: "array",
34
+ items: {
35
+ type: "object",
36
+ properties: {
37
+ ...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
+ },
98
+ },
99
+ required: AbstractElementModel_1.AbstractElementModel.elementJSONSchemaRequired,
100
+ additionalProperties: false,
101
+ },
102
+ };
103
+ //# sourceMappingURL=DisplayCaseModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DisplayCaseModel.js","sourceRoot":"","sources":["../../../src/schema-definitions/models/DisplayCaseModel.ts"],"names":[],"mappings":";;;AACA,mEAAiF;AAEjF,iEAA8D;AAG9D,MAAa,gBAAiB,SAAQ,2CAAoB;;AAA1D,4CAsHC;AArH0B,0BAAS,GAAG,eAAe,CAAC;AAuB5B,+BAAc,GAAsC;IACvE,GAAG,2CAAoB,CAAC,qBAAqB;IAC7C,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;IAC1C,cAAc,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;IAC/C,aAAa,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;IAC9C,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAS,CAAC,KAAK,EAA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I,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aAChE;YACD,aAAa,EAAE;gBACX,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aAChE;YACD,mBAAmB,EAAE;gBACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aAChE;YACD,kBAAkB,EAAE;gBAChB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;aAChE;SACJ;QACD,QAAQ,EAAE,2CAAoB,CAAC,yBAAyB;QACxD,oBAAoB,EAAE,KAAK;KAC9B;CACJ,CAAC"}
@@ -0,0 +1,84 @@
1
+ import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
2
+ import { ModelAttributes } from "@golemio/core/dist/shared/sequelize";
3
+ import { AbstractElementModel } from "./AbstractElementModel";
4
+ import { IInformationPanel } from "./interfaces/IInformationPanel";
5
+ export declare class InformationPanelModel extends AbstractElementModel implements IInformationPanel {
6
+ static readonly tableName = "information_panels";
7
+ stop_name: string | null;
8
+ stop_direction: string | null;
9
+ platform_code: string | null;
10
+ stop_type: string[] | null;
11
+ thmp_stop_id: string | null;
12
+ land_parcel_number: string | null;
13
+ land_owner: string | null;
14
+ workday_boarding_count: number | null;
15
+ lines: string | null;
16
+ location_description: string | null;
17
+ location_verification_on_street_light: string | null;
18
+ shelter_type: string | null;
19
+ shelter_id: string | null;
20
+ street_light_number: string | null;
21
+ surface_type: string | null;
22
+ connection_state: string | null;
23
+ connection_type: string | null;
24
+ connection_mode: string | null;
25
+ priority: string | null;
26
+ investor_action: string | null;
27
+ design_request: string | null;
28
+ design_state: string | null;
29
+ design_order_number: string | null;
30
+ design_registry_publication: string | null;
31
+ design_invoice_paid: string | null;
32
+ production_order_number: string | null;
33
+ production_state: string | null;
34
+ production_registry_publication: string | null;
35
+ production_invoice_paid: string | null;
36
+ realization_request: boolean | null;
37
+ realization_state: string | null;
38
+ realization_order_number: string | null;
39
+ realization_registry_publication: string | null;
40
+ realization_invoice_paid: string | null;
41
+ name_for_visually_impaired: string | null;
42
+ voice_day: string | null;
43
+ voice_night: string | null;
44
+ templates: string | null;
45
+ preset: string | null;
46
+ data_source: string | null;
47
+ imsi: string | null;
48
+ connection_point: string | null;
49
+ connection_point_number: string | null;
50
+ foundation_type: string | null;
51
+ warranty_end: string | null;
52
+ initial_revision: string | null;
53
+ next_revision: string | null;
54
+ electronics_service: boolean | null;
55
+ electronics_service_end: string | null;
56
+ asset_registered: boolean | null;
57
+ asset_number: string | null;
58
+ insurance: boolean | null;
59
+ handed_over_to_ozp: boolean | null;
60
+ dpp_documentation_request: boolean | null;
61
+ dpp_documentation_handover_date: string | null;
62
+ design_deadline: string | null;
63
+ production_deadline: string | null;
64
+ ropid_documentation_submitted: string[] | null;
65
+ ropid_documentation_handover_date: string | null;
66
+ dpp_documentation_submitted: string[] | null;
67
+ realization_deadline: string | null;
68
+ device_id: string | null;
69
+ asw_node_id: string | null;
70
+ asw_stop_id: string | null;
71
+ power_consumption_watt: number | null;
72
+ thmp_element_number: string | null;
73
+ electricity_supply_contract: string | null;
74
+ cleaning_frequency: string | null;
75
+ electricity_consumption_price: number | null;
76
+ construction_type: string | null;
77
+ panel_size: string | null;
78
+ design_price_without_vat: number | null;
79
+ production_price_without_vat: number | null;
80
+ realization_price_without_vat: number | null;
81
+ serial_number: string | null;
82
+ static readonly attributeModel: ModelAttributes<InformationPanelModel>;
83
+ static readonly jsonSchema: JSONSchemaType<IInformationPanel[]>;
84
+ }