@gooday_corp/gooday-api-client 1.2.53 → 1.2.58
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/api.ts +296 -32
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -396,6 +396,38 @@ export const AvailableSlotsPayloadViewEnum = {
|
|
|
396
396
|
|
|
397
397
|
export type AvailableSlotsPayloadViewEnum = typeof AvailableSlotsPayloadViewEnum[keyof typeof AvailableSlotsPayloadViewEnum];
|
|
398
398
|
|
|
399
|
+
/**
|
|
400
|
+
*
|
|
401
|
+
* @export
|
|
402
|
+
* @interface BookingConfirmPayload
|
|
403
|
+
*/
|
|
404
|
+
export interface BookingConfirmPayload {
|
|
405
|
+
/**
|
|
406
|
+
* Status of the booking
|
|
407
|
+
* @type {string}
|
|
408
|
+
* @memberof BookingConfirmPayload
|
|
409
|
+
*/
|
|
410
|
+
'status': BookingConfirmPayloadStatusEnum;
|
|
411
|
+
/**
|
|
412
|
+
* Status of the booking
|
|
413
|
+
* @type {string}
|
|
414
|
+
* @memberof BookingConfirmPayload
|
|
415
|
+
*/
|
|
416
|
+
'bookingId': string;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export const BookingConfirmPayloadStatusEnum = {
|
|
420
|
+
CheckedIn: 'CHECKED_IN',
|
|
421
|
+
Confirmed: 'CONFIRMED',
|
|
422
|
+
Unconfirmed: 'UNCONFIRMED',
|
|
423
|
+
Rescheduled: 'RESCHEDULED',
|
|
424
|
+
NoShow: 'NO_SHOW',
|
|
425
|
+
Rejected: 'REJECTED',
|
|
426
|
+
Cancelled: 'CANCELLED'
|
|
427
|
+
} as const;
|
|
428
|
+
|
|
429
|
+
export type BookingConfirmPayloadStatusEnum = typeof BookingConfirmPayloadStatusEnum[keyof typeof BookingConfirmPayloadStatusEnum];
|
|
430
|
+
|
|
399
431
|
/**
|
|
400
432
|
*
|
|
401
433
|
* @export
|
|
@@ -578,6 +610,18 @@ export interface BookingEntity {
|
|
|
578
610
|
* @memberof BookingEntity
|
|
579
611
|
*/
|
|
580
612
|
'services': Array<BookingServicePayload>;
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
* @type {StripeSetupIntentPaymentResponse}
|
|
616
|
+
* @memberof BookingEntity
|
|
617
|
+
*/
|
|
618
|
+
'paymentMethod': StripeSetupIntentPaymentResponse;
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @type {Array<TagsResponse>}
|
|
622
|
+
* @memberof BookingEntity
|
|
623
|
+
*/
|
|
624
|
+
'tags': Array<TagsResponse>;
|
|
581
625
|
}
|
|
582
626
|
|
|
583
627
|
export const BookingEntityStatusEnum = {
|
|
@@ -738,6 +782,12 @@ export interface BookingResponse {
|
|
|
738
782
|
* @memberof BookingResponse
|
|
739
783
|
*/
|
|
740
784
|
'services': Array<BookingServicePayload>;
|
|
785
|
+
/**
|
|
786
|
+
*
|
|
787
|
+
* @type {StripeSetupIntentPaymentResponse}
|
|
788
|
+
* @memberof BookingResponse
|
|
789
|
+
*/
|
|
790
|
+
'paymentMethod': StripeSetupIntentPaymentResponse;
|
|
741
791
|
}
|
|
742
792
|
|
|
743
793
|
export const BookingResponseMethodEnum = {
|
|
@@ -2598,6 +2648,25 @@ export const CreateWaitlistBookingCollaboratorPayloadStatusEnum = {
|
|
|
2598
2648
|
|
|
2599
2649
|
export type CreateWaitlistBookingCollaboratorPayloadStatusEnum = typeof CreateWaitlistBookingCollaboratorPayloadStatusEnum[keyof typeof CreateWaitlistBookingCollaboratorPayloadStatusEnum];
|
|
2600
2650
|
|
|
2651
|
+
/**
|
|
2652
|
+
*
|
|
2653
|
+
* @export
|
|
2654
|
+
* @interface CustomerBookingResponseDTO
|
|
2655
|
+
*/
|
|
2656
|
+
export interface CustomerBookingResponseDTO {
|
|
2657
|
+
/**
|
|
2658
|
+
* statusCode
|
|
2659
|
+
* @type {number}
|
|
2660
|
+
* @memberof CustomerBookingResponseDTO
|
|
2661
|
+
*/
|
|
2662
|
+
'statusCode': number;
|
|
2663
|
+
/**
|
|
2664
|
+
* Booking request response
|
|
2665
|
+
* @type {boolean}
|
|
2666
|
+
* @memberof CustomerBookingResponseDTO
|
|
2667
|
+
*/
|
|
2668
|
+
'data': boolean;
|
|
2669
|
+
}
|
|
2601
2670
|
/**
|
|
2602
2671
|
*
|
|
2603
2672
|
* @export
|
|
@@ -2987,25 +3056,6 @@ export interface EventResponseDTO {
|
|
|
2987
3056
|
*/
|
|
2988
3057
|
'data': EventResponse;
|
|
2989
3058
|
}
|
|
2990
|
-
/**
|
|
2991
|
-
*
|
|
2992
|
-
* @export
|
|
2993
|
-
* @interface FIndBookingResponseDTO
|
|
2994
|
-
*/
|
|
2995
|
-
export interface FIndBookingResponseDTO {
|
|
2996
|
-
/**
|
|
2997
|
-
* statusCode
|
|
2998
|
-
* @type {number}
|
|
2999
|
-
* @memberof FIndBookingResponseDTO
|
|
3000
|
-
*/
|
|
3001
|
-
'statusCode': number;
|
|
3002
|
-
/**
|
|
3003
|
-
* Booking response
|
|
3004
|
-
* @type {Array<BookingEntity>}
|
|
3005
|
-
* @memberof FIndBookingResponseDTO
|
|
3006
|
-
*/
|
|
3007
|
-
'data': Array<BookingEntity>;
|
|
3008
|
-
}
|
|
3009
3059
|
/**
|
|
3010
3060
|
*
|
|
3011
3061
|
* @export
|
|
@@ -3070,10 +3120,10 @@ export interface FindBookingPayload {
|
|
|
3070
3120
|
'staffs': Array<string>;
|
|
3071
3121
|
/**
|
|
3072
3122
|
*
|
|
3073
|
-
* @type {string}
|
|
3123
|
+
* @type {Array<string>}
|
|
3074
3124
|
* @memberof FindBookingPayload
|
|
3075
3125
|
*/
|
|
3076
|
-
'status': FindBookingPayloadStatusEnum
|
|
3126
|
+
'status': Array<FindBookingPayloadStatusEnum>;
|
|
3077
3127
|
/**
|
|
3078
3128
|
*
|
|
3079
3129
|
* @type {number}
|
|
@@ -3113,6 +3163,25 @@ export const FindBookingPayloadStatusEnum = {
|
|
|
3113
3163
|
|
|
3114
3164
|
export type FindBookingPayloadStatusEnum = typeof FindBookingPayloadStatusEnum[keyof typeof FindBookingPayloadStatusEnum];
|
|
3115
3165
|
|
|
3166
|
+
/**
|
|
3167
|
+
*
|
|
3168
|
+
* @export
|
|
3169
|
+
* @interface FindBookingResponseDTO
|
|
3170
|
+
*/
|
|
3171
|
+
export interface FindBookingResponseDTO {
|
|
3172
|
+
/**
|
|
3173
|
+
* statusCode
|
|
3174
|
+
* @type {number}
|
|
3175
|
+
* @memberof FindBookingResponseDTO
|
|
3176
|
+
*/
|
|
3177
|
+
'statusCode': number;
|
|
3178
|
+
/**
|
|
3179
|
+
* Booking response
|
|
3180
|
+
* @type {Array<BookingEntity>}
|
|
3181
|
+
* @memberof FindBookingResponseDTO
|
|
3182
|
+
*/
|
|
3183
|
+
'data': Array<BookingEntity>;
|
|
3184
|
+
}
|
|
3116
3185
|
/**
|
|
3117
3186
|
*
|
|
3118
3187
|
* @export
|
|
@@ -3150,6 +3219,37 @@ export interface FindBusinessStaff {
|
|
|
3150
3219
|
*/
|
|
3151
3220
|
'allStaff'?: boolean;
|
|
3152
3221
|
}
|
|
3222
|
+
/**
|
|
3223
|
+
*
|
|
3224
|
+
* @export
|
|
3225
|
+
* @interface FindCustomerBookingPayload
|
|
3226
|
+
*/
|
|
3227
|
+
export interface FindCustomerBookingPayload {
|
|
3228
|
+
/**
|
|
3229
|
+
*
|
|
3230
|
+
* @type {number}
|
|
3231
|
+
* @memberof FindCustomerBookingPayload
|
|
3232
|
+
*/
|
|
3233
|
+
'page': number;
|
|
3234
|
+
/**
|
|
3235
|
+
*
|
|
3236
|
+
* @type {number}
|
|
3237
|
+
* @memberof FindCustomerBookingPayload
|
|
3238
|
+
*/
|
|
3239
|
+
'pageSize': number;
|
|
3240
|
+
/**
|
|
3241
|
+
*
|
|
3242
|
+
* @type {string}
|
|
3243
|
+
* @memberof FindCustomerBookingPayload
|
|
3244
|
+
*/
|
|
3245
|
+
'customer'?: string;
|
|
3246
|
+
/**
|
|
3247
|
+
*
|
|
3248
|
+
* @type {string}
|
|
3249
|
+
* @memberof FindCustomerBookingPayload
|
|
3250
|
+
*/
|
|
3251
|
+
'venue'?: string;
|
|
3252
|
+
}
|
|
3153
3253
|
/**
|
|
3154
3254
|
*
|
|
3155
3255
|
* @export
|
|
@@ -3605,6 +3705,12 @@ export interface HistoryEntity {
|
|
|
3605
3705
|
* @memberof HistoryEntity
|
|
3606
3706
|
*/
|
|
3607
3707
|
'modalName': HistoryEntityModalNameEnum;
|
|
3708
|
+
/**
|
|
3709
|
+
*
|
|
3710
|
+
* @type {string}
|
|
3711
|
+
* @memberof HistoryEntity
|
|
3712
|
+
*/
|
|
3713
|
+
'bookingId': string;
|
|
3608
3714
|
}
|
|
3609
3715
|
|
|
3610
3716
|
export const HistoryEntityModalNameEnum = {
|
|
@@ -3638,6 +3744,12 @@ export interface HistoryPayloadDTO {
|
|
|
3638
3744
|
* @memberof HistoryPayloadDTO
|
|
3639
3745
|
*/
|
|
3640
3746
|
'modalName': HistoryPayloadDTOModalNameEnum;
|
|
3747
|
+
/**
|
|
3748
|
+
*
|
|
3749
|
+
* @type {string}
|
|
3750
|
+
* @memberof HistoryPayloadDTO
|
|
3751
|
+
*/
|
|
3752
|
+
'bookingId': string;
|
|
3641
3753
|
}
|
|
3642
3754
|
|
|
3643
3755
|
export const HistoryPayloadDTOModalNameEnum = {
|
|
@@ -7599,6 +7711,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
7599
7711
|
options: localVarRequestOptions,
|
|
7600
7712
|
};
|
|
7601
7713
|
},
|
|
7714
|
+
/**
|
|
7715
|
+
*
|
|
7716
|
+
* @param {BookingConfirmPayload} bookingConfirmPayload
|
|
7717
|
+
* @param {*} [options] Override http request option.
|
|
7718
|
+
* @throws {RequiredError}
|
|
7719
|
+
*/
|
|
7720
|
+
bookingControllerBookingConfirmation: async (bookingConfirmPayload: BookingConfirmPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7721
|
+
// verify required parameter 'bookingConfirmPayload' is not null or undefined
|
|
7722
|
+
assertParamExists('bookingControllerBookingConfirmation', 'bookingConfirmPayload', bookingConfirmPayload)
|
|
7723
|
+
const localVarPath = `/v1/booking/confirmation`;
|
|
7724
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7725
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7726
|
+
let baseOptions;
|
|
7727
|
+
if (configuration) {
|
|
7728
|
+
baseOptions = configuration.baseOptions;
|
|
7729
|
+
}
|
|
7730
|
+
|
|
7731
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7732
|
+
const localVarHeaderParameter = {} as any;
|
|
7733
|
+
const localVarQueryParameter = {} as any;
|
|
7734
|
+
|
|
7735
|
+
// authentication bearer required
|
|
7736
|
+
// http bearer authentication required
|
|
7737
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7738
|
+
|
|
7739
|
+
|
|
7740
|
+
|
|
7741
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7742
|
+
|
|
7743
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7744
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7745
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7746
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bookingConfirmPayload, localVarRequestOptions, configuration)
|
|
7747
|
+
|
|
7748
|
+
return {
|
|
7749
|
+
url: toPathString(localVarUrlObj),
|
|
7750
|
+
options: localVarRequestOptions,
|
|
7751
|
+
};
|
|
7752
|
+
},
|
|
7602
7753
|
/**
|
|
7603
7754
|
*
|
|
7604
7755
|
* @param {CancelBookingDTO} cancelBookingDTO
|
|
@@ -7792,6 +7943,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
7792
7943
|
options: localVarRequestOptions,
|
|
7793
7944
|
};
|
|
7794
7945
|
},
|
|
7946
|
+
/**
|
|
7947
|
+
*
|
|
7948
|
+
* @param {FindCustomerBookingPayload} findCustomerBookingPayload
|
|
7949
|
+
* @param {*} [options] Override http request option.
|
|
7950
|
+
* @throws {RequiredError}
|
|
7951
|
+
*/
|
|
7952
|
+
bookingControllerListCustomerBooking: async (findCustomerBookingPayload: FindCustomerBookingPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7953
|
+
// verify required parameter 'findCustomerBookingPayload' is not null or undefined
|
|
7954
|
+
assertParamExists('bookingControllerListCustomerBooking', 'findCustomerBookingPayload', findCustomerBookingPayload)
|
|
7955
|
+
const localVarPath = `/v1/booking/customer/list`;
|
|
7956
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7957
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7958
|
+
let baseOptions;
|
|
7959
|
+
if (configuration) {
|
|
7960
|
+
baseOptions = configuration.baseOptions;
|
|
7961
|
+
}
|
|
7962
|
+
|
|
7963
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7964
|
+
const localVarHeaderParameter = {} as any;
|
|
7965
|
+
const localVarQueryParameter = {} as any;
|
|
7966
|
+
|
|
7967
|
+
// authentication bearer required
|
|
7968
|
+
// http bearer authentication required
|
|
7969
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7970
|
+
|
|
7971
|
+
|
|
7972
|
+
|
|
7973
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7974
|
+
|
|
7975
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7976
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7977
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7978
|
+
localVarRequestOptions.data = serializeDataIfNeeded(findCustomerBookingPayload, localVarRequestOptions, configuration)
|
|
7979
|
+
|
|
7980
|
+
return {
|
|
7981
|
+
url: toPathString(localVarUrlObj),
|
|
7982
|
+
options: localVarRequestOptions,
|
|
7983
|
+
};
|
|
7984
|
+
},
|
|
7795
7985
|
/**
|
|
7796
7986
|
*
|
|
7797
7987
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -7896,6 +8086,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
|
|
|
7896
8086
|
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerAcceptBookingInvite']?.[localVarOperationServerIndex]?.url;
|
|
7897
8087
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7898
8088
|
},
|
|
8089
|
+
/**
|
|
8090
|
+
*
|
|
8091
|
+
* @param {BookingConfirmPayload} bookingConfirmPayload
|
|
8092
|
+
* @param {*} [options] Override http request option.
|
|
8093
|
+
* @throws {RequiredError}
|
|
8094
|
+
*/
|
|
8095
|
+
async bookingControllerBookingConfirmation(bookingConfirmPayload: BookingConfirmPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerBookingResponseDTO>> {
|
|
8096
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerBookingConfirmation(bookingConfirmPayload, options);
|
|
8097
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8098
|
+
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerBookingConfirmation']?.[localVarOperationServerIndex]?.url;
|
|
8099
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8100
|
+
},
|
|
7899
8101
|
/**
|
|
7900
8102
|
*
|
|
7901
8103
|
* @param {CancelBookingDTO} cancelBookingDTO
|
|
@@ -7950,12 +8152,24 @@ export const BookingApiFp = function(configuration?: Configuration) {
|
|
|
7950
8152
|
* @param {*} [options] Override http request option.
|
|
7951
8153
|
* @throws {RequiredError}
|
|
7952
8154
|
*/
|
|
7953
|
-
async bookingControllerListBookings(findBookingPayload: FindBookingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
8155
|
+
async bookingControllerListBookings(findBookingPayload: FindBookingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindBookingResponseDTO>> {
|
|
7954
8156
|
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerListBookings(findBookingPayload, options);
|
|
7955
8157
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7956
8158
|
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListBookings']?.[localVarOperationServerIndex]?.url;
|
|
7957
8159
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7958
8160
|
},
|
|
8161
|
+
/**
|
|
8162
|
+
*
|
|
8163
|
+
* @param {FindCustomerBookingPayload} findCustomerBookingPayload
|
|
8164
|
+
* @param {*} [options] Override http request option.
|
|
8165
|
+
* @throws {RequiredError}
|
|
8166
|
+
*/
|
|
8167
|
+
async bookingControllerListCustomerBooking(findCustomerBookingPayload: FindCustomerBookingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindBookingResponseDTO>> {
|
|
8168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerListCustomerBooking(findCustomerBookingPayload, options);
|
|
8169
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8170
|
+
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListCustomerBooking']?.[localVarOperationServerIndex]?.url;
|
|
8171
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8172
|
+
},
|
|
7959
8173
|
/**
|
|
7960
8174
|
*
|
|
7961
8175
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -8000,6 +8214,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
|
|
|
8000
8214
|
bookingControllerAcceptBookingInvite(acceptBookingInvitePayload: AcceptBookingInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingRequestResponseDTO> {
|
|
8001
8215
|
return localVarFp.bookingControllerAcceptBookingInvite(acceptBookingInvitePayload, options).then((request) => request(axios, basePath));
|
|
8002
8216
|
},
|
|
8217
|
+
/**
|
|
8218
|
+
*
|
|
8219
|
+
* @param {BookingConfirmPayload} bookingConfirmPayload
|
|
8220
|
+
* @param {*} [options] Override http request option.
|
|
8221
|
+
* @throws {RequiredError}
|
|
8222
|
+
*/
|
|
8223
|
+
bookingControllerBookingConfirmation(bookingConfirmPayload: BookingConfirmPayload, options?: RawAxiosRequestConfig): AxiosPromise<CustomerBookingResponseDTO> {
|
|
8224
|
+
return localVarFp.bookingControllerBookingConfirmation(bookingConfirmPayload, options).then((request) => request(axios, basePath));
|
|
8225
|
+
},
|
|
8003
8226
|
/**
|
|
8004
8227
|
*
|
|
8005
8228
|
* @param {CancelBookingDTO} cancelBookingDTO
|
|
@@ -8042,9 +8265,18 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
|
|
|
8042
8265
|
* @param {*} [options] Override http request option.
|
|
8043
8266
|
* @throws {RequiredError}
|
|
8044
8267
|
*/
|
|
8045
|
-
bookingControllerListBookings(findBookingPayload: FindBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
8268
|
+
bookingControllerListBookings(findBookingPayload: FindBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
|
|
8046
8269
|
return localVarFp.bookingControllerListBookings(findBookingPayload, options).then((request) => request(axios, basePath));
|
|
8047
8270
|
},
|
|
8271
|
+
/**
|
|
8272
|
+
*
|
|
8273
|
+
* @param {FindCustomerBookingPayload} findCustomerBookingPayload
|
|
8274
|
+
* @param {*} [options] Override http request option.
|
|
8275
|
+
* @throws {RequiredError}
|
|
8276
|
+
*/
|
|
8277
|
+
bookingControllerListCustomerBooking(findCustomerBookingPayload: FindCustomerBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
|
|
8278
|
+
return localVarFp.bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(axios, basePath));
|
|
8279
|
+
},
|
|
8048
8280
|
/**
|
|
8049
8281
|
*
|
|
8050
8282
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -8085,6 +8317,17 @@ export class BookingApi extends BaseAPI {
|
|
|
8085
8317
|
return BookingApiFp(this.configuration).bookingControllerAcceptBookingInvite(acceptBookingInvitePayload, options).then((request) => request(this.axios, this.basePath));
|
|
8086
8318
|
}
|
|
8087
8319
|
|
|
8320
|
+
/**
|
|
8321
|
+
*
|
|
8322
|
+
* @param {BookingConfirmPayload} bookingConfirmPayload
|
|
8323
|
+
* @param {*} [options] Override http request option.
|
|
8324
|
+
* @throws {RequiredError}
|
|
8325
|
+
* @memberof BookingApi
|
|
8326
|
+
*/
|
|
8327
|
+
public bookingControllerBookingConfirmation(bookingConfirmPayload: BookingConfirmPayload, options?: RawAxiosRequestConfig) {
|
|
8328
|
+
return BookingApiFp(this.configuration).bookingControllerBookingConfirmation(bookingConfirmPayload, options).then((request) => request(this.axios, this.basePath));
|
|
8329
|
+
}
|
|
8330
|
+
|
|
8088
8331
|
/**
|
|
8089
8332
|
*
|
|
8090
8333
|
* @param {CancelBookingDTO} cancelBookingDTO
|
|
@@ -8140,6 +8383,17 @@ export class BookingApi extends BaseAPI {
|
|
|
8140
8383
|
return BookingApiFp(this.configuration).bookingControllerListBookings(findBookingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
8141
8384
|
}
|
|
8142
8385
|
|
|
8386
|
+
/**
|
|
8387
|
+
*
|
|
8388
|
+
* @param {FindCustomerBookingPayload} findCustomerBookingPayload
|
|
8389
|
+
* @param {*} [options] Override http request option.
|
|
8390
|
+
* @throws {RequiredError}
|
|
8391
|
+
* @memberof BookingApi
|
|
8392
|
+
*/
|
|
8393
|
+
public bookingControllerListCustomerBooking(findCustomerBookingPayload: FindCustomerBookingPayload, options?: RawAxiosRequestConfig) {
|
|
8394
|
+
return BookingApiFp(this.configuration).bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
8395
|
+
}
|
|
8396
|
+
|
|
8143
8397
|
/**
|
|
8144
8398
|
*
|
|
8145
8399
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -12299,15 +12553,18 @@ export const HistoryApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12299
12553
|
*
|
|
12300
12554
|
* @param {number} page
|
|
12301
12555
|
* @param {number} pageSize
|
|
12556
|
+
* @param {string} bookingId
|
|
12302
12557
|
* @param {*} [options] Override http request option.
|
|
12303
12558
|
* @throws {RequiredError}
|
|
12304
12559
|
*/
|
|
12305
|
-
historyControllerFindHistory: async (page: number, pageSize: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12560
|
+
historyControllerFindHistory: async (page: number, pageSize: number, bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12306
12561
|
// verify required parameter 'page' is not null or undefined
|
|
12307
12562
|
assertParamExists('historyControllerFindHistory', 'page', page)
|
|
12308
12563
|
// verify required parameter 'pageSize' is not null or undefined
|
|
12309
12564
|
assertParamExists('historyControllerFindHistory', 'pageSize', pageSize)
|
|
12310
|
-
|
|
12565
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
12566
|
+
assertParamExists('historyControllerFindHistory', 'bookingId', bookingId)
|
|
12567
|
+
const localVarPath = `/v1/history/list`;
|
|
12311
12568
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12312
12569
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12313
12570
|
let baseOptions;
|
|
@@ -12315,7 +12572,7 @@ export const HistoryApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12315
12572
|
baseOptions = configuration.baseOptions;
|
|
12316
12573
|
}
|
|
12317
12574
|
|
|
12318
|
-
const localVarRequestOptions = { method: '
|
|
12575
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12319
12576
|
const localVarHeaderParameter = {} as any;
|
|
12320
12577
|
const localVarQueryParameter = {} as any;
|
|
12321
12578
|
|
|
@@ -12331,6 +12588,10 @@ export const HistoryApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12331
12588
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
12332
12589
|
}
|
|
12333
12590
|
|
|
12591
|
+
if (bookingId !== undefined) {
|
|
12592
|
+
localVarQueryParameter['bookingId'] = bookingId;
|
|
12593
|
+
}
|
|
12594
|
+
|
|
12334
12595
|
|
|
12335
12596
|
|
|
12336
12597
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12368,11 +12629,12 @@ export const HistoryApiFp = function(configuration?: Configuration) {
|
|
|
12368
12629
|
*
|
|
12369
12630
|
* @param {number} page
|
|
12370
12631
|
* @param {number} pageSize
|
|
12632
|
+
* @param {string} bookingId
|
|
12371
12633
|
* @param {*} [options] Override http request option.
|
|
12372
12634
|
* @throws {RequiredError}
|
|
12373
12635
|
*/
|
|
12374
|
-
async historyControllerFindHistory(page: number, pageSize: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindHistoryResponseDTO>> {
|
|
12375
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.historyControllerFindHistory(page, pageSize, options);
|
|
12636
|
+
async historyControllerFindHistory(page: number, pageSize: number, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindHistoryResponseDTO>> {
|
|
12637
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.historyControllerFindHistory(page, pageSize, bookingId, options);
|
|
12376
12638
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12377
12639
|
const localVarOperationServerBasePath = operationServerMap['HistoryApi.historyControllerFindHistory']?.[localVarOperationServerIndex]?.url;
|
|
12378
12640
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12400,11 +12662,12 @@ export const HistoryApiFactory = function (configuration?: Configuration, basePa
|
|
|
12400
12662
|
*
|
|
12401
12663
|
* @param {number} page
|
|
12402
12664
|
* @param {number} pageSize
|
|
12665
|
+
* @param {string} bookingId
|
|
12403
12666
|
* @param {*} [options] Override http request option.
|
|
12404
12667
|
* @throws {RequiredError}
|
|
12405
12668
|
*/
|
|
12406
|
-
historyControllerFindHistory(page: number, pageSize: number, options?: RawAxiosRequestConfig): AxiosPromise<FindHistoryResponseDTO> {
|
|
12407
|
-
return localVarFp.historyControllerFindHistory(page, pageSize, options).then((request) => request(axios, basePath));
|
|
12669
|
+
historyControllerFindHistory(page: number, pageSize: number, bookingId: string, options?: RawAxiosRequestConfig): AxiosPromise<FindHistoryResponseDTO> {
|
|
12670
|
+
return localVarFp.historyControllerFindHistory(page, pageSize, bookingId, options).then((request) => request(axios, basePath));
|
|
12408
12671
|
},
|
|
12409
12672
|
};
|
|
12410
12673
|
};
|
|
@@ -12431,12 +12694,13 @@ export class HistoryApi extends BaseAPI {
|
|
|
12431
12694
|
*
|
|
12432
12695
|
* @param {number} page
|
|
12433
12696
|
* @param {number} pageSize
|
|
12697
|
+
* @param {string} bookingId
|
|
12434
12698
|
* @param {*} [options] Override http request option.
|
|
12435
12699
|
* @throws {RequiredError}
|
|
12436
12700
|
* @memberof HistoryApi
|
|
12437
12701
|
*/
|
|
12438
|
-
public historyControllerFindHistory(page: number, pageSize: number, options?: RawAxiosRequestConfig) {
|
|
12439
|
-
return HistoryApiFp(this.configuration).historyControllerFindHistory(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
12702
|
+
public historyControllerFindHistory(page: number, pageSize: number, bookingId: string, options?: RawAxiosRequestConfig) {
|
|
12703
|
+
return HistoryApiFp(this.configuration).historyControllerFindHistory(page, pageSize, bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12440
12704
|
}
|
|
12441
12705
|
}
|
|
12442
12706
|
|