ojp-shared-types 0.0.2 → 0.0.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 +1 -1
- package/dist/index.cjs +17 -19
- package/dist/index.d.cts +1061 -246
- package/dist/index.d.ts +1061 -246
- package/dist/index.js +17 -19
- package/package.json +5 -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.0.
|
|
29
|
+
var VERSION = "0.0.4";
|
|
30
30
|
|
|
31
31
|
// src/types/openapi-dependencies.ts
|
|
32
32
|
var MapNS_Tags = {
|
|
@@ -42,6 +42,8 @@ var MapNS_Tags = {
|
|
|
42
42
|
"OJPTripRefineRequest.RequestTimestamp": "siri",
|
|
43
43
|
// FareRequest
|
|
44
44
|
"OJPFareRequest.RequestTimestamp": "siri",
|
|
45
|
+
// TripInfoRequest
|
|
46
|
+
"OJPTripInfoRequest.RequestTimestamp": "siri",
|
|
45
47
|
// TripRequest
|
|
46
48
|
"OJPTripRequest.RequestTimestamp": "siri",
|
|
47
49
|
// TripResponse
|
|
@@ -83,26 +85,17 @@ var MapNS_Tags = {
|
|
|
83
85
|
"OJPStopEventRequest.RequestTimestamp": "siri",
|
|
84
86
|
"PlaceRef.StopPointRef": "siri"
|
|
85
87
|
};
|
|
86
|
-
var MapParentArrayTags = {
|
|
87
|
-
"TripResult.trip": ["leg"],
|
|
88
|
-
"leg.timedLeg": ["legIntermediate"],
|
|
89
|
-
"timedLeg.service": ["attribute"],
|
|
90
|
-
"trackSection.linkProjection": ["position"],
|
|
91
|
-
// LIR Request
|
|
92
|
-
"restrictions.placeParam": ["type"],
|
|
93
|
-
// LIR Response
|
|
94
|
-
"place.pointOfInterest": ["pointOfInterestCategory"],
|
|
95
|
-
"placeResult.place": ["mode"],
|
|
96
|
-
"serviceDelivery.OJPLocationInformationDelivery": ["placeResult"],
|
|
97
|
-
// SER Response
|
|
98
|
-
"stopEventResult.stopEvent": ["previousCall", "onwardCall"]
|
|
99
|
-
};
|
|
100
88
|
var MapArrayTags = {
|
|
89
|
+
// Shared
|
|
90
|
+
"places.place": true,
|
|
91
|
+
"situations.ptSituation": true,
|
|
92
|
+
"linkProjection.position": true,
|
|
93
|
+
// Service
|
|
94
|
+
"service.attribute": true,
|
|
101
95
|
// TR Response
|
|
102
96
|
"trip.leg": true,
|
|
103
97
|
"timedLeg.legIntermediate": true,
|
|
104
|
-
"
|
|
105
|
-
"linkProjection.position": true,
|
|
98
|
+
"legTrack.trackSection": true,
|
|
106
99
|
// LIR Response
|
|
107
100
|
"pointOfInterest.pointOfInterestCategory": true,
|
|
108
101
|
"place.mode": true,
|
|
@@ -113,13 +106,19 @@ var MapArrayTags = {
|
|
|
113
106
|
// Fare Response
|
|
114
107
|
"fareResult.tripFareResult": true,
|
|
115
108
|
// TODO - this is not in the current schema (v2)
|
|
116
|
-
"tripFareResult.fareProduct": true
|
|
109
|
+
"tripFareResult.fareProduct": true,
|
|
110
|
+
// TripInfoResult
|
|
111
|
+
"OJPTripInfoDelivery.tripInfoResult": true,
|
|
112
|
+
"tripInfoResult.previousCall": true,
|
|
113
|
+
"tripInfoResult.onwardCall": true,
|
|
114
|
+
"journeyTrack.trackSection": true
|
|
117
115
|
};
|
|
118
116
|
var MapModelKeepPropertiesXML = {
|
|
119
117
|
"OJPLocationInformationRequest": ["requestTimestamp", "initialInput", "placeRef", "restrictions"],
|
|
120
118
|
"OJPTripRequest": ["requestTimestamp", "origin", "destination", "via", "params"],
|
|
121
119
|
"OJPStopEventRequest": ["requestTimestamp", "location", "params"],
|
|
122
120
|
"OJPTripRefineRequest": ["requestTimestamp", "refineParams", "tripResult"],
|
|
121
|
+
"OJPTripInfoRequest": ["requestTimestamp", "journeyRef", "operatingDayRef", "params"],
|
|
123
122
|
"geoPosition": ["longitude", "latitude"]
|
|
124
123
|
};
|
|
125
124
|
var MapStringValues = {
|
|
@@ -127,7 +126,6 @@ var MapStringValues = {
|
|
|
127
126
|
};
|
|
128
127
|
var OpenAPI_Dependencies = {
|
|
129
128
|
MapNS_Tags,
|
|
130
|
-
MapParentArrayTags,
|
|
131
129
|
MapArrayTags,
|
|
132
130
|
MapModelKeepPropertiesXML,
|
|
133
131
|
MapStringValues
|