ojp-shared-types 0.1.3 → 0.1.4

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/README.md CHANGED
@@ -14,7 +14,7 @@ Notes
14
14
  - include the `ojp-shared-types` package in the `./package.json` dependencies of the project
15
15
  ```
16
16
  "dependencies": {
17
- "ojp-shared-types": "0.1.3"
17
+ "ojp-shared-types": "0.1.4"
18
18
  }
19
19
  ```
20
20
 
package/dist/index.cjs CHANGED
@@ -26,7 +26,7 @@ __export(index_exports, {
26
26
  module.exports = __toCommonJS(index_exports);
27
27
 
28
28
  // src/constants.ts
29
- var VERSION = "0.1.3";
29
+ var VERSION = "0.1.4";
30
30
 
31
31
  // src/types/openapi-dependencies.ts
32
32
  var MapNS_Tags = {
@@ -167,14 +167,16 @@ var MapArrayTags = {
167
167
  "OJPTripRefineDelivery.tripResult": true
168
168
  };
169
169
  var MapLegacyArrayTags = {
170
- // OJP v1
171
170
  "places.location": true,
171
+ "trip.tripLeg": true,
172
172
  // PtSituation OJP v1
173
173
  "callAtStop.situationFullRef": true,
174
174
  "ptSituation.description": true,
175
175
  "ptSituation.detail": true,
176
176
  "stopPoints.affectedStopPoint": true,
177
177
  "vehicleJourneys.affectedVehicleJourney": true,
178
+ // in OJPv1 there is no <SituationFullRefs> wrapper, the <SituationFullRef> are directly under <Service>
179
+ "service.situationFullRef": true,
178
180
  "timedLeg.legIntermediates": true,
179
181
  "OJPLocationInformationDelivery.location": true,
180
182
  "location.mode": true,
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- declare const VERSION = "0.1.3";
1
+ declare const VERSION = "0.1.4";
2
2
 
3
3
  interface components$k {
4
4
  schemas: {
@@ -1183,6 +1183,10 @@ interface components$j {
1183
1183
  unplanned?: boolean;
1184
1184
  cancelled?: boolean;
1185
1185
  deviation?: boolean;
1186
+ situationFullRef?: {
1187
+ participantRef: string;
1188
+ situationNumber: string;
1189
+ }[];
1186
1190
  };
1187
1191
  Location: {
1188
1192
  stopPoint?: {
@@ -1314,10 +1318,6 @@ interface components$j {
1314
1318
  /** @enum {string} */
1315
1319
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
1316
1320
  }[];
1317
- situationFullRef?: {
1318
- participantRef: string;
1319
- situationNumber: string;
1320
- }[];
1321
1321
  };
1322
1322
  CallAtNearStop: {
1323
1323
  callAtStop: {
@@ -1354,10 +1354,6 @@ interface components$j {
1354
1354
  /** @enum {string} */
1355
1355
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
1356
1356
  }[];
1357
- situationFullRef?: {
1358
- participantRef: string;
1359
- situationNumber: string;
1360
- }[];
1361
1357
  };
1362
1358
  };
1363
1359
  PlaceContext: {
@@ -3753,10 +3749,6 @@ interface components$b {
3753
3749
  /** @enum {string} */
3754
3750
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
3755
3751
  }[];
3756
- situationFullRef?: {
3757
- participantRef: string;
3758
- situationNumber: string;
3759
- }[];
3760
3752
  };
3761
3753
  }[];
3762
3754
  thisCall: {
@@ -3794,10 +3786,6 @@ interface components$b {
3794
3786
  /** @enum {string} */
3795
3787
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
3796
3788
  }[];
3797
- situationFullRef?: {
3798
- participantRef: string;
3799
- situationNumber: string;
3800
- }[];
3801
3789
  };
3802
3790
  };
3803
3791
  onwardCall: {
@@ -3835,10 +3823,6 @@ interface components$b {
3835
3823
  /** @enum {string} */
3836
3824
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
3837
3825
  }[];
3838
- situationFullRef?: {
3839
- participantRef: string;
3840
- situationNumber: string;
3841
- }[];
3842
3826
  };
3843
3827
  }[];
3844
3828
  service: {
@@ -3897,6 +3881,10 @@ interface components$b {
3897
3881
  unplanned?: boolean;
3898
3882
  cancelled?: boolean;
3899
3883
  deviation?: boolean;
3884
+ situationFullRef?: {
3885
+ participantRef: string;
3886
+ situationNumber: string;
3887
+ }[];
3900
3888
  };
3901
3889
  operatingDays?: {
3902
3890
  from: string;
@@ -3953,10 +3941,6 @@ interface components$b {
3953
3941
  /** @enum {string} */
3954
3942
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
3955
3943
  }[];
3956
- situationFullRef?: {
3957
- participantRef: string;
3958
- situationNumber: string;
3959
- }[];
3960
3944
  };
3961
3945
  }[];
3962
3946
  thisCall: {
@@ -3994,10 +3978,6 @@ interface components$b {
3994
3978
  /** @enum {string} */
3995
3979
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
3996
3980
  }[];
3997
- situationFullRef?: {
3998
- participantRef: string;
3999
- situationNumber: string;
4000
- }[];
4001
3981
  };
4002
3982
  };
4003
3983
  onwardCall: {
@@ -4035,10 +4015,6 @@ interface components$b {
4035
4015
  /** @enum {string} */
4036
4016
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4037
4017
  }[];
4038
- situationFullRef?: {
4039
- participantRef: string;
4040
- situationNumber: string;
4041
- }[];
4042
4018
  };
4043
4019
  }[];
4044
4020
  service: {
@@ -4097,6 +4073,10 @@ interface components$b {
4097
4073
  unplanned?: boolean;
4098
4074
  cancelled?: boolean;
4099
4075
  deviation?: boolean;
4076
+ situationFullRef?: {
4077
+ participantRef: string;
4078
+ situationNumber: string;
4079
+ }[];
4100
4080
  };
4101
4081
  operatingDays?: {
4102
4082
  from: string;
@@ -4293,10 +4273,6 @@ interface components$b {
4293
4273
  /** @enum {string} */
4294
4274
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4295
4275
  }[];
4296
- situationFullRef?: {
4297
- participantRef: string;
4298
- situationNumber: string;
4299
- }[];
4300
4276
  };
4301
4277
  }[];
4302
4278
  thisCall: {
@@ -4334,10 +4310,6 @@ interface components$b {
4334
4310
  /** @enum {string} */
4335
4311
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4336
4312
  }[];
4337
- situationFullRef?: {
4338
- participantRef: string;
4339
- situationNumber: string;
4340
- }[];
4341
4313
  };
4342
4314
  };
4343
4315
  onwardCall: {
@@ -4375,10 +4347,6 @@ interface components$b {
4375
4347
  /** @enum {string} */
4376
4348
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4377
4349
  }[];
4378
- situationFullRef?: {
4379
- participantRef: string;
4380
- situationNumber: string;
4381
- }[];
4382
4350
  };
4383
4351
  }[];
4384
4352
  service: {
@@ -4437,6 +4405,10 @@ interface components$b {
4437
4405
  unplanned?: boolean;
4438
4406
  cancelled?: boolean;
4439
4407
  deviation?: boolean;
4408
+ situationFullRef?: {
4409
+ participantRef: string;
4410
+ situationNumber: string;
4411
+ }[];
4440
4412
  };
4441
4413
  operatingDays?: {
4442
4414
  from: string;
@@ -4639,10 +4611,6 @@ interface components$b {
4639
4611
  /** @enum {string} */
4640
4612
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4641
4613
  }[];
4642
- situationFullRef?: {
4643
- participantRef: string;
4644
- situationNumber: string;
4645
- }[];
4646
4614
  };
4647
4615
  }[];
4648
4616
  thisCall: {
@@ -4680,10 +4648,6 @@ interface components$b {
4680
4648
  /** @enum {string} */
4681
4649
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4682
4650
  }[];
4683
- situationFullRef?: {
4684
- participantRef: string;
4685
- situationNumber: string;
4686
- }[];
4687
4651
  };
4688
4652
  };
4689
4653
  onwardCall: {
@@ -4721,10 +4685,6 @@ interface components$b {
4721
4685
  /** @enum {string} */
4722
4686
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4723
4687
  }[];
4724
- situationFullRef?: {
4725
- participantRef: string;
4726
- situationNumber: string;
4727
- }[];
4728
4688
  };
4729
4689
  }[];
4730
4690
  service: {
@@ -4783,6 +4743,10 @@ interface components$b {
4783
4743
  unplanned?: boolean;
4784
4744
  cancelled?: boolean;
4785
4745
  deviation?: boolean;
4746
+ situationFullRef?: {
4747
+ participantRef: string;
4748
+ situationNumber: string;
4749
+ }[];
4786
4750
  };
4787
4751
  operatingDays?: {
4788
4752
  from: string;
@@ -5864,6 +5828,10 @@ interface components$8 {
5864
5828
  unplanned?: boolean;
5865
5829
  cancelled?: boolean;
5866
5830
  deviation?: boolean;
5831
+ situationFullRef?: {
5832
+ participantRef: string;
5833
+ situationNumber: string;
5834
+ }[];
5867
5835
  };
5868
5836
  journeyTrack?: {
5869
5837
  trackSection: {
@@ -6178,6 +6146,10 @@ interface components$8 {
6178
6146
  unplanned?: boolean;
6179
6147
  cancelled?: boolean;
6180
6148
  deviation?: boolean;
6149
+ situationFullRef?: {
6150
+ participantRef: string;
6151
+ situationNumber: string;
6152
+ }[];
6181
6153
  };
6182
6154
  journeyTrack?: {
6183
6155
  trackSection: {
@@ -6498,6 +6470,10 @@ interface components$8 {
6498
6470
  unplanned?: boolean;
6499
6471
  cancelled?: boolean;
6500
6472
  deviation?: boolean;
6473
+ situationFullRef?: {
6474
+ participantRef: string;
6475
+ situationNumber: string;
6476
+ }[];
6501
6477
  };
6502
6478
  journeyTrack?: {
6503
6479
  trackSection: {
@@ -10329,6 +10305,10 @@ interface components$4 {
10329
10305
  unplanned?: boolean;
10330
10306
  cancelled?: boolean;
10331
10307
  deviation?: boolean;
10308
+ situationFullRef?: {
10309
+ participantRef: string;
10310
+ situationNumber: string;
10311
+ }[];
10332
10312
  };
10333
10313
  legTrack?: {
10334
10314
  trackSection: {
@@ -10727,6 +10707,10 @@ interface components$4 {
10727
10707
  unplanned?: boolean;
10728
10708
  cancelled?: boolean;
10729
10709
  deviation?: boolean;
10710
+ situationFullRef?: {
10711
+ participantRef: string;
10712
+ situationNumber: string;
10713
+ }[];
10730
10714
  };
10731
10715
  legTrack?: {
10732
10716
  trackSection: {
@@ -11134,6 +11118,10 @@ interface components$4 {
11134
11118
  unplanned?: boolean;
11135
11119
  cancelled?: boolean;
11136
11120
  deviation?: boolean;
11121
+ situationFullRef?: {
11122
+ participantRef: string;
11123
+ situationNumber: string;
11124
+ }[];
11137
11125
  };
11138
11126
  legTrack?: {
11139
11127
  trackSection: {
@@ -11544,6 +11532,10 @@ interface components$4 {
11544
11532
  unplanned?: boolean;
11545
11533
  cancelled?: boolean;
11546
11534
  deviation?: boolean;
11535
+ situationFullRef?: {
11536
+ participantRef: string;
11537
+ situationNumber: string;
11538
+ }[];
11547
11539
  };
11548
11540
  legTrack?: {
11549
11541
  trackSection: {
@@ -12094,6 +12086,10 @@ interface components$4 {
12094
12086
  unplanned?: boolean;
12095
12087
  cancelled?: boolean;
12096
12088
  deviation?: boolean;
12089
+ situationFullRef?: {
12090
+ participantRef: string;
12091
+ situationNumber: string;
12092
+ }[];
12097
12093
  };
12098
12094
  legTrack?: {
12099
12095
  trackSection: {
@@ -12650,6 +12646,10 @@ interface components$4 {
12650
12646
  unplanned?: boolean;
12651
12647
  cancelled?: boolean;
12652
12648
  deviation?: boolean;
12649
+ situationFullRef?: {
12650
+ participantRef: string;
12651
+ situationNumber: string;
12652
+ }[];
12653
12653
  };
12654
12654
  legTrack?: {
12655
12655
  trackSection: {
@@ -15150,6 +15150,10 @@ interface components$1 {
15150
15150
  unplanned?: boolean;
15151
15151
  cancelled?: boolean;
15152
15152
  deviation?: boolean;
15153
+ situationFullRef?: {
15154
+ participantRef: string;
15155
+ situationNumber: string;
15156
+ }[];
15153
15157
  };
15154
15158
  legTrack?: {
15155
15159
  trackSection: {
@@ -15598,6 +15602,10 @@ interface components$1 {
15598
15602
  unplanned?: boolean;
15599
15603
  cancelled?: boolean;
15600
15604
  deviation?: boolean;
15605
+ situationFullRef?: {
15606
+ participantRef: string;
15607
+ situationNumber: string;
15608
+ }[];
15601
15609
  };
15602
15610
  legTrack?: {
15603
15611
  trackSection: {
@@ -16029,6 +16037,10 @@ interface components$1 {
16029
16037
  unplanned?: boolean;
16030
16038
  cancelled?: boolean;
16031
16039
  deviation?: boolean;
16040
+ situationFullRef?: {
16041
+ participantRef: string;
16042
+ situationNumber: string;
16043
+ }[];
16032
16044
  };
16033
16045
  legTrack?: {
16034
16046
  trackSection: {
@@ -16468,6 +16480,10 @@ interface components$1 {
16468
16480
  unplanned?: boolean;
16469
16481
  cancelled?: boolean;
16470
16482
  deviation?: boolean;
16483
+ situationFullRef?: {
16484
+ participantRef: string;
16485
+ situationNumber: string;
16486
+ }[];
16471
16487
  };
16472
16488
  legTrack?: {
16473
16489
  trackSection: {
@@ -16890,6 +16906,7 @@ type LinkProjectionSchema = components$k['schemas']['LinkProjection'];
16890
16906
  type ContinuousServiceSchema = components$k['schemas']['ContinuousServiceStructure'];
16891
16907
  type PtSituationElement = components$k['schemas']['PtSituationElementStructure'];
16892
16908
  type OJPv1_PtSituationElement = components$j['schemas']['PtSituationElementStructure'];
16909
+ type PtSituationFullRefSchema = components$k['schemas']['SituationFullRefStructure'];
16893
16910
  type ServiceArrivalDepartureSchema = components$k['schemas']['SharedServiceArrivalDeparture'];
16894
16911
  type TripRequestOJP = components$7["schemas"]["OJP"];
16895
16912
  type TripParamsSchema = components$7["schemas"]["TripParam"];
@@ -16968,4 +16985,4 @@ declare const OpenAPI_Dependencies: {
16968
16985
  readonly MapStringValues: Record<string, boolean>;
16969
16986
  };
16970
16987
 
16971
- export { type AddressSchema, type CallAtStopSchema, type ContinuousLegSchema, type ContinuousServiceSchema, type DatedJourneySchema, type ExpectedDepartureOccupancySchema, type FareClassEnum, type FareDeliverySchema, type FareRequestOJP, type FareRequestParamsSchema, type FareRequestSchema, type FareRequestsSchema, type FareResponseOJP, type FareResultSchema, type GeneralAttributeSchema, type GeoPositionSchema, type GeoRestrictionsSchema, type IndividualTransportOptionSchema, type InitialInputSchema, type InternationalTextSchema, type LIR_RequestParamsSchema, type LegSchema, type LegTrackSchema, type LinkProjectionSchema, type LocationInformationDeliverySchema, type LocationInformationRequestOJP, type LocationInformationRequestResponseOJP, type LocationInformationRequestSchema, type ModeFilterSchema, type ModeStructureSchema, type OJPv1_DatedJourneySchema, type OJPv1_GeneralAttributeSchema, type OJPv1_InitialInputSchema, type OJPv1_LocationInformationDeliverySchema, type OJPv1_LocationInformationRequestOJP, type OJPv1_LocationInformationRequestResponseOJP, type OJPv1_LocationInformationRequestSchema, type OJPv1_LocationResultSchema, type OJPv1_LocationSchema, type OJPv1_PathGuidanceSectionSchema, type OJPv1_PlaceContextSchema, type OJPv1_PlaceRefSchema, type OJPv1_PointOfInterestSchema, type OJPv1_PtSituationElement, type OJPv1_ResponseContextSchema, type OJPv1_StopEventDeliverySchema, type OJPv1_StopEventRequestOJP, type OJPv1_StopEventRequestSchema, type OJPv1_StopEventResponseOJP, type OJPv1_StopEventResultSchema, type OJPv1_TimedLegSchema, type OJPv1_TrackSectionSchema, type OJPv1_TripDeliverySchema, type OJPv1_TripInfoDeliverySchema, type OJPv1_TripInfoResponseOJP, type OJPv1_TripInfoResultStructureSchema, type OJPv1_TripLegSchema, type OJPv1_TripParamsSchema, type OJPv1_TripRequestOJP, type OJPv1_TripRequestResponseOJP, type OJPv1_TripRequestSchema, type OJPv1_TripResultSchema, type OJPv1_TripSchema, type OJPv1_ViaPointSchema, type OccupancyLevelEnum, OpenAPI_Dependencies, type OptimisationMethodEnum, type PathGuidanceSectionSchema, type PersonalModesEnum, type PlaceContextSchema, type PlaceRefSchema, type PlaceResultSchema, type PlaceSchema, type PlaceTypeEnum, type PointOfInterestSchema, type ProductCategorySchema, type PtSituationElement, type RailSubmodeEnum, type ResponseContextSchema, type SER_RequestLocationSchema, type SER_RequestOJP, type SER_RequestParamsSchema, type ServiceArrivalDepartureSchema, type StopEventDeliverySchema, type StopEventRequestResponseOJP, type StopEventRequestSchema, type StopEventResultSchema, type StopEventSchema, type StopPlaceSchema, type StopPointSchema, type TIR_RequestOJP, type TIR_RequestParamsSchema, type TIR_RequestSchema, type TRR_DeliverySchema, type TRR_RequestOJP, type TRR_RequestParamsSchema, type TRR_RequestSchema, type TRR_ResponseOJP, type TimedLegSchema, type TopographicPlaceSchema, type TrackSectionSchema, type TransferLegSchema, type TransferTypeEnum, type TripDeliverySchema, type TripInfoDeliverySchema, type TripInfoResponseOJP, type TripInfoResultStructureSchema, type TripParamsSchema, type TripRequestOJP, type TripRequestResponseOJP, type TripRequestSchema, type TripResultSchema, type TripSchema, type UseRealtimeDataEnum, VERSION, type VehicleModesOfTransportEnum, type ViaPointSchema };
16988
+ export { type AddressSchema, type CallAtStopSchema, type ContinuousLegSchema, type ContinuousServiceSchema, type DatedJourneySchema, type ExpectedDepartureOccupancySchema, type FareClassEnum, type FareDeliverySchema, type FareRequestOJP, type FareRequestParamsSchema, type FareRequestSchema, type FareRequestsSchema, type FareResponseOJP, type FareResultSchema, type GeneralAttributeSchema, type GeoPositionSchema, type GeoRestrictionsSchema, type IndividualTransportOptionSchema, type InitialInputSchema, type InternationalTextSchema, type LIR_RequestParamsSchema, type LegSchema, type LegTrackSchema, type LinkProjectionSchema, type LocationInformationDeliverySchema, type LocationInformationRequestOJP, type LocationInformationRequestResponseOJP, type LocationInformationRequestSchema, type ModeFilterSchema, type ModeStructureSchema, type OJPv1_DatedJourneySchema, type OJPv1_GeneralAttributeSchema, type OJPv1_InitialInputSchema, type OJPv1_LocationInformationDeliverySchema, type OJPv1_LocationInformationRequestOJP, type OJPv1_LocationInformationRequestResponseOJP, type OJPv1_LocationInformationRequestSchema, type OJPv1_LocationResultSchema, type OJPv1_LocationSchema, type OJPv1_PathGuidanceSectionSchema, type OJPv1_PlaceContextSchema, type OJPv1_PlaceRefSchema, type OJPv1_PointOfInterestSchema, type OJPv1_PtSituationElement, type OJPv1_ResponseContextSchema, type OJPv1_StopEventDeliverySchema, type OJPv1_StopEventRequestOJP, type OJPv1_StopEventRequestSchema, type OJPv1_StopEventResponseOJP, type OJPv1_StopEventResultSchema, type OJPv1_TimedLegSchema, type OJPv1_TrackSectionSchema, type OJPv1_TripDeliverySchema, type OJPv1_TripInfoDeliverySchema, type OJPv1_TripInfoResponseOJP, type OJPv1_TripInfoResultStructureSchema, type OJPv1_TripLegSchema, type OJPv1_TripParamsSchema, type OJPv1_TripRequestOJP, type OJPv1_TripRequestResponseOJP, type OJPv1_TripRequestSchema, type OJPv1_TripResultSchema, type OJPv1_TripSchema, type OJPv1_ViaPointSchema, type OccupancyLevelEnum, OpenAPI_Dependencies, type OptimisationMethodEnum, type PathGuidanceSectionSchema, type PersonalModesEnum, type PlaceContextSchema, type PlaceRefSchema, type PlaceResultSchema, type PlaceSchema, type PlaceTypeEnum, type PointOfInterestSchema, type ProductCategorySchema, type PtSituationElement, type PtSituationFullRefSchema, type RailSubmodeEnum, type ResponseContextSchema, type SER_RequestLocationSchema, type SER_RequestOJP, type SER_RequestParamsSchema, type ServiceArrivalDepartureSchema, type StopEventDeliverySchema, type StopEventRequestResponseOJP, type StopEventRequestSchema, type StopEventResultSchema, type StopEventSchema, type StopPlaceSchema, type StopPointSchema, type TIR_RequestOJP, type TIR_RequestParamsSchema, type TIR_RequestSchema, type TRR_DeliverySchema, type TRR_RequestOJP, type TRR_RequestParamsSchema, type TRR_RequestSchema, type TRR_ResponseOJP, type TimedLegSchema, type TopographicPlaceSchema, type TrackSectionSchema, type TransferLegSchema, type TransferTypeEnum, type TripDeliverySchema, type TripInfoDeliverySchema, type TripInfoResponseOJP, type TripInfoResultStructureSchema, type TripParamsSchema, type TripRequestOJP, type TripRequestResponseOJP, type TripRequestSchema, type TripResultSchema, type TripSchema, type UseRealtimeDataEnum, VERSION, type VehicleModesOfTransportEnum, type ViaPointSchema };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare const VERSION = "0.1.3";
1
+ declare const VERSION = "0.1.4";
2
2
 
3
3
  interface components$k {
4
4
  schemas: {
@@ -1183,6 +1183,10 @@ interface components$j {
1183
1183
  unplanned?: boolean;
1184
1184
  cancelled?: boolean;
1185
1185
  deviation?: boolean;
1186
+ situationFullRef?: {
1187
+ participantRef: string;
1188
+ situationNumber: string;
1189
+ }[];
1186
1190
  };
1187
1191
  Location: {
1188
1192
  stopPoint?: {
@@ -1314,10 +1318,6 @@ interface components$j {
1314
1318
  /** @enum {string} */
1315
1319
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
1316
1320
  }[];
1317
- situationFullRef?: {
1318
- participantRef: string;
1319
- situationNumber: string;
1320
- }[];
1321
1321
  };
1322
1322
  CallAtNearStop: {
1323
1323
  callAtStop: {
@@ -1354,10 +1354,6 @@ interface components$j {
1354
1354
  /** @enum {string} */
1355
1355
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
1356
1356
  }[];
1357
- situationFullRef?: {
1358
- participantRef: string;
1359
- situationNumber: string;
1360
- }[];
1361
1357
  };
1362
1358
  };
1363
1359
  PlaceContext: {
@@ -3753,10 +3749,6 @@ interface components$b {
3753
3749
  /** @enum {string} */
3754
3750
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
3755
3751
  }[];
3756
- situationFullRef?: {
3757
- participantRef: string;
3758
- situationNumber: string;
3759
- }[];
3760
3752
  };
3761
3753
  }[];
3762
3754
  thisCall: {
@@ -3794,10 +3786,6 @@ interface components$b {
3794
3786
  /** @enum {string} */
3795
3787
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
3796
3788
  }[];
3797
- situationFullRef?: {
3798
- participantRef: string;
3799
- situationNumber: string;
3800
- }[];
3801
3789
  };
3802
3790
  };
3803
3791
  onwardCall: {
@@ -3835,10 +3823,6 @@ interface components$b {
3835
3823
  /** @enum {string} */
3836
3824
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
3837
3825
  }[];
3838
- situationFullRef?: {
3839
- participantRef: string;
3840
- situationNumber: string;
3841
- }[];
3842
3826
  };
3843
3827
  }[];
3844
3828
  service: {
@@ -3897,6 +3881,10 @@ interface components$b {
3897
3881
  unplanned?: boolean;
3898
3882
  cancelled?: boolean;
3899
3883
  deviation?: boolean;
3884
+ situationFullRef?: {
3885
+ participantRef: string;
3886
+ situationNumber: string;
3887
+ }[];
3900
3888
  };
3901
3889
  operatingDays?: {
3902
3890
  from: string;
@@ -3953,10 +3941,6 @@ interface components$b {
3953
3941
  /** @enum {string} */
3954
3942
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
3955
3943
  }[];
3956
- situationFullRef?: {
3957
- participantRef: string;
3958
- situationNumber: string;
3959
- }[];
3960
3944
  };
3961
3945
  }[];
3962
3946
  thisCall: {
@@ -3994,10 +3978,6 @@ interface components$b {
3994
3978
  /** @enum {string} */
3995
3979
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
3996
3980
  }[];
3997
- situationFullRef?: {
3998
- participantRef: string;
3999
- situationNumber: string;
4000
- }[];
4001
3981
  };
4002
3982
  };
4003
3983
  onwardCall: {
@@ -4035,10 +4015,6 @@ interface components$b {
4035
4015
  /** @enum {string} */
4036
4016
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4037
4017
  }[];
4038
- situationFullRef?: {
4039
- participantRef: string;
4040
- situationNumber: string;
4041
- }[];
4042
4018
  };
4043
4019
  }[];
4044
4020
  service: {
@@ -4097,6 +4073,10 @@ interface components$b {
4097
4073
  unplanned?: boolean;
4098
4074
  cancelled?: boolean;
4099
4075
  deviation?: boolean;
4076
+ situationFullRef?: {
4077
+ participantRef: string;
4078
+ situationNumber: string;
4079
+ }[];
4100
4080
  };
4101
4081
  operatingDays?: {
4102
4082
  from: string;
@@ -4293,10 +4273,6 @@ interface components$b {
4293
4273
  /** @enum {string} */
4294
4274
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4295
4275
  }[];
4296
- situationFullRef?: {
4297
- participantRef: string;
4298
- situationNumber: string;
4299
- }[];
4300
4276
  };
4301
4277
  }[];
4302
4278
  thisCall: {
@@ -4334,10 +4310,6 @@ interface components$b {
4334
4310
  /** @enum {string} */
4335
4311
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4336
4312
  }[];
4337
- situationFullRef?: {
4338
- participantRef: string;
4339
- situationNumber: string;
4340
- }[];
4341
4313
  };
4342
4314
  };
4343
4315
  onwardCall: {
@@ -4375,10 +4347,6 @@ interface components$b {
4375
4347
  /** @enum {string} */
4376
4348
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4377
4349
  }[];
4378
- situationFullRef?: {
4379
- participantRef: string;
4380
- situationNumber: string;
4381
- }[];
4382
4350
  };
4383
4351
  }[];
4384
4352
  service: {
@@ -4437,6 +4405,10 @@ interface components$b {
4437
4405
  unplanned?: boolean;
4438
4406
  cancelled?: boolean;
4439
4407
  deviation?: boolean;
4408
+ situationFullRef?: {
4409
+ participantRef: string;
4410
+ situationNumber: string;
4411
+ }[];
4440
4412
  };
4441
4413
  operatingDays?: {
4442
4414
  from: string;
@@ -4639,10 +4611,6 @@ interface components$b {
4639
4611
  /** @enum {string} */
4640
4612
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4641
4613
  }[];
4642
- situationFullRef?: {
4643
- participantRef: string;
4644
- situationNumber: string;
4645
- }[];
4646
4614
  };
4647
4615
  }[];
4648
4616
  thisCall: {
@@ -4680,10 +4648,6 @@ interface components$b {
4680
4648
  /** @enum {string} */
4681
4649
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4682
4650
  }[];
4683
- situationFullRef?: {
4684
- participantRef: string;
4685
- situationNumber: string;
4686
- }[];
4687
4651
  };
4688
4652
  };
4689
4653
  onwardCall: {
@@ -4721,10 +4685,6 @@ interface components$b {
4721
4685
  /** @enum {string} */
4722
4686
  occupancyLevel: "unknown" | "empty" | "manySeatsAvailable" | "fewSeatsAvailable" | "standingRoomOnly";
4723
4687
  }[];
4724
- situationFullRef?: {
4725
- participantRef: string;
4726
- situationNumber: string;
4727
- }[];
4728
4688
  };
4729
4689
  }[];
4730
4690
  service: {
@@ -4783,6 +4743,10 @@ interface components$b {
4783
4743
  unplanned?: boolean;
4784
4744
  cancelled?: boolean;
4785
4745
  deviation?: boolean;
4746
+ situationFullRef?: {
4747
+ participantRef: string;
4748
+ situationNumber: string;
4749
+ }[];
4786
4750
  };
4787
4751
  operatingDays?: {
4788
4752
  from: string;
@@ -5864,6 +5828,10 @@ interface components$8 {
5864
5828
  unplanned?: boolean;
5865
5829
  cancelled?: boolean;
5866
5830
  deviation?: boolean;
5831
+ situationFullRef?: {
5832
+ participantRef: string;
5833
+ situationNumber: string;
5834
+ }[];
5867
5835
  };
5868
5836
  journeyTrack?: {
5869
5837
  trackSection: {
@@ -6178,6 +6146,10 @@ interface components$8 {
6178
6146
  unplanned?: boolean;
6179
6147
  cancelled?: boolean;
6180
6148
  deviation?: boolean;
6149
+ situationFullRef?: {
6150
+ participantRef: string;
6151
+ situationNumber: string;
6152
+ }[];
6181
6153
  };
6182
6154
  journeyTrack?: {
6183
6155
  trackSection: {
@@ -6498,6 +6470,10 @@ interface components$8 {
6498
6470
  unplanned?: boolean;
6499
6471
  cancelled?: boolean;
6500
6472
  deviation?: boolean;
6473
+ situationFullRef?: {
6474
+ participantRef: string;
6475
+ situationNumber: string;
6476
+ }[];
6501
6477
  };
6502
6478
  journeyTrack?: {
6503
6479
  trackSection: {
@@ -10329,6 +10305,10 @@ interface components$4 {
10329
10305
  unplanned?: boolean;
10330
10306
  cancelled?: boolean;
10331
10307
  deviation?: boolean;
10308
+ situationFullRef?: {
10309
+ participantRef: string;
10310
+ situationNumber: string;
10311
+ }[];
10332
10312
  };
10333
10313
  legTrack?: {
10334
10314
  trackSection: {
@@ -10727,6 +10707,10 @@ interface components$4 {
10727
10707
  unplanned?: boolean;
10728
10708
  cancelled?: boolean;
10729
10709
  deviation?: boolean;
10710
+ situationFullRef?: {
10711
+ participantRef: string;
10712
+ situationNumber: string;
10713
+ }[];
10730
10714
  };
10731
10715
  legTrack?: {
10732
10716
  trackSection: {
@@ -11134,6 +11118,10 @@ interface components$4 {
11134
11118
  unplanned?: boolean;
11135
11119
  cancelled?: boolean;
11136
11120
  deviation?: boolean;
11121
+ situationFullRef?: {
11122
+ participantRef: string;
11123
+ situationNumber: string;
11124
+ }[];
11137
11125
  };
11138
11126
  legTrack?: {
11139
11127
  trackSection: {
@@ -11544,6 +11532,10 @@ interface components$4 {
11544
11532
  unplanned?: boolean;
11545
11533
  cancelled?: boolean;
11546
11534
  deviation?: boolean;
11535
+ situationFullRef?: {
11536
+ participantRef: string;
11537
+ situationNumber: string;
11538
+ }[];
11547
11539
  };
11548
11540
  legTrack?: {
11549
11541
  trackSection: {
@@ -12094,6 +12086,10 @@ interface components$4 {
12094
12086
  unplanned?: boolean;
12095
12087
  cancelled?: boolean;
12096
12088
  deviation?: boolean;
12089
+ situationFullRef?: {
12090
+ participantRef: string;
12091
+ situationNumber: string;
12092
+ }[];
12097
12093
  };
12098
12094
  legTrack?: {
12099
12095
  trackSection: {
@@ -12650,6 +12646,10 @@ interface components$4 {
12650
12646
  unplanned?: boolean;
12651
12647
  cancelled?: boolean;
12652
12648
  deviation?: boolean;
12649
+ situationFullRef?: {
12650
+ participantRef: string;
12651
+ situationNumber: string;
12652
+ }[];
12653
12653
  };
12654
12654
  legTrack?: {
12655
12655
  trackSection: {
@@ -15150,6 +15150,10 @@ interface components$1 {
15150
15150
  unplanned?: boolean;
15151
15151
  cancelled?: boolean;
15152
15152
  deviation?: boolean;
15153
+ situationFullRef?: {
15154
+ participantRef: string;
15155
+ situationNumber: string;
15156
+ }[];
15153
15157
  };
15154
15158
  legTrack?: {
15155
15159
  trackSection: {
@@ -15598,6 +15602,10 @@ interface components$1 {
15598
15602
  unplanned?: boolean;
15599
15603
  cancelled?: boolean;
15600
15604
  deviation?: boolean;
15605
+ situationFullRef?: {
15606
+ participantRef: string;
15607
+ situationNumber: string;
15608
+ }[];
15601
15609
  };
15602
15610
  legTrack?: {
15603
15611
  trackSection: {
@@ -16029,6 +16037,10 @@ interface components$1 {
16029
16037
  unplanned?: boolean;
16030
16038
  cancelled?: boolean;
16031
16039
  deviation?: boolean;
16040
+ situationFullRef?: {
16041
+ participantRef: string;
16042
+ situationNumber: string;
16043
+ }[];
16032
16044
  };
16033
16045
  legTrack?: {
16034
16046
  trackSection: {
@@ -16468,6 +16480,10 @@ interface components$1 {
16468
16480
  unplanned?: boolean;
16469
16481
  cancelled?: boolean;
16470
16482
  deviation?: boolean;
16483
+ situationFullRef?: {
16484
+ participantRef: string;
16485
+ situationNumber: string;
16486
+ }[];
16471
16487
  };
16472
16488
  legTrack?: {
16473
16489
  trackSection: {
@@ -16890,6 +16906,7 @@ type LinkProjectionSchema = components$k['schemas']['LinkProjection'];
16890
16906
  type ContinuousServiceSchema = components$k['schemas']['ContinuousServiceStructure'];
16891
16907
  type PtSituationElement = components$k['schemas']['PtSituationElementStructure'];
16892
16908
  type OJPv1_PtSituationElement = components$j['schemas']['PtSituationElementStructure'];
16909
+ type PtSituationFullRefSchema = components$k['schemas']['SituationFullRefStructure'];
16893
16910
  type ServiceArrivalDepartureSchema = components$k['schemas']['SharedServiceArrivalDeparture'];
16894
16911
  type TripRequestOJP = components$7["schemas"]["OJP"];
16895
16912
  type TripParamsSchema = components$7["schemas"]["TripParam"];
@@ -16968,4 +16985,4 @@ declare const OpenAPI_Dependencies: {
16968
16985
  readonly MapStringValues: Record<string, boolean>;
16969
16986
  };
16970
16987
 
16971
- export { type AddressSchema, type CallAtStopSchema, type ContinuousLegSchema, type ContinuousServiceSchema, type DatedJourneySchema, type ExpectedDepartureOccupancySchema, type FareClassEnum, type FareDeliverySchema, type FareRequestOJP, type FareRequestParamsSchema, type FareRequestSchema, type FareRequestsSchema, type FareResponseOJP, type FareResultSchema, type GeneralAttributeSchema, type GeoPositionSchema, type GeoRestrictionsSchema, type IndividualTransportOptionSchema, type InitialInputSchema, type InternationalTextSchema, type LIR_RequestParamsSchema, type LegSchema, type LegTrackSchema, type LinkProjectionSchema, type LocationInformationDeliverySchema, type LocationInformationRequestOJP, type LocationInformationRequestResponseOJP, type LocationInformationRequestSchema, type ModeFilterSchema, type ModeStructureSchema, type OJPv1_DatedJourneySchema, type OJPv1_GeneralAttributeSchema, type OJPv1_InitialInputSchema, type OJPv1_LocationInformationDeliverySchema, type OJPv1_LocationInformationRequestOJP, type OJPv1_LocationInformationRequestResponseOJP, type OJPv1_LocationInformationRequestSchema, type OJPv1_LocationResultSchema, type OJPv1_LocationSchema, type OJPv1_PathGuidanceSectionSchema, type OJPv1_PlaceContextSchema, type OJPv1_PlaceRefSchema, type OJPv1_PointOfInterestSchema, type OJPv1_PtSituationElement, type OJPv1_ResponseContextSchema, type OJPv1_StopEventDeliverySchema, type OJPv1_StopEventRequestOJP, type OJPv1_StopEventRequestSchema, type OJPv1_StopEventResponseOJP, type OJPv1_StopEventResultSchema, type OJPv1_TimedLegSchema, type OJPv1_TrackSectionSchema, type OJPv1_TripDeliverySchema, type OJPv1_TripInfoDeliverySchema, type OJPv1_TripInfoResponseOJP, type OJPv1_TripInfoResultStructureSchema, type OJPv1_TripLegSchema, type OJPv1_TripParamsSchema, type OJPv1_TripRequestOJP, type OJPv1_TripRequestResponseOJP, type OJPv1_TripRequestSchema, type OJPv1_TripResultSchema, type OJPv1_TripSchema, type OJPv1_ViaPointSchema, type OccupancyLevelEnum, OpenAPI_Dependencies, type OptimisationMethodEnum, type PathGuidanceSectionSchema, type PersonalModesEnum, type PlaceContextSchema, type PlaceRefSchema, type PlaceResultSchema, type PlaceSchema, type PlaceTypeEnum, type PointOfInterestSchema, type ProductCategorySchema, type PtSituationElement, type RailSubmodeEnum, type ResponseContextSchema, type SER_RequestLocationSchema, type SER_RequestOJP, type SER_RequestParamsSchema, type ServiceArrivalDepartureSchema, type StopEventDeliverySchema, type StopEventRequestResponseOJP, type StopEventRequestSchema, type StopEventResultSchema, type StopEventSchema, type StopPlaceSchema, type StopPointSchema, type TIR_RequestOJP, type TIR_RequestParamsSchema, type TIR_RequestSchema, type TRR_DeliverySchema, type TRR_RequestOJP, type TRR_RequestParamsSchema, type TRR_RequestSchema, type TRR_ResponseOJP, type TimedLegSchema, type TopographicPlaceSchema, type TrackSectionSchema, type TransferLegSchema, type TransferTypeEnum, type TripDeliverySchema, type TripInfoDeliverySchema, type TripInfoResponseOJP, type TripInfoResultStructureSchema, type TripParamsSchema, type TripRequestOJP, type TripRequestResponseOJP, type TripRequestSchema, type TripResultSchema, type TripSchema, type UseRealtimeDataEnum, VERSION, type VehicleModesOfTransportEnum, type ViaPointSchema };
16988
+ export { type AddressSchema, type CallAtStopSchema, type ContinuousLegSchema, type ContinuousServiceSchema, type DatedJourneySchema, type ExpectedDepartureOccupancySchema, type FareClassEnum, type FareDeliverySchema, type FareRequestOJP, type FareRequestParamsSchema, type FareRequestSchema, type FareRequestsSchema, type FareResponseOJP, type FareResultSchema, type GeneralAttributeSchema, type GeoPositionSchema, type GeoRestrictionsSchema, type IndividualTransportOptionSchema, type InitialInputSchema, type InternationalTextSchema, type LIR_RequestParamsSchema, type LegSchema, type LegTrackSchema, type LinkProjectionSchema, type LocationInformationDeliverySchema, type LocationInformationRequestOJP, type LocationInformationRequestResponseOJP, type LocationInformationRequestSchema, type ModeFilterSchema, type ModeStructureSchema, type OJPv1_DatedJourneySchema, type OJPv1_GeneralAttributeSchema, type OJPv1_InitialInputSchema, type OJPv1_LocationInformationDeliverySchema, type OJPv1_LocationInformationRequestOJP, type OJPv1_LocationInformationRequestResponseOJP, type OJPv1_LocationInformationRequestSchema, type OJPv1_LocationResultSchema, type OJPv1_LocationSchema, type OJPv1_PathGuidanceSectionSchema, type OJPv1_PlaceContextSchema, type OJPv1_PlaceRefSchema, type OJPv1_PointOfInterestSchema, type OJPv1_PtSituationElement, type OJPv1_ResponseContextSchema, type OJPv1_StopEventDeliverySchema, type OJPv1_StopEventRequestOJP, type OJPv1_StopEventRequestSchema, type OJPv1_StopEventResponseOJP, type OJPv1_StopEventResultSchema, type OJPv1_TimedLegSchema, type OJPv1_TrackSectionSchema, type OJPv1_TripDeliverySchema, type OJPv1_TripInfoDeliverySchema, type OJPv1_TripInfoResponseOJP, type OJPv1_TripInfoResultStructureSchema, type OJPv1_TripLegSchema, type OJPv1_TripParamsSchema, type OJPv1_TripRequestOJP, type OJPv1_TripRequestResponseOJP, type OJPv1_TripRequestSchema, type OJPv1_TripResultSchema, type OJPv1_TripSchema, type OJPv1_ViaPointSchema, type OccupancyLevelEnum, OpenAPI_Dependencies, type OptimisationMethodEnum, type PathGuidanceSectionSchema, type PersonalModesEnum, type PlaceContextSchema, type PlaceRefSchema, type PlaceResultSchema, type PlaceSchema, type PlaceTypeEnum, type PointOfInterestSchema, type ProductCategorySchema, type PtSituationElement, type PtSituationFullRefSchema, type RailSubmodeEnum, type ResponseContextSchema, type SER_RequestLocationSchema, type SER_RequestOJP, type SER_RequestParamsSchema, type ServiceArrivalDepartureSchema, type StopEventDeliverySchema, type StopEventRequestResponseOJP, type StopEventRequestSchema, type StopEventResultSchema, type StopEventSchema, type StopPlaceSchema, type StopPointSchema, type TIR_RequestOJP, type TIR_RequestParamsSchema, type TIR_RequestSchema, type TRR_DeliverySchema, type TRR_RequestOJP, type TRR_RequestParamsSchema, type TRR_RequestSchema, type TRR_ResponseOJP, type TimedLegSchema, type TopographicPlaceSchema, type TrackSectionSchema, type TransferLegSchema, type TransferTypeEnum, type TripDeliverySchema, type TripInfoDeliverySchema, type TripInfoResponseOJP, type TripInfoResultStructureSchema, type TripParamsSchema, type TripRequestOJP, type TripRequestResponseOJP, type TripRequestSchema, type TripResultSchema, type TripSchema, type UseRealtimeDataEnum, VERSION, type VehicleModesOfTransportEnum, type ViaPointSchema };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/constants.ts
2
- var VERSION = "0.1.3";
2
+ var VERSION = "0.1.4";
3
3
 
4
4
  // src/types/openapi-dependencies.ts
5
5
  var MapNS_Tags = {
@@ -140,14 +140,16 @@ var MapArrayTags = {
140
140
  "OJPTripRefineDelivery.tripResult": true
141
141
  };
142
142
  var MapLegacyArrayTags = {
143
- // OJP v1
144
143
  "places.location": true,
144
+ "trip.tripLeg": true,
145
145
  // PtSituation OJP v1
146
146
  "callAtStop.situationFullRef": true,
147
147
  "ptSituation.description": true,
148
148
  "ptSituation.detail": true,
149
149
  "stopPoints.affectedStopPoint": true,
150
150
  "vehicleJourneys.affectedVehicleJourney": true,
151
+ // in OJPv1 there is no <SituationFullRefs> wrapper, the <SituationFullRef> are directly under <Service>
152
+ "service.situationFullRef": true,
151
153
  "timedLeg.legIntermediates": true,
152
154
  "OJPLocationInformationDelivery.location": true,
153
155
  "location.mode": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ojp-shared-types",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Shared types for OJP models based on OpenAPI / XSD Schema",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",