@gooday_corp/gooday-api-client 1.3.11 → 1.3.12
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 +188 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3976,6 +3976,52 @@ export interface FindWaitlistResponseDTO {
|
|
|
3976
3976
|
*/
|
|
3977
3977
|
'data': Array<WaitlistEntity>;
|
|
3978
3978
|
}
|
|
3979
|
+
/**
|
|
3980
|
+
*
|
|
3981
|
+
* @export
|
|
3982
|
+
* @interface FindWhatsOnAndPrepaidService
|
|
3983
|
+
*/
|
|
3984
|
+
export interface FindWhatsOnAndPrepaidService {
|
|
3985
|
+
/**
|
|
3986
|
+
* Start date for the events
|
|
3987
|
+
* @type {string}
|
|
3988
|
+
* @memberof FindWhatsOnAndPrepaidService
|
|
3989
|
+
*/
|
|
3990
|
+
'startDate': string;
|
|
3991
|
+
/**
|
|
3992
|
+
* End date for the events
|
|
3993
|
+
* @type {string}
|
|
3994
|
+
* @memberof FindWhatsOnAndPrepaidService
|
|
3995
|
+
*/
|
|
3996
|
+
'endDate': string;
|
|
3997
|
+
/**
|
|
3998
|
+
* View
|
|
3999
|
+
* @type {string}
|
|
4000
|
+
* @memberof FindWhatsOnAndPrepaidService
|
|
4001
|
+
*/
|
|
4002
|
+
'view': FindWhatsOnAndPrepaidServiceViewEnum;
|
|
4003
|
+
/**
|
|
4004
|
+
*
|
|
4005
|
+
* @type {number}
|
|
4006
|
+
* @memberof FindWhatsOnAndPrepaidService
|
|
4007
|
+
*/
|
|
4008
|
+
'page': number;
|
|
4009
|
+
/**
|
|
4010
|
+
*
|
|
4011
|
+
* @type {number}
|
|
4012
|
+
* @memberof FindWhatsOnAndPrepaidService
|
|
4013
|
+
*/
|
|
4014
|
+
'pageSize': number;
|
|
4015
|
+
}
|
|
4016
|
+
|
|
4017
|
+
export const FindWhatsOnAndPrepaidServiceViewEnum = {
|
|
4018
|
+
Daily: 'daily',
|
|
4019
|
+
Weekly: 'weekly',
|
|
4020
|
+
Monthly: 'monthly'
|
|
4021
|
+
} as const;
|
|
4022
|
+
|
|
4023
|
+
export type FindWhatsOnAndPrepaidServiceViewEnum = typeof FindWhatsOnAndPrepaidServiceViewEnum[keyof typeof FindWhatsOnAndPrepaidServiceViewEnum];
|
|
4024
|
+
|
|
3979
4025
|
/**
|
|
3980
4026
|
*
|
|
3981
4027
|
* @export
|
|
@@ -9922,6 +9968,84 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
9922
9968
|
options: localVarRequestOptions,
|
|
9923
9969
|
};
|
|
9924
9970
|
},
|
|
9971
|
+
/**
|
|
9972
|
+
*
|
|
9973
|
+
* @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
|
|
9974
|
+
* @param {*} [options] Override http request option.
|
|
9975
|
+
* @throws {RequiredError}
|
|
9976
|
+
*/
|
|
9977
|
+
bookingControllerListPrepaidServiceBooking: async (findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9978
|
+
// verify required parameter 'findWhatsOnAndPrepaidService' is not null or undefined
|
|
9979
|
+
assertParamExists('bookingControllerListPrepaidServiceBooking', 'findWhatsOnAndPrepaidService', findWhatsOnAndPrepaidService)
|
|
9980
|
+
const localVarPath = `/v1/booking/prepaid-service/list`;
|
|
9981
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9982
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9983
|
+
let baseOptions;
|
|
9984
|
+
if (configuration) {
|
|
9985
|
+
baseOptions = configuration.baseOptions;
|
|
9986
|
+
}
|
|
9987
|
+
|
|
9988
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9989
|
+
const localVarHeaderParameter = {} as any;
|
|
9990
|
+
const localVarQueryParameter = {} as any;
|
|
9991
|
+
|
|
9992
|
+
// authentication bearer required
|
|
9993
|
+
// http bearer authentication required
|
|
9994
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9995
|
+
|
|
9996
|
+
|
|
9997
|
+
|
|
9998
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9999
|
+
|
|
10000
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10001
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10002
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10003
|
+
localVarRequestOptions.data = serializeDataIfNeeded(findWhatsOnAndPrepaidService, localVarRequestOptions, configuration)
|
|
10004
|
+
|
|
10005
|
+
return {
|
|
10006
|
+
url: toPathString(localVarUrlObj),
|
|
10007
|
+
options: localVarRequestOptions,
|
|
10008
|
+
};
|
|
10009
|
+
},
|
|
10010
|
+
/**
|
|
10011
|
+
*
|
|
10012
|
+
* @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
|
|
10013
|
+
* @param {*} [options] Override http request option.
|
|
10014
|
+
* @throws {RequiredError}
|
|
10015
|
+
*/
|
|
10016
|
+
bookingControllerListWhatsOnBooking: async (findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10017
|
+
// verify required parameter 'findWhatsOnAndPrepaidService' is not null or undefined
|
|
10018
|
+
assertParamExists('bookingControllerListWhatsOnBooking', 'findWhatsOnAndPrepaidService', findWhatsOnAndPrepaidService)
|
|
10019
|
+
const localVarPath = `/v1/booking/whats-on/list`;
|
|
10020
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10021
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10022
|
+
let baseOptions;
|
|
10023
|
+
if (configuration) {
|
|
10024
|
+
baseOptions = configuration.baseOptions;
|
|
10025
|
+
}
|
|
10026
|
+
|
|
10027
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10028
|
+
const localVarHeaderParameter = {} as any;
|
|
10029
|
+
const localVarQueryParameter = {} as any;
|
|
10030
|
+
|
|
10031
|
+
// authentication bearer required
|
|
10032
|
+
// http bearer authentication required
|
|
10033
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10034
|
+
|
|
10035
|
+
|
|
10036
|
+
|
|
10037
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10038
|
+
|
|
10039
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10040
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10041
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10042
|
+
localVarRequestOptions.data = serializeDataIfNeeded(findWhatsOnAndPrepaidService, localVarRequestOptions, configuration)
|
|
10043
|
+
|
|
10044
|
+
return {
|
|
10045
|
+
url: toPathString(localVarUrlObj),
|
|
10046
|
+
options: localVarRequestOptions,
|
|
10047
|
+
};
|
|
10048
|
+
},
|
|
9925
10049
|
/**
|
|
9926
10050
|
*
|
|
9927
10051
|
* @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
|
|
@@ -10192,6 +10316,30 @@ export const BookingApiFp = function(configuration?: Configuration) {
|
|
|
10192
10316
|
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListCustomerBooking']?.[localVarOperationServerIndex]?.url;
|
|
10193
10317
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10194
10318
|
},
|
|
10319
|
+
/**
|
|
10320
|
+
*
|
|
10321
|
+
* @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
|
|
10322
|
+
* @param {*} [options] Override http request option.
|
|
10323
|
+
* @throws {RequiredError}
|
|
10324
|
+
*/
|
|
10325
|
+
async bookingControllerListPrepaidServiceBooking(findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindBookingResponseDTO>> {
|
|
10326
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerListPrepaidServiceBooking(findWhatsOnAndPrepaidService, options);
|
|
10327
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10328
|
+
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListPrepaidServiceBooking']?.[localVarOperationServerIndex]?.url;
|
|
10329
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10330
|
+
},
|
|
10331
|
+
/**
|
|
10332
|
+
*
|
|
10333
|
+
* @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
|
|
10334
|
+
* @param {*} [options] Override http request option.
|
|
10335
|
+
* @throws {RequiredError}
|
|
10336
|
+
*/
|
|
10337
|
+
async bookingControllerListWhatsOnBooking(findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindBookingResponseDTO>> {
|
|
10338
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerListWhatsOnBooking(findWhatsOnAndPrepaidService, options);
|
|
10339
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10340
|
+
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListWhatsOnBooking']?.[localVarOperationServerIndex]?.url;
|
|
10341
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10342
|
+
},
|
|
10195
10343
|
/**
|
|
10196
10344
|
*
|
|
10197
10345
|
* @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
|
|
@@ -10324,6 +10472,24 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
|
|
|
10324
10472
|
bookingControllerListCustomerBooking(findCustomerBookingPayload: FindCustomerBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
|
|
10325
10473
|
return localVarFp.bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(axios, basePath));
|
|
10326
10474
|
},
|
|
10475
|
+
/**
|
|
10476
|
+
*
|
|
10477
|
+
* @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
|
|
10478
|
+
* @param {*} [options] Override http request option.
|
|
10479
|
+
* @throws {RequiredError}
|
|
10480
|
+
*/
|
|
10481
|
+
bookingControllerListPrepaidServiceBooking(findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
|
|
10482
|
+
return localVarFp.bookingControllerListPrepaidServiceBooking(findWhatsOnAndPrepaidService, options).then((request) => request(axios, basePath));
|
|
10483
|
+
},
|
|
10484
|
+
/**
|
|
10485
|
+
*
|
|
10486
|
+
* @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
|
|
10487
|
+
* @param {*} [options] Override http request option.
|
|
10488
|
+
* @throws {RequiredError}
|
|
10489
|
+
*/
|
|
10490
|
+
bookingControllerListWhatsOnBooking(findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
|
|
10491
|
+
return localVarFp.bookingControllerListWhatsOnBooking(findWhatsOnAndPrepaidService, options).then((request) => request(axios, basePath));
|
|
10492
|
+
},
|
|
10327
10493
|
/**
|
|
10328
10494
|
*
|
|
10329
10495
|
* @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
|
|
@@ -10460,6 +10626,28 @@ export class BookingApi extends BaseAPI {
|
|
|
10460
10626
|
return BookingApiFp(this.configuration).bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
10461
10627
|
}
|
|
10462
10628
|
|
|
10629
|
+
/**
|
|
10630
|
+
*
|
|
10631
|
+
* @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
|
|
10632
|
+
* @param {*} [options] Override http request option.
|
|
10633
|
+
* @throws {RequiredError}
|
|
10634
|
+
* @memberof BookingApi
|
|
10635
|
+
*/
|
|
10636
|
+
public bookingControllerListPrepaidServiceBooking(findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options?: RawAxiosRequestConfig) {
|
|
10637
|
+
return BookingApiFp(this.configuration).bookingControllerListPrepaidServiceBooking(findWhatsOnAndPrepaidService, options).then((request) => request(this.axios, this.basePath));
|
|
10638
|
+
}
|
|
10639
|
+
|
|
10640
|
+
/**
|
|
10641
|
+
*
|
|
10642
|
+
* @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
|
|
10643
|
+
* @param {*} [options] Override http request option.
|
|
10644
|
+
* @throws {RequiredError}
|
|
10645
|
+
* @memberof BookingApi
|
|
10646
|
+
*/
|
|
10647
|
+
public bookingControllerListWhatsOnBooking(findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options?: RawAxiosRequestConfig) {
|
|
10648
|
+
return BookingApiFp(this.configuration).bookingControllerListWhatsOnBooking(findWhatsOnAndPrepaidService, options).then((request) => request(this.axios, this.basePath));
|
|
10649
|
+
}
|
|
10650
|
+
|
|
10463
10651
|
/**
|
|
10464
10652
|
*
|
|
10465
10653
|
* @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
|