@golemio/bicycle-counters 1.0.4-dev.402361479 → 1.0.4-dev.425139894

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [Unreleased]
6
+
7
+ ## [1.0.4] - 2021-12-06
8
+
9
+ ### Changed
10
+
11
+ - Mongoose validator to JSON validator ([bicycle-counters#3](https://gitlab.com/operator-ict/golemio/code/modules/bicycle-counters/-/issues/3))
@@ -191,8 +191,8 @@ class BicycleCountersWorker extends workers_1.BaseWorker {
191
191
  headers: {},
192
192
  method: "GET",
193
193
  url: config_1.config.datasources.BicycleCountersCamea,
194
- }), new datasources_1.JSONDataTypeStrategy({ resultsPath: "" }), new golemio_validator_1.Validator(index_1.BicycleCounters.camea.name + "DataSource", index_1.BicycleCounters.camea.datasourceMongooseSchemaObject));
195
- this.dataSourceCameaMeasurements = new datasources_1.DataSource(index_1.BicycleCounters.camea.name + "MeasurementsDataSource", undefined, new datasources_1.JSONDataTypeStrategy({ resultsPath: "" }), new golemio_validator_1.Validator(index_1.BicycleCounters.camea.name + "MeasurementsDataSource", index_1.BicycleCounters.camea.measurementsDatasourceMongooseSchemaObject));
194
+ }), new datasources_1.JSONDataTypeStrategy({ resultsPath: "" }), new golemio_validator_1.JSONSchemaValidator(index_1.BicycleCounters.camea.name + "DataSource", index_1.BicycleCounters.camea.datasourceJsonSchema));
195
+ this.dataSourceCameaMeasurements = new datasources_1.DataSource(index_1.BicycleCounters.camea.name + "MeasurementsDataSource", undefined, new datasources_1.JSONDataTypeStrategy({ resultsPath: "" }), new golemio_validator_1.JSONSchemaValidator(index_1.BicycleCounters.camea.name + "MeasurementsDataSource", index_1.BicycleCounters.camea.measurementsDatasourceJsonSchema));
196
196
  this.cameaTransformation = new _1.CameaTransformation();
197
197
  this.cameaMeasurementsTransformation = new _1.CameaMeasurementsTransformation();
198
198
  this.dataSourceEcoCounter = new datasources_1.DataSource(index_1.BicycleCounters.ecoCounter.name + "DataSource", new datasources_1.HTTPProtocolStrategy({
@@ -201,30 +201,30 @@ class BicycleCountersWorker extends workers_1.BaseWorker {
201
201
  },
202
202
  method: "GET",
203
203
  url: config_1.config.datasources.BicycleCountersEcoCounter,
204
- }), new datasources_1.JSONDataTypeStrategy({ resultsPath: "" }), new golemio_validator_1.Validator(index_1.BicycleCounters.ecoCounter.name + "DataSource", index_1.BicycleCounters.ecoCounter.datasourceMongooseSchemaObject));
205
- this.dataSourceEcoCounterMeasurements = new datasources_1.DataSource(index_1.BicycleCounters.ecoCounter.name + "MeasurementsDataSource", undefined, new datasources_1.JSONDataTypeStrategy({ resultsPath: "" }), new golemio_validator_1.Validator(index_1.BicycleCounters.ecoCounter.name + "MeasurementsDataSource", index_1.BicycleCounters.ecoCounter.measurementsDatasourceMongooseSchemaObject));
204
+ }), new datasources_1.JSONDataTypeStrategy({ resultsPath: "" }), new golemio_validator_1.JSONSchemaValidator(index_1.BicycleCounters.ecoCounter.name + "DataSource", index_1.BicycleCounters.ecoCounter.datasourceJsonSchema));
205
+ this.dataSourceEcoCounterMeasurements = new datasources_1.DataSource(index_1.BicycleCounters.ecoCounter.name + "MeasurementsDataSource", undefined, new datasources_1.JSONDataTypeStrategy({ resultsPath: "" }), new golemio_validator_1.JSONSchemaValidator(index_1.BicycleCounters.ecoCounter.name + "MeasurementsDataSource", index_1.BicycleCounters.ecoCounter.measurementsDatasourceJsonSchema));
206
206
  this.ecoCounterTransformation = new _1.EcoCounterTransformation();
207
207
  this.ecoCounterMeasurementsTransformation = new _1.EcoCounterMeasurementsTransformation();
208
208
  this.locationsModel = new models_1.PostgresModel(index_1.BicycleCounters.locations.name + "Model", {
209
209
  outputSequelizeAttributes: index_1.BicycleCounters.locations.outputSequelizeAttributes,
210
210
  pgTableName: index_1.BicycleCounters.locations.pgTableName,
211
211
  savingType: "insertOrUpdate",
212
- }, new golemio_validator_1.Validator(index_1.BicycleCounters.locations.name + "ModelValidator", index_1.BicycleCounters.locations.outputMongooseSchemaObject));
212
+ }, new golemio_validator_1.JSONSchemaValidator(index_1.BicycleCounters.locations.name + "ModelValidator", index_1.BicycleCounters.locations.outputJsonSchemaObject));
213
213
  this.directionsModel = new models_1.PostgresModel(index_1.BicycleCounters.directions.name + "Model", {
214
214
  outputSequelizeAttributes: index_1.BicycleCounters.directions.outputSequelizeAttributes,
215
215
  pgTableName: index_1.BicycleCounters.directions.pgTableName,
216
216
  savingType: "insertOrUpdate",
217
- }, new golemio_validator_1.Validator(index_1.BicycleCounters.directions.name + "ModelValidator", index_1.BicycleCounters.directions.outputMongooseSchemaObject));
217
+ }, new golemio_validator_1.JSONSchemaValidator(index_1.BicycleCounters.directions.name + "ModelValidator", index_1.BicycleCounters.directions.outputJsonSchemaObject));
218
218
  this.detectionsModel = new models_1.PostgresModel(index_1.BicycleCounters.detections.name + "Model", {
219
219
  outputSequelizeAttributes: index_1.BicycleCounters.detections.outputSequelizeAttributes,
220
220
  pgTableName: index_1.BicycleCounters.detections.pgTableName,
221
221
  savingType: "insertOrUpdate",
222
- }, new golemio_validator_1.Validator(index_1.BicycleCounters.detections.name + "ModelValidator", index_1.BicycleCounters.detections.outputMongooseSchemaObject));
222
+ }, new golemio_validator_1.JSONSchemaValidator(index_1.BicycleCounters.detections.name + "ModelValidator", index_1.BicycleCounters.detections.outputJsonSchemaObject));
223
223
  this.temperaturesModel = new models_1.PostgresModel(index_1.BicycleCounters.temperatures.name + "Model", {
224
224
  outputSequelizeAttributes: index_1.BicycleCounters.temperatures.outputSequelizeAttributes,
225
225
  pgTableName: index_1.BicycleCounters.temperatures.pgTableName,
226
226
  savingType: "insertOrUpdate",
227
- }, new golemio_validator_1.Validator(index_1.BicycleCounters.temperatures.name + "ModelValidator", index_1.BicycleCounters.temperatures.outputMongooseSchemaObject));
227
+ }, new golemio_validator_1.JSONSchemaValidator(index_1.BicycleCounters.temperatures.name + "ModelValidator", index_1.BicycleCounters.temperatures.outputJsonSchemaObject));
228
228
  this.queuePrefix = config_1.config.RABBIT_EXCHANGE_NAME + "." + index_1.BicycleCounters.name.toLowerCase();
229
229
  }
230
230
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BicycleCountersWorker.js","sourceRoot":"","sources":["../../src/integration-engine/BicycleCountersWorker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6EAAuE;AACvE,mFAAwE;AACxE,gGAA+D;AAC/D,yEAAsE;AACtE,mFAA2H;AAC3H,yEAA6E;AAC7E,2EAA2E;AAC3E,uDAA6C;AAC7C,yBAKY;AAEZ,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,6EAAU,CAAA;IACV,+EAAW,CAAA;IACX,+EAAW,CAAA;AACf,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED,MAAa,qBAAsB,SAAQ,oBAAU;IAejD;QACI,KAAK,EAAE,CAAC;QAoGL,mCAA8B,GAAG,CAAO,GAAQ,EAAiB,EAAE;YACtE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;YACjD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACvE,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;YAC1D,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;YAE5D,+CAA+C;YAC/C,MAAM,QAAQ,GAAG,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;gBACjD,OAAO,IAAI,CAAC,qBAAqB,CAC7B,UAAU,GAAG,IAAI,CAAC,WAAW,GAAG,cAAc,EAC9C,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,SAAS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C,UAAU,CAAC,IAAI,GAAG,OAAO,EACzC;YACI,yBAAyB,EAAE,uBAAe,CAAC,UAAU,CAAC,yBAAyB;YAC/E,WAAW,EAAE,uBAAe,CAAC,UAAU,CAAC,WAAW;YACnD,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CACnB,uBAAe,CAAC,UAAU,CAAC,IAAI,GAAG,gBAAgB,EAClD,uBAAe,CAAC,UAAU,CAAC,sBAAsB,CACpD,CACJ,CAAC;QACF,IAAI,CAAC,iBAAiB,GAAG,IAAI,sBAAa,CACtC,uBAAe,CAAC,YAAY,CAAC,IAAI,GAAG,OAAO,EAC3C;YACI,yBAAyB,EAAE,uBAAe,CAAC,YAAY,CAAC,yBAAyB;YACjF,WAAW,EAAE,uBAAe,CAAC,YAAY,CAAC,WAAW;YACrD,UAAU,EAAE,gBAAgB;SAC/B,EACD,IAAI,uCAAmB,CACnB,uBAAe,CAAC,YAAY,CAAC,IAAI,GAAG,gBAAgB,EACpD,uBAAe,CAAC,YAAY,CAAC,sBAAsB,CACtD,CACJ,CAAC;QAEF,IAAI,CAAC,WAAW,GAAG,eAAM,CAAC,oBAAoB,GAAG,GAAG,GAAG,uBAAe,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC9F,CAAC;CA2MJ;AAhUD,sDAgUC"}
@@ -1,53 +1,306 @@
1
- /// <reference types="mongoose" />
2
1
  import Sequelize from "@golemio/core/dist/shared/sequelize";
3
2
  declare const forExport: {
3
+ name: string;
4
4
  camea: {
5
- datasourceMongooseSchemaObject: {
6
- [path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
5
+ datasourceJsonSchema: {
6
+ type: string;
7
+ items: {
8
+ type: string;
9
+ properties: {
10
+ bikecounter: {
11
+ type: string;
12
+ };
13
+ directions: {
14
+ type: string;
15
+ items: {
16
+ type: string;
17
+ properties: {
18
+ id: {
19
+ type: string;
20
+ };
21
+ name: {
22
+ type: string;
23
+ };
24
+ };
25
+ required: string[];
26
+ };
27
+ };
28
+ lat: {
29
+ type: string;
30
+ };
31
+ lon: {
32
+ type: string;
33
+ };
34
+ name: {
35
+ type: string;
36
+ };
37
+ route: {
38
+ type: string;
39
+ };
40
+ };
41
+ required: string[];
42
+ };
43
+ };
44
+ measurementsDatasourceJsonSchema: {
45
+ type: string;
46
+ items: {
47
+ type: string;
48
+ properties: {
49
+ bikecounter: {
50
+ type: string;
51
+ };
52
+ datetime: {
53
+ type: string;
54
+ };
55
+ detections: {
56
+ type: string;
57
+ };
58
+ directions: {
59
+ type: string;
60
+ items: {
61
+ type: string;
62
+ properties: {
63
+ detections: {
64
+ type: string;
65
+ };
66
+ id: {
67
+ type: string;
68
+ };
69
+ name: {
70
+ type: string;
71
+ };
72
+ pedestrians: {
73
+ type: string;
74
+ };
75
+ };
76
+ required: string[];
77
+ };
78
+ };
79
+ lat: {
80
+ type: string;
81
+ };
82
+ lon: {
83
+ type: string;
84
+ };
85
+ name: {
86
+ type: string;
87
+ };
88
+ pedestrians: {
89
+ type: string;
90
+ };
91
+ route: {
92
+ type: string;
93
+ };
94
+ temperature: {
95
+ type: string;
96
+ };
97
+ };
98
+ };
99
+ };
100
+ name: string;
101
+ };
102
+ ecoCounter: {
103
+ datasourceJsonSchema: {
104
+ type: string;
105
+ items: {
106
+ type: string;
107
+ properties: {
108
+ channels: {
109
+ type: string;
110
+ items: {
111
+ type: string;
112
+ properties: {
113
+ channels: {
114
+ type: string[];
115
+ };
116
+ counter: {
117
+ type: string;
118
+ };
119
+ domain: {
120
+ type: string;
121
+ };
122
+ id: {
123
+ type: string;
124
+ };
125
+ installationDate: {
126
+ type: string;
127
+ };
128
+ interval: {
129
+ type: string;
130
+ };
131
+ latitude: {
132
+ type: string;
133
+ };
134
+ longitude: {
135
+ type: string;
136
+ };
137
+ name: {
138
+ type: string;
139
+ };
140
+ photos: {
141
+ type: string[];
142
+ };
143
+ sens: {
144
+ type: string;
145
+ };
146
+ timezone: {
147
+ type: string;
148
+ };
149
+ userType: {
150
+ type: string;
151
+ };
152
+ };
153
+ required: string[];
154
+ };
155
+ };
156
+ id: {
157
+ type: string;
158
+ };
159
+ interval: {
160
+ type: string;
161
+ };
162
+ latitude: {
163
+ type: string;
164
+ };
165
+ longitude: {
166
+ type: string;
167
+ };
168
+ name: {
169
+ type: string;
170
+ };
171
+ };
172
+ required: string[];
173
+ };
7
174
  };
8
- measurementsDatasourceMongooseSchemaObject: {
9
- [path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
175
+ measurementsDatasourceJsonSchema: {
176
+ type: string;
177
+ items: {
178
+ type: string;
179
+ properties: {
180
+ counts: {
181
+ type: string;
182
+ };
183
+ date: {
184
+ type: string;
185
+ };
186
+ status: {
187
+ type: string;
188
+ };
189
+ };
190
+ required: string[];
191
+ };
10
192
  };
11
193
  name: string;
12
194
  };
13
195
  detections: {
14
196
  name: string;
15
- outputMongooseSchemaObject: {
16
- [path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
197
+ outputJsonSchemaObject: {
198
+ type: string;
199
+ items: {
200
+ type: string;
201
+ properties: {
202
+ directions_id: {
203
+ type: string;
204
+ };
205
+ locations_id: {
206
+ type: string;
207
+ };
208
+ measured_from: {
209
+ type: string;
210
+ };
211
+ measured_to: {
212
+ type: string;
213
+ };
214
+ value: {
215
+ type: string;
216
+ };
217
+ };
218
+ required: string[];
219
+ };
17
220
  };
18
221
  outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
19
222
  pgTableName: string;
20
223
  };
21
224
  directions: {
22
225
  name: string;
23
- outputMongooseSchemaObject: {
24
- [path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
226
+ outputJsonSchemaObject: {
227
+ type: string;
228
+ items: {
229
+ type: string;
230
+ properties: {
231
+ id: {
232
+ type: string;
233
+ };
234
+ locations_id: {
235
+ type: string;
236
+ };
237
+ name: {
238
+ type: string;
239
+ };
240
+ vendor_id: {
241
+ type: string;
242
+ };
243
+ };
244
+ required: string[];
245
+ };
25
246
  };
26
247
  outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
27
248
  pgTableName: string;
28
249
  };
29
- ecoCounter: {
30
- datasourceMongooseSchemaObject: {
31
- [path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
32
- };
33
- measurementsDatasourceMongooseSchemaObject: {
34
- [path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
35
- };
36
- name: string;
37
- };
38
250
  locations: {
39
251
  name: string;
40
- outputMongooseSchemaObject: {
41
- [path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
252
+ outputJsonSchemaObject: {
253
+ type: string;
254
+ items: {
255
+ type: string;
256
+ properties: {
257
+ id: {
258
+ type: string;
259
+ };
260
+ lat: {
261
+ type: string;
262
+ };
263
+ lng: {
264
+ type: string;
265
+ };
266
+ name: {
267
+ type: string;
268
+ };
269
+ route: {
270
+ type: string;
271
+ };
272
+ vendor_id: {
273
+ type: string;
274
+ };
275
+ };
276
+ required: string[];
277
+ };
42
278
  };
43
279
  outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
44
280
  pgTableName: string;
45
281
  };
46
- name: string;
47
282
  temperatures: {
48
283
  name: string;
49
- outputMongooseSchemaObject: {
50
- [path: string]: any | typeof import("mongoose").SchemaType | import("mongoose").Schema<any, any, any, any> | import("mongoose").Schema<any, any, any, any>[] | readonly import("mongoose").Schema<any, any, any, any>[] | Function[] | import("mongoose").SchemaTypeOptions<any> | import("mongoose").SchemaTypeOptions<any>[] | readonly import("mongoose").SchemaTypeOptions<any>[] | any[] | readonly any[];
284
+ outputJsonSchemaObject: {
285
+ type: string;
286
+ items: {
287
+ type: string;
288
+ properties: {
289
+ locations_id: {
290
+ type: string;
291
+ };
292
+ measured_from: {
293
+ type: string;
294
+ };
295
+ measured_to: {
296
+ type: string;
297
+ };
298
+ value: {
299
+ type: string;
300
+ };
301
+ };
302
+ required: string[];
303
+ };
51
304
  };
52
305
  outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
53
306
  pgTableName: string;
@@ -5,68 +5,122 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.BicycleCounters = void 0;
7
7
  const sequelize_1 = __importDefault(require("@golemio/core/dist/shared/sequelize"));
8
- // MSO = Mongoose SchemaObject
8
+ // JsonSchema = JSON Schema Object for validations
9
9
  // SDMA = Sequelize DefineModelAttributes
10
- const datasourceCameaMSO = {
11
- bikecounter: { type: String, required: true },
12
- directions: [
13
- {
14
- id: { type: String, required: true },
15
- name: { type: String, required: true },
10
+ const datasourceCameaJsonSchema = {
11
+ type: "array",
12
+ items: {
13
+ type: "object",
14
+ properties: {
15
+ bikecounter: { type: "string" },
16
+ directions: {
17
+ type: "array",
18
+ items: {
19
+ type: "object",
20
+ properties: {
21
+ id: { type: "string" },
22
+ name: { type: "string" },
23
+ },
24
+ required: ["id", "name"],
25
+ },
26
+ },
27
+ lat: { type: "number" },
28
+ lon: { type: "number" },
29
+ name: { type: "string" },
30
+ route: { type: "string" },
16
31
  },
17
- ],
18
- lat: { type: Number, required: true },
19
- lon: { type: Number, required: true },
20
- name: { type: String, required: true },
21
- route: { type: String, required: true },
32
+ required: ["bikecounter", "lat", "lon", "name", "route"],
33
+ },
22
34
  };
23
- const datasourceCameaMeasurementsMSO = {
24
- bikecounter: { type: String, required: true },
25
- datetime: { type: String, required: true },
26
- detections: { type: Number, required: false },
27
- directions: [
28
- {
29
- detections: { type: Number, required: false },
30
- id: { type: String, required: true },
31
- name: { type: String, required: true },
32
- pedestrians: { type: Number, required: false },
35
+ const datasourceCameaMeasurementsJsonSchema = {
36
+ type: "array",
37
+ items: {
38
+ type: "object",
39
+ properties: {
40
+ bikecounter: { type: "string" },
41
+ datetime: { type: "string" },
42
+ detections: { type: "number" },
43
+ directions: {
44
+ type: "array",
45
+ items: {
46
+ type: "object",
47
+ properties: {
48
+ detections: { type: "number" },
49
+ id: { type: "string" },
50
+ name: { type: "string" },
51
+ pedestrians: { type: "number" },
52
+ },
53
+ required: ["id", "name"],
54
+ },
55
+ },
56
+ lat: { type: "number" },
57
+ lon: { type: "number" },
58
+ name: { type: "string" },
59
+ pedestrians: { type: "number" },
60
+ route: { type: "string" },
61
+ temperature: { type: "string" },
33
62
  },
34
- ],
35
- lat: { type: Number, required: true },
36
- lon: { type: Number, required: true },
37
- name: { type: String, required: true },
38
- pedestrians: { type: Number, required: false },
39
- route: { type: String, required: true },
40
- temperature: { type: String, required: false },
63
+ },
41
64
  };
42
- const datasourceEcoCounterMSO = {
43
- channels: [
44
- {
45
- channels: { type: Array, required: false },
46
- counter: { type: String, required: true },
47
- domain: { type: String, required: true },
48
- id: { type: Number, required: true },
49
- installationDate: { type: String, required: true },
50
- interval: { type: Number, required: true },
51
- latitude: { type: Number, required: true },
52
- longitude: { type: Number, required: true },
53
- name: { type: String, required: true },
54
- photos: { type: Array, required: false },
55
- sens: { type: Number, required: true },
56
- timezone: { type: String, required: true },
57
- userType: { type: Number, required: true },
65
+ const datasourceEcoCounterJsonSchema = {
66
+ type: "array",
67
+ items: {
68
+ type: "object",
69
+ properties: {
70
+ channels: {
71
+ type: "array",
72
+ items: {
73
+ type: "object",
74
+ properties: {
75
+ channels: { type: ["array", "null"] },
76
+ counter: { type: "string" },
77
+ domain: { type: "string" },
78
+ id: { type: "number" },
79
+ installationDate: { type: "string" },
80
+ interval: { type: "number" },
81
+ latitude: { type: "number" },
82
+ longitude: { type: "number" },
83
+ name: { type: "string" },
84
+ photos: { type: ["array", "null"] },
85
+ sens: { type: "number" },
86
+ timezone: { type: "string" },
87
+ userType: { type: "number" },
88
+ },
89
+ required: [
90
+ "counter",
91
+ "domain",
92
+ "id",
93
+ "installationDate",
94
+ "interval",
95
+ "latitude",
96
+ "longitude",
97
+ "name",
98
+ "sens",
99
+ "timezone",
100
+ "userType",
101
+ ],
102
+ },
103
+ },
104
+ id: { type: "number" },
105
+ interval: { type: "number" },
106
+ latitude: { type: "number" },
107
+ longitude: { type: "number" },
108
+ name: { type: "string" },
58
109
  },
59
- ],
60
- id: { type: Number, required: true },
61
- interval: { type: Number, required: true },
62
- latitude: { type: Number, required: true },
63
- longitude: { type: Number, required: true },
64
- name: { type: String, required: true },
110
+ required: ["id", "interval", "latitude", "longitude", "name"],
111
+ },
65
112
  };
66
- const datasourceEcoCounterMeasurementsMSO = {
67
- counts: { type: Number },
68
- date: { type: String, required: true },
69
- status: { type: Number },
113
+ const datasourceEcoCounterMeasurementsJsonSchema = {
114
+ type: "array",
115
+ items: {
116
+ type: "object",
117
+ properties: {
118
+ counts: { type: "number" },
119
+ date: { type: "string" },
120
+ status: { type: "number" },
121
+ },
122
+ required: ["date"],
123
+ },
70
124
  };
71
125
  // Locations
72
126
  const outputLocationsSDMA = {
@@ -88,13 +142,20 @@ const outputLocationsSDMA = {
88
142
  updated_by: { type: sequelize_1.default.STRING(150) }, // Author or name of Worker of update
89
143
  };
90
144
  // only for Validator
91
- const outputLocationsMSO = {
92
- id: { type: String, required: true },
93
- lat: { type: Number, required: true },
94
- lng: { type: Number, required: true },
95
- name: { type: String, required: false },
96
- route: { type: String, required: false },
97
- vendor_id: { type: String, required: true },
145
+ const outputLocationsJsonSchema = {
146
+ type: "array",
147
+ items: {
148
+ type: "object",
149
+ properties: {
150
+ id: { type: "string" },
151
+ lat: { type: "number" },
152
+ lng: { type: "number" },
153
+ name: { type: "string" },
154
+ route: { type: "string" },
155
+ vendor_id: { type: "string" },
156
+ },
157
+ required: ["id", "lat", "lng", "vendor_id"],
158
+ },
98
159
  };
99
160
  // Directions
100
161
  const outputDirectionsSDMA = {
@@ -114,11 +175,18 @@ const outputDirectionsSDMA = {
114
175
  updated_by: { type: sequelize_1.default.STRING(150) }, // Author or name of Worker of update
115
176
  };
116
177
  // only for Validator
117
- const outputDirectionsMSO = {
118
- id: { type: String, required: true },
119
- locations_id: { type: String, required: true },
120
- name: { type: String, required: false },
121
- vendor_id: { type: String, required: true },
178
+ const outputDirectionsJsonSchema = {
179
+ type: "array",
180
+ items: {
181
+ type: "object",
182
+ properties: {
183
+ id: { type: "string" },
184
+ locations_id: { type: "string" },
185
+ name: { type: "string" },
186
+ vendor_id: { type: "string" },
187
+ },
188
+ required: ["id", "locations_id", "vendor_id"],
189
+ },
122
190
  };
123
191
  // Detections
124
192
  const outputDetectionsSDMA = {
@@ -148,12 +216,19 @@ const outputDetectionsSDMA = {
148
216
  updated_by: { type: sequelize_1.default.STRING(150) }, // Author or name of Worker of update
149
217
  };
150
218
  // only for Validator
151
- const outputDetectionsMSO = {
152
- directions_id: { type: String, required: true },
153
- locations_id: { type: String, required: true },
154
- measured_from: { type: Number, required: true },
155
- measured_to: { type: Number, required: true },
156
- value: { type: Number },
219
+ const outputDetectionsJsonSchema = {
220
+ type: "array",
221
+ items: {
222
+ type: "object",
223
+ properties: {
224
+ directions_id: { type: "string" },
225
+ locations_id: { type: "string" },
226
+ measured_from: { type: "number" },
227
+ measured_to: { type: "number" },
228
+ value: { type: "number" },
229
+ },
230
+ required: ["directions_id", "locations_id", "measured_from", "measured_to"],
231
+ },
157
232
  };
158
233
  // Temperatures
159
234
  const outputTemperaturesSDMA = {
@@ -178,45 +253,52 @@ const outputTemperaturesSDMA = {
178
253
  updated_by: { type: sequelize_1.default.STRING(150) }, // Author or name of Worker of update
179
254
  };
180
255
  // only for Validator
181
- const outputTemperaturesMSO = {
182
- locations_id: { type: String, required: true },
183
- measured_from: { type: Number, required: true },
184
- measured_to: { type: Number, required: true },
185
- value: { type: Number, required: true },
256
+ const outputTemperaturesJsonSchema = {
257
+ type: "array",
258
+ items: {
259
+ type: "object",
260
+ properties: {
261
+ locations_id: { type: "string" },
262
+ measured_from: { type: "number" },
263
+ measured_to: { type: "number" },
264
+ value: { type: "number" },
265
+ },
266
+ required: ["locations_id", "measured_from", "measured_to", "value"],
267
+ },
186
268
  };
187
269
  const forExport = {
270
+ name: "BicycleCounters",
188
271
  camea: {
189
- datasourceMongooseSchemaObject: datasourceCameaMSO,
190
- measurementsDatasourceMongooseSchemaObject: datasourceCameaMeasurementsMSO,
272
+ datasourceJsonSchema: datasourceCameaJsonSchema,
273
+ measurementsDatasourceJsonSchema: datasourceCameaMeasurementsJsonSchema,
191
274
  name: "CameaBicycleCounters",
192
275
  },
276
+ ecoCounter: {
277
+ datasourceJsonSchema: datasourceEcoCounterJsonSchema,
278
+ measurementsDatasourceJsonSchema: datasourceEcoCounterMeasurementsJsonSchema,
279
+ name: "EcoCounterBicycleCounters",
280
+ },
193
281
  detections: {
194
282
  name: "BicyclecountersDetections",
195
- outputMongooseSchemaObject: outputDetectionsMSO,
283
+ outputJsonSchemaObject: outputDetectionsJsonSchema,
196
284
  outputSequelizeAttributes: outputDetectionsSDMA,
197
285
  pgTableName: "bicyclecounters_detections",
198
286
  },
199
287
  directions: {
200
288
  name: "BicyclecountersDirections",
201
- outputMongooseSchemaObject: outputDirectionsMSO,
289
+ outputJsonSchemaObject: outputDirectionsJsonSchema,
202
290
  outputSequelizeAttributes: outputDirectionsSDMA,
203
291
  pgTableName: "bicyclecounters_directions",
204
292
  },
205
- ecoCounter: {
206
- datasourceMongooseSchemaObject: datasourceEcoCounterMSO,
207
- measurementsDatasourceMongooseSchemaObject: datasourceEcoCounterMeasurementsMSO,
208
- name: "EcoCounterBicycleCounters",
209
- },
210
293
  locations: {
211
294
  name: "BicyclecountersLocations",
212
- outputMongooseSchemaObject: outputLocationsMSO,
295
+ outputJsonSchemaObject: outputLocationsJsonSchema,
213
296
  outputSequelizeAttributes: outputLocationsSDMA,
214
297
  pgTableName: "bicyclecounters_locations",
215
298
  },
216
- name: "BicycleCounters",
217
299
  temperatures: {
218
300
  name: "BicyclecountersTemperatures",
219
- outputMongooseSchemaObject: outputTemperaturesMSO,
301
+ outputJsonSchemaObject: outputTemperaturesJsonSchema,
220
302
  outputSequelizeAttributes: outputTemperaturesSDMA,
221
303
  pgTableName: "bicyclecounters_temperatures",
222
304
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema-definitions/index.ts"],"names":[],"mappings":";;;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CAAC;KACtE;CACJ,CAAC;AAEF,MAAM,SAAS,GAAG;IACd,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE;QACH,oBAAoB,EAAE,yBAAyB;QAC/C,gCAAgC,EAAE,qCAAqC;QACvE,IAAI,EAAE,sBAAsB;KAC/B;IACD,UAAU,EAAE;QACR,oBAAoB,EAAE,8BAA8B;QACpD,gCAAgC,EAAE,0CAA0C;QAC5E,IAAI,EAAE,2BAA2B;KACpC;IAED,UAAU,EAAE;QACR,IAAI,EAAE,2BAA2B;QACjC,sBAAsB,EAAE,0BAA0B;QAClD,yBAAyB,EAAE,oBAAoB;QAC/C,WAAW,EAAE,4BAA4B;KAC5C;IACD,UAAU,EAAE;QACR,IAAI,EAAE,2BAA2B;QACjC,sBAAsB,EAAE,0BAA0B;QAClD,yBAAyB,EAAE,oBAAoB;QAC/C,WAAW,EAAE,4BAA4B;KAC5C;IAED,SAAS,EAAE;QACP,IAAI,EAAE,0BAA0B;QAChC,sBAAsB,EAAE,yBAAyB;QACjD,yBAAyB,EAAE,mBAAmB;QAC9C,WAAW,EAAE,2BAA2B;KAC3C;IACD,YAAY,EAAE;QACV,IAAI,EAAE,6BAA6B;QACnC,sBAAsB,EAAE,4BAA4B;QACpD,yBAAyB,EAAE,sBAAsB;QACjD,WAAW,EAAE,8BAA8B;KAC9C;CACJ,CAAC;AAEoB,oCAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/bicycle-counters",
3
- "version": "1.0.4-dev.402361479",
3
+ "version": "1.0.4-dev.425139894",
4
4
  "description": "Golemio Bicycle Counters Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "test-debug": "run-s 'test --inspect-brk=9230'",
14
14
  "code-coverage": "nyc run-s 'test -r source-map-support/register'",
15
15
  "generate-docs": "typedoc --out docs/typedoc src",
16
- "lint": "eslint {src,test}/**/*.ts"
16
+ "lint": "eslint '{src,test}/**/*.ts'"
17
17
  },
18
18
  "keywords": [
19
19
  "golemio"
@@ -27,7 +27,7 @@
27
27
  "devDependencies": {
28
28
  "@commitlint/cli": "^11.0.0",
29
29
  "@commitlint/config-conventional": "^11.0.0",
30
- "@golemio/core": "1.1.6",
30
+ "@golemio/core": "1.1.7-dev.402733829",
31
31
  "@golemio/eslint-config": "^1.0.2",
32
32
  "@golemio/schema-definitions": "2.0.19",
33
33
  "@types/chai": "4.2.3",