swoop-common 2.1.83 → 2.1.85
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/api/generated/core/exports.d.ts +1 -0
- package/dist/api/generated/core/index.d.ts +1 -0
- package/dist/api/generated/core/models/MockErrorCodeQueryParam.d.ts +4 -0
- package/dist/api/generated/core/models/MockErrorCodeQueryParam.js +1 -0
- package/dist/api/generated/itinerary/index.d.ts +1 -0
- package/dist/api/generated/itinerary/models/MockErrorCodeQueryParam.d.ts +4 -0
- package/dist/api/generated/itinerary/models/MockErrorCodeQueryParam.js +1 -0
- package/dist/api/generated/itinerary/services/ItineraryService.d.ts +8 -4
- package/dist/api/generated/itinerary/services/ItineraryService.js +28 -7
- package/package.json +1 -1
|
@@ -62,6 +62,7 @@ export type { LimitQueryParam } from './index';
|
|
|
62
62
|
export { Meals } from './index';
|
|
63
63
|
export type { Media } from './index';
|
|
64
64
|
export type { Metadata } from './index';
|
|
65
|
+
export type { MockErrorCodeQueryParam } from './index';
|
|
65
66
|
export type { OnQueryParam } from './index';
|
|
66
67
|
export { OrderQueryParam } from './index';
|
|
67
68
|
export { OrgId } from './index';
|
|
@@ -64,6 +64,7 @@ export type { LimitQueryParam } from './models/LimitQueryParam';
|
|
|
64
64
|
export { Meals } from './models/Meals';
|
|
65
65
|
export type { Media } from './models/Media';
|
|
66
66
|
export type { Metadata } from './models/Metadata';
|
|
67
|
+
export type { MockErrorCodeQueryParam } from './models/MockErrorCodeQueryParam';
|
|
67
68
|
export type { OnQueryParam } from './models/OnQueryParam';
|
|
68
69
|
export { OrderQueryParam } from './models/OrderQueryParam';
|
|
69
70
|
export { OrgId } from './models/OrgId';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -64,6 +64,7 @@ export type { LimitQueryParam } from './models/LimitQueryParam';
|
|
|
64
64
|
export { Meals } from './models/Meals';
|
|
65
65
|
export type { Media } from './models/Media';
|
|
66
66
|
export type { Metadata } from './models/Metadata';
|
|
67
|
+
export type { MockErrorCodeQueryParam } from './models/MockErrorCodeQueryParam';
|
|
67
68
|
export type { OnQueryParam } from './models/OnQueryParam';
|
|
68
69
|
export { OrderQueryParam } from './models/OrderQueryParam';
|
|
69
70
|
export { OrgId } from './models/OrgId';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -91,10 +91,11 @@ export declare class ItineraryService {
|
|
|
91
91
|
* Creates a new itinerary on an Enquiry
|
|
92
92
|
* @param enquiryId Enquiry Id
|
|
93
93
|
* @param requestBody
|
|
94
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
94
95
|
* @returns any When a itinerary is created
|
|
95
96
|
* @throws ApiError
|
|
96
97
|
*/
|
|
97
|
-
itineraryCreate(enquiryId: EnquiryId, requestBody: DTOItineraryCreate): CancelablePromise<{
|
|
98
|
+
itineraryCreate(enquiryId: EnquiryId, requestBody: DTOItineraryCreate, error?: number): CancelablePromise<{
|
|
98
99
|
itinerary?: DTOItineraryRead;
|
|
99
100
|
tag?: BranchTag;
|
|
100
101
|
enquiryId?: EnquiryId;
|
|
@@ -115,20 +116,22 @@ export declare class ItineraryService {
|
|
|
115
116
|
* @param enquiryId Enquiry Id
|
|
116
117
|
* @param tag the branch tag
|
|
117
118
|
* @param requestBody
|
|
119
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
118
120
|
* @returns DTOItineraryRead When a new revision is created successfully
|
|
119
121
|
* @throws ApiError
|
|
120
122
|
*/
|
|
121
|
-
itineraryUpdateAsNewRevision(enquiryId: EnquiryId, tag: string, requestBody: DTOItineraryUpdate): CancelablePromise<DTOItineraryRead>;
|
|
123
|
+
itineraryUpdateAsNewRevision(enquiryId: EnquiryId, tag: string, requestBody: DTOItineraryUpdate, error?: number): CancelablePromise<DTOItineraryRead>;
|
|
122
124
|
/**
|
|
123
125
|
* Fork an Itinerary
|
|
124
126
|
* this will create a new sub branch off the corresponding itinerary (enquiry id/tag/version)
|
|
125
127
|
* @param enquiryId Enquiry Id
|
|
126
128
|
* @param tag the branch tag
|
|
127
129
|
* @param version the version of a branch
|
|
130
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
128
131
|
* @returns any When the fork was successful
|
|
129
132
|
* @throws ApiError
|
|
130
133
|
*/
|
|
131
|
-
forkItinerary(enquiryId: EnquiryId, tag: string, version: string): CancelablePromise<{
|
|
134
|
+
forkItinerary(enquiryId: EnquiryId, tag: string, version: string, error?: number): CancelablePromise<{
|
|
132
135
|
itinerary?: DTOItineraryRead;
|
|
133
136
|
tag?: BranchTag;
|
|
134
137
|
enquiryId?: EnquiryId;
|
|
@@ -139,10 +142,11 @@ export declare class ItineraryService {
|
|
|
139
142
|
* @param enquiryId Enquiry Id
|
|
140
143
|
* @param tag the branch tag
|
|
141
144
|
* @param version the version of a branch
|
|
145
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
142
146
|
* @returns DTOItineraryRead The new head of the parent branch
|
|
143
147
|
* @throws ApiError
|
|
144
148
|
*/
|
|
145
|
-
promoteItinerary(enquiryId: EnquiryId, tag: string, version: string): CancelablePromise<DTOItineraryRead>;
|
|
149
|
+
promoteItinerary(enquiryId: EnquiryId, tag: string, version: string, error?: number): CancelablePromise<DTOItineraryRead>;
|
|
146
150
|
/**
|
|
147
151
|
* Fake Sync Itinerary
|
|
148
152
|
* Fakes an error when syncing itinerary
|
|
@@ -176,21 +176,27 @@ export class ItineraryService {
|
|
|
176
176
|
* Creates a new itinerary on an Enquiry
|
|
177
177
|
* @param enquiryId Enquiry Id
|
|
178
178
|
* @param requestBody
|
|
179
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
179
180
|
* @returns any When a itinerary is created
|
|
180
181
|
* @throws ApiError
|
|
181
182
|
*/
|
|
182
|
-
itineraryCreate(enquiryId, requestBody) {
|
|
183
|
+
itineraryCreate(enquiryId, requestBody, error) {
|
|
183
184
|
return __request(OpenAPI, {
|
|
184
185
|
method: 'POST',
|
|
185
186
|
url: '/itinerary/create/{enquiryId}',
|
|
186
187
|
path: {
|
|
187
188
|
'enquiryId': enquiryId,
|
|
188
189
|
},
|
|
190
|
+
query: {
|
|
191
|
+
'error': error,
|
|
192
|
+
},
|
|
189
193
|
body: requestBody,
|
|
190
194
|
mediaType: 'application/json',
|
|
191
195
|
errors: {
|
|
192
196
|
400: `If the payload is malformed`,
|
|
193
197
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
198
|
+
404: `the customer linked via enquiryId does not exist or has been deleted or a referenced traveller group or traveller ID was not found`,
|
|
199
|
+
422: `An itinerary meets CRM 'late' criteria but 'isLateBookingConfirmed' is false`,
|
|
194
200
|
500: `When an internal server error occurs when creating a itinerary entity`,
|
|
195
201
|
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
196
202
|
},
|
|
@@ -228,10 +234,11 @@ export class ItineraryService {
|
|
|
228
234
|
* @param enquiryId Enquiry Id
|
|
229
235
|
* @param tag the branch tag
|
|
230
236
|
* @param requestBody
|
|
237
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
231
238
|
* @returns DTOItineraryRead When a new revision is created successfully
|
|
232
239
|
* @throws ApiError
|
|
233
240
|
*/
|
|
234
|
-
itineraryUpdateAsNewRevision(enquiryId, tag, requestBody) {
|
|
241
|
+
itineraryUpdateAsNewRevision(enquiryId, tag, requestBody, error) {
|
|
235
242
|
return __request(OpenAPI, {
|
|
236
243
|
method: 'PUT',
|
|
237
244
|
url: '/itinerary/{enquiryId}/{tag}',
|
|
@@ -239,12 +246,16 @@ export class ItineraryService {
|
|
|
239
246
|
'enquiryId': enquiryId,
|
|
240
247
|
'tag': tag,
|
|
241
248
|
},
|
|
249
|
+
query: {
|
|
250
|
+
'error': error,
|
|
251
|
+
},
|
|
242
252
|
body: requestBody,
|
|
243
253
|
mediaType: 'application/json',
|
|
244
254
|
errors: {
|
|
245
255
|
400: `If the payload is malformed`,
|
|
246
256
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
247
|
-
404: `When the itinerary enquiry id and tag do not exists`,
|
|
257
|
+
404: `When the itinerary enquiry id and tag do not exists, or the customer linked via enquiryId does not exist, or has been deleted or a referenced traveller group or traveller ID was not found`,
|
|
258
|
+
422: `An itinerary meets CRM 'late' criteria but 'isLateBookingConfirmed' is false`,
|
|
248
259
|
500: `When an internal server error occurs updating an itinerary as a new revision`,
|
|
249
260
|
},
|
|
250
261
|
});
|
|
@@ -255,10 +266,11 @@ export class ItineraryService {
|
|
|
255
266
|
* @param enquiryId Enquiry Id
|
|
256
267
|
* @param tag the branch tag
|
|
257
268
|
* @param version the version of a branch
|
|
269
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
258
270
|
* @returns any When the fork was successful
|
|
259
271
|
* @throws ApiError
|
|
260
272
|
*/
|
|
261
|
-
forkItinerary(enquiryId, tag, version) {
|
|
273
|
+
forkItinerary(enquiryId, tag, version, error) {
|
|
262
274
|
return __request(OpenAPI, {
|
|
263
275
|
method: 'POST',
|
|
264
276
|
url: '/itinerary/fork/{enquiryId}/{tag}/{version}',
|
|
@@ -267,10 +279,14 @@ export class ItineraryService {
|
|
|
267
279
|
'tag': tag,
|
|
268
280
|
'version': version,
|
|
269
281
|
},
|
|
282
|
+
query: {
|
|
283
|
+
'error': error,
|
|
284
|
+
},
|
|
270
285
|
errors: {
|
|
271
286
|
400: `If the payload is malformed`,
|
|
272
287
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
273
|
-
404: `When the itinerary enquiry id and tag do not exists`,
|
|
288
|
+
404: `When the itinerary enquiry id and tag do not exists, or the customer linked via enquiryId does not exist, or has been deleted or a referenced traveller group or traveller ID was not found`,
|
|
289
|
+
422: `An itinerary meets CRM 'late' criteria but 'isLateBookingConfirmed' is false`,
|
|
274
290
|
500: `When an internal server error occurs updating an itinerary as a new revision`,
|
|
275
291
|
},
|
|
276
292
|
});
|
|
@@ -281,10 +297,11 @@ export class ItineraryService {
|
|
|
281
297
|
* @param enquiryId Enquiry Id
|
|
282
298
|
* @param tag the branch tag
|
|
283
299
|
* @param version the version of a branch
|
|
300
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
284
301
|
* @returns DTOItineraryRead The new head of the parent branch
|
|
285
302
|
* @throws ApiError
|
|
286
303
|
*/
|
|
287
|
-
promoteItinerary(enquiryId, tag, version) {
|
|
304
|
+
promoteItinerary(enquiryId, tag, version, error) {
|
|
288
305
|
return __request(OpenAPI, {
|
|
289
306
|
method: 'POST',
|
|
290
307
|
url: '/itinerary/promote/{enquiryId}/{tag}/{version}',
|
|
@@ -293,10 +310,14 @@ export class ItineraryService {
|
|
|
293
310
|
'tag': tag,
|
|
294
311
|
'version': version,
|
|
295
312
|
},
|
|
313
|
+
query: {
|
|
314
|
+
'error': error,
|
|
315
|
+
},
|
|
296
316
|
errors: {
|
|
297
317
|
400: `If the payload is malformed`,
|
|
298
318
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
299
|
-
404: `When the itinerary enquiry id and tag do not exists`,
|
|
319
|
+
404: `When the itinerary enquiry id and tag do not exists, or the customer linked via enquiryId does not exist, or has been deleted or a referenced traveller group or traveller ID was not found`,
|
|
320
|
+
422: `An itinerary meets CRM 'late' criteria but 'isLateBookingConfirmed' is false`,
|
|
300
321
|
500: `When an internal server error occurs updating an itinerary as a new revision`,
|
|
301
322
|
},
|
|
302
323
|
});
|