ojp-shared-types 0.1.2 → 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/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/constants.ts
2
- var VERSION = "0.1.2";
2
+ var VERSION = "0.1.3";
3
3
 
4
4
  // src/types/openapi-dependencies.ts
5
5
  var MapNS_Tags = {
@@ -52,6 +52,7 @@ var MapNS_Tags = {
52
52
  "TrackSectionStart.StopPointRef": "siri",
53
53
  "TrackSectionEnd.StopPointRef": "siri",
54
54
  "Position.Longitude": "siri",
55
+ "Position.Latitude": "siri",
55
56
  "LegStart.StopPointRef": "siri",
56
57
  "LegEnd.StopPointRef": "siri",
57
58
  // ExpectedDepartureOccupancy
@@ -78,8 +79,6 @@ var MapArrayTags = {
78
79
  // Shared
79
80
  "places.place": true,
80
81
  "linkProjection.position": true,
81
- // OJP v1
82
- "places.location": true,
83
82
  // PSituation Refs
84
83
  "situationFullRefs.situationFullRef": true,
85
84
  "situations.ptSituation": true,
@@ -98,12 +97,6 @@ var MapArrayTags = {
98
97
  // 'consequenceContent.consequenceText': true,
99
98
  // 'recommendationContent.recommendationText': true,
100
99
  // 'remarkContent.remark': true,
101
- // PtSituation OJP v1
102
- "callAtStop.situationFullRef": true,
103
- "ptSituation.description": true,
104
- "ptSituation.detail": true,
105
- "stopPoints.affectedStopPoint": true,
106
- "vehicleJourneys.affectedVehicleJourney": true,
107
100
  "itModeAndModeOfOperation.personalModeOfOperation": true,
108
101
  // Service
109
102
  "service.attribute": true,
@@ -124,10 +117,6 @@ var MapArrayTags = {
124
117
  "OJPLocationInformationDelivery.placeResult": true,
125
118
  "place.mode": true,
126
119
  "place.attribute": true,
127
- // OJP 1.0
128
- "OJPLocationInformationDelivery.location": true,
129
- "location.mode": true,
130
- "location.attribute": true,
131
120
  // LIR Response POI
132
121
  "pointOfInterest.pointOfInterestCategory": true,
133
122
  "pointOfInterestCategory.osmTag": true,
@@ -150,22 +139,29 @@ var MapArrayTags = {
150
139
  // TripRefineResult
151
140
  "OJPTripRefineDelivery.tripResult": true
152
141
  };
153
- var MapModelKeepPropertiesXML = {
154
- "OJPLocationInformationRequest": ["requestTimestamp", "initialInput", "placeRef", "restrictions"],
155
- "OJPTripRequest": ["requestTimestamp", "origin", "destination", "via", "params"],
156
- "OJPStopEventRequest": ["requestTimestamp", "location", "params"],
157
- "OJPTripRefineRequest": ["requestTimestamp", "refineParams", "tripResult"],
158
- "OJPTripInfoRequest": ["requestTimestamp", "journeyRef", "operatingDayRef", "params"],
159
- "geoPosition": ["longitude", "latitude"]
142
+ var MapLegacyArrayTags = {
143
+ // OJP v1
144
+ "places.location": true,
145
+ // PtSituation OJP v1
146
+ "callAtStop.situationFullRef": true,
147
+ "ptSituation.description": true,
148
+ "ptSituation.detail": true,
149
+ "stopPoints.affectedStopPoint": true,
150
+ "vehicleJourneys.affectedVehicleJourney": true,
151
+ "timedLeg.legIntermediates": true,
152
+ "OJPLocationInformationDelivery.location": true,
153
+ "location.mode": true,
154
+ "location.attribute": true
160
155
  };
161
156
  var MapStringValues = {
162
157
  "stopPlace.stopPlaceRef": true,
163
- "publishedServiceName.text": true
158
+ "publishedServiceName.text": true,
159
+ "service.operatorRef": true
164
160
  };
165
161
  var OpenAPI_Dependencies = {
166
162
  MapNS_Tags,
167
163
  MapArrayTags,
168
- MapModelKeepPropertiesXML,
164
+ MapLegacyArrayTags,
169
165
  MapStringValues
170
166
  };
171
167
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ojp-shared-types",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Shared types for OJP models based on OpenAPI / XSD Schema",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",