ojp-shared-types 0.0.1 → 0.0.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.0.1"
17
+ "ojp-shared-types": "0.0.3"
18
18
  }
19
19
  ```
20
20
 
@@ -1,5 +1,32 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ OpenAPI_Dependencies: () => OpenAPI_Dependencies,
24
+ VERSION: () => VERSION
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+
1
28
  // src/constants.ts
2
- var VERSION = "0.0.1";
29
+ var VERSION = "0.0.3";
3
30
 
4
31
  // src/types/openapi-dependencies.ts
5
32
  var MapNS_Tags = {
@@ -15,6 +42,8 @@ var MapNS_Tags = {
15
42
  "OJPTripRefineRequest.RequestTimestamp": "siri",
16
43
  // FareRequest
17
44
  "OJPFareRequest.RequestTimestamp": "siri",
45
+ // TripInfoRequest
46
+ "OJPTripInfoRequest.RequestTimestamp": "siri",
18
47
  // TripRequest
19
48
  "OJPTripRequest.RequestTimestamp": "siri",
20
49
  // TripResponse
@@ -56,26 +85,17 @@ var MapNS_Tags = {
56
85
  "OJPStopEventRequest.RequestTimestamp": "siri",
57
86
  "PlaceRef.StopPointRef": "siri"
58
87
  };
59
- var MapParentArrayTags = {
60
- "TripResult.trip": ["leg"],
61
- "leg.timedLeg": ["legIntermediate"],
62
- "timedLeg.service": ["attribute"],
63
- "trackSection.linkProjection": ["position"],
64
- // LIR Request
65
- "restrictions.placeParam": ["type"],
66
- // LIR Response
67
- "place.pointOfInterest": ["pointOfInterestCategory"],
68
- "placeResult.place": ["mode"],
69
- "serviceDelivery.OJPLocationInformationDelivery": ["placeResult"],
70
- // SER Response
71
- "stopEventResult.stopEvent": ["previousCall", "onwardCall"]
72
- };
73
88
  var MapArrayTags = {
89
+ // Shared
90
+ "places.place": true,
91
+ "situations.ptSituation": true,
92
+ "linkProjection.position": true,
93
+ // Service
94
+ "service.attribute": true,
74
95
  // TR Response
75
96
  "trip.leg": true,
76
97
  "timedLeg.legIntermediate": true,
77
- "service.attribute": true,
78
- "linkProjection.position": true,
98
+ "legTrack.trackSection": true,
79
99
  // LIR Response
80
100
  "pointOfInterest.pointOfInterestCategory": true,
81
101
  "place.mode": true,
@@ -86,13 +106,19 @@ var MapArrayTags = {
86
106
  // Fare Response
87
107
  "fareResult.tripFareResult": true,
88
108
  // TODO - this is not in the current schema (v2)
89
- "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
90
115
  };
91
116
  var MapModelKeepPropertiesXML = {
92
117
  "OJPLocationInformationRequest": ["requestTimestamp", "initialInput", "placeRef", "restrictions"],
93
118
  "OJPTripRequest": ["requestTimestamp", "origin", "destination", "via", "params"],
94
119
  "OJPStopEventRequest": ["requestTimestamp", "location", "params"],
95
120
  "OJPTripRefineRequest": ["requestTimestamp", "refineParams", "tripResult"],
121
+ "OJPTripInfoRequest": ["requestTimestamp", "journeyRef", "operatingDayRef", "params"],
96
122
  "geoPosition": ["longitude", "latitude"]
97
123
  };
98
124
  var MapStringValues = {
@@ -100,12 +126,12 @@ var MapStringValues = {
100
126
  };
101
127
  var OpenAPI_Dependencies = {
102
128
  MapNS_Tags,
103
- MapParentArrayTags,
104
129
  MapArrayTags,
105
130
  MapModelKeepPropertiesXML,
106
131
  MapStringValues
107
132
  };
108
- export {
133
+ // Annotate the CommonJS export names for ESM import in node:
134
+ 0 && (module.exports = {
109
135
  OpenAPI_Dependencies,
110
136
  VERSION
111
- };
137
+ });