@golemio/parkings 1.15.1-dev.1470343241 → 1.15.1-dev.1478432572

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.
@@ -7,7 +7,6 @@ export declare class SaveIsphkMeasurementsTask extends AbstractTaskJsonSchema<an
7
7
  readonly queueName = "saveIsphkMeasurements";
8
8
  readonly queueTtl: number;
9
9
  readonly schema: JSONSchemaValidator;
10
- private isphkMeasurementTransformation;
11
10
  constructor(parkingsMeasurementsRepository: PostgresModel, parkingsMeasurementsActualRepository: PostgresModel);
12
11
  execute(inputData: any): Promise<void>;
13
12
  }
@@ -39,12 +39,12 @@ let SaveIsphkMeasurementsTask = exports.SaveIsphkMeasurementsTask = class SaveIs
39
39
  this.queueName = "saveIsphkMeasurements";
40
40
  this.queueTtl = 15 * 60 * 1000;
41
41
  this.schema = new golemio_validator_1.JSONSchemaValidator("SaveIsphkMeasurementsTaskValidation", IsphkMeasurementsSchema_1.IsphkMeasurementsSchema);
42
- this.isphkMeasurementTransformation = new IsphkMeasurementTransformation_1.IsphkMeasurementTransformation(new Date());
43
42
  }
44
43
  execute(inputData) {
45
44
  return __awaiter(this, void 0, void 0, function* () {
46
45
  try {
47
- const transformedData = this.isphkMeasurementTransformation.transformArray(inputData.data);
46
+ const isphkMeasurementTransformation = new IsphkMeasurementTransformation_1.IsphkMeasurementTransformation(new Date());
47
+ const transformedData = isphkMeasurementTransformation.transformArray(inputData.data);
48
48
  yield this.parkingsMeasurementsRepository.bulkSave(transformedData);
49
49
  yield this.parkingsMeasurementsActualRepository.bulkSave(transformedData);
50
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SaveIsphkMeasurementsTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/SaveIsphkMeasurementsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,yEAAoE;AACpE,iHAA4G;AAC5G,4CAAiE;AACjE,mHAAyF;AACzF,8EAAsE;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,CAAA;IAE1D,WAAA,IAAA,iBAAM,EAAC,2CAAoB,CAAC,oCAAoC,CAAC,CAAA;qCADjB,kCAAa;QAEP,kCAAa;GAT/D,yBAAyB,CAwBrC"}
@@ -1,6 +1,6 @@
1
+ import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
1
2
  import { IIptOictParkingProperties } from "./interfaces/IIptOictParkingProperties";
2
3
  import { IIptOictParkingSpacesProperties } from "./interfaces/IIptOictParkingSpacesProperties";
3
- import { JSONSchemaType } from "@golemio/core/dist/shared/ajv";
4
4
  export declare class IptOictFeatureCollectionSchemaGenerator {
5
5
  static getParkingSchema(): {
6
6
  type: string;
@@ -19,7 +19,84 @@ export declare class IptOictFeatureCollectionSchemaGenerator {
19
19
  enum: string[];
20
20
  };
21
21
  geometry: {
22
+ $id: string;
23
+ title: string;
24
+ description: string;
22
25
  type: string;
26
+ required: string[];
27
+ oneOf: ({
28
+ title: string;
29
+ properties: {
30
+ type: {
31
+ enum: string[];
32
+ };
33
+ coordinates: {
34
+ type: string;
35
+ minItems: number;
36
+ maxItems: number;
37
+ items: {
38
+ type: string;
39
+ minItems?: undefined;
40
+ items?: undefined;
41
+ };
42
+ additionalItems: boolean;
43
+ };
44
+ };
45
+ } | {
46
+ title: string;
47
+ properties: {
48
+ type: {
49
+ enum: string[];
50
+ };
51
+ coordinates: {
52
+ type: string;
53
+ items: {
54
+ type: string;
55
+ minItems: number;
56
+ items: {
57
+ type: string;
58
+ minItems: number;
59
+ items: {
60
+ type: string;
61
+ minItems?: undefined;
62
+ items?: undefined;
63
+ };
64
+ };
65
+ };
66
+ minItems?: undefined;
67
+ maxItems?: undefined;
68
+ additionalItems?: undefined;
69
+ };
70
+ };
71
+ } | {
72
+ title: string;
73
+ properties: {
74
+ type: {
75
+ enum: string[];
76
+ };
77
+ coordinates: {
78
+ type: string;
79
+ items: {
80
+ type: string;
81
+ items: {
82
+ type: string;
83
+ minItems: number;
84
+ items: {
85
+ type: string;
86
+ minItems: number;
87
+ items: {
88
+ type: string;
89
+ };
90
+ };
91
+ };
92
+ minItems?: undefined;
93
+ };
94
+ minItems?: undefined;
95
+ maxItems?: undefined;
96
+ additionalItems?: undefined;
97
+ };
98
+ };
99
+ })[];
23
100
  };
24
101
  properties: JSONSchemaType<IIptOictParkingProperties>;
25
102
  };
@@ -46,7 +123,84 @@ export declare class IptOictFeatureCollectionSchemaGenerator {
46
123
  enum: string[];
47
124
  };
48
125
  geometry: {
126
+ $id: string;
127
+ title: string;
128
+ description: string;
49
129
  type: string;
130
+ required: string[];
131
+ oneOf: ({
132
+ title: string;
133
+ properties: {
134
+ type: {
135
+ enum: string[];
136
+ };
137
+ coordinates: {
138
+ type: string;
139
+ minItems: number;
140
+ maxItems: number;
141
+ items: {
142
+ type: string;
143
+ minItems?: undefined;
144
+ items?: undefined;
145
+ };
146
+ additionalItems: boolean;
147
+ };
148
+ };
149
+ } | {
150
+ title: string;
151
+ properties: {
152
+ type: {
153
+ enum: string[];
154
+ };
155
+ coordinates: {
156
+ type: string;
157
+ items: {
158
+ type: string;
159
+ minItems: number;
160
+ items: {
161
+ type: string;
162
+ minItems: number;
163
+ items: {
164
+ type: string;
165
+ minItems?: undefined;
166
+ items?: undefined;
167
+ };
168
+ };
169
+ };
170
+ minItems?: undefined;
171
+ maxItems?: undefined;
172
+ additionalItems?: undefined;
173
+ };
174
+ };
175
+ } | {
176
+ title: string;
177
+ properties: {
178
+ type: {
179
+ enum: string[];
180
+ };
181
+ coordinates: {
182
+ type: string;
183
+ items: {
184
+ type: string;
185
+ items: {
186
+ type: string;
187
+ minItems: number;
188
+ items: {
189
+ type: string;
190
+ minItems: number;
191
+ items: {
192
+ type: string;
193
+ };
194
+ };
195
+ };
196
+ minItems?: undefined;
197
+ };
198
+ minItems?: undefined;
199
+ maxItems?: undefined;
200
+ additionalItems?: undefined;
201
+ };
202
+ };
203
+ })[];
50
204
  };
51
205
  properties: JSONSchemaType<IIptOictParkingSpacesProperties>;
52
206
  };
@@ -73,7 +227,84 @@ export declare class IptOictFeatureCollectionSchemaGenerator {
73
227
  enum: string[];
74
228
  };
75
229
  geometry: {
230
+ $id: string;
231
+ title: string;
232
+ description: string;
76
233
  type: string;
234
+ required: string[];
235
+ oneOf: ({
236
+ title: string;
237
+ properties: {
238
+ type: {
239
+ enum: string[];
240
+ };
241
+ coordinates: {
242
+ type: string;
243
+ minItems: number;
244
+ maxItems: number;
245
+ items: {
246
+ type: string;
247
+ minItems?: undefined;
248
+ items?: undefined;
249
+ };
250
+ additionalItems: boolean;
251
+ };
252
+ };
253
+ } | {
254
+ title: string;
255
+ properties: {
256
+ type: {
257
+ enum: string[];
258
+ };
259
+ coordinates: {
260
+ type: string;
261
+ items: {
262
+ type: string;
263
+ minItems: number;
264
+ items: {
265
+ type: string;
266
+ minItems: number;
267
+ items: {
268
+ type: string;
269
+ minItems?: undefined;
270
+ items?: undefined;
271
+ };
272
+ };
273
+ };
274
+ minItems?: undefined;
275
+ maxItems?: undefined;
276
+ additionalItems?: undefined;
277
+ };
278
+ };
279
+ } | {
280
+ title: string;
281
+ properties: {
282
+ type: {
283
+ enum: string[];
284
+ };
285
+ coordinates: {
286
+ type: string;
287
+ items: {
288
+ type: string;
289
+ items: {
290
+ type: string;
291
+ minItems: number;
292
+ items: {
293
+ type: string;
294
+ minItems: number;
295
+ items: {
296
+ type: string;
297
+ };
298
+ };
299
+ };
300
+ minItems?: undefined;
301
+ };
302
+ minItems?: undefined;
303
+ maxItems?: undefined;
304
+ additionalItems?: undefined;
305
+ };
306
+ };
307
+ })[];
77
308
  };
78
309
  properties: JSONSchemaType<IIptOictParkingSpacesProperties>;
79
310
  };
@@ -100,7 +331,84 @@ export declare class IptOictFeatureCollectionSchemaGenerator {
100
331
  enum: string[];
101
332
  };
102
333
  geometry: {
334
+ $id: string;
335
+ title: string;
336
+ description: string;
103
337
  type: string;
338
+ required: string[];
339
+ oneOf: ({
340
+ title: string;
341
+ properties: {
342
+ type: {
343
+ enum: string[];
344
+ };
345
+ coordinates: {
346
+ type: string;
347
+ minItems: number;
348
+ maxItems: number;
349
+ items: {
350
+ type: string;
351
+ minItems?: undefined;
352
+ items?: undefined;
353
+ };
354
+ additionalItems: boolean;
355
+ };
356
+ };
357
+ } | {
358
+ title: string;
359
+ properties: {
360
+ type: {
361
+ enum: string[];
362
+ };
363
+ coordinates: {
364
+ type: string;
365
+ items: {
366
+ type: string;
367
+ minItems: number;
368
+ items: {
369
+ type: string;
370
+ minItems: number;
371
+ items: {
372
+ type: string;
373
+ minItems?: undefined;
374
+ items?: undefined;
375
+ };
376
+ };
377
+ };
378
+ minItems?: undefined;
379
+ maxItems?: undefined;
380
+ additionalItems?: undefined;
381
+ };
382
+ };
383
+ } | {
384
+ title: string;
385
+ properties: {
386
+ type: {
387
+ enum: string[];
388
+ };
389
+ coordinates: {
390
+ type: string;
391
+ items: {
392
+ type: string;
393
+ items: {
394
+ type: string;
395
+ minItems: number;
396
+ items: {
397
+ type: string;
398
+ minItems: number;
399
+ items: {
400
+ type: string;
401
+ };
402
+ };
403
+ };
404
+ minItems?: undefined;
405
+ };
406
+ minItems?: undefined;
407
+ maxItems?: undefined;
408
+ additionalItems?: undefined;
409
+ };
410
+ };
411
+ })[];
104
412
  };
105
413
  properties: JSONSchemaType<T>;
106
414
  };
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IptOictFeatureCollectionSchemaGenerator = void 0;
4
+ const SupportedGeometrySchema_1 = require("../shared/SupportedGeometrySchema");
4
5
  const IptoictEntrancesSchema_1 = require("./IptoictEntrancesSchema");
5
6
  const IptOictParkingSchema_1 = require("./IptOictParkingSchema");
6
7
  const IptOictParkingSpacesSchema_1 = require("./IptOictParkingSpacesSchema");
@@ -31,9 +32,7 @@ class IptOictFeatureCollectionSchemaGenerator {
31
32
  type: "string",
32
33
  enum: ["Feature"],
33
34
  },
34
- geometry: {
35
- type: "object",
36
- },
35
+ geometry: SupportedGeometrySchema_1.SupportedGeometrySchema,
37
36
  properties: propertiesSchema,
38
37
  },
39
38
  required: ["type", "geometry", "properties"],
@@ -1 +1 @@
1
- {"version":3,"file":"IptOictFeatureCollectionSchemaGenerator.js","sourceRoot":"","sources":["../../../../src/schema-definitions/datasources/iptoict/IptOictFeatureCollectionSchemaGenerator.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAClE,iEAA8D;AAC9D,6EAA0E;AAK1E,MAAa,uCAAuC;IACzC,MAAM,CAAC,gBAAgB;QAC1B,OAAO,IAAI,CAAC,SAAS,CAA4B,2CAAoB,CAAC,CAAC;IAC3E,CAAC;IAEM,MAAM,CAAC,sBAAsB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAkC,uDAA0B,CAAC,CAAC;IACvF,CAAC;IAEM,MAAM,CAAC,yBAAyB;QACnC,OAAO,IAAI,CAAC,SAAS,CAAkC,+CAAsB,CAAC,CAAC;IACnF,CAAC;IAES,MAAM,CAAC,SAAS,CAAI,gBAAmC;QAC7D,OAAO;YACH,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,IAAI,EAAE;oBACF,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,mBAAmB,CAAC;iBAC9B;gBACD,QAAQ,EAAE;oBACN,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACR,IAAI,EAAE;gCACF,IAAI,EAAE,QAAQ;gCACd,IAAI,EAAE,CAAC,SAAS,CAAC;6BACpB;4BACD,QAAQ,EAAE;gCACN,IAAI,EAAE,QAAQ;6BACjB;4BACD,UAAU,EAAE,gBAAgB;yBAC/B;wBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC;qBAC/C;iBACJ;aACJ;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;SACjC,CAAC;IACN,CAAC;CACJ;AA1CD,0FA0CC"}
1
+ {"version":3,"file":"IptOictFeatureCollectionSchemaGenerator.js","sourceRoot":"","sources":["../../../../src/schema-definitions/datasources/iptoict/IptOictFeatureCollectionSchemaGenerator.ts"],"names":[],"mappings":";;;AAAA,+EAA0F;AAI1F,qEAAkE;AAClE,iEAA8D;AAC9D,6EAA0E;AAE1E,MAAa,uCAAuC;IACzC,MAAM,CAAC,gBAAgB;QAC1B,OAAO,IAAI,CAAC,SAAS,CAA4B,2CAAoB,CAAC,CAAC;IAC3E,CAAC;IAEM,MAAM,CAAC,sBAAsB;QAChC,OAAO,IAAI,CAAC,SAAS,CAAkC,uDAA0B,CAAC,CAAC;IACvF,CAAC;IAEM,MAAM,CAAC,yBAAyB;QACnC,OAAO,IAAI,CAAC,SAAS,CAAkC,+CAA6B,CAAC,CAAC;IAC1F,CAAC;IAES,MAAM,CAAC,SAAS,CAAI,gBAAmC;QAC7D,OAAO;YACH,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,IAAI,EAAE;oBACF,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,mBAAmB,CAAC;iBAC9B;gBACD,QAAQ,EAAE;oBACN,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACR,IAAI,EAAE;gCACF,IAAI,EAAE,QAAQ;gCACd,IAAI,EAAE,CAAC,SAAS,CAAC;6BACpB;4BACD,QAAQ,EAAE,iDAAuB;4BACjC,UAAU,EAAE,gBAAgB;yBAC/B;wBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC;qBAC/C;iBACJ;aACJ;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;SACjC,CAAC;IACN,CAAC;CACJ;AAxCD,0FAwCC"}
@@ -21,7 +21,84 @@ export declare class OsmSchemaGenerator {
21
21
  enum: string[];
22
22
  };
23
23
  geometry: {
24
+ $id: string;
25
+ title: string;
26
+ description: string;
24
27
  type: string;
28
+ required: string[];
29
+ oneOf: ({
30
+ title: string;
31
+ properties: {
32
+ type: {
33
+ enum: string[];
34
+ };
35
+ coordinates: {
36
+ type: string;
37
+ minItems: number;
38
+ maxItems: number;
39
+ items: {
40
+ type: string;
41
+ minItems?: undefined;
42
+ items?: undefined;
43
+ };
44
+ additionalItems: boolean;
45
+ };
46
+ };
47
+ } | {
48
+ title: string;
49
+ properties: {
50
+ type: {
51
+ enum: string[];
52
+ };
53
+ coordinates: {
54
+ type: string;
55
+ items: {
56
+ type: string;
57
+ minItems: number;
58
+ items: {
59
+ type: string;
60
+ minItems: number;
61
+ items: {
62
+ type: string;
63
+ minItems?: undefined;
64
+ items?: undefined;
65
+ };
66
+ };
67
+ };
68
+ minItems?: undefined;
69
+ maxItems?: undefined;
70
+ additionalItems?: undefined;
71
+ };
72
+ };
73
+ } | {
74
+ title: string;
75
+ properties: {
76
+ type: {
77
+ enum: string[];
78
+ };
79
+ coordinates: {
80
+ type: string;
81
+ items: {
82
+ type: string;
83
+ items: {
84
+ type: string;
85
+ minItems: number;
86
+ items: {
87
+ type: string;
88
+ minItems: number;
89
+ items: {
90
+ type: string;
91
+ };
92
+ };
93
+ };
94
+ minItems?: undefined;
95
+ };
96
+ minItems?: undefined;
97
+ maxItems?: undefined;
98
+ additionalItems?: undefined;
99
+ };
100
+ };
101
+ })[];
25
102
  };
26
103
  properties: JSONSchemaType<IOsmParkingProperties>;
27
104
  };
@@ -48,7 +125,84 @@ export declare class OsmSchemaGenerator {
48
125
  enum: string[];
49
126
  };
50
127
  geometry: {
128
+ $id: string;
129
+ title: string;
130
+ description: string;
51
131
  type: string;
132
+ required: string[];
133
+ oneOf: ({
134
+ title: string;
135
+ properties: {
136
+ type: {
137
+ enum: string[];
138
+ };
139
+ coordinates: {
140
+ type: string;
141
+ minItems: number;
142
+ maxItems: number;
143
+ items: {
144
+ type: string;
145
+ minItems?: undefined;
146
+ items?: undefined;
147
+ };
148
+ additionalItems: boolean;
149
+ };
150
+ };
151
+ } | {
152
+ title: string;
153
+ properties: {
154
+ type: {
155
+ enum: string[];
156
+ };
157
+ coordinates: {
158
+ type: string;
159
+ items: {
160
+ type: string;
161
+ minItems: number;
162
+ items: {
163
+ type: string;
164
+ minItems: number;
165
+ items: {
166
+ type: string;
167
+ minItems?: undefined;
168
+ items?: undefined;
169
+ };
170
+ };
171
+ };
172
+ minItems?: undefined;
173
+ maxItems?: undefined;
174
+ additionalItems?: undefined;
175
+ };
176
+ };
177
+ } | {
178
+ title: string;
179
+ properties: {
180
+ type: {
181
+ enum: string[];
182
+ };
183
+ coordinates: {
184
+ type: string;
185
+ items: {
186
+ type: string;
187
+ items: {
188
+ type: string;
189
+ minItems: number;
190
+ items: {
191
+ type: string;
192
+ minItems: number;
193
+ items: {
194
+ type: string;
195
+ };
196
+ };
197
+ };
198
+ minItems?: undefined;
199
+ };
200
+ minItems?: undefined;
201
+ maxItems?: undefined;
202
+ additionalItems?: undefined;
203
+ };
204
+ };
205
+ })[];
52
206
  };
53
207
  properties: JSONSchemaType<IOsmParkingSpacesProperties>;
54
208
  };
@@ -75,7 +229,84 @@ export declare class OsmSchemaGenerator {
75
229
  enum: string[];
76
230
  };
77
231
  geometry: {
232
+ $id: string;
233
+ title: string;
234
+ description: string;
78
235
  type: string;
236
+ required: string[];
237
+ oneOf: ({
238
+ title: string;
239
+ properties: {
240
+ type: {
241
+ enum: string[];
242
+ };
243
+ coordinates: {
244
+ type: string;
245
+ minItems: number;
246
+ maxItems: number;
247
+ items: {
248
+ type: string;
249
+ minItems?: undefined;
250
+ items?: undefined;
251
+ };
252
+ additionalItems: boolean;
253
+ };
254
+ };
255
+ } | {
256
+ title: string;
257
+ properties: {
258
+ type: {
259
+ enum: string[];
260
+ };
261
+ coordinates: {
262
+ type: string;
263
+ items: {
264
+ type: string;
265
+ minItems: number;
266
+ items: {
267
+ type: string;
268
+ minItems: number;
269
+ items: {
270
+ type: string;
271
+ minItems?: undefined;
272
+ items?: undefined;
273
+ };
274
+ };
275
+ };
276
+ minItems?: undefined;
277
+ maxItems?: undefined;
278
+ additionalItems?: undefined;
279
+ };
280
+ };
281
+ } | {
282
+ title: string;
283
+ properties: {
284
+ type: {
285
+ enum: string[];
286
+ };
287
+ coordinates: {
288
+ type: string;
289
+ items: {
290
+ type: string;
291
+ items: {
292
+ type: string;
293
+ minItems: number;
294
+ items: {
295
+ type: string;
296
+ minItems: number;
297
+ items: {
298
+ type: string;
299
+ };
300
+ };
301
+ };
302
+ minItems?: undefined;
303
+ };
304
+ minItems?: undefined;
305
+ maxItems?: undefined;
306
+ additionalItems?: undefined;
307
+ };
308
+ };
309
+ })[];
79
310
  };
80
311
  properties: JSONSchemaType<IOsmEntranceProperties>;
81
312
  };
@@ -102,7 +333,84 @@ export declare class OsmSchemaGenerator {
102
333
  enum: string[];
103
334
  };
104
335
  geometry: {
336
+ $id: string;
337
+ title: string;
338
+ description: string;
105
339
  type: string;
340
+ required: string[];
341
+ oneOf: ({
342
+ title: string;
343
+ properties: {
344
+ type: {
345
+ enum: string[];
346
+ };
347
+ coordinates: {
348
+ type: string;
349
+ minItems: number;
350
+ maxItems: number;
351
+ items: {
352
+ type: string;
353
+ minItems?: undefined;
354
+ items?: undefined;
355
+ };
356
+ additionalItems: boolean;
357
+ };
358
+ };
359
+ } | {
360
+ title: string;
361
+ properties: {
362
+ type: {
363
+ enum: string[];
364
+ };
365
+ coordinates: {
366
+ type: string;
367
+ items: {
368
+ type: string;
369
+ minItems: number;
370
+ items: {
371
+ type: string;
372
+ minItems: number;
373
+ items: {
374
+ type: string;
375
+ minItems?: undefined;
376
+ items?: undefined;
377
+ };
378
+ };
379
+ };
380
+ minItems?: undefined;
381
+ maxItems?: undefined;
382
+ additionalItems?: undefined;
383
+ };
384
+ };
385
+ } | {
386
+ title: string;
387
+ properties: {
388
+ type: {
389
+ enum: string[];
390
+ };
391
+ coordinates: {
392
+ type: string;
393
+ items: {
394
+ type: string;
395
+ items: {
396
+ type: string;
397
+ minItems: number;
398
+ items: {
399
+ type: string;
400
+ minItems: number;
401
+ items: {
402
+ type: string;
403
+ };
404
+ };
405
+ };
406
+ minItems?: undefined;
407
+ };
408
+ minItems?: undefined;
409
+ maxItems?: undefined;
410
+ additionalItems?: undefined;
411
+ };
412
+ };
413
+ })[];
106
414
  };
107
415
  properties: JSONSchemaType<IOsmParkingMachinesProperties>;
108
416
  };
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OsmSchemaGenerator = void 0;
4
+ const SupportedGeometrySchema_1 = require("../shared/SupportedGeometrySchema");
4
5
  const OsmEntrancesParkingSchema_1 = require("./OsmEntrancesParkingSchema");
5
6
  const OsmParkingSchema_1 = require("./OsmParkingSchema");
6
7
  const OsmParkingSpacesSchema_1 = require("./OsmParkingSpacesSchema");
@@ -35,9 +36,7 @@ class OsmSchemaGenerator {
35
36
  type: "string",
36
37
  enum: ["Feature"],
37
38
  },
38
- geometry: {
39
- type: "object",
40
- },
39
+ geometry: SupportedGeometrySchema_1.SupportedGeometrySchema,
41
40
  properties: propertiesSchema,
42
41
  },
43
42
  required: ["type", "geometry", "properties"],
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureCollectionSchemaGenerator.js","sourceRoot":"","sources":["../../../../src/schema-definitions/datasources/osm/FeatureCollectionSchemaGenerator.ts"],"names":[],"mappings":";;;AAKA,2EAAwE;AACxE,yDAAsD;AACtD,qEAAkE;AAClE,yEAAyF;AAEzF,MAAa,kBAAkB;IACpB,MAAM,CAAC,gBAAgB;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAwB,mCAAgB,CAAC,CAAC;IACnE,CAAC;IAEM,MAAM,CAAC,sBAAsB;QAChC,OAAO,IAAI,CAAC,SAAS,CAA8B,+CAAsB,CAAC,CAAC;IAC/E,CAAC;IAEM,MAAM,CAAC,iBAAiB;QAC3B,OAAO,IAAI,CAAC,SAAS,CAAyB,qDAAyB,CAAC,CAAC;IAC7E,CAAC;IAEM,MAAM,CAAC,wBAAwB;QAClC,OAAO,IAAI,CAAC,SAAS,CAAgC,mDAAwB,CAAC,CAAC;IACnF,CAAC;IAEO,MAAM,CAAC,SAAS,CAAI,gBAAmC;QAC3D,OAAO;YACH,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,IAAI,EAAE;oBACF,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,mBAAmB,CAAC;iBAC9B;gBACD,QAAQ,EAAE;oBACN,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACR,IAAI,EAAE;gCACF,IAAI,EAAE,QAAQ;gCACd,IAAI,EAAE,CAAC,SAAS,CAAC;6BACpB;4BACD,QAAQ,EAAE;gCACN,IAAI,EAAE,QAAQ;6BACjB;4BACD,UAAU,EAAE,gBAAgB;yBAC/B;wBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC;qBAC/C;iBACJ;aACJ;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;SACjC,CAAC;IACN,CAAC;CACJ;AA9CD,gDA8CC"}
1
+ {"version":3,"file":"FeatureCollectionSchemaGenerator.js","sourceRoot":"","sources":["../../../../src/schema-definitions/datasources/osm/FeatureCollectionSchemaGenerator.ts"],"names":[],"mappings":";;;AAAA,+EAA0F;AAM1F,2EAAwE;AACxE,yDAAsD;AACtD,qEAAkE;AAClE,yEAAyF;AAEzF,MAAa,kBAAkB;IACpB,MAAM,CAAC,gBAAgB;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAwB,mCAAgB,CAAC,CAAC;IACnE,CAAC;IAEM,MAAM,CAAC,sBAAsB;QAChC,OAAO,IAAI,CAAC,SAAS,CAA8B,+CAAsB,CAAC,CAAC;IAC/E,CAAC;IAEM,MAAM,CAAC,iBAAiB;QAC3B,OAAO,IAAI,CAAC,SAAS,CAAyB,qDAAyB,CAAC,CAAC;IAC7E,CAAC;IAEM,MAAM,CAAC,wBAAwB;QAClC,OAAO,IAAI,CAAC,SAAS,CAAgC,mDAAwB,CAAC,CAAC;IACnF,CAAC;IAEO,MAAM,CAAC,SAAS,CAAI,gBAAmC;QAC3D,OAAO;YACH,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,IAAI,EAAE;oBACF,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,mBAAmB,CAAC;iBAC9B;gBACD,QAAQ,EAAE;oBACN,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACR,IAAI,EAAE;gCACF,IAAI,EAAE,QAAQ;gCACd,IAAI,EAAE,CAAC,SAAS,CAAC;6BACpB;4BACD,QAAQ,EAAE,iDAAuB;4BACjC,UAAU,EAAE,gBAAgB;yBAC/B;wBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC;qBAC/C;iBACJ;aACJ;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;SACjC,CAAC;IACN,CAAC;CACJ;AA5CD,gDA4CC"}
@@ -0,0 +1,80 @@
1
+ export declare const SupportedGeometrySchema: {
2
+ $id: string;
3
+ title: string;
4
+ description: string;
5
+ type: string;
6
+ required: string[];
7
+ oneOf: ({
8
+ title: string;
9
+ properties: {
10
+ type: {
11
+ enum: string[];
12
+ };
13
+ coordinates: {
14
+ type: string;
15
+ minItems: number;
16
+ maxItems: number;
17
+ items: {
18
+ type: string;
19
+ minItems?: undefined;
20
+ items?: undefined;
21
+ };
22
+ additionalItems: boolean;
23
+ };
24
+ };
25
+ } | {
26
+ title: string;
27
+ properties: {
28
+ type: {
29
+ enum: string[];
30
+ };
31
+ coordinates: {
32
+ type: string;
33
+ items: {
34
+ type: string;
35
+ minItems: number;
36
+ items: {
37
+ type: string;
38
+ minItems: number;
39
+ items: {
40
+ type: string;
41
+ minItems?: undefined;
42
+ items?: undefined;
43
+ };
44
+ };
45
+ };
46
+ minItems?: undefined;
47
+ maxItems?: undefined;
48
+ additionalItems?: undefined;
49
+ };
50
+ };
51
+ } | {
52
+ title: string;
53
+ properties: {
54
+ type: {
55
+ enum: string[];
56
+ };
57
+ coordinates: {
58
+ type: string;
59
+ items: {
60
+ type: string;
61
+ items: {
62
+ type: string;
63
+ minItems: number;
64
+ items: {
65
+ type: string;
66
+ minItems: number;
67
+ items: {
68
+ type: string;
69
+ };
70
+ };
71
+ };
72
+ minItems?: undefined;
73
+ };
74
+ minItems?: undefined;
75
+ maxItems?: undefined;
76
+ additionalItems?: undefined;
77
+ };
78
+ };
79
+ })[];
80
+ };
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SupportedGeometrySchema = void 0;
4
+ exports.SupportedGeometrySchema = {
5
+ $id: "supportedGeometrySchema",
6
+ title: "Geometry",
7
+ description: "Supported parking output geometry",
8
+ type: "object",
9
+ required: ["type", "coordinates"],
10
+ oneOf: [
11
+ {
12
+ title: "Point",
13
+ properties: {
14
+ type: { enum: ["Point"] },
15
+ coordinates: {
16
+ type: "array",
17
+ minItems: 2,
18
+ maxItems: 2,
19
+ items: { type: "number" },
20
+ additionalItems: false,
21
+ },
22
+ },
23
+ },
24
+ {
25
+ title: "Polygon",
26
+ properties: {
27
+ type: { enum: ["Polygon"] },
28
+ coordinates: {
29
+ type: "array",
30
+ items: {
31
+ type: "array",
32
+ minItems: 4,
33
+ items: {
34
+ type: "array",
35
+ minItems: 2,
36
+ items: { type: "number" },
37
+ },
38
+ },
39
+ },
40
+ },
41
+ },
42
+ {
43
+ title: "MultiPolygon",
44
+ properties: {
45
+ type: { enum: ["MultiPolygon"] },
46
+ coordinates: {
47
+ type: "array",
48
+ items: {
49
+ type: "array",
50
+ items: {
51
+ type: "array",
52
+ minItems: 4,
53
+ items: {
54
+ type: "array",
55
+ minItems: 2,
56
+ items: { type: "number" },
57
+ },
58
+ },
59
+ },
60
+ },
61
+ },
62
+ },
63
+ ],
64
+ };
65
+ //# sourceMappingURL=SupportedGeometrySchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SupportedGeometrySchema.js","sourceRoot":"","sources":["../../../../src/schema-definitions/datasources/shared/SupportedGeometrySchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACnC,GAAG,EAAE,yBAAyB;IAC9B,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,mCAAmC;IAChD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;IACjC,KAAK,EAAE;QACH;YACI,KAAK,EAAE,OAAO;YACd,UAAU,EAAE;gBACR,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE;gBACzB,WAAW,EAAE;oBACT,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,eAAe,EAAE,KAAK;iBACzB;aACJ;SACJ;QACD;YACI,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE;gBACR,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;gBAC3B,WAAW,EAAE;oBACT,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACH,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,CAAC;wBACX,KAAK,EAAE;4BACH,IAAI,EAAE,OAAO;4BACb,QAAQ,EAAE,CAAC;4BACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;yBAC5B;qBACJ;iBACJ;aACJ;SACJ;QACD;YACI,KAAK,EAAE,cAAc;YACrB,UAAU,EAAE;gBACR,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,cAAc,CAAC,EAAE;gBAChC,WAAW,EAAE;oBACT,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACH,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACH,IAAI,EAAE,OAAO;4BACb,QAAQ,EAAE,CAAC;4BACX,KAAK,EAAE;gCACH,IAAI,EAAE,OAAO;gCACb,QAAQ,EAAE,CAAC;gCACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;6BAC5B;yBACJ;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/parkings",
3
- "version": "1.15.1-dev.1470343241",
3
+ "version": "1.15.1-dev.1478432572",
4
4
  "description": "Golemio Parkings Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",