swoop-common 2.2.138 → 2.2.139
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/exports.d.ts +1 -0
- package/dist/api/generated/core/index.d.ts +1 -0
- package/dist/api/generated/core/models/ReserveTripRequest.d.ts +10 -0
- package/dist/api/generated/core/models/ReserveTripRequest.js +1 -0
- package/dist/api/generated/core/services/CoreService.d.ts +3 -1
- package/dist/api/generated/core/services/CoreService.js +4 -1
- package/dist/api/generated/core/services/TripComparisonService.d.ts +3 -1
- package/dist/api/generated/core/services/TripComparisonService.js +4 -1
- package/package.json +1 -1
|
@@ -101,6 +101,7 @@ export type { PublicSnapshotPricing } from './index';
|
|
|
101
101
|
export type { PublicSnapshotTraveller } from './index';
|
|
102
102
|
export type { QuoteOptions } from './index';
|
|
103
103
|
export type { RegionId } from './index';
|
|
104
|
+
export type { ReserveTripRequest } from './index';
|
|
104
105
|
export type { SearchQueryParam } from './index';
|
|
105
106
|
export type { SnapshotId } from './index';
|
|
106
107
|
export type { SnapshotIdPathParam } from './index';
|
|
@@ -101,6 +101,7 @@ export type { PublicSnapshotPricing } from './models/PublicSnapshotPricing';
|
|
|
101
101
|
export type { PublicSnapshotTraveller } from './models/PublicSnapshotTraveller';
|
|
102
102
|
export type { QuoteOptions } from './models/QuoteOptions';
|
|
103
103
|
export type { RegionId } from './models/RegionId';
|
|
104
|
+
export type { ReserveTripRequest } from './models/ReserveTripRequest';
|
|
104
105
|
export type { SearchQueryParam } from './models/SearchQueryParam';
|
|
105
106
|
export type { SnapshotId } from './models/SnapshotId';
|
|
106
107
|
export type { SnapshotIdPathParam } from './models/SnapshotIdPathParam';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -25,6 +25,7 @@ import type { DTOTripComparisonUpdate } from '../models/DTOTripComparisonUpdate'
|
|
|
25
25
|
import type { InternalSwoopId } from '../models/InternalSwoopId';
|
|
26
26
|
import type { ItineraryCreateResponse } from '../models/ItineraryCreateResponse';
|
|
27
27
|
import type { Pagination } from '../models/Pagination';
|
|
28
|
+
import type { ReserveTripRequest } from '../models/ReserveTripRequest';
|
|
28
29
|
import type { SnapshotId } from '../models/SnapshotId';
|
|
29
30
|
import type { TemplateId } from '../models/TemplateId';
|
|
30
31
|
import type { TripComparisonItemId } from '../models/TripComparisonItemId';
|
|
@@ -360,10 +361,11 @@ export declare class CoreService {
|
|
|
360
361
|
* Sets the reserved flag to true on the trip at the specified index within the given TripComparisonItem. This is a server-to-server endpoint protected by an API key.
|
|
361
362
|
* @param uuid UUID of a trip comparison item
|
|
362
363
|
* @param tripIndex Zero-based index of the trip within the TripComparisonItem to reserve
|
|
364
|
+
* @param requestBody
|
|
363
365
|
* @returns DTOTripComparisonRead The updated trip comparison item after reserving the trip
|
|
364
366
|
* @throws ApiError
|
|
365
367
|
*/
|
|
366
|
-
reserveTrip(uuid: TripComparisonItemId, tripIndex: number): CancelablePromise<DTOTripComparisonRead>;
|
|
368
|
+
reserveTrip(uuid: TripComparisonItemId, tripIndex: number, requestBody?: ReserveTripRequest): CancelablePromise<DTOTripComparisonRead>;
|
|
367
369
|
/**
|
|
368
370
|
* Resolve template hierarchy
|
|
369
371
|
* @returns Array<DTOTemplateRead> OK
|
|
@@ -827,10 +827,11 @@ export class CoreService {
|
|
|
827
827
|
* Sets the reserved flag to true on the trip at the specified index within the given TripComparisonItem. This is a server-to-server endpoint protected by an API key.
|
|
828
828
|
* @param uuid UUID of a trip comparison item
|
|
829
829
|
* @param tripIndex Zero-based index of the trip within the TripComparisonItem to reserve
|
|
830
|
+
* @param requestBody
|
|
830
831
|
* @returns DTOTripComparisonRead The updated trip comparison item after reserving the trip
|
|
831
832
|
* @throws ApiError
|
|
832
833
|
*/
|
|
833
|
-
reserveTrip(uuid, tripIndex) {
|
|
834
|
+
reserveTrip(uuid, tripIndex, requestBody) {
|
|
834
835
|
return __request(OpenAPI, {
|
|
835
836
|
method: 'PATCH',
|
|
836
837
|
url: '/trip-comparison/{uuid}/trips/{tripIndex}/reserve',
|
|
@@ -838,6 +839,8 @@ export class CoreService {
|
|
|
838
839
|
'uuid': uuid,
|
|
839
840
|
'tripIndex': tripIndex,
|
|
840
841
|
},
|
|
842
|
+
body: requestBody,
|
|
843
|
+
mediaType: 'application/json',
|
|
841
844
|
errors: {
|
|
842
845
|
400: `If the tripIndex is not a valid non-negative integer`,
|
|
843
846
|
401: `When the API key is missing or invalid`,
|
|
@@ -2,6 +2,7 @@ import type { DTOTripComparisonCreate } from '../models/DTOTripComparisonCreate'
|
|
|
2
2
|
import type { DTOTripComparisonRead } from '../models/DTOTripComparisonRead';
|
|
3
3
|
import type { DTOTripComparisonUpdate } from '../models/DTOTripComparisonUpdate';
|
|
4
4
|
import type { InternalSwoopId } from '../models/InternalSwoopId';
|
|
5
|
+
import type { ReserveTripRequest } from '../models/ReserveTripRequest';
|
|
5
6
|
import type { TripComparisonItemId } from '../models/TripComparisonItemId';
|
|
6
7
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
8
|
export declare class TripComparisonService {
|
|
@@ -52,8 +53,9 @@ export declare class TripComparisonService {
|
|
|
52
53
|
* Sets the reserved flag to true on the trip at the specified index within the given TripComparisonItem. This is a server-to-server endpoint protected by an API key.
|
|
53
54
|
* @param uuid UUID of a trip comparison item
|
|
54
55
|
* @param tripIndex Zero-based index of the trip within the TripComparisonItem to reserve
|
|
56
|
+
* @param requestBody
|
|
55
57
|
* @returns DTOTripComparisonRead The updated trip comparison item after reserving the trip
|
|
56
58
|
* @throws ApiError
|
|
57
59
|
*/
|
|
58
|
-
static reserveTrip(uuid: TripComparisonItemId, tripIndex: number): CancelablePromise<DTOTripComparisonRead>;
|
|
60
|
+
static reserveTrip(uuid: TripComparisonItemId, tripIndex: number, requestBody?: ReserveTripRequest): CancelablePromise<DTOTripComparisonRead>;
|
|
59
61
|
}
|
|
@@ -120,10 +120,11 @@ export class TripComparisonService {
|
|
|
120
120
|
* Sets the reserved flag to true on the trip at the specified index within the given TripComparisonItem. This is a server-to-server endpoint protected by an API key.
|
|
121
121
|
* @param uuid UUID of a trip comparison item
|
|
122
122
|
* @param tripIndex Zero-based index of the trip within the TripComparisonItem to reserve
|
|
123
|
+
* @param requestBody
|
|
123
124
|
* @returns DTOTripComparisonRead The updated trip comparison item after reserving the trip
|
|
124
125
|
* @throws ApiError
|
|
125
126
|
*/
|
|
126
|
-
static reserveTrip(uuid, tripIndex) {
|
|
127
|
+
static reserveTrip(uuid, tripIndex, requestBody) {
|
|
127
128
|
return __request(OpenAPI, {
|
|
128
129
|
method: 'PATCH',
|
|
129
130
|
url: '/trip-comparison/{uuid}/trips/{tripIndex}/reserve',
|
|
@@ -131,6 +132,8 @@ export class TripComparisonService {
|
|
|
131
132
|
'uuid': uuid,
|
|
132
133
|
'tripIndex': tripIndex,
|
|
133
134
|
},
|
|
135
|
+
body: requestBody,
|
|
136
|
+
mediaType: 'application/json',
|
|
134
137
|
errors: {
|
|
135
138
|
400: `If the tripIndex is not a valid non-negative integer`,
|
|
136
139
|
401: `When the API key is missing or invalid`,
|