@golemio/pid 2.1.4 → 2.1.6-dev.449180636

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 (92) hide show
  1. package/db/example/__truncate_tables.sql +1 -0
  2. package/db/example/ropidvymi_example.sql +12 -12
  3. package/db/example/zzz_precomputed_tables.sql +70 -0
  4. package/db/migrations/postgresql/20211213120726-ropidvymi-refactoring.js +53 -0
  5. package/db/migrations/postgresql/20220112085841-ropidgtfs-scheduled-trips.js +53 -0
  6. package/db/migrations/postgresql/package.json +3 -0
  7. package/db/migrations/postgresql/sqls/20211213120726-ropidvymi-refactoring-down.sql +45 -0
  8. package/db/migrations/postgresql/sqls/20211213120726-ropidvymi-refactoring-up.sql +54 -0
  9. package/db/migrations/postgresql/sqls/20220112085841-ropidgtfs-scheduled-trips-down.sql +2 -0
  10. package/db/migrations/postgresql/sqls/20220112085841-ropidgtfs-scheduled-trips-up.sql +39 -0
  11. package/db/migrations/postgresql/sqls/package.json +3 -0
  12. package/dist/integration-engine/queueDefinitions.js +13 -3
  13. package/dist/integration-engine/queueDefinitions.js.map +1 -1
  14. package/dist/integration-engine/ropid-gtfs/RopidGTFSMetadataModel.d.ts +3 -36
  15. package/dist/integration-engine/ropid-gtfs/RopidGTFSMetadataModel.js +21 -321
  16. package/dist/integration-engine/ropid-gtfs/RopidGTFSMetadataModel.js.map +1 -1
  17. package/dist/integration-engine/ropid-gtfs/RopidGTFSScheduledTripsModel.d.ts +21 -0
  18. package/dist/integration-engine/ropid-gtfs/RopidGTFSScheduledTripsModel.js +150 -0
  19. package/dist/integration-engine/ropid-gtfs/RopidGTFSScheduledTripsModel.js.map +1 -0
  20. package/dist/integration-engine/ropid-gtfs/RopidGTFSWorker.d.ts +1 -0
  21. package/dist/integration-engine/ropid-gtfs/RopidGTFSWorker.js +16 -12
  22. package/dist/integration-engine/ropid-gtfs/RopidGTFSWorker.js.map +1 -1
  23. package/dist/integration-engine/ropid-gtfs/index.d.ts +1 -0
  24. package/dist/integration-engine/ropid-gtfs/index.js +1 -0
  25. package/dist/integration-engine/ropid-gtfs/index.js.map +1 -1
  26. package/dist/integration-engine/ropid-vymi/RopidVYMIEventsTransformation.d.ts +11 -11
  27. package/dist/integration-engine/ropid-vymi/RopidVYMIEventsTransformation.js +45 -39
  28. package/dist/integration-engine/ropid-vymi/RopidVYMIEventsTransformation.js.map +1 -1
  29. package/dist/integration-engine/ropid-vymi/RopidVYMIWorker.d.ts +15 -2
  30. package/dist/integration-engine/ropid-vymi/RopidVYMIWorker.js +115 -17
  31. package/dist/integration-engine/ropid-vymi/RopidVYMIWorker.js.map +1 -1
  32. package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsModel.d.ts +0 -16
  33. package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsModel.js +2 -46
  34. package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsModel.js.map +1 -1
  35. package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsRoutesModel.d.ts +0 -14
  36. package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsRoutesModel.js +2 -48
  37. package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsRoutesModel.js.map +1 -1
  38. package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsStopsModel.d.ts +0 -13
  39. package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsStopsModel.js +2 -50
  40. package/dist/integration-engine/ropid-vymi/models/RopidVYMIEventsStopsModel.js.map +1 -1
  41. package/dist/integration-engine/ropid-vymi/models/RopidVYMIMetadataModel.d.ts +8 -0
  42. package/dist/integration-engine/ropid-vymi/models/RopidVYMIMetadataModel.js +44 -0
  43. package/dist/integration-engine/ropid-vymi/models/RopidVYMIMetadataModel.js.map +1 -0
  44. package/dist/integration-engine/ropid-vymi/models/index.d.ts +1 -0
  45. package/dist/integration-engine/ropid-vymi/models/index.js +1 -0
  46. package/dist/integration-engine/ropid-vymi/models/index.js.map +1 -1
  47. package/dist/integration-engine/shared/RopidMetadataModel.d.ts +29 -0
  48. package/dist/integration-engine/shared/RopidMetadataModel.js +261 -0
  49. package/dist/integration-engine/shared/RopidMetadataModel.js.map +1 -0
  50. package/dist/integration-engine/shared/index.d.ts +1 -0
  51. package/dist/integration-engine/shared/index.js +14 -0
  52. package/dist/integration-engine/shared/index.js.map +1 -0
  53. package/dist/integration-engine/vehicle-positions/VehiclePositionsRunsModel.d.ts +2 -0
  54. package/dist/integration-engine/vehicle-positions/VehiclePositionsRunsModel.js +21 -85
  55. package/dist/integration-engine/vehicle-positions/VehiclePositionsRunsModel.js.map +1 -1
  56. package/dist/output-gateway/departure-boards/DepartureBoardsRouter.d.ts +0 -4
  57. package/dist/output-gateway/departure-boards/DepartureBoardsRouter.js +6 -25
  58. package/dist/output-gateway/departure-boards/DepartureBoardsRouter.js.map +1 -1
  59. package/dist/output-gateway/pid/PIDRouter.d.ts +0 -4
  60. package/dist/output-gateway/pid/PIDRouter.js +7 -16
  61. package/dist/output-gateway/pid/PIDRouter.js.map +1 -1
  62. package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js +1 -1
  63. package/dist/output-gateway/pid/models/PIDDepartureBoardsModel.js.map +1 -1
  64. package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.js +2 -3
  65. package/dist/output-gateway/pid/models/RopidVYMIEventsStopsModel.js.map +1 -1
  66. package/dist/output-gateway/shared/RopidRouterUtils.d.ts +12 -0
  67. package/dist/output-gateway/shared/RopidRouterUtils.js +45 -0
  68. package/dist/output-gateway/shared/RopidRouterUtils.js.map +1 -0
  69. package/dist/output-gateway/shared/index.d.ts +1 -0
  70. package/dist/output-gateway/shared/index.js +14 -0
  71. package/dist/output-gateway/shared/index.js.map +1 -0
  72. package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.d.ts +0 -9
  73. package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js +6 -47
  74. package/dist/output-gateway/vehicle-positions/VehiclePositionsRouter.js.map +1 -1
  75. package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.d.ts +65 -0
  76. package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.js +100 -0
  77. package/dist/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.js.map +1 -1
  78. package/dist/schema-definitions/ropid-gtfs/index.d.ts +2 -604
  79. package/dist/schema-definitions/ropid-gtfs/index.js +3 -24
  80. package/dist/schema-definitions/ropid-gtfs/index.js.map +1 -1
  81. package/dist/schema-definitions/ropid-vymi/RopidVYMIOutputSchemas.d.ts +135 -126
  82. package/dist/schema-definitions/ropid-vymi/RopidVYMIOutputSchemas.js +138 -129
  83. package/dist/schema-definitions/ropid-vymi/RopidVYMIOutputSchemas.js.map +1 -1
  84. package/dist/schema-definitions/ropid-vymi/RopidVYMISDMA.js +24 -23
  85. package/dist/schema-definitions/ropid-vymi/RopidVYMISDMA.js.map +1 -1
  86. package/dist/schema-definitions/ropid-vymi/index.d.ts +2 -181
  87. package/dist/schema-definitions/ropid-vymi/index.js +7 -0
  88. package/dist/schema-definitions/ropid-vymi/index.js.map +1 -1
  89. package/dist/schema-definitions/shared/index.d.ts +15 -0
  90. package/dist/schema-definitions/shared/index.js +29 -0
  91. package/dist/schema-definitions/shared/index.js.map +1 -0
  92. package/package.json +83 -83
@@ -1 +1 @@
1
- {"version":3,"file":"RopidGTFSPrecomputed.js","sourceRoot":"","sources":["../../../src/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.ts"],"names":[],"mappings":";;;AAAA,mEAAsG;AAEtG,MAAM,oBAAoB,GAAyB;IAC/C,aAAa,EAAE,qBAAS,CAAC,OAAO;IAChC,aAAa,EAAE,qBAAS,CAAC,MAAM;IAC/B,WAAW,EAAE,qBAAS,CAAC,MAAM;IAC7B,aAAa,EAAE,qBAAS,CAAC,MAAM;IAC/B,YAAY,EAAE,qBAAS,CAAC,MAAM;IAC9B,gBAAgB,EAAE,qBAAS,CAAC,MAAM;IAClC,cAAc,EAAE,qBAAS,CA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F,MAAM,kCAAkC,GAA0B;IAC9D;QACI,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,6CAA6C;QACnD,MAAM,EAAE,CAAC,SAAS,CAAC;KACtB;CACJ,CAAC;AAEF,MAAM,oCAAoC,GAAG;IACzC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;SACjB;QACD,iBAAiB,EAAE;YACf,IAAI,EAAE,SAAS;SAClB;QACD,iBAAiB,EAAE;YACf,IAAI,EAAE,SAAS;SAClB;QACD,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;SACjB;QACD,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,QAAQ,EAAE,CAAC,SAAS,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,eAAe,EAAE,eAAe,CAAC;CACpG,CAAC;AAEW,QAAA,oBAAoB,GAAG;IAChC,UAAU,EAAE;QACR,IAAI,EAAE,yBAAyB;QAC/B,gBAAgB,EAAE,0BAA0B;QAC5C,yBAAyB,EAAE,oBAAoB;QAC/C,iBAAiB,EAAE,wBAAwB;QAC3C,WAAW,EAAE,sBAAsB;KACtC;IACD,oBAAoB,EAAE;QAClB,IAAI,EAAE,yBAAyB;QAC/B,gBAAgB,EAAE,mCAAmC;QACrD,yBAAyB,EAAE,6BAA6B;QACxD,iBAAiB,EAAE,iCAAiC;QACpD,WAAW,EAAE,gCAAgC;KAChD;IACD,eAAe,EAAE;QACb,IAAI,EAAE,+BAA+B;QACrC,gBAAgB,EAAE,oCAAoC;QACtD,yBAAyB,EAAE,8BAA8B;QACzD,iBAAiB,EAAE,kCAAkC;QACrD,WAAW,EAAE,iCAAiC;KACjD;CACJ,CAAC"}
1
+ {"version":3,"file":"RopidGTFSPrecomputed.js","sourceRoot":"","sources":["../../../src/schema-definitions/ropid-gtfs/RopidGTFSPrecomputed.ts"],"names":[],"mappings":";;;AAAA,mEAAs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ACjB;QACD,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;SACjB;QACD,eAAe,EAAE;YACb,IAAI,EAAE,QAAQ;SACjB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,SAAS;SAClB;QACD,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;SACjB;QACD,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;SACjB;QACD,eAAe,EAAE;YACb,IAAI,EAAE,QAAQ;SACjB;QACD,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;SACjB;KACJ;CACJ,CAAC;AAEW,QAAA,oBAAoB,GAAG;IAChC,UAAU,EAAE;QACR,IAAI,EAAE,yBAAyB;QAC/B,gBAAgB,EAAE,0BAA0B;QAC5C,yBAAyB,EAAE,oBAAoB;QAC/C,iBAAiB,EAAE,wBAAwB;QAC3C,WAAW,EAAE,sBAAsB;KACtC;IACD,oBAAoB,EAAE;QAClB,IAAI,EAAE,yBAAyB;QAC/B,gBAAgB,EAAE,mCAAmC;QACrD,yBAAyB,EAAE,6BAA6B;QACxD,iBAAiB,EAAE,iCAAiC;QACpD,WAAW,EAAE,gCAAgC;KAChD;IACD,eAAe,EAAE;QACb,IAAI,EAAE,+BAA+B;QACrC,gBAAgB,EAAE,oCAAoC;QACtD,yBAAyB,EAAE,8BAA8B;QACzD,iBAAiB,EAAE,kCAAkC;QACrD,WAAW,EAAE,iCAAiC;KACjD;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,yBAAyB;QAC/B,gBAAgB,EAAE,8BAA8B;QAChD,yBAAyB,EAAE,wBAAwB;QACnD,iBAAiB,EAAE,4BAA4B;QAC/C,WAAW,EAAE,2BAA2B;KAC3C;CACJ,CAAC"}
@@ -1,607 +1,5 @@
1
- /// <reference types="mongoose" />
2
- import Sequelize from "@golemio/core/dist/shared/sequelize";
3
1
  import { ScheduleModelName } from "./RopidGtfsSchedule";
4
- declare const forExport: {
5
- delayComputationTrips: {
6
- mongoCollectionName: string;
7
- name: string;
8
- outputMongooseSchemaObject: {
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[];
10
- };
11
- };
12
- metadata: {
13
- name: string;
14
- outputMongooseSchemaObject: {
15
- [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[];
16
- };
17
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
18
- pgTableName: string;
19
- };
20
- tripsShapesView: {
21
- name: string;
22
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
23
- pgTableName: string;
24
- };
25
- tripsStopTimesView: {
26
- name: string;
27
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
28
- pgTableName: string;
29
- };
30
- cis_stop_groups: {
31
- name: string;
32
- datasourceJsonSchema: {
33
- type: string;
34
- items: {
35
- $ref: string;
36
- };
37
- $defs: {
38
- Item: {
39
- type: string;
40
- properties: {
41
- avgJtskX: {
42
- type: string;
43
- };
44
- avgJtskY: {
45
- type: string;
46
- };
47
- avgLat: {
48
- type: string;
49
- };
50
- avgLon: {
51
- type: string;
52
- };
53
- cis: {
54
- type: string;
55
- };
56
- districtCode: {
57
- type: string;
58
- };
59
- fullName: {
60
- type: string;
61
- };
62
- idosCategory: {
63
- type: string;
64
- };
65
- idosName: {
66
- type: string;
67
- };
68
- municipality: {
69
- type: string;
70
- };
71
- name: {
72
- type: string;
73
- };
74
- node: {
75
- type: string;
76
- };
77
- uniqueName: {
78
- type: string;
79
- };
80
- };
81
- required: string[];
82
- };
83
- };
84
- };
85
- outputJsonSchema: {
86
- type: string;
87
- items: {
88
- $ref: string;
89
- $defs: {
90
- Item: {
91
- type: string;
92
- properties: {
93
- avg_jtsk_x: {
94
- type: string;
95
- };
96
- avg_jtsk_y: {
97
- type: string;
98
- };
99
- avg_lat: {
100
- type: string;
101
- };
102
- avg_lon: {
103
- type: string;
104
- };
105
- cis: {
106
- type: string;
107
- };
108
- district_code: {
109
- type: string;
110
- };
111
- full_name: {
112
- type: string;
113
- };
114
- idos_category: {
115
- type: string;
116
- };
117
- idos_name: {
118
- type: string;
119
- };
120
- municipality: {
121
- type: string;
122
- };
123
- name: {
124
- type: string;
125
- };
126
- node: {
127
- type: string;
128
- };
129
- unique_name: {
130
- type: string;
131
- };
132
- };
133
- required: string[];
134
- };
135
- };
136
- };
137
- };
138
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, import("./RopidGTFSCisStopGroups").IRopidGTFSCisStopGroupsData>;
139
- pgTableName: string;
140
- };
141
- cis_stops: {
142
- name: string;
143
- datasourceJsonSchema: {
144
- type: string;
145
- items: {
146
- $ref: string;
147
- };
148
- $defs: {
149
- Item: {
150
- type: string;
151
- properties: {
152
- altIdosName: {
153
- type: string;
154
- };
155
- cis: {
156
- type: string;
157
- };
158
- id: {
159
- type: string;
160
- };
161
- jtskX: {
162
- type: string;
163
- };
164
- jtskY: {
165
- type: string;
166
- };
167
- lat: {
168
- type: string;
169
- };
170
- lon: {
171
- type: string;
172
- };
173
- platform: {
174
- type: string;
175
- };
176
- wheelchairAccess: {
177
- type: string;
178
- };
179
- zone: {
180
- type: string;
181
- };
182
- };
183
- required: string[];
184
- };
185
- };
186
- };
187
- outputJsonSchema: {
188
- type: string;
189
- items: {
190
- $ref: string;
191
- $defs: {
192
- Item: {
193
- type: string;
194
- properties: {
195
- alt_idos_name: {
196
- type: string;
197
- };
198
- cis: {
199
- type: string;
200
- };
201
- id: {
202
- type: string;
203
- };
204
- jtsk_x: {
205
- type: string;
206
- };
207
- jtsk_y: {
208
- type: string;
209
- };
210
- lat: {
211
- type: string;
212
- };
213
- lon: {
214
- type: string;
215
- };
216
- platform: {
217
- type: string;
218
- };
219
- wheelchair_access: {
220
- type: string;
221
- };
222
- zone: {
223
- type: string;
224
- };
225
- };
226
- required: string[];
227
- };
228
- };
229
- };
230
- };
231
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, import("./RopidGTFSCisStops").IRopidGTFSCisStopsData>;
232
- pgTableName: string;
233
- };
234
- run_numbers: {
235
- name: string;
236
- datasourceJsonSchema: {
237
- type: string;
238
- items: {
239
- $ref: string;
240
- };
241
- $defs: {
242
- item: {
243
- type: string;
244
- properties: {
245
- route_id: {
246
- type: string;
247
- };
248
- run_number: {
249
- type: string;
250
- };
251
- service_id: {
252
- type: string;
253
- };
254
- trip_id: {
255
- type: string;
256
- };
257
- vehicle_type: {
258
- type: string;
259
- };
260
- };
261
- required: string[];
262
- };
263
- };
264
- };
265
- outputJsonSchema: {
266
- $defs: {
267
- item: {
268
- type: string;
269
- properties: {
270
- route_id: {
271
- type: string;
272
- };
273
- run_number: {
274
- type: string;
275
- };
276
- service_id: {
277
- type: string;
278
- };
279
- trip_id: {
280
- type: string;
281
- };
282
- vehicle_type: {
283
- type: string;
284
- };
285
- };
286
- required: string[];
287
- };
288
- };
289
- type: string;
290
- items: {
291
- $ref: string;
292
- };
293
- };
294
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, {
295
- [auditFields: string]: unknown;
296
- run_number: number;
297
- vehicle_type: number;
298
- }>;
299
- pgTableName: string;
300
- };
301
- ois: {
302
- name: string;
303
- datasourceJsonSchema: {
304
- type: string;
305
- items: {
306
- $ref: string;
307
- };
308
- $defs: {
309
- Item: {
310
- type: string;
311
- properties: {
312
- ois: {
313
- type: string;
314
- };
315
- node: {
316
- type: string;
317
- };
318
- name: {
319
- type: string;
320
- };
321
- };
322
- required: string[];
323
- };
324
- };
325
- };
326
- outputJsonSchema: {
327
- type: string;
328
- items: {
329
- $ref: string;
330
- };
331
- $defs: {
332
- Item: {
333
- type: string;
334
- properties: {
335
- ois: {
336
- type: string;
337
- };
338
- node: {
339
- type: string;
340
- };
341
- name: {
342
- type: string;
343
- };
344
- };
345
- required: string[];
346
- };
347
- };
348
- };
349
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, import("./RopidGTFSOisMapping").IRopidGTFSOisMappingData>;
350
- pgTableName: string;
351
- };
352
- departuresPresets: {
353
- name: string;
354
- datasourceJsonSchema: {
355
- type: string;
356
- items: {
357
- type: string;
358
- properties: Record<keyof import("../ropid-departures-presets").IRopidDeparturesPreset, any>;
359
- };
360
- };
361
- outputJsonSchema: {
362
- type: string;
363
- items: {
364
- type: string;
365
- properties: {
366
- route_name: {
367
- type: string;
368
- };
369
- api_version: {
370
- type: string;
371
- };
372
- route: {
373
- type: string;
374
- };
375
- url_query_params: {
376
- type: string;
377
- };
378
- note: {
379
- type: string;
380
- };
381
- };
382
- };
383
- };
384
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, import("../ropid-departures-presets/RopidDeparturesPresetsSDMA").IRopidDeparturesPresetsOutput>;
385
- pgTableName: string;
386
- pgSchema: string;
387
- };
388
- departures: {
389
- name: string;
390
- outputJsonSchema: {
391
- type: string;
392
- properties: {
393
- stop_sequence: {
394
- type: string;
395
- };
396
- stop_headsign: {
397
- type: string;
398
- };
399
- pickup_type: {
400
- type: string;
401
- };
402
- drop_off_type: {
403
- type: string;
404
- };
405
- arrival_time: {
406
- type: string;
407
- };
408
- arrival_datetime: {
409
- type: string;
410
- };
411
- departure_time: {
412
- type: string;
413
- };
414
- departure_datetime: {
415
- type: string;
416
- };
417
- stop_id: {
418
- type: string;
419
- };
420
- stop_name: {
421
- type: string;
422
- };
423
- platform_code: {
424
- type: string;
425
- };
426
- wheelchair_boarding: {
427
- type: string;
428
- };
429
- min_stop_sequence: {
430
- type: string;
431
- };
432
- max_stop_sequence: {
433
- type: string;
434
- };
435
- trip_id: {
436
- type: string;
437
- };
438
- trip_headsign: {
439
- type: string;
440
- };
441
- trip_short_name: {
442
- type: string;
443
- };
444
- wheelchair_accessible: {
445
- type: string;
446
- };
447
- service_id: {
448
- type: string;
449
- };
450
- date: {
451
- type: string;
452
- };
453
- route_short_name: {
454
- type: string;
455
- };
456
- route_type: {
457
- type: string;
458
- };
459
- route_id: {
460
- type: string;
461
- };
462
- is_night: {
463
- type: string;
464
- };
465
- is_regional: {
466
- type: string;
467
- };
468
- is_substitute_transport: {
469
- type: string;
470
- };
471
- next_stop_sequence: {
472
- type: string;
473
- };
474
- next_stop_id: {
475
- type: string;
476
- };
477
- last_stop_sequence: {
478
- type: string;
479
- };
480
- last_stop_id: {
481
- type: string;
482
- };
483
- };
484
- required: string[];
485
- };
486
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
487
- modelIndexOptions: Sequelize.IndexesOptions[];
488
- pgTableName: string;
489
- };
490
- services_first14days: {
491
- name: string;
492
- outputJsonSchema: {
493
- type: string;
494
- properties: {
495
- date: {
496
- type: string;
497
- };
498
- day_diff: {
499
- type: string;
500
- };
501
- service_id: {
502
- type: string;
503
- };
504
- };
505
- required: string[];
506
- };
507
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
508
- modelIndexOptions: Sequelize.IndexesOptions[];
509
- pgTableName: string;
510
- };
511
- minMaxSequences: {
512
- name: string;
513
- outputJsonSchema: {
514
- type: string;
515
- properties: {
516
- trip_id: {
517
- type: string;
518
- };
519
- max_stop_sequence: {
520
- type: string;
521
- };
522
- min_stop_sequence: {
523
- type: string;
524
- };
525
- max_stop_time: {
526
- type: string;
527
- };
528
- min_stop_time: {
529
- type: string;
530
- };
531
- };
532
- required: string[];
533
- };
534
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
535
- modelIndexOptions: Sequelize.IndexesOptions[];
536
- pgTableName: string;
537
- };
538
- agency: {
539
- name: string;
540
- outputMongooseSchemaObject: {
541
- [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[];
542
- };
543
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
544
- pgTableName: string;
545
- };
546
- calendar: {
547
- name: string;
548
- outputMongooseSchemaObject: {
549
- [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[];
550
- };
551
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
552
- pgTableName: string;
553
- };
554
- calendar_dates: {
555
- name: string;
556
- outputMongooseSchemaObject: {
557
- [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[];
558
- };
559
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
560
- pgTableName: string;
561
- };
562
- shapes: {
563
- name: string;
564
- outputMongooseSchemaObject: {
565
- [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[];
566
- };
567
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
568
- pgTableName: string;
569
- };
570
- stop_times: {
571
- name: string;
572
- outputMongooseSchemaObject: {
573
- [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[];
574
- };
575
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
576
- modelIndexOptions: Sequelize.IndexesOptions[];
577
- pgTableName: string;
578
- };
579
- stops: {
580
- name: string;
581
- outputMongooseSchemaObject: {
582
- [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[];
583
- };
584
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
585
- pgTableName: string;
586
- };
587
- routes: {
588
- name: string;
589
- outputMongooseSchemaObject: {
590
- [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[];
591
- };
592
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
593
- pgTableName: string;
594
- };
595
- trips: {
596
- name: string;
597
- outputMongooseSchemaObject: {
598
- [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[];
599
- };
600
- outputSequelizeAttributes: Sequelize.ModelAttributes<any, any>;
601
- pgTableName: string;
602
- };
603
- name: string;
604
- pgSchema: string;
605
- };
2
+ import { IRopidSchemaDefinitions } from "../shared";
3
+ declare const forExport: IRopidSchemaDefinitions;
606
4
  declare type DatasetModelName = ScheduleModelName | "cis_stops" | "cis_stop_groups" | "run_numbers" | "ois";
607
5
  export { forExport as RopidGTFS, ScheduleModelName, DatasetModelName };
@@ -12,30 +12,9 @@ const RopidGTFSOisMapping_1 = require("./RopidGTFSOisMapping");
12
12
  const RopidGTFSCisStopGroups_1 = require("./RopidGTFSCisStopGroups");
13
13
  const RopidGTFSCisStops_1 = require("./RopidGTFSCisStops");
14
14
  const RopidGTFSPrecomputed_1 = require("./RopidGTFSPrecomputed");
15
+ const shared_1 = require("../shared");
15
16
  // MSO = Mongoose SchemaObject
16
17
  // SDMA = Sequelize DefineModelAttributes
17
- const outputMetadataSDMA = {
18
- dataset: sequelize_1.default.STRING,
19
- key: sequelize_1.default.STRING,
20
- type: sequelize_1.default.STRING,
21
- value: sequelize_1.default.STRING,
22
- version: sequelize_1.default.INTEGER,
23
- // ⬐ Auditni pole
24
- create_batch_id: { type: sequelize_1.default.BIGINT },
25
- created_at: { type: sequelize_1.default.DATE },
26
- created_by: { type: sequelize_1.default.STRING(150) },
27
- update_batch_id: { type: sequelize_1.default.BIGINT },
28
- updated_at: { type: sequelize_1.default.DATE },
29
- updated_by: { type: sequelize_1.default.STRING(150) }, // Identikace uživatele/procesu, který poslední měnil záznam
30
- };
31
- // only for Validator
32
- const outputMetadataMSO = {
33
- dataset: { type: String },
34
- key: { type: String, required: true },
35
- type: { type: String },
36
- value: { type: String, required: true },
37
- version: { type: Number },
38
- };
39
18
  // only for Validator
40
19
  const outputDelayComputationMSO = {
41
20
  shape_points: [
@@ -121,8 +100,8 @@ const forExport = Object.assign(Object.assign(Object.assign({ name: "RopidGTFS",
121
100
  outputMongooseSchemaObject: outputDelayComputationMSO,
122
101
  }, metadata: {
123
102
  name: "RopidGTFSMetadata",
124
- outputMongooseSchemaObject: outputMetadataMSO,
125
- outputSequelizeAttributes: outputMetadataSDMA,
103
+ outputMongooseSchemaObject: shared_1.outputMetadataMSO,
104
+ outputSequelizeAttributes: shared_1.outputMetadataSDMA,
126
105
  pgTableName: "ropidgtfs_metadata",
127
106
  }, tripsShapesView: {
128
107
  name: "RopidGTFSTripsShapesView",