@gooday_corp/gooday-api-client 1.3.10 → 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.
Files changed (2) hide show
  1. package/api.ts +189 -0
  2. 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
@@ -4966,6 +5012,7 @@ export const NotificationEntityTypeEnum = {
4966
5012
  CalendarDetailsUpdate: 'CALENDAR_DETAILS_UPDATE',
4967
5013
  CalendarRemove: 'CALENDAR_REMOVE',
4968
5014
  BookingRescheduled: 'BOOKING_RESCHEDULED',
5015
+ BookingRescheduledBusiness: 'BOOKING_RESCHEDULED_BUSINESS',
4969
5016
  EventRescheduled: 'EVENT_RESCHEDULED',
4970
5017
  DailyBriefing: 'DAILY_BRIEFING',
4971
5018
  Reminders: 'REMINDERS'
@@ -9921,6 +9968,84 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
9921
9968
  options: localVarRequestOptions,
9922
9969
  };
9923
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
+ },
9924
10049
  /**
9925
10050
  *
9926
10051
  * @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
@@ -10191,6 +10316,30 @@ export const BookingApiFp = function(configuration?: Configuration) {
10191
10316
  const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListCustomerBooking']?.[localVarOperationServerIndex]?.url;
10192
10317
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10193
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
+ },
10194
10343
  /**
10195
10344
  *
10196
10345
  * @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
@@ -10323,6 +10472,24 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
10323
10472
  bookingControllerListCustomerBooking(findCustomerBookingPayload: FindCustomerBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
10324
10473
  return localVarFp.bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(axios, basePath));
10325
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
+ },
10326
10493
  /**
10327
10494
  *
10328
10495
  * @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
@@ -10459,6 +10626,28 @@ export class BookingApi extends BaseAPI {
10459
10626
  return BookingApiFp(this.configuration).bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(this.axios, this.basePath));
10460
10627
  }
10461
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
+
10462
10651
  /**
10463
10652
  *
10464
10653
  * @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},