@golemio/municipal-libraries 1.0.5-dev.568966813 → 1.1.0

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 (147) hide show
  1. package/db/example/.config.json +3 -0
  2. package/db/example/00_truncate_tables.sql +7 -0
  3. package/db/example/01_libraries.sql +50 -0
  4. package/db/migrations/postgresql/.config.json +3 -0
  5. package/db/migrations/postgresql/20220916133717-init.js +53 -0
  6. package/db/migrations/postgresql/package.json +3 -0
  7. package/db/migrations/postgresql/sqls/20220916133717-init-down.sql +6 -0
  8. package/db/migrations/postgresql/sqls/20220916133717-init-up.sql +102 -0
  9. package/db/migrations/postgresql/sqls/package.json +3 -0
  10. package/dist/integration-engine/datasources/MunicipalLibrariesDataSource.d.ts +4 -0
  11. package/dist/integration-engine/datasources/MunicipalLibrariesDataSource.js +21 -0
  12. package/dist/integration-engine/datasources/MunicipalLibrariesDataSource.js.map +1 -0
  13. package/dist/integration-engine/datasources/index.d.ts +1 -0
  14. package/dist/integration-engine/datasources/index.js +19 -0
  15. package/dist/integration-engine/datasources/index.js.map +1 -0
  16. package/dist/integration-engine/index.d.ts +2 -3
  17. package/dist/integration-engine/index.js +5 -3
  18. package/dist/integration-engine/index.js.map +1 -1
  19. package/dist/integration-engine/repositories/DepartmentsRepository.d.ts +4 -0
  20. package/dist/integration-engine/repositories/DepartmentsRepository.js +19 -0
  21. package/dist/integration-engine/repositories/DepartmentsRepository.js.map +1 -0
  22. package/dist/integration-engine/repositories/LibraryDepartmentsRepository.d.ts +4 -0
  23. package/dist/integration-engine/repositories/LibraryDepartmentsRepository.js +19 -0
  24. package/dist/integration-engine/repositories/LibraryDepartmentsRepository.js.map +1 -0
  25. package/dist/integration-engine/repositories/LibraryServicesRepository.d.ts +4 -0
  26. package/dist/integration-engine/repositories/LibraryServicesRepository.js +19 -0
  27. package/dist/integration-engine/repositories/LibraryServicesRepository.js.map +1 -0
  28. package/dist/integration-engine/repositories/MunicipalLibrariesRepository.d.ts +16 -0
  29. package/dist/integration-engine/repositories/MunicipalLibrariesRepository.js +140 -0
  30. package/dist/integration-engine/repositories/MunicipalLibrariesRepository.js.map +1 -0
  31. package/dist/integration-engine/repositories/OpeningHoursRepository.d.ts +4 -0
  32. package/dist/integration-engine/repositories/OpeningHoursRepository.js +19 -0
  33. package/dist/integration-engine/repositories/OpeningHoursRepository.js.map +1 -0
  34. package/dist/integration-engine/repositories/ServicesRepository.d.ts +4 -0
  35. package/dist/integration-engine/repositories/ServicesRepository.js +19 -0
  36. package/dist/integration-engine/repositories/ServicesRepository.js.map +1 -0
  37. package/dist/integration-engine/repositories/index.d.ts +6 -0
  38. package/dist/integration-engine/repositories/index.js +24 -0
  39. package/dist/integration-engine/repositories/index.js.map +1 -0
  40. package/dist/integration-engine/transformations/MunicipalLibrariesTransformation.d.ts +32 -0
  41. package/dist/integration-engine/transformations/MunicipalLibrariesTransformation.js +72 -0
  42. package/dist/integration-engine/transformations/MunicipalLibrariesTransformation.js.map +1 -0
  43. package/dist/integration-engine/transformations/helpers/TransformationHelper.d.ts +19 -0
  44. package/dist/integration-engine/transformations/helpers/TransformationHelper.js +95 -0
  45. package/dist/integration-engine/transformations/helpers/TransformationHelper.js.map +1 -0
  46. package/dist/integration-engine/workers/MunicipalLibrariesWorker.d.ts +5 -0
  47. package/dist/integration-engine/workers/MunicipalLibrariesWorker.js +16 -0
  48. package/dist/integration-engine/workers/MunicipalLibrariesWorker.js.map +1 -0
  49. package/dist/integration-engine/workers/index.d.ts +2 -0
  50. package/dist/integration-engine/workers/index.js +6 -0
  51. package/dist/integration-engine/workers/index.js.map +1 -0
  52. package/dist/integration-engine/workers/schemas/UpdateDistrictSchema.d.ts +6 -0
  53. package/dist/integration-engine/workers/schemas/UpdateDistrictSchema.js +21 -0
  54. package/dist/integration-engine/workers/schemas/UpdateDistrictSchema.js.map +1 -0
  55. package/dist/integration-engine/workers/tasks/RefreshDataInDBTask.d.ts +10 -0
  56. package/dist/integration-engine/workers/tasks/RefreshDataInDBTask.js +41 -0
  57. package/dist/integration-engine/workers/tasks/RefreshDataInDBTask.js.map +1 -0
  58. package/dist/integration-engine/workers/tasks/UpdateDistrictsTask.d.ts +12 -0
  59. package/dist/integration-engine/workers/tasks/UpdateDistrictsTask.js +47 -0
  60. package/dist/integration-engine/workers/tasks/UpdateDistrictsTask.js.map +1 -0
  61. package/dist/integration-engine/workers/tasks/index.d.ts +2 -0
  62. package/dist/integration-engine/workers/tasks/index.js +20 -0
  63. package/dist/integration-engine/workers/tasks/index.js.map +1 -0
  64. package/dist/output-gateway/MunicipalLibrariesRouter.d.ts +8 -0
  65. package/dist/output-gateway/MunicipalLibrariesRouter.js +15 -0
  66. package/dist/output-gateway/MunicipalLibrariesRouter.js.map +1 -0
  67. package/dist/output-gateway/index.d.ts +2 -0
  68. package/dist/output-gateway/index.js +19 -0
  69. package/dist/output-gateway/index.js.map +1 -0
  70. package/dist/output-gateway/repositories/DepartmentsRepository.d.ts +6 -0
  71. package/dist/output-gateway/repositories/DepartmentsRepository.js +28 -0
  72. package/dist/output-gateway/repositories/DepartmentsRepository.js.map +1 -0
  73. package/dist/output-gateway/repositories/LibraryDepartmentsRepository.d.ts +6 -0
  74. package/dist/output-gateway/repositories/LibraryDepartmentsRepository.js +28 -0
  75. package/dist/output-gateway/repositories/LibraryDepartmentsRepository.js.map +1 -0
  76. package/dist/output-gateway/repositories/LibraryServicesRepository.d.ts +6 -0
  77. package/dist/output-gateway/repositories/LibraryServicesRepository.js +28 -0
  78. package/dist/output-gateway/repositories/LibraryServicesRepository.js.map +1 -0
  79. package/dist/output-gateway/repositories/MunicipalLibrariesRepository.d.ts +17 -0
  80. package/dist/output-gateway/repositories/MunicipalLibrariesRepository.js +164 -0
  81. package/dist/output-gateway/repositories/MunicipalLibrariesRepository.js.map +1 -0
  82. package/dist/output-gateway/repositories/OpeningHoursRepository.d.ts +6 -0
  83. package/dist/output-gateway/repositories/OpeningHoursRepository.js +28 -0
  84. package/dist/output-gateway/repositories/OpeningHoursRepository.js.map +1 -0
  85. package/dist/output-gateway/repositories/ServicesRepository.d.ts +6 -0
  86. package/dist/output-gateway/repositories/ServicesRepository.js +28 -0
  87. package/dist/output-gateway/repositories/ServicesRepository.js.map +1 -0
  88. package/dist/output-gateway/repositories/index.d.ts +6 -0
  89. package/dist/output-gateway/repositories/index.js +23 -0
  90. package/dist/output-gateway/repositories/index.js.map +1 -0
  91. package/dist/schema-definitions/Departments.d.ts +10 -0
  92. package/dist/schema-definitions/Departments.js +8 -0
  93. package/dist/schema-definitions/Departments.js.map +1 -0
  94. package/dist/schema-definitions/Libraries.d.ts +16 -0
  95. package/dist/schema-definitions/Libraries.js +8 -0
  96. package/dist/schema-definitions/Libraries.js.map +1 -0
  97. package/dist/schema-definitions/LibraryDepartments.d.ts +8 -0
  98. package/dist/schema-definitions/LibraryDepartments.js +8 -0
  99. package/dist/schema-definitions/LibraryDepartments.js.map +1 -0
  100. package/dist/schema-definitions/LibraryServices.d.ts +8 -0
  101. package/dist/schema-definitions/LibraryServices.js +8 -0
  102. package/dist/schema-definitions/LibraryServices.js.map +1 -0
  103. package/dist/schema-definitions/OpeningHours.d.ts +15 -0
  104. package/dist/schema-definitions/OpeningHours.js +8 -0
  105. package/dist/schema-definitions/OpeningHours.js.map +1 -0
  106. package/dist/schema-definitions/Services.d.ts +9 -0
  107. package/dist/schema-definitions/Services.js +8 -0
  108. package/dist/schema-definitions/Services.js.map +1 -0
  109. package/dist/schema-definitions/datasources/MunicipalLibrariesJsonSchema.d.ts +78 -0
  110. package/dist/schema-definitions/datasources/MunicipalLibrariesJsonSchema.js +209 -0
  111. package/dist/schema-definitions/datasources/MunicipalLibrariesJsonSchema.js.map +1 -0
  112. package/dist/schema-definitions/index.d.ts +1 -314
  113. package/dist/schema-definitions/index.js +19 -265
  114. package/dist/schema-definitions/index.js.map +1 -1
  115. package/dist/schema-definitions/models/DepartmentsModel.d.ts +12 -0
  116. package/dist/schema-definitions/models/DepartmentsModel.js +33 -0
  117. package/dist/schema-definitions/models/DepartmentsModel.js.map +1 -0
  118. package/dist/schema-definitions/models/LibrariesModel.d.ts +18 -0
  119. package/dist/schema-definitions/models/LibrariesModel.js +46 -0
  120. package/dist/schema-definitions/models/LibrariesModel.js.map +1 -0
  121. package/dist/schema-definitions/models/LibraryDepartmentsModel.d.ts +10 -0
  122. package/dist/schema-definitions/models/LibraryDepartmentsModel.js +30 -0
  123. package/dist/schema-definitions/models/LibraryDepartmentsModel.js.map +1 -0
  124. package/dist/schema-definitions/models/LibraryServicesModel.d.ts +10 -0
  125. package/dist/schema-definitions/models/LibraryServicesModel.js +30 -0
  126. package/dist/schema-definitions/models/LibraryServicesModel.js.map +1 -0
  127. package/dist/schema-definitions/models/OpeningHoursModel.d.ts +17 -0
  128. package/dist/schema-definitions/models/OpeningHoursModel.js +44 -0
  129. package/dist/schema-definitions/models/OpeningHoursModel.js.map +1 -0
  130. package/dist/schema-definitions/models/ServicesModel.d.ts +11 -0
  131. package/dist/schema-definitions/models/ServicesModel.js +31 -0
  132. package/dist/schema-definitions/models/ServicesModel.js.map +1 -0
  133. package/dist/schema-definitions/models/index.d.ts +6 -0
  134. package/dist/schema-definitions/models/index.js +24 -0
  135. package/dist/schema-definitions/models/index.js.map +1 -0
  136. package/package.json +64 -58
  137. package/db/example/mongo_data/dataplatform/municipallibraries.bson +0 -0
  138. package/db/example/mongo_data/dataplatform/municipallibraries.metadata.json +0 -1
  139. package/dist/integration-engine/MunicipalLibrariesTransformation.d.ts +0 -9
  140. package/dist/integration-engine/MunicipalLibrariesTransformation.js +0 -150
  141. package/dist/integration-engine/MunicipalLibrariesTransformation.js.map +0 -1
  142. package/dist/integration-engine/MunicipalLibrariesWorker.d.ts +0 -11
  143. package/dist/integration-engine/MunicipalLibrariesWorker.js +0 -105
  144. package/dist/integration-engine/MunicipalLibrariesWorker.js.map +0 -1
  145. package/dist/integration-engine/queueDefinitions.d.ts +0 -3
  146. package/dist/integration-engine/queueDefinitions.js +0 -36
  147. package/dist/integration-engine/queueDefinitions.js.map +0 -1
@@ -0,0 +1,78 @@
1
+ import { Point } from "@golemio/core/dist/shared/geojson";
2
+ import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
3
+ export declare enum OpeningHoursDays {
4
+ pondeli = "Monday",
5
+ utery = "Tuesday",
6
+ streda = "Wednesday",
7
+ ctvrtek = "Thursday",
8
+ patek = "Friday",
9
+ sobota = "Saturday",
10
+ nedele = "Sunday"
11
+ }
12
+ export declare type TOpeningHoursDays = keyof typeof OpeningHoursDays;
13
+ interface IRangeInput {
14
+ od: string;
15
+ do: string;
16
+ }
17
+ export declare type TDailyOpeningHours = {
18
+ rano: IRangeInput;
19
+ odpoledne?: IRangeInput;
20
+ };
21
+ interface IOpeningHoursInput {
22
+ oteviracidoba: TOpeningHoursInput | TOpeningHoursInput[];
23
+ }
24
+ declare type TOpeningHoursDaysInput = {
25
+ [day in TOpeningHoursDays]: TDailyOpeningHours;
26
+ };
27
+ export declare type TOpeningHoursInput = TOpeningHoursDaysInput & {
28
+ nazev: string;
29
+ defaultni: string;
30
+ platnost?: IRangeInput;
31
+ };
32
+ export interface IDepartmentsInput {
33
+ oddeleni: IDepartmentInput | IDepartmentInput[];
34
+ }
35
+ export interface IDepartmentInput {
36
+ id: string;
37
+ nazev: string;
38
+ typ: string;
39
+ url: string | null;
40
+ }
41
+ export interface IServicesInput {
42
+ sluzba: IServiceInput | IServiceInput[];
43
+ }
44
+ export interface IServiceInput {
45
+ id: string;
46
+ nazev: string;
47
+ popis: string | null;
48
+ }
49
+ interface IContactInput {
50
+ telefon: string;
51
+ email: string;
52
+ }
53
+ export interface IAddressInput {
54
+ ulice: string;
55
+ cislo: string | null;
56
+ mesto: string;
57
+ psc: string;
58
+ gps: string;
59
+ url: string;
60
+ }
61
+ export interface ILibrariesInput {
62
+ id: string;
63
+ nazev: string | null;
64
+ cislo: string;
65
+ geometry: Point;
66
+ knoddel: string | null;
67
+ nadrazena: string | null;
68
+ adresa: IAddressInput;
69
+ oteviracidoby: IOpeningHoursInput;
70
+ sluzby: IServicesInput | null;
71
+ oddeleni: IDepartmentsInput | null;
72
+ kontakt: IContactInput;
73
+ }
74
+ export declare const municipalLibrariesDatasource: {
75
+ name: string;
76
+ jsonSchema: JSONSchemaType<ILibrariesInput[]>;
77
+ };
78
+ export {};
@@ -0,0 +1,209 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.municipalLibrariesDatasource = exports.OpeningHoursDays = void 0;
4
+ const schema_definitions_1 = require("@golemio/core/dist/schema-definitions");
5
+ var OpeningHoursDays;
6
+ (function (OpeningHoursDays) {
7
+ OpeningHoursDays["pondeli"] = "Monday";
8
+ OpeningHoursDays["utery"] = "Tuesday";
9
+ OpeningHoursDays["streda"] = "Wednesday";
10
+ OpeningHoursDays["ctvrtek"] = "Thursday";
11
+ OpeningHoursDays["patek"] = "Friday";
12
+ OpeningHoursDays["sobota"] = "Saturday";
13
+ OpeningHoursDays["nedele"] = "Sunday";
14
+ })(OpeningHoursDays = exports.OpeningHoursDays || (exports.OpeningHoursDays = {}));
15
+ const municipalLibrariesJsonSchema = {
16
+ type: "array",
17
+ additionalItems: false,
18
+ items: {
19
+ type: "object",
20
+ required: ["id", "nazev", "cislo", "knoddel", "nadrazena", "adresa", "oteviracidoby", "sluzby", "oddeleni", "kontakt"],
21
+ additionalProperties: false,
22
+ properties: {
23
+ id: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
24
+ nazev: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
25
+ cislo: { type: "string" },
26
+ knoddel: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
27
+ nadrazena: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
28
+ adresa: {
29
+ type: "object",
30
+ required: ["ulice", "mesto", "psc", "gps", "url"],
31
+ additionalProperties: false,
32
+ properties: {
33
+ ulice: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
34
+ cislo: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
35
+ mesto: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
36
+ psc: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
37
+ gps: { type: "string" },
38
+ url: { type: "string" },
39
+ },
40
+ },
41
+ oteviracidoby: {
42
+ type: "object",
43
+ required: ["oteviracidoba"],
44
+ additionalProperties: false,
45
+ properties: {
46
+ oteviracidoba: {
47
+ oneOf: [
48
+ {
49
+ type: "array",
50
+ additionalItems: false,
51
+ items: { $ref: "#/definitions/openingHours" },
52
+ },
53
+ { $ref: "#/definitions/openingHours" },
54
+ ],
55
+ },
56
+ },
57
+ },
58
+ sluzby: {
59
+ oneOf: [
60
+ {
61
+ type: "object",
62
+ required: ["sluzba"],
63
+ additionalProperties: false,
64
+ properties: {
65
+ sluzba: {
66
+ oneOf: [
67
+ {
68
+ type: "array",
69
+ additionalItems: false,
70
+ items: { $ref: "#/definitions/service" },
71
+ },
72
+ { $ref: "#/definitions/service" },
73
+ ],
74
+ },
75
+ },
76
+ },
77
+ { type: "null", nullable: true },
78
+ ],
79
+ },
80
+ oddeleni: {
81
+ oneOf: [
82
+ {
83
+ type: "object",
84
+ required: ["oddeleni"],
85
+ additionalProperties: false,
86
+ properties: {
87
+ oddeleni: {
88
+ oneOf: [
89
+ {
90
+ type: "array",
91
+ additionalItems: false,
92
+ items: { $ref: "#/definitions/department" },
93
+ },
94
+ { $ref: "#/definitions/department" },
95
+ ],
96
+ },
97
+ },
98
+ },
99
+ { type: "null", nullable: true },
100
+ ],
101
+ },
102
+ kontakt: { $ref: "#/definitions/contact" },
103
+ },
104
+ },
105
+ definitions: {
106
+ dailyOpeningHours: {
107
+ type: "object",
108
+ required: ["rano"],
109
+ additionalProperties: false,
110
+ properties: {
111
+ rano: {
112
+ type: "object",
113
+ required: ["od", "do"],
114
+ additionalProperties: false,
115
+ properties: {
116
+ od: { type: "string" },
117
+ do: { type: "string" },
118
+ },
119
+ },
120
+ odpoledne: {
121
+ type: "object",
122
+ required: ["od", "do"],
123
+ additionalProperties: false,
124
+ properties: {
125
+ od: { type: "string" },
126
+ do: { type: "string" },
127
+ },
128
+ },
129
+ },
130
+ },
131
+ // @ts-expect-error
132
+ openingHours: {
133
+ type: "object",
134
+ required: ["nazev", "defaultni"],
135
+ additionalProperties: false,
136
+ properties: {
137
+ nazev: { type: "string" },
138
+ defaultni: { type: "string" },
139
+ platnost: {
140
+ type: "object",
141
+ required: ["od", "do"],
142
+ additionalProperties: false,
143
+ properties: {
144
+ od: { type: "string" },
145
+ do: { type: "string" },
146
+ },
147
+ },
148
+ pondeli: {
149
+ oneOf: [{ $ref: "#/definitions/dailyOpeningHours" }, { type: "null", nullable: true }],
150
+ },
151
+ utery: {
152
+ oneOf: [{ $ref: "#/definitions/dailyOpeningHours" }, { type: "null", nullable: true }],
153
+ },
154
+ streda: {
155
+ oneOf: [{ $ref: "#/definitions/dailyOpeningHours" }, { type: "null", nullable: true }],
156
+ },
157
+ ctvrtek: {
158
+ oneOf: [{ $ref: "#/definitions/dailyOpeningHours" }, { type: "null", nullable: true }],
159
+ },
160
+ patek: {
161
+ oneOf: [{ $ref: "#/definitions/dailyOpeningHours" }, { type: "null", nullable: true }],
162
+ },
163
+ sobota: {
164
+ oneOf: [{ $ref: "#/definitions/dailyOpeningHours" }, { type: "null", nullable: true }],
165
+ },
166
+ nedele: {
167
+ oneOf: [{ $ref: "#/definitions/dailyOpeningHours" }, { type: "null", nullable: true }],
168
+ },
169
+ },
170
+ },
171
+ department: {
172
+ type: "object",
173
+ required: ["id", "nazev", "typ", "url"],
174
+ additionalProperties: false,
175
+ properties: {
176
+ id: { type: "string" },
177
+ nazev: { type: "string" },
178
+ typ: { type: "string" },
179
+ url: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
180
+ },
181
+ },
182
+ service: {
183
+ type: "object",
184
+ required: ["id", "nazev", "popis"],
185
+ additionalProperties: false,
186
+ properties: {
187
+ id: { type: "string" },
188
+ nazev: { type: "string" },
189
+ popis: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
190
+ },
191
+ },
192
+ contact: {
193
+ type: "object",
194
+ required: ["telefon", "email"],
195
+ additionalProperties: false,
196
+ properties: {
197
+ telefon: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
198
+ email: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
199
+ },
200
+ },
201
+ // @ts-expect-error
202
+ geometry: schema_definitions_1.SharedSchemaProvider.Geometry,
203
+ },
204
+ };
205
+ exports.municipalLibrariesDatasource = {
206
+ name: "MunicipalLibrariesDatasource",
207
+ jsonSchema: municipalLibrariesJsonSchema,
208
+ };
209
+ //# sourceMappingURL=MunicipalLibrariesJsonSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MunicipalLibrariesJsonSchema.js","sourceRoot":"","sources":["../../../src/schema-definitions/datasources/MunicipalLibrariesJsonSchema.ts"],"names":[],"mappings":";;;AAEA,8EAA6E;AAE7E,IAAY,gBAQX;AARD,WAAY,gBAAgB;IACxB,sCAAkB,CAAA;IAClB,qCAAiB,CAAA;IACjB,wCAAoB,CAAA;IACpB,wCAAoB,CAAA;IACpB,oCAAgB,CAAA;IAChB,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AACrB,CAAC,EARW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAQ3B;AA6ED,MAAM,4BAA4B,GAAsC;IACpE,IAAI,EAAE,OAAO;IACb,eAAe,EAAE,KAAK;IACtB,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC;QACtH,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACR,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE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AE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE;aAC3E;SACJ;QACD,mBAAmB;QACnB,QAAQ,EAAE,yCAAoB,CAAC,QAAQ;KAC1C;CACJ,CAAC;AAEW,QAAA,4BAA4B,GAAoE;IACzG,IAAI,EAAE,8BAA8B;IACpC,UAAU,EAAE,4BAA4B;CAC3C,CAAC"}
@@ -1,315 +1,2 @@
1
- /// <reference types="mongoose" />
2
- import { Schema } from "@golemio/core/dist/shared/mongoose";
3
- declare const forExport: {
4
- datasourceJsonSchema: {
5
- definitions: {
6
- denniOteviraciDoba: {
7
- type: string;
8
- anyOf: {
9
- required: string[];
10
- }[];
11
- additionalProperties: boolean;
12
- properties: {
13
- rano: {
14
- type: string;
15
- required: string[];
16
- additionalProperties: boolean;
17
- properties: {
18
- od: {
19
- type: string;
20
- };
21
- do: {
22
- type: string;
23
- };
24
- };
25
- };
26
- odpoledne: {
27
- type: string;
28
- required: string[];
29
- additionalProperties: boolean;
30
- properties: {
31
- od: {
32
- type: string;
33
- };
34
- do: {
35
- type: string;
36
- };
37
- };
38
- };
39
- };
40
- };
41
- oteviraciDoba: {
42
- type: string;
43
- required: string[];
44
- additionalProperties: boolean;
45
- properties: {
46
- nazev: {
47
- type: string;
48
- };
49
- defaultni: {
50
- type: string;
51
- };
52
- platnost: {
53
- type: string;
54
- required: string[];
55
- additionalProperties: boolean;
56
- properties: {
57
- od: {
58
- type: string;
59
- };
60
- do: {
61
- type: string;
62
- };
63
- };
64
- };
65
- pondeli: {
66
- oneOf: ({
67
- type: string;
68
- $ref?: undefined;
69
- } | {
70
- $ref: string;
71
- type?: undefined;
72
- })[];
73
- };
74
- utery: {
75
- oneOf: ({
76
- type: string;
77
- $ref?: undefined;
78
- } | {
79
- $ref: string;
80
- type?: undefined;
81
- })[];
82
- };
83
- streda: {
84
- oneOf: ({
85
- type: string;
86
- $ref?: undefined;
87
- } | {
88
- $ref: string;
89
- type?: undefined;
90
- })[];
91
- };
92
- ctvrtek: {
93
- oneOf: ({
94
- type: string;
95
- $ref?: undefined;
96
- } | {
97
- $ref: string;
98
- type?: undefined;
99
- })[];
100
- };
101
- patek: {
102
- oneOf: ({
103
- type: string;
104
- $ref?: undefined;
105
- } | {
106
- $ref: string;
107
- type?: undefined;
108
- })[];
109
- };
110
- sobota: {
111
- oneOf: ({
112
- type: string;
113
- $ref?: undefined;
114
- } | {
115
- $ref: string;
116
- type?: undefined;
117
- })[];
118
- };
119
- nedele: {
120
- oneOf: ({
121
- type: string;
122
- $ref?: undefined;
123
- } | {
124
- $ref: string;
125
- type?: undefined;
126
- })[];
127
- };
128
- };
129
- };
130
- oddeleni: {
131
- type: string;
132
- required: string[];
133
- additionalProperties: boolean;
134
- properties: {
135
- id: {
136
- type: string;
137
- };
138
- nazev: {
139
- type: string;
140
- };
141
- typ: {
142
- type: string;
143
- };
144
- url: {
145
- type: string;
146
- };
147
- };
148
- };
149
- sluzba: {
150
- type: string;
151
- required: string[];
152
- additionalProperties: boolean;
153
- properties: {
154
- id: {
155
- type: string;
156
- };
157
- nazev: {
158
- type: string;
159
- };
160
- popis: {
161
- type: string;
162
- };
163
- };
164
- };
165
- };
166
- type: string;
167
- additionalItems: boolean;
168
- items: {
169
- type: string;
170
- required: string[];
171
- additionalProperties: boolean;
172
- properties: {
173
- nazev: {
174
- type: string;
175
- };
176
- cislo: {
177
- type: string;
178
- };
179
- id: {
180
- type: string;
181
- };
182
- knoddel: {
183
- type: string;
184
- };
185
- nadrazena: {
186
- type: string;
187
- };
188
- adresa: {
189
- type: string;
190
- required: string[];
191
- additionalProperties: boolean;
192
- properties: {
193
- ulice: {
194
- type: string;
195
- };
196
- cislo: {
197
- type: string;
198
- };
199
- mesto: {
200
- type: string;
201
- };
202
- psc: {
203
- type: string;
204
- };
205
- gps: {
206
- type: string;
207
- };
208
- url: {
209
- type: string;
210
- };
211
- };
212
- };
213
- oteviracidoby: {
214
- type: string;
215
- required: string[];
216
- additionalProperties: boolean;
217
- properties: {
218
- oteviracidoba: {
219
- oneOf: ({
220
- type: string;
221
- additionalItems: boolean;
222
- items: {
223
- $ref: string;
224
- };
225
- $ref?: undefined;
226
- } | {
227
- $ref: string;
228
- type?: undefined;
229
- additionalItems?: undefined;
230
- items?: undefined;
231
- })[];
232
- };
233
- };
234
- };
235
- sluzby: {
236
- oneOf: ({
237
- type: string;
238
- required: string[];
239
- additionalProperties: boolean;
240
- properties: {
241
- sluzba: {
242
- oneOf: ({
243
- type: string;
244
- additionalItems: boolean;
245
- items: {
246
- $ref: string;
247
- };
248
- $ref?: undefined;
249
- } | {
250
- $ref: string;
251
- type?: undefined;
252
- additionalItems?: undefined;
253
- items?: undefined;
254
- })[];
255
- };
256
- };
257
- } | {
258
- type: string;
259
- required?: undefined;
260
- additionalProperties?: undefined;
261
- properties?: undefined;
262
- })[];
263
- };
264
- oddeleni: {
265
- oneOf: ({
266
- type: string;
267
- required: string[];
268
- additionalProperties: boolean;
269
- properties: {
270
- oddeleni: {
271
- oneOf: ({
272
- type: string;
273
- additionalItems: boolean;
274
- items: {
275
- $ref: string;
276
- };
277
- $ref?: undefined;
278
- } | {
279
- $ref: string;
280
- type?: undefined;
281
- additionalItems?: undefined;
282
- items?: undefined;
283
- })[];
284
- };
285
- };
286
- } | {
287
- type: string;
288
- required?: undefined;
289
- additionalProperties?: undefined;
290
- properties?: undefined;
291
- })[];
292
- };
293
- kontakt: {
294
- type: string;
295
- required: string[];
296
- additionalProperties: boolean;
297
- properties: {
298
- telefon: {
299
- type: string;
300
- };
301
- email: {
302
- type: string;
303
- };
304
- };
305
- };
306
- };
307
- };
308
- };
309
- mongoCollectionName: string;
310
- name: string;
311
- outputMongooseSchemaObject: {
312
- [path: string]: any | typeof import("mongoose").SchemaType | Schema<any, any, any, any> | Schema<any, any, any, any>[] | readonly Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
313
- };
314
- };
1
+ declare const forExport: any;
315
2
  export { forExport as MunicipalLibraries };