ojp-shared-types 0.1.1 → 0.1.3

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.1"
17
+ "ojp-shared-types": "0.1.3"
18
18
  }
19
19
  ```
20
20
 
@@ -38,4 +38,4 @@ export class MyOJPRequest implements OJP_Types.TripRequestSchema {
38
38
 
39
39
  The project is released under a [MIT license](./LICENSE).
40
40
 
41
- Copyright (c) 2025 Open Data Platform Mobility Switzerland - [opentransportdata.swiss](https://opentransportdata.swiss/en/).
41
+ Copyright (c) 2025 - 2026 Open Data Platform Mobility Switzerland - [opentransportdata.swiss](https://opentransportdata.swiss/en/).
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.1";
29
+ var VERSION = "0.1.3";
30
30
 
31
31
  // src/types/openapi-dependencies.ts
32
32
  var MapNS_Tags = {
@@ -79,6 +79,7 @@ var MapNS_Tags = {
79
79
  "TrackSectionStart.StopPointRef": "siri",
80
80
  "TrackSectionEnd.StopPointRef": "siri",
81
81
  "Position.Longitude": "siri",
82
+ "Position.Latitude": "siri",
82
83
  "LegStart.StopPointRef": "siri",
83
84
  "LegEnd.StopPointRef": "siri",
84
85
  // ExpectedDepartureOccupancy
@@ -105,8 +106,6 @@ var MapArrayTags = {
105
106
  // Shared
106
107
  "places.place": true,
107
108
  "linkProjection.position": true,
108
- // OJP v1
109
- "places.location": true,
110
109
  // PSituation Refs
111
110
  "situationFullRefs.situationFullRef": true,
112
111
  "situations.ptSituation": true,
@@ -125,12 +124,6 @@ var MapArrayTags = {
125
124
  // 'consequenceContent.consequenceText': true,
126
125
  // 'recommendationContent.recommendationText': true,
127
126
  // 'remarkContent.remark': true,
128
- // PtSituation OJP v1
129
- "callAtStop.situationFullRef": true,
130
- "ptSituation.description": true,
131
- "ptSituation.detail": true,
132
- "stopPoints.affectedStopPoint": true,
133
- "vehicleJourneys.affectedVehicleJourney": true,
134
127
  "itModeAndModeOfOperation.personalModeOfOperation": true,
135
128
  // Service
136
129
  "service.attribute": true,
@@ -151,10 +144,6 @@ var MapArrayTags = {
151
144
  "OJPLocationInformationDelivery.placeResult": true,
152
145
  "place.mode": true,
153
146
  "place.attribute": true,
154
- // OJP 1.0
155
- "OJPLocationInformationDelivery.location": true,
156
- "location.mode": true,
157
- "location.attribute": true,
158
147
  // LIR Response POI
159
148
  "pointOfInterest.pointOfInterestCategory": true,
160
149
  "pointOfInterestCategory.osmTag": true,
@@ -177,22 +166,29 @@ var MapArrayTags = {
177
166
  // TripRefineResult
178
167
  "OJPTripRefineDelivery.tripResult": true
179
168
  };
180
- var MapModelKeepPropertiesXML = {
181
- "OJPLocationInformationRequest": ["requestTimestamp", "initialInput", "placeRef", "restrictions"],
182
- "OJPTripRequest": ["requestTimestamp", "origin", "destination", "via", "params"],
183
- "OJPStopEventRequest": ["requestTimestamp", "location", "params"],
184
- "OJPTripRefineRequest": ["requestTimestamp", "refineParams", "tripResult"],
185
- "OJPTripInfoRequest": ["requestTimestamp", "journeyRef", "operatingDayRef", "params"],
186
- "geoPosition": ["longitude", "latitude"]
169
+ var MapLegacyArrayTags = {
170
+ // OJP v1
171
+ "places.location": true,
172
+ // PtSituation OJP v1
173
+ "callAtStop.situationFullRef": true,
174
+ "ptSituation.description": true,
175
+ "ptSituation.detail": true,
176
+ "stopPoints.affectedStopPoint": true,
177
+ "vehicleJourneys.affectedVehicleJourney": true,
178
+ "timedLeg.legIntermediates": true,
179
+ "OJPLocationInformationDelivery.location": true,
180
+ "location.mode": true,
181
+ "location.attribute": true
187
182
  };
188
183
  var MapStringValues = {
189
184
  "stopPlace.stopPlaceRef": true,
190
- "publishedServiceName.text": true
185
+ "publishedServiceName.text": true,
186
+ "service.operatorRef": true
191
187
  };
192
188
  var OpenAPI_Dependencies = {
193
189
  MapNS_Tags,
194
190
  MapArrayTags,
195
- MapModelKeepPropertiesXML,
191
+ MapLegacyArrayTags,
196
192
  MapStringValues
197
193
  };
198
194
  // Annotate the CommonJS export names for ESM import in node: