swoop-common 2.1.66 → 2.1.67
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Branches } from '../models/Branches';
|
|
2
|
+
import type { BranchTag } from '../models/BranchTag';
|
|
2
3
|
import type { DTOItineraryCreate } from '../models/DTOItineraryCreate';
|
|
3
4
|
import type { DTOItineraryRead } from '../models/DTOItineraryRead';
|
|
4
5
|
import type { DTOItineraryUpdate } from '../models/DTOItineraryUpdate';
|
|
@@ -84,10 +85,14 @@ export declare class ItineraryService {
|
|
|
84
85
|
* Creates a new itinerary on an Enquiry
|
|
85
86
|
* @param enquiryId Enquiry Id
|
|
86
87
|
* @param requestBody
|
|
87
|
-
* @returns
|
|
88
|
+
* @returns any When a itinerary is created
|
|
88
89
|
* @throws ApiError
|
|
89
90
|
*/
|
|
90
|
-
itineraryCreate(enquiryId: EnquiryId, requestBody: DTOItineraryCreate): CancelablePromise<
|
|
91
|
+
itineraryCreate(enquiryId: EnquiryId, requestBody: DTOItineraryCreate): CancelablePromise<{
|
|
92
|
+
itinerary?: DTOItineraryRead;
|
|
93
|
+
tag?: BranchTag;
|
|
94
|
+
enquiryId?: EnquiryId;
|
|
95
|
+
}>;
|
|
91
96
|
/**
|
|
92
97
|
* Get Itinerary
|
|
93
98
|
* Get itinerary via ID
|
|
@@ -114,10 +119,14 @@ export declare class ItineraryService {
|
|
|
114
119
|
* @param enquiryId Enquiry Id
|
|
115
120
|
* @param tag the branch tag
|
|
116
121
|
* @param version the version of a branch
|
|
117
|
-
* @returns
|
|
122
|
+
* @returns any When the fork was successful
|
|
118
123
|
* @throws ApiError
|
|
119
124
|
*/
|
|
120
|
-
forkItinerary(enquiryId: EnquiryId, tag: string, version: string): CancelablePromise<
|
|
125
|
+
forkItinerary(enquiryId: EnquiryId, tag: string, version: string): CancelablePromise<{
|
|
126
|
+
itinerary?: DTOItineraryRead;
|
|
127
|
+
tag?: BranchTag;
|
|
128
|
+
enquiryId?: EnquiryId;
|
|
129
|
+
}>;
|
|
121
130
|
/**
|
|
122
131
|
* Promote an Itinerary
|
|
123
132
|
* This will take itinerary that matches the enquiry id, tag, and version to create a new revision on the head of it's parent branch. This will delete the old sub branch that is being promoted as will exist as the new main head of its parent. Promotions of any tag will always promote into the main branch.
|
|
@@ -129,13 +138,15 @@ export declare class ItineraryService {
|
|
|
129
138
|
*/
|
|
130
139
|
promoteItinerary(enquiryId: EnquiryId, tag: string, version: string): CancelablePromise<DTOItineraryRead>;
|
|
131
140
|
/**
|
|
132
|
-
* Sync Itinerary
|
|
133
|
-
*
|
|
134
|
-
* @param
|
|
135
|
-
* @
|
|
141
|
+
* Fake Sync Itinerary
|
|
142
|
+
* Fakes an error when syncing itinerary
|
|
143
|
+
* @param enquiryId Enquiry Id
|
|
144
|
+
* @param tag the branch tag
|
|
145
|
+
* @param version the version of a branch
|
|
146
|
+
* @returns void
|
|
136
147
|
* @throws ApiError
|
|
137
148
|
*/
|
|
138
|
-
|
|
149
|
+
fakeSyncItinerary(enquiryId: EnquiryId, tag: string, version: string): CancelablePromise<void>;
|
|
139
150
|
/**
|
|
140
151
|
* List Regions
|
|
141
152
|
* List all regions
|
|
@@ -41,6 +41,7 @@ export class ItineraryService {
|
|
|
41
41
|
errors: {
|
|
42
42
|
400: `If the payload is malformed`,
|
|
43
43
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
44
|
+
404: `If the entity does not exists`,
|
|
44
45
|
500: `When an internal server error occurs when creating a snapshot entity`,
|
|
45
46
|
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
46
47
|
},
|
|
@@ -130,7 +131,7 @@ export class ItineraryService {
|
|
|
130
131
|
errors: {
|
|
131
132
|
400: `If the payload is malformed`,
|
|
132
133
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
133
|
-
404: `If the
|
|
134
|
+
404: `If the entity does not exists`,
|
|
134
135
|
500: `When the snapshot fails to restore due to an internal server error`,
|
|
135
136
|
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
136
137
|
},
|
|
@@ -163,7 +164,7 @@ export class ItineraryService {
|
|
|
163
164
|
* Creates a new itinerary on an Enquiry
|
|
164
165
|
* @param enquiryId Enquiry Id
|
|
165
166
|
* @param requestBody
|
|
166
|
-
* @returns
|
|
167
|
+
* @returns any When a itinerary is created
|
|
167
168
|
* @throws ApiError
|
|
168
169
|
*/
|
|
169
170
|
itineraryCreate(enquiryId, requestBody) {
|
|
@@ -242,7 +243,7 @@ export class ItineraryService {
|
|
|
242
243
|
* @param enquiryId Enquiry Id
|
|
243
244
|
* @param tag the branch tag
|
|
244
245
|
* @param version the version of a branch
|
|
245
|
-
* @returns
|
|
246
|
+
* @returns any When the fork was successful
|
|
246
247
|
* @throws ApiError
|
|
247
248
|
*/
|
|
248
249
|
forkItinerary(enquiryId, tag, version) {
|
|
@@ -289,25 +290,27 @@ export class ItineraryService {
|
|
|
289
290
|
});
|
|
290
291
|
}
|
|
291
292
|
/**
|
|
292
|
-
* Sync Itinerary
|
|
293
|
-
*
|
|
294
|
-
* @param
|
|
295
|
-
* @
|
|
293
|
+
* Fake Sync Itinerary
|
|
294
|
+
* Fakes an error when syncing itinerary
|
|
295
|
+
* @param enquiryId Enquiry Id
|
|
296
|
+
* @param tag the branch tag
|
|
297
|
+
* @param version the version of a branch
|
|
298
|
+
* @returns void
|
|
296
299
|
* @throws ApiError
|
|
297
300
|
*/
|
|
298
|
-
|
|
301
|
+
fakeSyncItinerary(enquiryId, tag, version) {
|
|
299
302
|
return __request(OpenAPI, {
|
|
300
303
|
method: 'POST',
|
|
301
|
-
url: '/sync/{
|
|
304
|
+
url: '/itinerary/fake/sync/{enquiryId}/{tag}/{version}',
|
|
302
305
|
path: {
|
|
303
|
-
'
|
|
306
|
+
'enquiryId': enquiryId,
|
|
307
|
+
'tag': tag,
|
|
308
|
+
'version': version,
|
|
304
309
|
},
|
|
305
310
|
errors: {
|
|
306
|
-
400: `
|
|
311
|
+
400: `The faked error`,
|
|
307
312
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
308
|
-
404: `Related entity not found`,
|
|
309
313
|
500: `When an internal server error occurs whilst syncing`,
|
|
310
|
-
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
311
314
|
},
|
|
312
315
|
});
|
|
313
316
|
}
|
|
@@ -17,6 +17,7 @@ export class SnapshotService {
|
|
|
17
17
|
errors: {
|
|
18
18
|
400: `If the payload is malformed`,
|
|
19
19
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
20
|
+
404: `If the entity does not exists`,
|
|
20
21
|
500: `When an internal server error occurs when creating a snapshot entity`,
|
|
21
22
|
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
22
23
|
},
|
|
@@ -106,7 +107,7 @@ export class SnapshotService {
|
|
|
106
107
|
errors: {
|
|
107
108
|
400: `If the payload is malformed`,
|
|
108
109
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
109
|
-
404: `If the
|
|
110
|
+
404: `If the entity does not exists`,
|
|
110
111
|
500: `When the snapshot fails to restore due to an internal server error`,
|
|
111
112
|
503: `Service Unavailable - The server is temporarily unable to handle the request`,
|
|
112
113
|
},
|