-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
187 lines (141 loc) · 12.8 KB
/
index.ts
File metadata and controls
187 lines (141 loc) · 12.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
import { components as sharedComponents } from './generated/ojp-shared';
import { components as ojpV1_SharedComponents } from './generated/legacy/ojp-v1/ojp-shared';
import { components as locationInformationRequestComponents } from './generated/ojp-lir-request';
import { components as locationInformationResponseComponents } from './generated/ojp-lir-response';
import { components as ojpV1_LocationInformationRequestComponents } from './generated/legacy/ojp-v1/ojp-lir-request';
import { components as ojpV1_LocationInformationResponseComponents } from './generated/legacy/ojp-v1/ojp-lir-response';
import { components as stopEventRequestComponents } from './generated/ojp-ser-request';
import { components as stopEventResponseComponents } from './generated/ojp-ser-response';
import { components as ojpV1_StopEventRequestComponents } from './generated/legacy/ojp-v1/ojp-ser-request';
import { components as ojpV1_StopEventResponseComponents } from './generated/legacy/ojp-v1/ojp-ser-response';
import { components as tripInfoRequestComponents } from './generated/ojp-tir-request';
import { components as tripInfoResponseComponents } from './generated/ojp-tir-response';
import { components as ojpV1_TripInfoResponseComponents } from './generated/legacy/ojp-v1/ojp-tir-response';
import { components as tripRequestComponents } from './generated/ojp-tr-request';
import { components as tripReponseComponents } from './generated/ojp-tr-response';
import { components as ojpV1_TripRequestComponents } from './generated/legacy/ojp-v1/ojp-tr-request';
import { components as ojpV1_TripRequestResponseComponents } from './generated/legacy/ojp-v1/ojp-tr-response';
import { components as trrRequestComponents } from './generated/ojp-trr-request';
import { components as trrResponseComponents } from './generated/ojp-trr-response';
import { components as ojpV1_FareRequestComponents } from './generated/legacy/ojp-v1/ojp-fare-request';
import { components as fareResponseComponents } from './generated/ojp-fare-response';
// TODO - this can be generated
export type OJPv1_DatedJourneySchema = ojpV1_SharedComponents['schemas']['DatedJourney'];
export type OJPv1_LocationSchema = ojpV1_SharedComponents['schemas']['Location']
export type OJPv1_GeneralAttributeSchema = ojpV1_SharedComponents['schemas']['GeneralAttribute'];
export type OJPv1_PointOfInterestSchema = ojpV1_SharedComponents['schemas']['PointOfInterest'];
export type OJPv1_PlaceRefSchema = ojpV1_SharedComponents['schemas']['PlaceRef'];
export type OJPv1_PlaceContextSchema = ojpV1_SharedComponents['schemas']['PlaceContext'];
export type OJPv1_TimedLegSchema = ojpV1_TripRequestResponseComponents['schemas']['TimedLeg']
export type OJPv1_TripLegSchema = ojpV1_TripRequestResponseComponents['schemas']['TripLeg'];
export type OJPv1_TripSchema = ojpV1_TripRequestResponseComponents['schemas']['Trip'];
export type UseRealtimeDataEnum = sharedComponents["schemas"]["UseRealtimeDataEnum"];
export type PersonalModesEnum = sharedComponents["schemas"]['PersonalModesEnumeration'];
export type VehicleModesOfTransportEnum = sharedComponents["schemas"]["VehicleModesOfTransportEnum"];
export type PlaceTypeEnum = sharedComponents["schemas"]["PlaceTypeEnum"];
export type TransferTypeEnum = sharedComponents["schemas"]["TransferTypeEnum"];
export type FareClassEnum = sharedComponents["schemas"]["FareClassEnum"];
export type OccupancyLevelEnum = sharedComponents["schemas"]["OccupancyLevelEnum"];
export type RailSubmodeEnum = sharedComponents["schemas"]["RailSubmodeEnum"];
export type OptimisationMethodEnum = sharedComponents["schemas"]["OptimisationMethodEnum"];
export type GeoPositionSchema = sharedComponents["schemas"]["GeoPosition"];
export type PlaceRefSchema = sharedComponents["schemas"]["PlaceRef"];
export type InternationalTextSchema = sharedComponents["schemas"]["InternationalText"];
export type DatedJourneySchema = sharedComponents["schemas"]["DatedJourney"];
export type CallAtStopSchema = sharedComponents["schemas"]["CallAtStop"];
export type ExpectedDepartureOccupancySchema = sharedComponents["schemas"]["ExpectedDepartureOccupancyStructure"];
export type PlaceContextSchema = sharedComponents["schemas"]["PlaceContext"];
export type PlaceSchema = sharedComponents['schemas']['Place']
export type StopPointSchema = sharedComponents['schemas']['StopPoint']
export type StopPlaceSchema = sharedComponents['schemas']['StopPlace']
export type TopographicPlaceSchema = sharedComponents['schemas']['TopographicPlace']
export type PointOfInterestSchema = sharedComponents['schemas']['PointOfInterest']
export type AddressSchema = sharedComponents['schemas']['Address']
export type GeoRestrictionsSchema = sharedComponents['schemas']['GeoRestrictionsStructure'];
export type ModeStructureSchema = sharedComponents['schemas']['ModeStructure'];
export type ProductCategorySchema = sharedComponents['schemas']['ProductCategory'];
export type GeneralAttributeSchema = sharedComponents['schemas']['GeneralAttribute'];
export type ModeFilterSchema = sharedComponents["schemas"]['ModeFilterStructure'];
export type TrackSectionSchema = sharedComponents['schemas']['TrackSectionStructure'];
export type OJPv1_TrackSectionSchema = ojpV1_SharedComponents['schemas']['TrackSectionStructure'];
export type ResponseContextSchema = sharedComponents['schemas']['ResponseContextStructure'];
export type OJPv1_ResponseContextSchema = ojpV1_SharedComponents['schemas']['ResponseContextStructure'];
export type IndividualTransportOptionSchema = sharedComponents['schemas']['IndividualTransportOptionStructure'];
export type OJPv1_IndividualTransportOptionSchema = ojpV1_SharedComponents['schemas']['IndividualTransportOptionsStructure'];
export type PersonalModesOfOperationEnum = sharedComponents['schemas']['PersonalModesOfOperationEnumeration']
export type LinkProjectionSchema = sharedComponents['schemas']['LinkProjection'];
export type ContinuousServiceSchema = sharedComponents['schemas']['ContinuousServiceStructure'];
export type BookingArrangementStructure = sharedComponents['schemas']['BookingArrangementStructure'];
export type PtSituationElement = sharedComponents['schemas']['PtSituationElementStructure']
export type OJPv1_PtSituationElement = ojpV1_SharedComponents['schemas']['PtSituationElementStructure']
export type PtSituationFullRefSchema = sharedComponents['schemas']['SituationFullRefStructure']
export type ServiceArrivalDepartureSchema = sharedComponents['schemas']['SharedServiceArrivalDeparture'];
export type TripRequestOJP = tripRequestComponents["schemas"]["OJP"];
export type TripParamsSchema = tripRequestComponents["schemas"]["TripParam"];
export type TripRequestSchema = tripRequestComponents["schemas"]["OJPTripRequest"];
export type ViaPointSchema = tripRequestComponents["schemas"]["ViaPoint"];
export type OJPv1_ViaPointSchema = ojpV1_TripRequestComponents["schemas"]["ViaPoint"];
export type LegTrackSchema = sharedComponents['schemas']['LegTrackStructure'];
export type TripResultSchema = tripReponseComponents['schemas']['TripResult'];
export type TripSchema = tripReponseComponents["schemas"]["Trip"];
export type LegSchema = tripReponseComponents["schemas"]["Leg"];
export type TimedLegSchema = tripReponseComponents["schemas"]["TimedLeg"];
export type TransferLegSchema = tripReponseComponents["schemas"]["TransferLeg"];
export type ContinuousLegSchema = tripReponseComponents["schemas"]["ContinuousLeg"];
export type TripRequestResponseOJP = tripReponseComponents['schemas']['OJP'];
export type TripDeliverySchema = tripReponseComponents['schemas']['OJPTripDelivery'];
export type InitialInputSchema = locationInformationRequestComponents['schemas']['InitialInput'];
export type LIR_RequestParamsSchema = locationInformationRequestComponents['schemas']['PlaceParam'];
export type LocationInformationRequestOJP = locationInformationRequestComponents['schemas']['OJP'];
export type LocationInformationRequestSchema = locationInformationRequestComponents['schemas']['OJPLocationInformationRequest'];
export type PlaceResultSchema = locationInformationResponseComponents['schemas']['PlaceResult'];
export type LocationInformationRequestResponseOJP = locationInformationResponseComponents['schemas']['OJP'];
export type LocationInformationDeliverySchema = locationInformationResponseComponents['schemas']['OJPLocationInformationDelivery'];
export type StopEventRequestSchema = stopEventRequestComponents['schemas']['OJPStopEventRequest'];
export type SER_RequestLocationSchema = stopEventRequestComponents['schemas']['PlaceContext'];
export type SER_RequestParamsSchema = stopEventRequestComponents['schemas']['StopEventParam'];
export type SER_RequestOJP = stopEventRequestComponents['schemas']['OJP'];
export type StopEventResultSchema = stopEventResponseComponents['schemas']['StopEventResult'];
export type StopEventSchema = stopEventResponseComponents['schemas']['StopEvent'];
export type StopEventRequestResponseOJP = stopEventResponseComponents['schemas']['OJP'];
export type StopEventDeliverySchema = stopEventResponseComponents['schemas']['OJPStopEventDelivery'];
export type TRR_RequestParamsSchema = trrRequestComponents['schemas']['TripRefineParam']
export type TRR_RequestSchema = trrRequestComponents["schemas"]['OJPTripRefineRequest'];
export type TRR_RequestOJP = trrRequestComponents['schemas']['OJP'];
export type TRR_ResponseOJP = trrResponseComponents['schemas']['OJP'];
export type TRR_DeliverySchema = trrResponseComponents['schemas']['OJPTripRefineDelivery'];
export type FareRequestParamsSchema = ojpV1_FareRequestComponents["schemas"]['FareParamStructure'];
export type FareRequestSchema = ojpV1_FareRequestComponents['schemas']['OJPFareRequest'];
export type FareRequestsSchema = ojpV1_FareRequestComponents['schemas']['OJPFareRequests'];
export type FareRequestOJP = ojpV1_FareRequestComponents['schemas']['OJP'];
export type FareResponseOJP = fareResponseComponents['schemas']['OJP'];
export type FareDeliverySchema = fareResponseComponents['schemas']['OJPFareDelivery'];
export type FareResultSchema = fareResponseComponents['schemas']['FareResult'];
export type TIR_RequestParamsSchema = tripInfoRequestComponents['schemas']['TripInfoParamStructure'];
export type TIR_RequestSchema = tripInfoRequestComponents['schemas']['OJPTripInfoRequest'];
export type TIR_RequestOJP = tripInfoRequestComponents['schemas']['OJP'];
export type TripInfoResponseOJP = tripInfoResponseComponents['schemas']['OJP'];
export type TripInfoDeliverySchema = tripInfoResponseComponents['schemas']['OJPTripInfoDelivery'];
export type TripInfoResultStructureSchema = tripInfoResponseComponents['schemas']['TripInfoResultStructure'];
export type PathGuidanceSectionSchema = tripReponseComponents['schemas']['PathGuidanceSectionStructure'];
export type OJPv1_PathGuidanceSectionSchema = ojpV1_TripRequestResponseComponents['schemas']['PathGuidanceSectionStructure'];
export type OJPv1_StopEventRequestOJP = ojpV1_StopEventRequestComponents['schemas']['OJP'];
export type OJPv1_StopEventRequestSchema = ojpV1_StopEventRequestComponents['schemas']['OJPStopEventRequest'];
export type OJPv1_StopEventResponseOJP = ojpV1_StopEventResponseComponents['schemas']['OJP'];
export type OJPv1_StopEventDeliverySchema = ojpV1_StopEventResponseComponents['schemas']['OJPStopEventDelivery'];
export type OJPv1_StopEventResultSchema = ojpV1_StopEventResponseComponents['schemas']['StopEventResult'];
export type OJPv1_TripInfoResponseOJP = ojpV1_TripInfoResponseComponents['schemas']['OJP'];
export type OJPv1_TripInfoDeliverySchema = ojpV1_TripInfoResponseComponents['schemas']['OJPTripInfoDelivery'];
export type OJPv1_TripInfoResultStructureSchema = ojpV1_TripInfoResponseComponents['schemas']['TripInfoResultStructure'];
export type OJPv1_LocationInformationRequestOJP = ojpV1_LocationInformationRequestComponents['schemas']['OJP'];
export type OJPv1_LocationInformationRequestSchema = ojpV1_LocationInformationRequestComponents['schemas']['OJPLocationInformationRequest'];
export type OJPv1_InitialInputSchema = ojpV1_LocationInformationRequestComponents['schemas']['InitialInput'];
export type OJPv1_LocationResultSchema = ojpV1_LocationInformationResponseComponents['schemas']['LocationResult'];
export type OJPv1_LocationInformationRequestResponseOJP = ojpV1_LocationInformationResponseComponents['schemas']['OJP'];
export type OJPv1_LocationInformationDeliverySchema = ojpV1_LocationInformationResponseComponents['schemas']['OJPLocationInformationDelivery'];
export type OJPv1_TripRequestOJP = ojpV1_TripRequestComponents["schemas"]["OJP"];
export type OJPv1_TripParamsSchema = ojpV1_TripRequestComponents["schemas"]["TripParam"];
export type OJPv1_TripRequestSchema = ojpV1_TripRequestComponents["schemas"]["OJPTripRequest"];
export type OJPv1_TripRequestResponseOJP = ojpV1_TripRequestResponseComponents['schemas']['OJP'];
export type OJPv1_TripDeliverySchema = ojpV1_TripRequestResponseComponents['schemas']['OJPTripDelivery'];
export type OJPv1_TripResultSchema = ojpV1_TripRequestResponseComponents['schemas']['TripResult'];