@golemio/pid 2.13.10-dev.1329140823 → 2.13.10-dev.1332849848

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 (2) hide show
  1. package/docs/asyncapi.yaml +1444 -0
  2. package/package.json +1 -1
@@ -0,0 +1,1444 @@
1
+ asyncapi: 3.0.0
2
+ info:
3
+ title: PID
4
+ version: 1.0.0
5
+ description: PID
6
+ channels:
7
+ updateGTFSTripId:
8
+ address: vehiclepositions.updateGTFSTripId
9
+ description: some description
10
+ bindings:
11
+ amqp:
12
+ is: queue
13
+ queue:
14
+ exclusive: true
15
+ messages:
16
+ data:
17
+ $ref: '#/components/messages/updateGTFSTripId'
18
+ messageProperties:
19
+ $ref: '#/components/messages/messageProperties'
20
+ updateRunsGTFSTripId:
21
+ address: vehiclepositions.updateRunsGTFSTripId
22
+ description: some description
23
+ bindings:
24
+ amqp:
25
+ is: queue
26
+ queue:
27
+ exclusive: true
28
+ messages:
29
+ data:
30
+ $ref: '#/components/messages/IUpdateRunsGtfsTripInput'
31
+ updateDelay:
32
+ address: vehiclepositions.updateDelay
33
+ description: some description
34
+ bindings:
35
+ amqp:
36
+ is: queue
37
+ queue:
38
+ exclusive: true
39
+ messages:
40
+ data:
41
+ $ref: '#/components/messages/IUpdateDelayInput'
42
+ messageProperties:
43
+ $ref: '#/components/messages/messageProperties'
44
+ saveDataToDB:
45
+ address: vehiclepositions.saveDataToDB
46
+ description: some description
47
+ bindings:
48
+ amqp:
49
+ is: queue
50
+ queue:
51
+ exclusive: true
52
+ messages:
53
+ data:
54
+ $ref: '#/components/messages/IMpvMessageInput'
55
+ messageProperties:
56
+ $ref: '#/components/messages/messageProperties'
57
+ refreshPublicTripCache:
58
+ description: some description
59
+ bindings:
60
+ amqp:
61
+ is: queue
62
+ queue:
63
+ exclusive: true
64
+ address: vehiclepositions.refreshPublicTripCache
65
+ messages:
66
+ empty:
67
+ $ref: '#/components/messages/EmptyObject'
68
+ refreshPublicStopTimeCache:
69
+ description: some description
70
+ bindings:
71
+ amqp:
72
+ is: queue
73
+ queue:
74
+ exclusive: true
75
+ address: vehiclepositions.refreshPublicStopTimeCache
76
+ messages:
77
+ empty:
78
+ $ref: '#/components/messages/EmptyObject'
79
+ refreshGTFSTripData:
80
+ description: some description
81
+ bindings:
82
+ amqp:
83
+ is: queue
84
+ queue:
85
+ exclusive: true
86
+ address: vehiclepositions.refreshGTFSTripData
87
+ messages:
88
+ empty:
89
+ $ref: '#/components/messages/EmptyObject'
90
+ propagateTrainDelay:
91
+ description: some description
92
+ bindings:
93
+ amqp:
94
+ is: queue
95
+ queue:
96
+ exclusive: true
97
+ address: vehiclepositions.propagateTrainDelay
98
+ messages:
99
+ input:
100
+ $ref: '#/components/messages/IPropagateTrainDelayInput'
101
+ propagateDelay:
102
+ description: some description
103
+ bindings:
104
+ amqp:
105
+ is: queue
106
+ queue:
107
+ exclusive: true
108
+ address: vehiclepositions.propagateDelay
109
+ messages:
110
+ data:
111
+ $ref: '#/components/messages/propagateDelay'
112
+ processRegionalBusPositions:
113
+ description: some description
114
+ bindings:
115
+ amqp:
116
+ is: queue
117
+ queue:
118
+ exclusive: true
119
+ address: vehiclepositions.processRegionalBusPositions
120
+ messages:
121
+ data:
122
+ $ref: '#/components/messages/IUpdateDelayInput'
123
+ messageProperties:
124
+ $ref: '#/components/messages/messageProperties'
125
+ dataRetention:
126
+ description: some description
127
+ bindings:
128
+ amqp:
129
+ is: queue
130
+ queue:
131
+ exclusive: true
132
+ address: vehiclepositions.dataRetention
133
+ messages:
134
+ empty:
135
+ $ref: '#/components/messages/EmptyObject'
136
+ saveTramRunsToDB:
137
+ description: some description
138
+ bindings:
139
+ amqp:
140
+ is: queue
141
+ queue:
142
+ exclusive: true
143
+ address: vehiclepositions.saveTramRunsToDB
144
+ messages:
145
+ data:
146
+ $ref: '#/components/messages/saveTramRunsToDB'
147
+ messageProperties:
148
+ $ref: '#/components/messages/messageProperties'
149
+ saveMetroRunsToDB:
150
+ description: some description
151
+ bindings:
152
+ amqp:
153
+ is: queue
154
+ queue:
155
+ exclusive: true
156
+ address: vehiclepositions.saveMetroRunsToDB
157
+ messages:
158
+ data:
159
+ $ref: '#/components/messages/saveMetroRunsToDB'
160
+ messageProperties:
161
+ $ref: '#/components/messages/messageProperties'
162
+ saveBusRunsToDB:
163
+ description: some description
164
+ bindings:
165
+ amqp:
166
+ is: queue
167
+ queue:
168
+ exclusive: true
169
+ address: vehiclepositions.saveBusRunsToDB
170
+ messages:
171
+ data:
172
+ $ref: '#/components/messages/saveBusRunsToDB'
173
+ messageProperties:
174
+ $ref: '#/components/messages/messageProperties'
175
+ saveArrivaCityRunsToDB:
176
+ description: some description
177
+ bindings:
178
+ amqp:
179
+ is: queue
180
+ queue:
181
+ exclusive: true
182
+ address: vehiclepositions.saveArrivaCityRunsToDB
183
+ messages:
184
+ data:
185
+ $ref: '#/components/messages/saveArrivaCityRunsToDB'
186
+ messageProperties:
187
+ $ref: '#/components/messages/messageProperties'
188
+ processMetroRunMessages:
189
+ description: some description
190
+ bindings:
191
+ amqp:
192
+ is: queue
193
+ queue:
194
+ exclusive: true
195
+ address: vehiclepositions.processMetroRunMessages
196
+ messages:
197
+ data:
198
+ $ref: '#/components/messages/processMetroRunMessages'
199
+ messageProperties:
200
+ $ref: '#/components/messages/messageProperties'
201
+ processRegionalBusRunMessages:
202
+ description: some description
203
+ bindings:
204
+ amqp:
205
+ is: queue
206
+ queue:
207
+ exclusive: true
208
+ address: vehiclepositions.processRegionalBusRunMessages
209
+ messages:
210
+ data:
211
+ $ref: '#/components/messages/processRegionalBusRunMessages'
212
+ messageProperties:
213
+ $ref: '#/components/messages/messageProperties'
214
+ generateFiles:
215
+ description: some description
216
+ bindings:
217
+ amqp:
218
+ is: queue
219
+ queue:
220
+ exclusive: true
221
+ address: vehiclepositions.generateFiles
222
+ messages:
223
+ empty:
224
+ $ref: '#/components/messages/EmptyObject'
225
+ refreshDescriptors:
226
+ description: some description
227
+ bindings:
228
+ amqp:
229
+ is: queue
230
+ queue:
231
+ exclusive: true
232
+ address: vehiclepositions.refreshDescriptors
233
+ messages:
234
+ empty:
235
+ $ref: '#/components/messages/EmptyObject'
236
+ operations:
237
+ updateGTFSTripId:
238
+ action: 'send'
239
+ channel:
240
+ $ref: '#/channels/updateGTFSTripId'
241
+ refreshDescriptors:
242
+ action: 'send'
243
+ channel:
244
+ $ref: '#/channels/refreshDescriptors'
245
+ generateFiles:
246
+ action: 'send'
247
+ channel:
248
+ $ref: '#/channels/generateFiles'
249
+ processRegionalBusRunMessages:
250
+ action: 'send'
251
+ channel:
252
+ $ref: '#/channels/processRegionalBusRunMessages'
253
+ updateRunsGTFSTripId:
254
+ action: 'send'
255
+ channel:
256
+ $ref: '#/channels/updateRunsGTFSTripId'
257
+ updateDelay:
258
+ action: 'send'
259
+ channel:
260
+ $ref: '#/channels/updateDelay'
261
+ saveDataToDB:
262
+ action: 'send'
263
+ channel:
264
+ $ref: '#/channels/saveDataToDB'
265
+ refreshPublicTripCache:
266
+ action: 'send'
267
+ channel:
268
+ $ref: '#/channels/refreshPublicTripCache'
269
+ refreshPublicStopTimeCache:
270
+ action: 'send'
271
+ channel:
272
+ $ref: '#/channels/refreshPublicStopTimeCache'
273
+ refreshGTFSTripData:
274
+ action: 'send'
275
+ channel:
276
+ $ref: '#/channels/refreshGTFSTripData'
277
+ propagateTrainDelay:
278
+ action: 'send'
279
+ channel:
280
+ $ref: '#/channels/propagateTrainDelay'
281
+ propagateDelay:
282
+ action: 'send'
283
+ channel:
284
+ $ref: '#/channels/propagateDelay'
285
+ processRegionalBusPositions:
286
+ action: 'send'
287
+ channel:
288
+ $ref: '#/channels/processRegionalBusPositions'
289
+ dataRetention:
290
+ action: 'send'
291
+ channel:
292
+ $ref: '#/channels/dataRetention'
293
+ saveTramRunsToDB:
294
+ action: 'send'
295
+ channel:
296
+ $ref: '#/channels/saveTramRunsToDB'
297
+ saveMetroRunsToDB:
298
+ action: 'send'
299
+ channel:
300
+ $ref: '#/channels/saveMetroRunsToDB'
301
+ saveBusRunsToDB:
302
+ action: 'send'
303
+ channel:
304
+ $ref: '#/channels/saveBusRunsToDB'
305
+ saveArrivaCityRunsToDB:
306
+ action: 'send'
307
+ channel:
308
+ $ref: '#/channels/saveArrivaCityRunsToDB'
309
+ processMetroRunMessages:
310
+ action: 'send'
311
+ channel:
312
+ $ref: '#/channels/processMetroRunMessages'
313
+ components:
314
+ messages:
315
+ saveTramRunsToDB:
316
+ payload:
317
+ type: object
318
+ properties:
319
+ data:
320
+ type: object
321
+ $ref: '#/components/schemas/ICommonRunsInput'
322
+ processMetroRunMessages:
323
+ payload:
324
+ type: object
325
+ properties:
326
+ data:
327
+ type: object
328
+ $ref: '#/components/schemas/IProcessMetroRunsMessagesInput'
329
+ processRegionalBusRunMessages:
330
+ payload:
331
+ type: object
332
+ properties:
333
+ data:
334
+ type: object
335
+ $ref: '#/components/schemas/IProcessRegionalBusRunMessagesInput'
336
+ saveArrivaCityRunsToDB:
337
+ payload:
338
+ type: object
339
+ properties:
340
+ data:
341
+ type: object
342
+ $ref: '#/components/schemas/IRegionalBusRunsInput'
343
+ saveBusRunsToDB:
344
+ payload:
345
+ type: object
346
+ properties:
347
+ data:
348
+ type: object
349
+ $ref: '#/components/schemas/ICommonRunsInput'
350
+ saveMetroRunsToDB:
351
+ payload:
352
+ type: object
353
+ properties:
354
+ data:
355
+ type: object
356
+ $ref: '#/components/schemas/IMetroRunsInput'
357
+ propagateDelay:
358
+ payload:
359
+ type: object
360
+ properties:
361
+ data:
362
+ type: object
363
+ $ref: '#/components/schemas/IPropagateDelayInput'
364
+ IPropagateTrainDelayInput:
365
+ payload:
366
+ type: object
367
+ properties:
368
+ data:
369
+ type: object
370
+ $ref: '#/components/schemas/ITripPositionTuple'
371
+ EmptyObject:
372
+ payload:
373
+ type: object
374
+ IMpvMessageInput:
375
+ payload:
376
+ type: object
377
+ properties:
378
+ m:
379
+ type: object
380
+ $ref: '#/components/schemas/IMpvMessageContent'
381
+ updateGTFSTripId:
382
+ payload:
383
+ type: object
384
+ properties:
385
+ positions:
386
+ type: array
387
+ $ref: '#/components/schemas/IPositionTransformationResult'
388
+ trips:
389
+ type: array
390
+ $ref: '#/components/schemas/IUpdateGTFSTripIdData'
391
+ messageProperties:
392
+ payload:
393
+ type: object
394
+ properties:
395
+ positions:
396
+ type: array
397
+ items:
398
+ type: object
399
+ properties:
400
+ trips_id:
401
+ type: string
402
+ trips:
403
+ type: array
404
+ $ref: '#/components/schemas/IUpdateGTFSTripIdData'
405
+ IUpdateRunsGtfsTripInput:
406
+ payload:
407
+ type: object
408
+ properties:
409
+ run:
410
+ type: object
411
+ $ref: '#/components/schemas/ICommonRunsModel'
412
+ run_message:
413
+ type: object
414
+ $ref: '#/components/schemas/ICommonRunsMessagesModel'
415
+ IUpdateDelayInput:
416
+ payload:
417
+ type: object
418
+ properties:
419
+ updatedTrips:
420
+ type: array
421
+ items:
422
+ oneOf:
423
+ - $ref: '#/components/schemas/IUpdateDelayTripsIdsData'
424
+ - $ref: '#/components/schemas/IUpdateDelayRunTripsData'
425
+ positions:
426
+ type: array
427
+ items:
428
+ $ref: '#/components/schemas/IPositionTransformationResult'
429
+ schedule:
430
+ type: array
431
+ items:
432
+ $ref: '#/components/schemas/IScheduleDto'
433
+ schemas:
434
+ IUpdateGTFSTripIdData:
435
+ type: object
436
+ properties:
437
+ id:
438
+ type: string
439
+ start_timestamp:
440
+ type: string
441
+ nullable: true
442
+ run_number:
443
+ type: number
444
+ nullable: true
445
+ origin_route_name:
446
+ type: string
447
+ nullable: true
448
+ vehicle_registration_number:
449
+ type: number
450
+ nullable: true
451
+ IPositionTransformationResult:
452
+ type: object
453
+ properties:
454
+ asw_last_stop_id:
455
+ type: string
456
+ nullable: true
457
+ bearing:
458
+ type: number
459
+ nullable: true
460
+ cis_last_stop_id:
461
+ type: number
462
+ nullable: true
463
+ cis_last_stop_sequence:
464
+ type: number
465
+ nullable: true
466
+ delay_stop_arrival:
467
+ type: number
468
+ nullable: true
469
+ delay_stop_departure:
470
+ type: number
471
+ nullable: true
472
+ is_canceled:
473
+ type: boolean
474
+ lat:
475
+ type: number
476
+ nullable: true
477
+ lng:
478
+ type: number
479
+ nullable: true
480
+ origin_time:
481
+ type: string
482
+ origin_timestamp:
483
+ type: string
484
+ format: date-time
485
+ speed:
486
+ type: number
487
+ nullable: true
488
+ state_position:
489
+ type: string
490
+ enum: [off_track,at_stop,on_track,before_track,after_track,canceled,invisible,unknown,before_track_delayed,duplicate,mismatched,not_public]
491
+ state_process:
492
+ type: string
493
+ enum: [tcp_input,udp_input,input,processed]
494
+ is_tracked:
495
+ type: boolean
496
+ nullable: true
497
+ trips_id:
498
+ type: string
499
+ required:
500
+ - is_canceled
501
+ - origin_time
502
+ - origin_timestamp
503
+ - state_position
504
+ - state_process
505
+ - trips_id
506
+ ICommonRunsModel:
507
+ type: object
508
+ properties:
509
+ id:
510
+ type: string
511
+ description: The unique identifier of the run.
512
+ route_id:
513
+ type: string
514
+ description: The ID of the route.
515
+ run_number:
516
+ type: number
517
+ description: The number of the run.
518
+ line_short_name:
519
+ type: string
520
+ description: The short name of the line.
521
+ registration_number:
522
+ type: string
523
+ description: The registration number of the vehicle.
524
+ msg_start_timestamp:
525
+ type: string
526
+ description: The timestamp when the message was first sent.
527
+ msg_last_timestamp:
528
+ type: string
529
+ description: The timestamp when the message was last sent.
530
+ wheelchair_accessible:
531
+ type: boolean
532
+ description: Indicates if the vehicle is wheelchair accessible.
533
+ ICommonRunsMessagesModel:
534
+ type: object
535
+ properties:
536
+ id:
537
+ type: number
538
+ description: Autoincrement ID
539
+ runs_id:
540
+ type: string
541
+ description: Associated foreign key
542
+ lat:
543
+ type: number
544
+ description: Latitude
545
+ lng:
546
+ type: number
547
+ description: Longitude
548
+ actual_stop_asw_id:
549
+ type: string
550
+ description: Actual stop ASW ID
551
+ actual_stop_timestamp_real:
552
+ type: string
553
+ format: date-time
554
+ description: Actual stop timestamp (real)
555
+ actual_stop_timestamp_scheduled:
556
+ type: string
557
+ format: date-time
558
+ nullable: true
559
+ description: Actual stop timestamp (scheduled)
560
+ last_stop_asw_id:
561
+ type: string
562
+ description: Last stop ASW ID
563
+ packet_number:
564
+ type: string
565
+ description: Packet number
566
+ msg_timestamp:
567
+ type: string
568
+ format: date-time
569
+ description: Message timestamp
570
+ events:
571
+ type: string
572
+ enum: [P, O, V, T]
573
+ description: TCP events
574
+ IScheduleDto:
575
+ type: object
576
+ properties:
577
+ trip_id:
578
+ type: string
579
+ service_id:
580
+ type: string
581
+ direction_id:
582
+ type: number
583
+ nullable: true
584
+ shape_id:
585
+ type: string
586
+ nullable: true
587
+ date:
588
+ type: string
589
+ route_id:
590
+ type: string
591
+ route_type:
592
+ type: number
593
+ enum: [0,1,2,3,4,7,11,1700]
594
+ route_short_name:
595
+ type: string
596
+ origin_route_name:
597
+ type: string
598
+ run_number:
599
+ type: number
600
+ is_regional:
601
+ type: string
602
+ is_substitute_transport:
603
+ type: string
604
+ is_night:
605
+ type: string
606
+ trip_headsign:
607
+ type: string
608
+ trip_short_name:
609
+ type: string
610
+ nullable: true
611
+ block_id:
612
+ type: string
613
+ nullable: true
614
+ exceptional:
615
+ type: number
616
+ min_stop_time:
617
+ type: object
618
+ properties:
619
+ hours:
620
+ type: number
621
+ minutes:
622
+ type: number
623
+ required:
624
+ - hours
625
+ max_stop_time:
626
+ type: object
627
+ properties:
628
+ hours:
629
+ type: number
630
+ minutes:
631
+ type: number
632
+ required:
633
+ - hours
634
+ start_timestamp:
635
+ type: string
636
+ end_timestamp:
637
+ type: string
638
+ first_stop_id:
639
+ type: string
640
+ last_stop_id:
641
+ type: string
642
+ trip_number:
643
+ type: number
644
+ nullable: true
645
+ route_licence_number:
646
+ type: number
647
+ nullable: true
648
+ requiredTurnaroundSeconds:
649
+ type: number
650
+ nullable: true
651
+ IUpdateDelayTripsIdsData:
652
+ type: object
653
+ properties:
654
+ id:
655
+ type: string
656
+ gtfs_trip_id:
657
+ type: string
658
+ gtfs_block_id:
659
+ type: string
660
+ gtfs_route_type:
661
+ type: number
662
+ gtfs_direction_id:
663
+ type: number
664
+ gtfs_shape_id:
665
+ type: string
666
+ start_timestamp:
667
+ type: string
668
+ end_timestamp:
669
+ type: string
670
+ run_number:
671
+ type: number
672
+ internal_run_number:
673
+ type: number
674
+ origin_route_name:
675
+ type: string
676
+ internal_route_name:
677
+ type: string
678
+ vehicle_registration_number:
679
+ type: number
680
+ IUpdateDelayRunTripsData:
681
+ type: object
682
+ properties:
683
+ id:
684
+ type: string
685
+ gtfs_trip_id:
686
+ type: string
687
+ gtfs_block_id:
688
+ type: string
689
+ gtfs_route_type:
690
+ type: number
691
+ gtfs_direction_id:
692
+ type: number
693
+ gtfs_shape_id:
694
+ type: string
695
+ start_timestamp:
696
+ type: string
697
+ end_timestamp:
698
+ type: string
699
+ run_number:
700
+ type: number
701
+ internal_run_number:
702
+ type: number
703
+ origin_route_name:
704
+ type: string
705
+ internal_route_name:
706
+ type: string
707
+ vehicle_registration_number:
708
+ type: number
709
+ IMpvPositionProperties:
710
+ type: object
711
+ properties:
712
+ alias:
713
+ type: string
714
+ asw:
715
+ type: string
716
+ azimut:
717
+ type: string
718
+ cpoz:
719
+ type: string
720
+ dopr:
721
+ type: string
722
+ doprSkut:
723
+ type: string
724
+ info:
725
+ type: string
726
+ kmenl:
727
+ type: string
728
+ lat:
729
+ type: string
730
+ lin:
731
+ type: string
732
+ lng:
733
+ type: string
734
+ np:
735
+ type: string
736
+ po:
737
+ type: string
738
+ rychl:
739
+ type: string
740
+ sled:
741
+ type: string
742
+ spoj:
743
+ type: string
744
+ t:
745
+ type: string
746
+ vuzevc:
747
+ type: string
748
+ zast:
749
+ type: string
750
+ zpoz_prij:
751
+ type: string
752
+ zpoz_odj:
753
+ type: string
754
+ zrus:
755
+ type: string
756
+ IMpvStopProperties:
757
+ type: object
758
+ properties:
759
+ odj:
760
+ type: string
761
+ prij:
762
+ type: string
763
+ stan:
764
+ type: string
765
+ zast:
766
+ type: string
767
+ asw:
768
+ type: string
769
+ zpoz_odj:
770
+ type: string
771
+ zpoz_prij:
772
+ type: string
773
+ zpoz_typ_odj:
774
+ type: string
775
+ zpoz_typ_prij:
776
+ type: string
777
+
778
+ IMpvMessageContent:
779
+ type: object
780
+ properties:
781
+ spoj:
782
+ oneOf:
783
+ - $ref: '#/components/schemas/IMpvPositionContent'
784
+ - type: array
785
+ items:
786
+ $ref: '#/components/schemas/IMpvPositionContent'
787
+ IMpvPositionContent:
788
+ type: object
789
+ properties:
790
+ $:
791
+ type: object
792
+ $ref: '#/components/schemas/IMpvPositionProperties'
793
+ ITripPositionTuple:
794
+ type: object
795
+ properties:
796
+ position:
797
+ type: object
798
+ description: All known positions with their properties
799
+ properties:
800
+ type:
801
+ type: string
802
+ example: "FeatureCollection"
803
+ features:
804
+ type: array
805
+ items:
806
+ allOf:
807
+ - $ref: "#/components/schemas/FeaturePoint"
808
+ - type: object
809
+ properties:
810
+ properties:
811
+ $ref: "#/components/schemas/IVPTripsPositionAttributes"
812
+ required:
813
+ - type
814
+ trip:
815
+ $ref: "#/components/schemas/IUpdateDelayRunTripsData"
816
+ GeometryPoint:
817
+ type: object
818
+ description: GeoJson point
819
+ properties:
820
+ coordinates:
821
+ type: array
822
+ items:
823
+ type: number
824
+ example: [14.441252, 50.109318]
825
+ description: Point
826
+ type:
827
+ type: string
828
+ enum:
829
+ - Point
830
+ FeaturePoint:
831
+ title: Feature Point
832
+ type: object
833
+ properties:
834
+ geometry:
835
+ type: object
836
+ properties:
837
+ type:
838
+ type: string
839
+ example: "Point"
840
+ coordinates:
841
+ $ref: "#/components/schemas/GeometryPoint"
842
+ required:
843
+ - coordinates
844
+ - type
845
+ properties:
846
+ type: object
847
+ type:
848
+ type: string
849
+ example: "Feature"
850
+ required:
851
+ - geometry
852
+ - properties
853
+ - type
854
+ IVPTripsPositionAttributes:
855
+ type: object
856
+ properties:
857
+ bearing:
858
+ type: number
859
+ nullable: true
860
+ lat:
861
+ type: number
862
+ lng:
863
+ type: number
864
+ origin_time:
865
+ type: string
866
+ origin_timestamp:
867
+ type: string
868
+ format: date-time
869
+ scheduled_timestamp:
870
+ type: string
871
+ nullable: true
872
+ format: date-time
873
+ delay:
874
+ type: number
875
+ nullable: true
876
+ is_tracked:
877
+ type: boolean
878
+ id:
879
+ type: string
880
+ shape_dist_traveled:
881
+ type: number
882
+ nullable: true
883
+ is_canceled:
884
+ type: boolean
885
+ state_position:
886
+ $ref: '#/components/schemas/StatePositionEnum'
887
+ state_process:
888
+ $ref: '#/components/schemas/StateProcessEnum'
889
+ tcp_event:
890
+ oneOf:
891
+ - $ref: '#/components/schemas/TCPEventEnum'
892
+ - $ref: '#/components/schemas/RegionalBusEventEnum'
893
+ nullable: true
894
+ this_stop_sequence:
895
+ type: number
896
+ nullable: true
897
+ this_stop_id:
898
+ type: string
899
+ nullable: true
900
+ last_stop_sequence:
901
+ type: number
902
+ nullable: true
903
+ last_stop_id:
904
+ type: string
905
+ nullable: true
906
+ last_stop_name:
907
+ type: string
908
+ nullable: true
909
+ last_stop_arrival_time:
910
+ type: string
911
+ nullable: true
912
+ format: date-time
913
+ last_stop_departure_time:
914
+ type: string
915
+ nullable: true
916
+ format: date-time
917
+ last_stop_headsign:
918
+ type: string
919
+ nullable: true
920
+ next_stop_sequence:
921
+ type: number
922
+ nullable: true
923
+ next_stop_id:
924
+ type: string
925
+ nullable: true
926
+ next_stop_name:
927
+ type: string
928
+ nullable: true
929
+ next_stop_arrival_time:
930
+ type: string
931
+ nullable: true
932
+ format: date-time
933
+ next_stop_departure_time:
934
+ type: string
935
+ nullable: true
936
+ format: date-time
937
+ valid_to:
938
+ type: string
939
+ nullable: true
940
+ format: date-time
941
+ GTFSRouteTypeEnum:
942
+ type: number
943
+ enum: [0,1,2,3,4,7,11,1700]
944
+ StatePositionEnum:
945
+ type: string
946
+ enum: [off_track,at_stop,on_track,before_track,after_track,canceled,invisible,unknown,before_track_delayed,duplicate,mismatched,not_public]
947
+ StateProcessEnum:
948
+ type: string
949
+ enum: [tcp_input,udp_input,input,processed]
950
+ TCPEventEnum:
951
+ type: string
952
+ enum: [P, O, V, T]
953
+ RegionalBusEventEnum:
954
+ type: string
955
+ enum: [R]
956
+ IPropagateDelayInput:
957
+ type: object
958
+ properties:
959
+ processedPositions:
960
+ type: array
961
+ items:
962
+ $ref: '#/components/schemas/IProcessedPositions'
963
+ trips:
964
+ type: array
965
+ items:
966
+ oneOf:
967
+ - $ref: '#/components/schemas/IUpdateDelayTripsIdsData'
968
+ - $ref: '#/components/schemas/IUpdateDelayRunTripsData'
969
+ IProcessedPositions:
970
+ type: object
971
+ properties:
972
+ context:
973
+ $ref: '#/components/schemas/IVPTripsLastPositionContext'
974
+ positions:
975
+ type: array
976
+ items:
977
+ $ref: '#/components/schemas/IPositionToUpdate'
978
+ IVPTripsLastPositionContext:
979
+ type: object
980
+ properties:
981
+ lastPositionId:
982
+ type: string
983
+ nullable: true
984
+ lastPositionOriginTimestamp:
985
+ type: number
986
+ nullable: true
987
+ lastPositionTracking:
988
+ type: object
989
+ description: All known positions with their properties
990
+ properties:
991
+ type:
992
+ type: string
993
+ example: "FeatureCollection"
994
+ features:
995
+ type: array
996
+ items:
997
+ allOf:
998
+ - $ref: "#/components/schemas/FeaturePoint"
999
+ - type: object
1000
+ properties:
1001
+ properties:
1002
+ $ref: "#/components/schemas/IVPTripsPositionAttributes"
1003
+ required:
1004
+ - type
1005
+ lastPositionCanceled:
1006
+ type: boolean
1007
+ nullable: true
1008
+ lastPositionLastStop:
1009
+ type: object
1010
+ properties:
1011
+ id:
1012
+ type: string
1013
+ nullable: true
1014
+ sequence:
1015
+ type: number
1016
+ nullable: true
1017
+ arrival_time:
1018
+ type: number
1019
+ nullable: true
1020
+ arrival_delay:
1021
+ type: number
1022
+ nullable: true
1023
+ departure_time:
1024
+ type: number
1025
+ nullable: true
1026
+ departure_delay:
1027
+ type: number
1028
+ nullable: true
1029
+ nullable: true
1030
+ lastPositionDelay:
1031
+ type: number
1032
+ nullable: true
1033
+ atStopStreak:
1034
+ $ref: '#/components/schemas/IVPTripsComputedPositionAtStopStreak'
1035
+ lastPositionBeforeTrackDelayed:
1036
+ type: object
1037
+ properties:
1038
+ delay:
1039
+ type: number
1040
+ nullable: true
1041
+ origin_timestamp:
1042
+ type: string
1043
+ format: date-time
1044
+ nullable: true
1045
+ lastPositionState:
1046
+ $ref: '#/components/schemas/StatePositionEnum'
1047
+ nullable: true
1048
+ tripId:
1049
+ type: string
1050
+ required:
1051
+ - tripId
1052
+ IVPTripsComputedPositionAtStopStreak:
1053
+ type: object
1054
+ properties:
1055
+ firstPositionTimestamp:
1056
+ type: number
1057
+ nullable: true
1058
+ firstPositionDelay:
1059
+ type: number
1060
+ nullable: true
1061
+ stop_sequence:
1062
+ type: number
1063
+ nullable: true
1064
+ required: []
1065
+ IPositionToUpdate:
1066
+ type: object
1067
+ properties:
1068
+ state_process:
1069
+ type: string
1070
+ state_position:
1071
+ type: string
1072
+ id:
1073
+ type: string
1074
+ gtfsData:
1075
+ $ref: '#/components/schemas/IComputationTrip'
1076
+ last_stop_headsign:
1077
+ type: string
1078
+ nullable: true
1079
+ this_stop_name:
1080
+ type: string
1081
+ delay_stop_arrival:
1082
+ type: number
1083
+ nullable: true
1084
+ delay_stop_departure:
1085
+ type: number
1086
+ nullable: true
1087
+ IComputationTrip:
1088
+ type: object
1089
+ properties:
1090
+ trip_id:
1091
+ type: string
1092
+ stop_times:
1093
+ type: array
1094
+ items:
1095
+ $ref: '#/components/schemas/IStopTime'
1096
+ shapes_anchor_points:
1097
+ type: array
1098
+ items:
1099
+ $ref: '#/components/schemas/IShapeAnchorPoint'
1100
+ shapes:
1101
+ type: array
1102
+ items:
1103
+ $ref: '#/components/schemas/IComputationTripShape'
1104
+ Shape:
1105
+ type: object
1106
+ properties:
1107
+ shape_dist_traveled:
1108
+ type: number
1109
+ shape_id:
1110
+ type: string
1111
+ shape_pt_lat:
1112
+ type: number
1113
+ shape_pt_lon:
1114
+ type: number
1115
+ shape_pt_sequence:
1116
+ type: number
1117
+
1118
+ Stop:
1119
+ type: object
1120
+ properties:
1121
+ stop_id:
1122
+ type: string
1123
+ stop_lat:
1124
+ type: number
1125
+ stop_lon:
1126
+ type: number
1127
+ stop_name:
1128
+ type: string
1129
+ zone_id:
1130
+ type: string
1131
+ nullable: true
1132
+ wheelchair_boarding:
1133
+ $ref: '#/components/schemas/GtfsStopWheelchairBoardingEnum'
1134
+
1135
+ GtfsStopWheelchairBoardingEnum:
1136
+ type: string
1137
+ enum:
1138
+ - UNKNOWN
1139
+ - ACCESSIBLE
1140
+ - NOT_ACCESSIBLE
1141
+
1142
+ TripWithShapesAndStopTimes:
1143
+ type: object
1144
+ properties:
1145
+ shape_id:
1146
+ type: string
1147
+ shapes:
1148
+ type: array
1149
+ items:
1150
+ $ref: '#/components/schemas/Shape'
1151
+ nullable: true
1152
+ stop_times:
1153
+ type: array
1154
+ items:
1155
+ $ref: '#/components/schemas/IStopTime'
1156
+ nullable: true
1157
+
1158
+ IStopTime:
1159
+ type: object
1160
+ properties:
1161
+ arrival_time_seconds:
1162
+ type: number
1163
+ departure_time_seconds:
1164
+ type: number
1165
+ shape_dist_traveled:
1166
+ type: number
1167
+ stop_id:
1168
+ type: string
1169
+ stop_sequence:
1170
+ type: number
1171
+ stop_headsign:
1172
+ type: string
1173
+ is_no_stop_waypoint:
1174
+ type: boolean
1175
+ stop:
1176
+ $ref: '#/components/schemas/Stop'
1177
+ IShapeAnchorPoint:
1178
+ type: object
1179
+ properties:
1180
+ index:
1181
+ type: number
1182
+ at_stop:
1183
+ type: boolean
1184
+ bearing:
1185
+ type: number
1186
+ coordinates:
1187
+ type: array
1188
+ items:
1189
+ type: number
1190
+ minItems: 2
1191
+ maxItems: 2
1192
+ distance_from_last_stop:
1193
+ type: number
1194
+ last_stop_sequence:
1195
+ type: number
1196
+ next_stop_sequence:
1197
+ type: number
1198
+ shape_dist_traveled:
1199
+ type: number
1200
+ this_stop_sequence:
1201
+ type: number
1202
+ nullable: true
1203
+ time_scheduled_seconds:
1204
+ type: number
1205
+ IComputationTripShape:
1206
+ type: object
1207
+ properties:
1208
+ dist:
1209
+ type: number
1210
+ coords:
1211
+ type: array
1212
+ items:
1213
+ type: number
1214
+ required:
1215
+ - dist
1216
+ - coords
1217
+ ICommonRunsInput:
1218
+ type: object
1219
+ properties:
1220
+ M:
1221
+ $ref: '#/components/schemas/ICommonRunsMessageContent'
1222
+ ICommonRunsMessageContent:
1223
+ type: object
1224
+ properties:
1225
+ V:
1226
+ oneOf:
1227
+ - $ref: '#/components/schemas/ICommonRunsMessagePropertiesWrapper'
1228
+ - type: array
1229
+ items:
1230
+ $ref: '#/components/schemas/ICommonRunsMessagePropertiesWrapper'
1231
+ ICommonRunsMessagePropertiesWrapper:
1232
+ type: object
1233
+ properties:
1234
+ $:
1235
+ $ref: '#/components/schemas/ICommonRunsMessageProperties'
1236
+ ICommonRunsMessageProperties:
1237
+ type: object
1238
+ properties:
1239
+ turnus:
1240
+ type: string
1241
+ line:
1242
+ type: string
1243
+ evc:
1244
+ type: string
1245
+ np:
1246
+ type: string
1247
+ lat:
1248
+ type: string
1249
+ lng:
1250
+ type: string
1251
+ akt:
1252
+ type: string
1253
+ takt:
1254
+ type: string
1255
+ konc:
1256
+ type: string
1257
+ tjr:
1258
+ type: string
1259
+ pkt:
1260
+ type: string
1261
+ tm:
1262
+ type: string
1263
+ events:
1264
+ $ref: '#/components/schemas/TCPEventEnum'
1265
+ ICommonRunsInputElement:
1266
+ type: object
1267
+ properties:
1268
+ data:
1269
+ $ref: '#/components/schemas/ICommonRunsMessagePropertiesWrapper'
1270
+ timestamp:
1271
+ type: string
1272
+ ICommonRunsInputData:
1273
+ type: object
1274
+ properties:
1275
+ data:
1276
+ oneOf:
1277
+ - $ref: '#/components/schemas/ICommonRunsMessagePropertiesWrapper'
1278
+ - type: array
1279
+ items:
1280
+ $ref: '#/components/schemas/ICommonRunsMessagePropertiesWrapper'
1281
+ timestamp:
1282
+ type: number
1283
+ MetroRunsMessageProperties:
1284
+ type: object
1285
+ properties:
1286
+ linka:
1287
+ type: string
1288
+ tm:
1289
+ type: string
1290
+ gvd:
1291
+ type: string
1292
+ required:
1293
+ - linka
1294
+ - tm
1295
+ MetroRunsTrainProperties:
1296
+ type: object
1297
+ properties:
1298
+ csp:
1299
+ type: string
1300
+ csr:
1301
+ type: string
1302
+ cv:
1303
+ type: string
1304
+ ko:
1305
+ type: string
1306
+ odch:
1307
+ type: string
1308
+ required:
1309
+ - csp
1310
+ - csr
1311
+ - cv
1312
+ - ko
1313
+ - odch
1314
+ MetroRunsTrainContent:
1315
+ type: object
1316
+ properties:
1317
+ $:
1318
+ $ref: '#/components/schemas/MetroRunsTrainProperties'
1319
+ MetroRunsMessageContent:
1320
+ type: object
1321
+ properties:
1322
+ $:
1323
+ $ref: '#/components/schemas/MetroRunsMessageProperties'
1324
+ vlak:
1325
+ oneOf:
1326
+ - $ref: '#/components/schemas/MetroRunsTrainContent'
1327
+ - type: array
1328
+ items:
1329
+ $ref: '#/components/schemas/MetroRunsTrainContent'
1330
+ IMetroRunsInput:
1331
+ type: object
1332
+ properties:
1333
+ m:
1334
+ $ref: '#/components/schemas/MetroRunsMessageContent'
1335
+ IRegionalBusRunsInput:
1336
+ type: object
1337
+ properties:
1338
+ M:
1339
+ $ref: '#/components/schemas/IRegionalBusRunsMessageContent'
1340
+
1341
+ IRegionalBusRunsMessageContent:
1342
+ type: object
1343
+ properties:
1344
+ V:
1345
+ oneOf:
1346
+ - $ref: '#/components/schemas/IRegionalBusRunsMessagePropertiesWrapper'
1347
+ - type: array
1348
+ items:
1349
+ $ref: '#/components/schemas/IRegionalBusRunsMessagePropertiesWrapper'
1350
+
1351
+ IRegionalBusRunsMessagePropertiesWrapper:
1352
+ type: object
1353
+ properties:
1354
+ $:
1355
+ $ref: '#/components/schemas/IRegionalBusRunsMessageProperties'
1356
+
1357
+ IRegionalBusRunsMessageProperties:
1358
+ type: object
1359
+ properties:
1360
+ imei:
1361
+ type: string
1362
+ line:
1363
+ type: string
1364
+ conn:
1365
+ type: string
1366
+ events:
1367
+ type: string
1368
+ lat:
1369
+ type: string
1370
+ lng:
1371
+ type: string
1372
+ tm:
1373
+ type: string
1374
+ evc:
1375
+ type: string
1376
+ rych:
1377
+ type: string
1378
+ smer:
1379
+ type: string
1380
+
1381
+ ITransformationInput:
1382
+ type: object
1383
+ properties:
1384
+ messages:
1385
+ type: array
1386
+ items:
1387
+ $ref: '#/components/schemas/IRegionalBusRunsMessagePropertiesWrapper'
1388
+ timestamp:
1389
+ type: number
1390
+ IProcessRegionalBusRunMessage:
1391
+ type: object
1392
+ properties:
1393
+ cis_line_id:
1394
+ type: string
1395
+ cis_trip_number:
1396
+ type: number
1397
+ registration_number:
1398
+ type: number
1399
+ required:
1400
+ - cis_line_id
1401
+ - cis_trip_number
1402
+ - registration_number
1403
+ IProcessRegionalBusRunMessagesInput:
1404
+ type: object
1405
+ properties:
1406
+ messages:
1407
+ type: array
1408
+ items:
1409
+ $ref: '#/components/schemas/IProcessRegionalBusRunMessage'
1410
+ required:
1411
+ - messages
1412
+ IProcessMetroRunsMessage:
1413
+ $ref: '#/components/schemas/IProcessMetroRunsMessage'
1414
+
1415
+ IProcessMetroRunsMessagesInput:
1416
+ type: object
1417
+ properties:
1418
+ routeName:
1419
+ type: string
1420
+ messages:
1421
+ type: array
1422
+ items:
1423
+ $ref: '#/components/schemas/IProcessMetroRunsMessage'
1424
+ IMetroRunsMessagesModel:
1425
+ type: object
1426
+ properties:
1427
+ route_name:
1428
+ type: string
1429
+ message_timestamp:
1430
+ type: string
1431
+ format: date-time
1432
+ train_set_number_scheduled:
1433
+ type: string
1434
+ train_set_number_real:
1435
+ type: string
1436
+ train_number:
1437
+ type: string
1438
+ track_id:
1439
+ type: string
1440
+ delay_origin:
1441
+ type: number
1442
+ actual_position_timestamp_scheduled:
1443
+ type: string
1444
+ format: date-time
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/pid",
3
- "version": "2.13.10-dev.1329140823",
3
+ "version": "2.13.10-dev.1332849848",
4
4
  "description": "Golemio PID Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",