swoop-common 2.2.157 → 2.2.159
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/BookingStatus.d.ts +2 -1
- package/dist/api/generated/core/models/BookingStatus.js +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/models/DTOItineraryCreate.d.ts +1 -0
- package/dist/api/generated/core/models/DTOItineraryUpdate.d.ts +1 -0
- package/dist/api/generated/core/services/CoreService.d.ts +4 -1
- package/dist/api/generated/core/services/CoreService.js +4 -1
- package/dist/api/generated/core/services/ItineraryService.d.ts +4 -1
- package/dist/api/generated/core/services/ItineraryService.js +4 -1
- package/package.json +1 -1
|
@@ -10,4 +10,5 @@ export var BookingStatus;
|
|
|
10
10
|
BookingStatus["CANCELLED"] = "Cancelled";
|
|
11
11
|
BookingStatus["TO_BE_CONFIRMED"] = "ToBeConfirmed";
|
|
12
12
|
BookingStatus["INDEPENDENTLY_BOOKED"] = "IndependentlyBooked";
|
|
13
|
+
BookingStatus["RECOMMENDED"] = "Recommended";
|
|
13
14
|
})(BookingStatus || (BookingStatus = {}));
|
|
@@ -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
|
};
|
|
@@ -6,6 +6,7 @@ import type { QuoteOptions } from './QuoteOptions';
|
|
|
6
6
|
import type { Title } from './Title';
|
|
7
7
|
export type DTOItineraryUpdate = {
|
|
8
8
|
title?: Title;
|
|
9
|
+
branchName?: string;
|
|
9
10
|
welcomeNote?: string;
|
|
10
11
|
values?: Array<ItineraryValue>;
|
|
11
12
|
componentInstances?: Array<ComponentInstance>;
|
|
@@ -158,10 +158,13 @@ export declare class CoreService {
|
|
|
158
158
|
* @param tag the branch tag
|
|
159
159
|
* @param version the version of a branch
|
|
160
160
|
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
161
|
+
* @param requestBody
|
|
161
162
|
* @returns any When the fork was successful
|
|
162
163
|
* @throws ApiError
|
|
163
164
|
*/
|
|
164
|
-
forkItinerary(enquiryId: InternalSwoopId, tag: string, version: string, error?: number
|
|
165
|
+
forkItinerary(enquiryId: InternalSwoopId, tag: string, version: string, error?: number, requestBody?: {
|
|
166
|
+
branchName?: string;
|
|
167
|
+
}): CancelablePromise<{
|
|
165
168
|
itinerary?: DTOItineraryRead;
|
|
166
169
|
tag?: BranchTag;
|
|
167
170
|
enquiryId?: InternalSwoopId;
|
|
@@ -318,10 +318,11 @@ export class CoreService {
|
|
|
318
318
|
* @param tag the branch tag
|
|
319
319
|
* @param version the version of a branch
|
|
320
320
|
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
321
|
+
* @param requestBody
|
|
321
322
|
* @returns any When the fork was successful
|
|
322
323
|
* @throws ApiError
|
|
323
324
|
*/
|
|
324
|
-
forkItinerary(enquiryId, tag, version, error) {
|
|
325
|
+
forkItinerary(enquiryId, tag, version, error, requestBody) {
|
|
325
326
|
return __request(OpenAPI, {
|
|
326
327
|
method: 'POST',
|
|
327
328
|
url: '/itinerary/fork/{enquiryId}/{tag}/{version}',
|
|
@@ -333,6 +334,8 @@ export class CoreService {
|
|
|
333
334
|
query: {
|
|
334
335
|
'error': error,
|
|
335
336
|
},
|
|
337
|
+
body: requestBody,
|
|
338
|
+
mediaType: 'application/json',
|
|
336
339
|
errors: {
|
|
337
340
|
400: `If the payload is malformed`,
|
|
338
341
|
401: `When the client is not authorised`,
|
|
@@ -73,10 +73,13 @@ export declare class ItineraryService {
|
|
|
73
73
|
* @param tag the branch tag
|
|
74
74
|
* @param version the version of a branch
|
|
75
75
|
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
76
|
+
* @param requestBody
|
|
76
77
|
* @returns any When the fork was successful
|
|
77
78
|
* @throws ApiError
|
|
78
79
|
*/
|
|
79
|
-
static forkItinerary(enquiryId: InternalSwoopId, tag: string, version: string, error?: number
|
|
80
|
+
static forkItinerary(enquiryId: InternalSwoopId, tag: string, version: string, error?: number, requestBody?: {
|
|
81
|
+
branchName?: string;
|
|
82
|
+
}): CancelablePromise<{
|
|
80
83
|
itinerary?: DTOItineraryRead;
|
|
81
84
|
tag?: BranchTag;
|
|
82
85
|
enquiryId?: InternalSwoopId;
|
|
@@ -164,10 +164,11 @@ export class ItineraryService {
|
|
|
164
164
|
* @param tag the branch tag
|
|
165
165
|
* @param version the version of a branch
|
|
166
166
|
* @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
|
|
167
|
+
* @param requestBody
|
|
167
168
|
* @returns any When the fork was successful
|
|
168
169
|
* @throws ApiError
|
|
169
170
|
*/
|
|
170
|
-
static forkItinerary(enquiryId, tag, version, error) {
|
|
171
|
+
static forkItinerary(enquiryId, tag, version, error, requestBody) {
|
|
171
172
|
return __request(OpenAPI, {
|
|
172
173
|
method: 'POST',
|
|
173
174
|
url: '/itinerary/fork/{enquiryId}/{tag}/{version}',
|
|
@@ -179,6 +180,8 @@ export class ItineraryService {
|
|
|
179
180
|
query: {
|
|
180
181
|
'error': error,
|
|
181
182
|
},
|
|
183
|
+
body: requestBody,
|
|
184
|
+
mediaType: 'application/json',
|
|
182
185
|
errors: {
|
|
183
186
|
400: `If the payload is malformed`,
|
|
184
187
|
401: `When the client is not authorised`,
|