ojp-shared-types 0.0.24 → 0.1.2
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 +1 -1
- package/dist/index.cjs +24 -5
- package/dist/index.d.cts +2025 -676
- package/dist/index.d.ts +2025 -676
- package/dist/index.js +24 -5
- package/package.json +3 -2
package/README.md
CHANGED
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.
|
|
29
|
+
var VERSION = "0.1.2";
|
|
30
30
|
|
|
31
31
|
// src/types/openapi-dependencies.ts
|
|
32
32
|
var MapNS_Tags = {
|
|
@@ -105,8 +105,12 @@ var MapArrayTags = {
|
|
|
105
105
|
// Shared
|
|
106
106
|
"places.place": true,
|
|
107
107
|
"linkProjection.position": true,
|
|
108
|
+
// OJP v1
|
|
109
|
+
"places.location": true,
|
|
110
|
+
// PSituation Refs
|
|
108
111
|
"situationFullRefs.situationFullRef": true,
|
|
109
112
|
"situations.ptSituation": true,
|
|
113
|
+
// PtSituation OJP v2
|
|
110
114
|
"ptSituation.validityPeriod": true,
|
|
111
115
|
"publishingActions.publishingAction": true,
|
|
112
116
|
"publishingAction.passengerInformationAction": true,
|
|
@@ -116,6 +120,17 @@ var MapArrayTags = {
|
|
|
116
120
|
"textualContent.recommendationContent": true,
|
|
117
121
|
"textualContent.remarkContent": true,
|
|
118
122
|
"textualContent.infoLink": true,
|
|
123
|
+
// technically these are also arrays - but the OJP repsonse never returned it as such
|
|
124
|
+
// 'descriptionContent.descriptionText': true,
|
|
125
|
+
// 'consequenceContent.consequenceText': true,
|
|
126
|
+
// 'recommendationContent.recommendationText': true,
|
|
127
|
+
// '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,
|
|
119
134
|
"itModeAndModeOfOperation.personalModeOfOperation": true,
|
|
120
135
|
// Service
|
|
121
136
|
"service.attribute": true,
|
|
@@ -133,23 +148,27 @@ var MapArrayTags = {
|
|
|
133
148
|
"legIntermediate.expectedDepartureOccupancy": true,
|
|
134
149
|
"legAlight.expectedDepartureOccupancy": true,
|
|
135
150
|
// LIR Response
|
|
136
|
-
"place.mode": true,
|
|
137
151
|
"OJPLocationInformationDelivery.placeResult": true,
|
|
152
|
+
"place.mode": true,
|
|
153
|
+
"place.attribute": true,
|
|
138
154
|
// OJP 1.0
|
|
139
155
|
"OJPLocationInformationDelivery.location": true,
|
|
156
|
+
"location.mode": true,
|
|
157
|
+
"location.attribute": true,
|
|
140
158
|
// LIR Response POI
|
|
141
159
|
"pointOfInterest.pointOfInterestCategory": true,
|
|
142
160
|
"pointOfInterestCategory.osmTag": true,
|
|
143
161
|
"pointOfInterestCategory.pointOfInterestClassification": true,
|
|
144
162
|
"pOIAdditionalInformation.pOIAdditionalInformation": true,
|
|
145
|
-
// SER Response
|
|
146
|
-
"stopEvent.previousCall": true,
|
|
147
|
-
"stopEvent.onwardCall": true,
|
|
148
163
|
// Fare Response
|
|
149
164
|
"OJPFareDelivery.fareResult": true,
|
|
150
165
|
"fareResult.tripFareResult": true,
|
|
151
166
|
// TODO - this is not in the current schema (v2)
|
|
152
167
|
"tripFareResult.fareProduct": true,
|
|
168
|
+
// StopEvent Response
|
|
169
|
+
"OJPStopEventDelivery.stopEventResult": true,
|
|
170
|
+
"stopEvent.previousCall": true,
|
|
171
|
+
"stopEvent.onwardCall": true,
|
|
153
172
|
// TripInfoResult
|
|
154
173
|
"OJPTripInfoDelivery.tripInfoResult": true,
|
|
155
174
|
"tripInfoResult.previousCall": true,
|