swoop-common 2.2.186 → 2.2.187
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.
|
@@ -2,6 +2,8 @@ import type { ComponentBatchRequest } from '../models/ComponentBatchRequest';
|
|
|
2
2
|
import type { ComponentBatchResponse } from '../models/ComponentBatchResponse';
|
|
3
3
|
import type { ComponentId } from '../models/ComponentId';
|
|
4
4
|
import type { ComponentState } from '../models/ComponentState';
|
|
5
|
+
import type { CreditEntry } from '../models/CreditEntry';
|
|
6
|
+
import type { CreditEntryId } from '../models/CreditEntryId';
|
|
5
7
|
import type { Destination } from '../models/Destination';
|
|
6
8
|
import type { DTOComponentCreate } from '../models/DTOComponentCreate';
|
|
7
9
|
import type { DTOComponentRead } from '../models/DTOComponentRead';
|
|
@@ -101,4 +103,22 @@ export declare class ComponentService {
|
|
|
101
103
|
* @throws ApiError
|
|
102
104
|
*/
|
|
103
105
|
static componentStateUpdate(componentId: ComponentId, state: ComponentState): CancelablePromise<DTOComponentRead>;
|
|
106
|
+
/**
|
|
107
|
+
* Add Credit Entry
|
|
108
|
+
* Add a credit, gesture, or compensation entry to a component and push a row to the Google Sheet
|
|
109
|
+
* @param componentId Id of a component
|
|
110
|
+
* @param requestBody
|
|
111
|
+
* @returns CreditEntry Credit entry created successfully
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
static componentCreditEntryAdd(componentId: ComponentId, requestBody: CreditEntry): CancelablePromise<CreditEntry>;
|
|
115
|
+
/**
|
|
116
|
+
* Delete Credit Entry
|
|
117
|
+
* Soft-delete a credit entry and mark the corresponding Google Sheet row as DELETED
|
|
118
|
+
* @param componentId Id of a component
|
|
119
|
+
* @param entryId The ID of the credit entry to delete
|
|
120
|
+
* @returns void
|
|
121
|
+
* @throws ApiError
|
|
122
|
+
*/
|
|
123
|
+
static componentCreditEntryDelete(componentId: ComponentId, entryId: CreditEntryId): CancelablePromise<void>;
|
|
104
124
|
}
|
|
@@ -232,4 +232,52 @@ export class ComponentService {
|
|
|
232
232
|
},
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
+
/**
|
|
236
|
+
* Add Credit Entry
|
|
237
|
+
* Add a credit, gesture, or compensation entry to a component and push a row to the Google Sheet
|
|
238
|
+
* @param componentId Id of a component
|
|
239
|
+
* @param requestBody
|
|
240
|
+
* @returns CreditEntry Credit entry created successfully
|
|
241
|
+
* @throws ApiError
|
|
242
|
+
*/
|
|
243
|
+
static componentCreditEntryAdd(componentId, requestBody) {
|
|
244
|
+
return __request(OpenAPI, {
|
|
245
|
+
method: 'POST',
|
|
246
|
+
url: '/component/{componentId}/credit-entries',
|
|
247
|
+
path: {
|
|
248
|
+
'componentId': componentId,
|
|
249
|
+
},
|
|
250
|
+
body: requestBody,
|
|
251
|
+
mediaType: 'application/json',
|
|
252
|
+
errors: {
|
|
253
|
+
400: `If the payload is malformed or the component has no enquiry ID`,
|
|
254
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
255
|
+
404: `If the component does not exist`,
|
|
256
|
+
500: `Internal Server Error`,
|
|
257
|
+
},
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Delete Credit Entry
|
|
262
|
+
* Soft-delete a credit entry and mark the corresponding Google Sheet row as DELETED
|
|
263
|
+
* @param componentId Id of a component
|
|
264
|
+
* @param entryId The ID of the credit entry to delete
|
|
265
|
+
* @returns void
|
|
266
|
+
* @throws ApiError
|
|
267
|
+
*/
|
|
268
|
+
static componentCreditEntryDelete(componentId, entryId) {
|
|
269
|
+
return __request(OpenAPI, {
|
|
270
|
+
method: 'DELETE',
|
|
271
|
+
url: '/component/{componentId}/credit-entries/{entryId}',
|
|
272
|
+
path: {
|
|
273
|
+
'componentId': componentId,
|
|
274
|
+
'entryId': entryId,
|
|
275
|
+
},
|
|
276
|
+
errors: {
|
|
277
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
278
|
+
404: `If the component or credit entry does not exist`,
|
|
279
|
+
500: `Internal Server Error`,
|
|
280
|
+
},
|
|
281
|
+
});
|
|
282
|
+
}
|
|
235
283
|
}
|
|
@@ -4,6 +4,8 @@ import type { ComponentBatchRequest } from '../models/ComponentBatchRequest';
|
|
|
4
4
|
import type { ComponentBatchResponse } from '../models/ComponentBatchResponse';
|
|
5
5
|
import type { ComponentId } from '../models/ComponentId';
|
|
6
6
|
import type { ComponentState } from '../models/ComponentState';
|
|
7
|
+
import type { CreditEntry } from '../models/CreditEntry';
|
|
8
|
+
import type { CreditEntryId } from '../models/CreditEntryId';
|
|
7
9
|
import type { Destination } from '../models/Destination';
|
|
8
10
|
import type { DTOBranchRead } from '../models/DTOBranchRead';
|
|
9
11
|
import type { DTOComponentCreate } from '../models/DTOComponentCreate';
|
|
@@ -356,6 +358,24 @@ export declare class CoreService {
|
|
|
356
358
|
* @throws ApiError
|
|
357
359
|
*/
|
|
358
360
|
componentStateUpdate(componentId: ComponentId, state: ComponentState): CancelablePromise<DTOComponentRead>;
|
|
361
|
+
/**
|
|
362
|
+
* Add Credit Entry
|
|
363
|
+
* Add a credit, gesture, or compensation entry to a component and push a row to the Google Sheet
|
|
364
|
+
* @param componentId Id of a component
|
|
365
|
+
* @param requestBody
|
|
366
|
+
* @returns CreditEntry Credit entry created successfully
|
|
367
|
+
* @throws ApiError
|
|
368
|
+
*/
|
|
369
|
+
componentCreditEntryAdd(componentId: ComponentId, requestBody: CreditEntry): CancelablePromise<CreditEntry>;
|
|
370
|
+
/**
|
|
371
|
+
* Delete Credit Entry
|
|
372
|
+
* Soft-delete a credit entry and mark the corresponding Google Sheet row as DELETED
|
|
373
|
+
* @param componentId Id of a component
|
|
374
|
+
* @param entryId The ID of the credit entry to delete
|
|
375
|
+
* @returns void
|
|
376
|
+
* @throws ApiError
|
|
377
|
+
*/
|
|
378
|
+
componentCreditEntryDelete(componentId: ComponentId, entryId: CreditEntryId): CancelablePromise<void>;
|
|
359
379
|
/**
|
|
360
380
|
* List Trip Comparisons by Enquiry ID
|
|
361
381
|
* Retrieves all trip comparison items for a specific enquiryId.
|
|
@@ -810,6 +810,54 @@ export class CoreService {
|
|
|
810
810
|
},
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
|
+
/**
|
|
814
|
+
* Add Credit Entry
|
|
815
|
+
* Add a credit, gesture, or compensation entry to a component and push a row to the Google Sheet
|
|
816
|
+
* @param componentId Id of a component
|
|
817
|
+
* @param requestBody
|
|
818
|
+
* @returns CreditEntry Credit entry created successfully
|
|
819
|
+
* @throws ApiError
|
|
820
|
+
*/
|
|
821
|
+
componentCreditEntryAdd(componentId, requestBody) {
|
|
822
|
+
return __request(OpenAPI, {
|
|
823
|
+
method: 'POST',
|
|
824
|
+
url: '/component/{componentId}/credit-entries',
|
|
825
|
+
path: {
|
|
826
|
+
'componentId': componentId,
|
|
827
|
+
},
|
|
828
|
+
body: requestBody,
|
|
829
|
+
mediaType: 'application/json',
|
|
830
|
+
errors: {
|
|
831
|
+
400: `If the payload is malformed or the component has no enquiry ID`,
|
|
832
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
833
|
+
404: `If the component does not exist`,
|
|
834
|
+
500: `Internal Server Error`,
|
|
835
|
+
},
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Delete Credit Entry
|
|
840
|
+
* Soft-delete a credit entry and mark the corresponding Google Sheet row as DELETED
|
|
841
|
+
* @param componentId Id of a component
|
|
842
|
+
* @param entryId The ID of the credit entry to delete
|
|
843
|
+
* @returns void
|
|
844
|
+
* @throws ApiError
|
|
845
|
+
*/
|
|
846
|
+
componentCreditEntryDelete(componentId, entryId) {
|
|
847
|
+
return __request(OpenAPI, {
|
|
848
|
+
method: 'DELETE',
|
|
849
|
+
url: '/component/{componentId}/credit-entries/{entryId}',
|
|
850
|
+
path: {
|
|
851
|
+
'componentId': componentId,
|
|
852
|
+
'entryId': entryId,
|
|
853
|
+
},
|
|
854
|
+
errors: {
|
|
855
|
+
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
856
|
+
404: `If the component or credit entry does not exist`,
|
|
857
|
+
500: `Internal Server Error`,
|
|
858
|
+
},
|
|
859
|
+
});
|
|
860
|
+
}
|
|
813
861
|
/**
|
|
814
862
|
* List Trip Comparisons by Enquiry ID
|
|
815
863
|
* Retrieves all trip comparison items for a specific enquiryId.
|