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.
@@ -4,5 +4,6 @@ export declare enum BookingStatus {
4
4
  CONFIRMED = "Confirmed",
5
5
  CANCELLED = "Cancelled",
6
6
  TO_BE_CONFIRMED = "ToBeConfirmed",
7
- INDEPENDENTLY_BOOKED = "IndependentlyBooked"
7
+ INDEPENDENTLY_BOOKED = "IndependentlyBooked",
8
+ RECOMMENDED = "Recommended"
8
9
  }
@@ -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
  };
@@ -5,6 +5,7 @@ import type { Metadata } from './Metadata';
5
5
  export type DTOBranchEntity = {
6
6
  id: BranchId;
7
7
  tag: BranchTag;
8
+ branchName?: string;
8
9
  metadata: Metadata;
9
10
  parentId: BranchId;
10
11
  currentRevisionGroupId: ItineraryRevisionGroupId;
@@ -5,6 +5,7 @@ import type { Metadata } from './Metadata';
5
5
  export type DTOBranchRead = {
6
6
  id: BranchId;
7
7
  tag: BranchTag;
8
+ branchName?: string;
8
9
  metadata: Metadata;
9
10
  parentId: BranchId;
10
11
  currentRevisionGroupId: ItineraryRevisionGroupId;
@@ -1,4 +1,5 @@
1
1
  import type { BranchTag } from './BranchTag';
2
2
  export type DTOBranchUpdate = {
3
3
  tag: BranchTag;
4
+ branchName?: string;
4
5
  };
@@ -8,6 +8,7 @@ import type { Title } from './Title';
8
8
  export type DTOItineraryCreate = {
9
9
  enquiryId?: InternalSwoopId;
10
10
  title: Title;
11
+ branchName?: string;
11
12
  welcomeNote?: string;
12
13
  values?: Array<ItineraryValue>;
13
14
  amendments?: Array<Amendment>;
@@ -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): CancelablePromise<{
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): CancelablePromise<{
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`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.2.157",
3
+ "version": "2.2.159",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {