@gooday_corp/gooday-api-client 1.2.103 → 1.2.104
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 +129 -8
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -5454,6 +5454,56 @@ export interface PriceRangeListResponse {
|
|
|
5454
5454
|
*/
|
|
5455
5455
|
'data': Array<PriceRangeEntity>;
|
|
5456
5456
|
}
|
|
5457
|
+
/**
|
|
5458
|
+
*
|
|
5459
|
+
* @export
|
|
5460
|
+
* @interface RegularBookingAvailabilityPayloadDTO
|
|
5461
|
+
*/
|
|
5462
|
+
export interface RegularBookingAvailabilityPayloadDTO {
|
|
5463
|
+
/**
|
|
5464
|
+
* Start date for the events
|
|
5465
|
+
* @type {string}
|
|
5466
|
+
* @memberof RegularBookingAvailabilityPayloadDTO
|
|
5467
|
+
*/
|
|
5468
|
+
'startDate': string;
|
|
5469
|
+
/**
|
|
5470
|
+
* End date for the events
|
|
5471
|
+
* @type {string}
|
|
5472
|
+
* @memberof RegularBookingAvailabilityPayloadDTO
|
|
5473
|
+
*/
|
|
5474
|
+
'endDate': string;
|
|
5475
|
+
/**
|
|
5476
|
+
* Staff id for this event
|
|
5477
|
+
* @type {string}
|
|
5478
|
+
* @memberof RegularBookingAvailabilityPayloadDTO
|
|
5479
|
+
*/
|
|
5480
|
+
'staff'?: string;
|
|
5481
|
+
/**
|
|
5482
|
+
* No of people for this booking
|
|
5483
|
+
* @type {number}
|
|
5484
|
+
* @memberof RegularBookingAvailabilityPayloadDTO
|
|
5485
|
+
*/
|
|
5486
|
+
'noOfPeople': number;
|
|
5487
|
+
/**
|
|
5488
|
+
* Venue id
|
|
5489
|
+
* @type {string}
|
|
5490
|
+
* @memberof RegularBookingAvailabilityPayloadDTO
|
|
5491
|
+
*/
|
|
5492
|
+
'id': string;
|
|
5493
|
+
}
|
|
5494
|
+
/**
|
|
5495
|
+
*
|
|
5496
|
+
* @export
|
|
5497
|
+
* @interface RegularBookingAvailabilityResponseDTO
|
|
5498
|
+
*/
|
|
5499
|
+
export interface RegularBookingAvailabilityResponseDTO {
|
|
5500
|
+
/**
|
|
5501
|
+
* Flag to indicate whether user can do booking or not
|
|
5502
|
+
* @type {boolean}
|
|
5503
|
+
* @memberof RegularBookingAvailabilityResponseDTO
|
|
5504
|
+
*/
|
|
5505
|
+
'isBookingAllowed': boolean;
|
|
5506
|
+
}
|
|
5457
5507
|
/**
|
|
5458
5508
|
*
|
|
5459
5509
|
* @export
|
|
@@ -6989,16 +7039,16 @@ export interface WaitlistEntity {
|
|
|
6989
7039
|
'user'?: UserEntity;
|
|
6990
7040
|
/**
|
|
6991
7041
|
* The list of staffs associated with the waitlist
|
|
6992
|
-
* @type {
|
|
7042
|
+
* @type {BusinessStaffEntity}
|
|
6993
7043
|
* @memberof WaitlistEntity
|
|
6994
7044
|
*/
|
|
6995
|
-
'staffs':
|
|
7045
|
+
'staffs': BusinessStaffEntity;
|
|
6996
7046
|
/**
|
|
6997
7047
|
* The list of staffs associated with the waitlist
|
|
6998
|
-
* @type {
|
|
7048
|
+
* @type {PrepaidServiceEntity}
|
|
6999
7049
|
* @memberof WaitlistEntity
|
|
7000
7050
|
*/
|
|
7001
|
-
'
|
|
7051
|
+
'serviceId': PrepaidServiceEntity;
|
|
7002
7052
|
}
|
|
7003
7053
|
|
|
7004
7054
|
export const WaitlistEntityMethodEnum = {
|
|
@@ -7055,10 +7105,10 @@ export interface WaitlistPayloadDTO {
|
|
|
7055
7105
|
'collaborators': Array<CreateWaitlistBookingCollaboratorPayload>;
|
|
7056
7106
|
/**
|
|
7057
7107
|
*
|
|
7058
|
-
* @type {
|
|
7108
|
+
* @type {string}
|
|
7059
7109
|
* @memberof WaitlistPayloadDTO
|
|
7060
7110
|
*/
|
|
7061
|
-
'staffs':
|
|
7111
|
+
'staffs': string;
|
|
7062
7112
|
/**
|
|
7063
7113
|
* Waitlist status
|
|
7064
7114
|
* @type {string}
|
|
@@ -7079,10 +7129,10 @@ export interface WaitlistPayloadDTO {
|
|
|
7079
7129
|
'user': string;
|
|
7080
7130
|
/**
|
|
7081
7131
|
* The list of services associated with the waitlist
|
|
7082
|
-
* @type {
|
|
7132
|
+
* @type {string}
|
|
7083
7133
|
* @memberof WaitlistPayloadDTO
|
|
7084
7134
|
*/
|
|
7085
|
-
'
|
|
7135
|
+
'serviceId': string;
|
|
7086
7136
|
}
|
|
7087
7137
|
/**
|
|
7088
7138
|
*
|
|
@@ -9536,6 +9586,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
9536
9586
|
options: localVarRequestOptions,
|
|
9537
9587
|
};
|
|
9538
9588
|
},
|
|
9589
|
+
/**
|
|
9590
|
+
*
|
|
9591
|
+
* @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
|
|
9592
|
+
* @param {*} [options] Override http request option.
|
|
9593
|
+
* @throws {RequiredError}
|
|
9594
|
+
*/
|
|
9595
|
+
bookingControllerRegularBookingAvailability: async (regularBookingAvailabilityPayloadDTO: RegularBookingAvailabilityPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9596
|
+
// verify required parameter 'regularBookingAvailabilityPayloadDTO' is not null or undefined
|
|
9597
|
+
assertParamExists('bookingControllerRegularBookingAvailability', 'regularBookingAvailabilityPayloadDTO', regularBookingAvailabilityPayloadDTO)
|
|
9598
|
+
const localVarPath = `/v1/booking/availability`;
|
|
9599
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9600
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9601
|
+
let baseOptions;
|
|
9602
|
+
if (configuration) {
|
|
9603
|
+
baseOptions = configuration.baseOptions;
|
|
9604
|
+
}
|
|
9605
|
+
|
|
9606
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9607
|
+
const localVarHeaderParameter = {} as any;
|
|
9608
|
+
const localVarQueryParameter = {} as any;
|
|
9609
|
+
|
|
9610
|
+
// authentication bearer required
|
|
9611
|
+
// http bearer authentication required
|
|
9612
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9613
|
+
|
|
9614
|
+
|
|
9615
|
+
|
|
9616
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9617
|
+
|
|
9618
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9619
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9620
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9621
|
+
localVarRequestOptions.data = serializeDataIfNeeded(regularBookingAvailabilityPayloadDTO, localVarRequestOptions, configuration)
|
|
9622
|
+
|
|
9623
|
+
return {
|
|
9624
|
+
url: toPathString(localVarUrlObj),
|
|
9625
|
+
options: localVarRequestOptions,
|
|
9626
|
+
};
|
|
9627
|
+
},
|
|
9539
9628
|
/**
|
|
9540
9629
|
*
|
|
9541
9630
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -9724,6 +9813,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
|
|
|
9724
9813
|
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListCustomerBooking']?.[localVarOperationServerIndex]?.url;
|
|
9725
9814
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9726
9815
|
},
|
|
9816
|
+
/**
|
|
9817
|
+
*
|
|
9818
|
+
* @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
|
|
9819
|
+
* @param {*} [options] Override http request option.
|
|
9820
|
+
* @throws {RequiredError}
|
|
9821
|
+
*/
|
|
9822
|
+
async bookingControllerRegularBookingAvailability(regularBookingAvailabilityPayloadDTO: RegularBookingAvailabilityPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegularBookingAvailabilityResponseDTO>> {
|
|
9823
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerRegularBookingAvailability(regularBookingAvailabilityPayloadDTO, options);
|
|
9824
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9825
|
+
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerRegularBookingAvailability']?.[localVarOperationServerIndex]?.url;
|
|
9826
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9827
|
+
},
|
|
9727
9828
|
/**
|
|
9728
9829
|
*
|
|
9729
9830
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -9831,6 +9932,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
|
|
|
9831
9932
|
bookingControllerListCustomerBooking(findCustomerBookingPayload: FindCustomerBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
|
|
9832
9933
|
return localVarFp.bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(axios, basePath));
|
|
9833
9934
|
},
|
|
9935
|
+
/**
|
|
9936
|
+
*
|
|
9937
|
+
* @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
|
|
9938
|
+
* @param {*} [options] Override http request option.
|
|
9939
|
+
* @throws {RequiredError}
|
|
9940
|
+
*/
|
|
9941
|
+
bookingControllerRegularBookingAvailability(regularBookingAvailabilityPayloadDTO: RegularBookingAvailabilityPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<RegularBookingAvailabilityResponseDTO> {
|
|
9942
|
+
return localVarFp.bookingControllerRegularBookingAvailability(regularBookingAvailabilityPayloadDTO, options).then((request) => request(axios, basePath));
|
|
9943
|
+
},
|
|
9834
9944
|
/**
|
|
9835
9945
|
*
|
|
9836
9946
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -9948,6 +10058,17 @@ export class BookingApi extends BaseAPI {
|
|
|
9948
10058
|
return BookingApiFp(this.configuration).bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
9949
10059
|
}
|
|
9950
10060
|
|
|
10061
|
+
/**
|
|
10062
|
+
*
|
|
10063
|
+
* @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
|
|
10064
|
+
* @param {*} [options] Override http request option.
|
|
10065
|
+
* @throws {RequiredError}
|
|
10066
|
+
* @memberof BookingApi
|
|
10067
|
+
*/
|
|
10068
|
+
public bookingControllerRegularBookingAvailability(regularBookingAvailabilityPayloadDTO: RegularBookingAvailabilityPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
10069
|
+
return BookingApiFp(this.configuration).bookingControllerRegularBookingAvailability(regularBookingAvailabilityPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10070
|
+
}
|
|
10071
|
+
|
|
9951
10072
|
/**
|
|
9952
10073
|
*
|
|
9953
10074
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|