swoop-common 2.2.158 → 2.2.160
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/models/Branches.d.ts +1 -0
- package/dist/api/generated/core/models/DTOBranchCreate.d.ts +1 -0
- package/dist/api/generated/core/models/DTOBranchEntity.d.ts +1 -0
- package/dist/api/generated/core/models/DTOBranchRead.d.ts +1 -0
- package/dist/api/generated/core/models/DTOBranchUpdate.d.ts +1 -0
- package/dist/api/generated/core/services/CoreService.d.ts +18 -1
- package/dist/api/generated/core/services/CoreService.js +35 -1
- package/dist/api/generated/core/services/ItineraryService.d.ts +18 -1
- package/dist/api/generated/core/services/ItineraryService.js +35 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import type { BranchTag } from './BranchTag';
|
|
|
3
3
|
import type { ItineraryRevisionGroupId } from './ItineraryRevisionGroupId';
|
|
4
4
|
export type DTOBranchCreate = {
|
|
5
5
|
tag: BranchTag;
|
|
6
|
+
branchName?: string;
|
|
6
7
|
parentId: BranchId;
|
|
7
8
|
currentRevisionGroupId: ItineraryRevisionGroupId;
|
|
8
9
|
};
|
|
@@ -5,6 +5,7 @@ import type { ComponentBatchResponse } from '../models/ComponentBatchResponse';
|
|
|
5
5
|
import type { ComponentId } from '../models/ComponentId';
|
|
6
6
|
import type { ComponentState } from '../models/ComponentState';
|
|
7
7
|
import type { Destination } from '../models/Destination';
|
|
8
|
+
import type { DTOBranchRead } from '../models/DTOBranchRead';
|
|
8
9
|
import type { DTOComponentCreate } from '../models/DTOComponentCreate';
|
|
9
10
|
import type { DTOComponentRead } from '../models/DTOComponentRead';
|
|
10
11
|
import type { DTOComponentUpdate } from '../models/DTOComponentUpdate';
|
|
@@ -151,6 +152,19 @@ export declare class CoreService {
|
|
|
151
152
|
* @throws ApiError
|
|
152
153
|
*/
|
|
153
154
|
itineraryUpdateAsNewRevision(enquiryId: InternalSwoopId, tag: string, requestBody: DTOItineraryUpdate, error?: number): CancelablePromise<DTOItineraryRead>;
|
|
155
|
+
/**
|
|
156
|
+
* Patch an Itinerary Option
|
|
157
|
+
* Updates branch-level fields (e.g. branchName) without creating a new itinerary revision.
|
|
158
|
+
* @param enquiryId Enquiry Id
|
|
159
|
+
* @param tag the branch tag
|
|
160
|
+
* @param requestBody
|
|
161
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
162
|
+
* @returns DTOBranchRead Branch updated with new name
|
|
163
|
+
* @throws ApiError
|
|
164
|
+
*/
|
|
165
|
+
patchItineraryOption(enquiryId: InternalSwoopId, tag: string, requestBody: {
|
|
166
|
+
branchName: string;
|
|
167
|
+
}, error?: number): CancelablePromise<DTOBranchRead>;
|
|
154
168
|
/**
|
|
155
169
|
* Fork an Itinerary
|
|
156
170
|
* this will create a new sub branch off the corresponding itinerary (enquiry id/tag/version). This does not sync with the Swoop CRM.
|
|
@@ -158,10 +172,13 @@ export declare class CoreService {
|
|
|
158
172
|
* @param tag the branch tag
|
|
159
173
|
* @param version the version of a branch
|
|
160
174
|
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
175
|
+
* @param requestBody
|
|
161
176
|
* @returns any When the fork was successful
|
|
162
177
|
* @throws ApiError
|
|
163
178
|
*/
|
|
164
|
-
forkItinerary(enquiryId: InternalSwoopId, tag: string, version: string, error?: number
|
|
179
|
+
forkItinerary(enquiryId: InternalSwoopId, tag: string, version: string, error?: number, requestBody?: {
|
|
180
|
+
branchName?: string;
|
|
181
|
+
}): CancelablePromise<{
|
|
165
182
|
itinerary?: DTOItineraryRead;
|
|
166
183
|
tag?: BranchTag;
|
|
167
184
|
enquiryId?: InternalSwoopId;
|
|
@@ -311,6 +311,37 @@ export class CoreService {
|
|
|
311
311
|
},
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
+
/**
|
|
315
|
+
* Patch an Itinerary Option
|
|
316
|
+
* Updates branch-level fields (e.g. branchName) without creating a new itinerary revision.
|
|
317
|
+
* @param enquiryId Enquiry Id
|
|
318
|
+
* @param tag the branch tag
|
|
319
|
+
* @param requestBody
|
|
320
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
321
|
+
* @returns DTOBranchRead Branch updated with new name
|
|
322
|
+
* @throws ApiError
|
|
323
|
+
*/
|
|
324
|
+
patchItineraryOption(enquiryId, tag, requestBody, error) {
|
|
325
|
+
return __request(OpenAPI, {
|
|
326
|
+
method: 'PATCH',
|
|
327
|
+
url: '/itinerary/{enquiryId}/{tag}',
|
|
328
|
+
path: {
|
|
329
|
+
'enquiryId': enquiryId,
|
|
330
|
+
'tag': tag,
|
|
331
|
+
},
|
|
332
|
+
query: {
|
|
333
|
+
'error': error,
|
|
334
|
+
},
|
|
335
|
+
body: requestBody,
|
|
336
|
+
mediaType: 'application/json',
|
|
337
|
+
errors: {
|
|
338
|
+
400: `If the payload is malformed`,
|
|
339
|
+
401: `When the client is not authorised`,
|
|
340
|
+
404: `If a resource does not exist`,
|
|
341
|
+
500: `When an unexpected error occurs`,
|
|
342
|
+
},
|
|
343
|
+
});
|
|
344
|
+
}
|
|
314
345
|
/**
|
|
315
346
|
* Fork an Itinerary
|
|
316
347
|
* this will create a new sub branch off the corresponding itinerary (enquiry id/tag/version). This does not sync with the Swoop CRM.
|
|
@@ -318,10 +349,11 @@ export class CoreService {
|
|
|
318
349
|
* @param tag the branch tag
|
|
319
350
|
* @param version the version of a branch
|
|
320
351
|
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
352
|
+
* @param requestBody
|
|
321
353
|
* @returns any When the fork was successful
|
|
322
354
|
* @throws ApiError
|
|
323
355
|
*/
|
|
324
|
-
forkItinerary(enquiryId, tag, version, error) {
|
|
356
|
+
forkItinerary(enquiryId, tag, version, error, requestBody) {
|
|
325
357
|
return __request(OpenAPI, {
|
|
326
358
|
method: 'POST',
|
|
327
359
|
url: '/itinerary/fork/{enquiryId}/{tag}/{version}',
|
|
@@ -333,6 +365,8 @@ export class CoreService {
|
|
|
333
365
|
query: {
|
|
334
366
|
'error': error,
|
|
335
367
|
},
|
|
368
|
+
body: requestBody,
|
|
369
|
+
mediaType: 'application/json',
|
|
336
370
|
errors: {
|
|
337
371
|
400: `If the payload is malformed`,
|
|
338
372
|
401: `When the client is not authorised`,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Branches } from '../models/Branches';
|
|
2
2
|
import type { BranchTag } from '../models/BranchTag';
|
|
3
|
+
import type { DTOBranchRead } from '../models/DTOBranchRead';
|
|
3
4
|
import type { DTOItineraryCreate } from '../models/DTOItineraryCreate';
|
|
4
5
|
import type { DTOItineraryRead } from '../models/DTOItineraryRead';
|
|
5
6
|
import type { DTOItineraryUpdate } from '../models/DTOItineraryUpdate';
|
|
@@ -66,6 +67,19 @@ export declare class ItineraryService {
|
|
|
66
67
|
* @throws ApiError
|
|
67
68
|
*/
|
|
68
69
|
static itineraryUpdateAsNewRevision(enquiryId: InternalSwoopId, tag: string, requestBody: DTOItineraryUpdate, error?: number): CancelablePromise<DTOItineraryRead>;
|
|
70
|
+
/**
|
|
71
|
+
* Patch an Itinerary Option
|
|
72
|
+
* Updates branch-level fields (e.g. branchName) without creating a new itinerary revision.
|
|
73
|
+
* @param enquiryId Enquiry Id
|
|
74
|
+
* @param tag the branch tag
|
|
75
|
+
* @param requestBody
|
|
76
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
77
|
+
* @returns DTOBranchRead Branch updated with new name
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static patchItineraryOption(enquiryId: InternalSwoopId, tag: string, requestBody: {
|
|
81
|
+
branchName: string;
|
|
82
|
+
}, error?: number): CancelablePromise<DTOBranchRead>;
|
|
69
83
|
/**
|
|
70
84
|
* Fork an Itinerary
|
|
71
85
|
* this will create a new sub branch off the corresponding itinerary (enquiry id/tag/version). This does not sync with the Swoop CRM.
|
|
@@ -73,10 +87,13 @@ export declare class ItineraryService {
|
|
|
73
87
|
* @param tag the branch tag
|
|
74
88
|
* @param version the version of a branch
|
|
75
89
|
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
90
|
+
* @param requestBody
|
|
76
91
|
* @returns any When the fork was successful
|
|
77
92
|
* @throws ApiError
|
|
78
93
|
*/
|
|
79
|
-
static forkItinerary(enquiryId: InternalSwoopId, tag: string, version: string, error?: number
|
|
94
|
+
static forkItinerary(enquiryId: InternalSwoopId, tag: string, version: string, error?: number, requestBody?: {
|
|
95
|
+
branchName?: string;
|
|
96
|
+
}): CancelablePromise<{
|
|
80
97
|
itinerary?: DTOItineraryRead;
|
|
81
98
|
tag?: BranchTag;
|
|
82
99
|
enquiryId?: InternalSwoopId;
|
|
@@ -157,6 +157,37 @@ export class ItineraryService {
|
|
|
157
157
|
},
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* Patch an Itinerary Option
|
|
162
|
+
* Updates branch-level fields (e.g. branchName) without creating a new itinerary revision.
|
|
163
|
+
* @param enquiryId Enquiry Id
|
|
164
|
+
* @param tag the branch tag
|
|
165
|
+
* @param requestBody
|
|
166
|
+
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
167
|
+
* @returns DTOBranchRead Branch updated with new name
|
|
168
|
+
* @throws ApiError
|
|
169
|
+
*/
|
|
170
|
+
static patchItineraryOption(enquiryId, tag, requestBody, error) {
|
|
171
|
+
return __request(OpenAPI, {
|
|
172
|
+
method: 'PATCH',
|
|
173
|
+
url: '/itinerary/{enquiryId}/{tag}',
|
|
174
|
+
path: {
|
|
175
|
+
'enquiryId': enquiryId,
|
|
176
|
+
'tag': tag,
|
|
177
|
+
},
|
|
178
|
+
query: {
|
|
179
|
+
'error': error,
|
|
180
|
+
},
|
|
181
|
+
body: requestBody,
|
|
182
|
+
mediaType: 'application/json',
|
|
183
|
+
errors: {
|
|
184
|
+
400: `If the payload is malformed`,
|
|
185
|
+
401: `When the client is not authorised`,
|
|
186
|
+
404: `If a resource does not exist`,
|
|
187
|
+
500: `When an unexpected error occurs`,
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
}
|
|
160
191
|
/**
|
|
161
192
|
* Fork an Itinerary
|
|
162
193
|
* this will create a new sub branch off the corresponding itinerary (enquiry id/tag/version). This does not sync with the Swoop CRM.
|
|
@@ -164,10 +195,11 @@ export class ItineraryService {
|
|
|
164
195
|
* @param tag the branch tag
|
|
165
196
|
* @param version the version of a branch
|
|
166
197
|
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
198
|
+
* @param requestBody
|
|
167
199
|
* @returns any When the fork was successful
|
|
168
200
|
* @throws ApiError
|
|
169
201
|
*/
|
|
170
|
-
static forkItinerary(enquiryId, tag, version, error) {
|
|
202
|
+
static forkItinerary(enquiryId, tag, version, error, requestBody) {
|
|
171
203
|
return __request(OpenAPI, {
|
|
172
204
|
method: 'POST',
|
|
173
205
|
url: '/itinerary/fork/{enquiryId}/{tag}/{version}',
|
|
@@ -179,6 +211,8 @@ export class ItineraryService {
|
|
|
179
211
|
query: {
|
|
180
212
|
'error': error,
|
|
181
213
|
},
|
|
214
|
+
body: requestBody,
|
|
215
|
+
mediaType: 'application/json',
|
|
182
216
|
errors: {
|
|
183
217
|
400: `If the payload is malformed`,
|
|
184
218
|
401: `When the client is not authorised`,
|