ojp-shared-types 0.0.23 → 0.1.1

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.0.23";
2
+ var VERSION = "0.1.1";
3
3
 
4
4
  // src/types/openapi-dependencies.ts
5
5
  var MapNS_Tags = {
@@ -78,8 +78,12 @@ var MapArrayTags = {
78
78
  // Shared
79
79
  "places.place": true,
80
80
  "linkProjection.position": true,
81
+ // OJP v1
82
+ "places.location": true,
83
+ // PSituation Refs
81
84
  "situationFullRefs.situationFullRef": true,
82
85
  "situations.ptSituation": true,
86
+ // PtSituation OJP v2
83
87
  "ptSituation.validityPeriod": true,
84
88
  "publishingActions.publishingAction": true,
85
89
  "publishingAction.passengerInformationAction": true,
@@ -89,6 +93,17 @@ var MapArrayTags = {
89
93
  "textualContent.recommendationContent": true,
90
94
  "textualContent.remarkContent": true,
91
95
  "textualContent.infoLink": true,
96
+ // technically these are also arrays - but the OJP repsonse never returned it as such
97
+ // 'descriptionContent.descriptionText': true,
98
+ // 'consequenceContent.consequenceText': true,
99
+ // 'recommendationContent.recommendationText': true,
100
+ // '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,
92
107
  "itModeAndModeOfOperation.personalModeOfOperation": true,
93
108
  // Service
94
109
  "service.attribute": true,
@@ -106,23 +121,27 @@ var MapArrayTags = {
106
121
  "legIntermediate.expectedDepartureOccupancy": true,
107
122
  "legAlight.expectedDepartureOccupancy": true,
108
123
  // LIR Response
109
- "place.mode": true,
110
124
  "OJPLocationInformationDelivery.placeResult": true,
125
+ "place.mode": true,
126
+ "place.attribute": true,
111
127
  // OJP 1.0
112
128
  "OJPLocationInformationDelivery.location": true,
129
+ "location.mode": true,
130
+ "location.attribute": true,
113
131
  // LIR Response POI
114
132
  "pointOfInterest.pointOfInterestCategory": true,
115
133
  "pointOfInterestCategory.osmTag": true,
116
134
  "pointOfInterestCategory.pointOfInterestClassification": true,
117
135
  "pOIAdditionalInformation.pOIAdditionalInformation": true,
118
- // SER Response
119
- "stopEvent.previousCall": true,
120
- "stopEvent.onwardCall": true,
121
136
  // Fare Response
122
137
  "OJPFareDelivery.fareResult": true,
123
138
  "fareResult.tripFareResult": true,
124
139
  // TODO - this is not in the current schema (v2)
125
140
  "tripFareResult.fareProduct": true,
141
+ // StopEvent Response
142
+ "OJPStopEventDelivery.stopEventResult": true,
143
+ "stopEvent.previousCall": true,
144
+ "stopEvent.onwardCall": true,
126
145
  // TripInfoResult
127
146
  "OJPTripInfoDelivery.tripInfoResult": true,
128
147
  "tripInfoResult.previousCall": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ojp-shared-types",
3
- "version": "0.0.23",
3
+ "version": "0.1.1",
4
4
  "description": "Shared types for OJP models based on OpenAPI / XSD Schema",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -16,7 +16,8 @@
16
16
  "scripts": {
17
17
  "build": "rm -rf dist && tsup src/index.ts --dts --format esm,cjs --out-dir dist",
18
18
  "dev": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --watch",
19
- "generate:ts": "bash ./scripts/generate-ts.sh"
19
+ "generate:ts": "bash ./scripts/generate-ts.sh",
20
+ "prepare": "npm run build"
20
21
  },
21
22
  "keywords": [],
22
23
  "author": "Vasile Cotovanu",