swoop-common 2.1.83 → 2.1.84

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.
@@ -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,4 @@
1
+ /**
2
+ * error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
3
+ */
4
+ export type MockErrorCodeQueryParam = number;
@@ -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,4 @@
1
+ /**
2
+ * error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
3
+ */
4
+ export type MockErrorCodeQueryParam = number;
@@ -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,16 +176,20 @@ 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: {
@@ -228,10 +232,11 @@ export class ItineraryService {
228
232
  * @param enquiryId Enquiry Id
229
233
  * @param tag the branch tag
230
234
  * @param requestBody
235
+ * @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
231
236
  * @returns DTOItineraryRead When a new revision is created successfully
232
237
  * @throws ApiError
233
238
  */
234
- itineraryUpdateAsNewRevision(enquiryId, tag, requestBody) {
239
+ itineraryUpdateAsNewRevision(enquiryId, tag, requestBody, error) {
235
240
  return __request(OpenAPI, {
236
241
  method: 'PUT',
237
242
  url: '/itinerary/{enquiryId}/{tag}',
@@ -239,6 +244,9 @@ export class ItineraryService {
239
244
  'enquiryId': enquiryId,
240
245
  'tag': tag,
241
246
  },
247
+ query: {
248
+ 'error': error,
249
+ },
242
250
  body: requestBody,
243
251
  mediaType: 'application/json',
244
252
  errors: {
@@ -255,10 +263,11 @@ export class ItineraryService {
255
263
  * @param enquiryId Enquiry Id
256
264
  * @param tag the branch tag
257
265
  * @param version the version of a branch
266
+ * @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
258
267
  * @returns any When the fork was successful
259
268
  * @throws ApiError
260
269
  */
261
- forkItinerary(enquiryId, tag, version) {
270
+ forkItinerary(enquiryId, tag, version, error) {
262
271
  return __request(OpenAPI, {
263
272
  method: 'POST',
264
273
  url: '/itinerary/fork/{enquiryId}/{tag}/{version}',
@@ -267,6 +276,9 @@ export class ItineraryService {
267
276
  'tag': tag,
268
277
  'version': version,
269
278
  },
279
+ query: {
280
+ 'error': error,
281
+ },
270
282
  errors: {
271
283
  400: `If the payload is malformed`,
272
284
  401: `Unauthorized - Missing or invalid Authorization header`,
@@ -281,10 +293,11 @@ export class ItineraryService {
281
293
  * @param enquiryId Enquiry Id
282
294
  * @param tag the branch tag
283
295
  * @param version the version of a branch
296
+ * @param error error can be set to 1, 100, 101, 200, and 201 to mock sync error responses
284
297
  * @returns DTOItineraryRead The new head of the parent branch
285
298
  * @throws ApiError
286
299
  */
287
- promoteItinerary(enquiryId, tag, version) {
300
+ promoteItinerary(enquiryId, tag, version, error) {
288
301
  return __request(OpenAPI, {
289
302
  method: 'POST',
290
303
  url: '/itinerary/promote/{enquiryId}/{tag}/{version}',
@@ -293,6 +306,9 @@ export class ItineraryService {
293
306
  'tag': tag,
294
307
  'version': version,
295
308
  },
309
+ query: {
310
+ 'error': error,
311
+ },
296
312
  errors: {
297
313
  400: `If the payload is malformed`,
298
314
  401: `Unauthorized - Missing or invalid Authorization header`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.1.83",
3
+ "version": "2.1.84",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {