@gooday_corp/gooday-api-client 1.3.13 → 1.3.14

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 +261 -67
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -496,6 +496,24 @@ export interface BlockoutPayloadDTO {
496
496
  * @memberof BlockoutPayloadDTO
497
497
  */
498
498
  'repeat': BlockoutPayloadDTORepeatEnum;
499
+ /**
500
+ *
501
+ * @type {string}
502
+ * @memberof BlockoutPayloadDTO
503
+ */
504
+ 'byDay'?: string;
505
+ /**
506
+ *
507
+ * @type {string}
508
+ * @memberof BlockoutPayloadDTO
509
+ */
510
+ 'byMonthDay'?: string;
511
+ /**
512
+ *
513
+ * @type {string}
514
+ * @memberof BlockoutPayloadDTO
515
+ */
516
+ 'byMonth'?: string;
499
517
  /**
500
518
  * Name of block
501
519
  * @type {string}
@@ -3069,6 +3087,24 @@ export interface CreateEventPayloadDTO {
3069
3087
  * @memberof CreateEventPayloadDTO
3070
3088
  */
3071
3089
  'repeat': CreateEventPayloadDTORepeatEnum;
3090
+ /**
3091
+ *
3092
+ * @type {string}
3093
+ * @memberof CreateEventPayloadDTO
3094
+ */
3095
+ 'byDay'?: string;
3096
+ /**
3097
+ *
3098
+ * @type {string}
3099
+ * @memberof CreateEventPayloadDTO
3100
+ */
3101
+ 'byMonthDay'?: string;
3102
+ /**
3103
+ *
3104
+ * @type {string}
3105
+ * @memberof CreateEventPayloadDTO
3106
+ */
3107
+ 'byMonth'?: string;
3072
3108
  /**
3073
3109
  * The unique identifier of the customer
3074
3110
  * @type {string}
@@ -3976,6 +4012,52 @@ export interface FindWaitlistResponseDTO {
3976
4012
  */
3977
4013
  'data': Array<WaitlistEntity>;
3978
4014
  }
4015
+ /**
4016
+ *
4017
+ * @export
4018
+ * @interface FindWhatsOnAndPrepaidService
4019
+ */
4020
+ export interface FindWhatsOnAndPrepaidService {
4021
+ /**
4022
+ * Start date for the events
4023
+ * @type {string}
4024
+ * @memberof FindWhatsOnAndPrepaidService
4025
+ */
4026
+ 'startDate': string;
4027
+ /**
4028
+ * End date for the events
4029
+ * @type {string}
4030
+ * @memberof FindWhatsOnAndPrepaidService
4031
+ */
4032
+ 'endDate': string;
4033
+ /**
4034
+ * View
4035
+ * @type {string}
4036
+ * @memberof FindWhatsOnAndPrepaidService
4037
+ */
4038
+ 'view': FindWhatsOnAndPrepaidServiceViewEnum;
4039
+ /**
4040
+ *
4041
+ * @type {number}
4042
+ * @memberof FindWhatsOnAndPrepaidService
4043
+ */
4044
+ 'page': number;
4045
+ /**
4046
+ *
4047
+ * @type {number}
4048
+ * @memberof FindWhatsOnAndPrepaidService
4049
+ */
4050
+ 'pageSize': number;
4051
+ }
4052
+
4053
+ export const FindWhatsOnAndPrepaidServiceViewEnum = {
4054
+ Daily: 'daily',
4055
+ Weekly: 'weekly',
4056
+ Monthly: 'monthly'
4057
+ } as const;
4058
+
4059
+ export type FindWhatsOnAndPrepaidServiceViewEnum = typeof FindWhatsOnAndPrepaidServiceViewEnum[keyof typeof FindWhatsOnAndPrepaidServiceViewEnum];
4060
+
3979
4061
  /**
3980
4062
  *
3981
4063
  * @export
@@ -4966,6 +5048,7 @@ export const NotificationEntityTypeEnum = {
4966
5048
  CalendarDetailsUpdate: 'CALENDAR_DETAILS_UPDATE',
4967
5049
  CalendarRemove: 'CALENDAR_REMOVE',
4968
5050
  BookingRescheduled: 'BOOKING_RESCHEDULED',
5051
+ BookingRescheduledBusiness: 'BOOKING_RESCHEDULED_BUSINESS',
4969
5052
  EventRescheduled: 'EVENT_RESCHEDULED',
4970
5053
  DailyBriefing: 'DAILY_BRIEFING',
4971
5054
  Reminders: 'REMINDERS'
@@ -5571,6 +5654,24 @@ export interface PrepaidServicePayloadDTO {
5571
5654
  * @memberof PrepaidServicePayloadDTO
5572
5655
  */
5573
5656
  'repeat': PrepaidServicePayloadDTORepeatEnum;
5657
+ /**
5658
+ *
5659
+ * @type {string}
5660
+ * @memberof PrepaidServicePayloadDTO
5661
+ */
5662
+ 'byDay'?: string;
5663
+ /**
5664
+ *
5665
+ * @type {string}
5666
+ * @memberof PrepaidServicePayloadDTO
5667
+ */
5668
+ 'byMonthDay'?: string;
5669
+ /**
5670
+ *
5671
+ * @type {string}
5672
+ * @memberof PrepaidServicePayloadDTO
5673
+ */
5674
+ 'byMonth'?: string;
5574
5675
  /**
5575
5676
  * Service name
5576
5677
  * @type {string}
@@ -8021,6 +8122,24 @@ export interface WhatsOnPayloadDTO {
8021
8122
  * @memberof WhatsOnPayloadDTO
8022
8123
  */
8023
8124
  'repeat': WhatsOnPayloadDTORepeatEnum;
8125
+ /**
8126
+ *
8127
+ * @type {string}
8128
+ * @memberof WhatsOnPayloadDTO
8129
+ */
8130
+ 'byDay'?: string;
8131
+ /**
8132
+ *
8133
+ * @type {string}
8134
+ * @memberof WhatsOnPayloadDTO
8135
+ */
8136
+ 'byMonthDay'?: string;
8137
+ /**
8138
+ *
8139
+ * @type {string}
8140
+ * @memberof WhatsOnPayloadDTO
8141
+ */
8142
+ 'byMonth'?: string;
8024
8143
  /**
8025
8144
  * Event name
8026
8145
  * @type {string}
@@ -8545,41 +8664,6 @@ export class AppApi extends BaseAPI {
8545
8664
  */
8546
8665
  export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
8547
8666
  return {
8548
- /**
8549
- *
8550
- * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
8551
- * @param {*} [options] Override http request option.
8552
- * @throws {RequiredError}
8553
- */
8554
- authControllerBusinessForgotPassword: async (forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8555
- // verify required parameter 'forgotPasswordPayloadDTO' is not null or undefined
8556
- assertParamExists('authControllerBusinessForgotPassword', 'forgotPasswordPayloadDTO', forgotPasswordPayloadDTO)
8557
- const localVarPath = `/v1/auth/business-forgot-password`;
8558
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
8559
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8560
- let baseOptions;
8561
- if (configuration) {
8562
- baseOptions = configuration.baseOptions;
8563
- }
8564
-
8565
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8566
- const localVarHeaderParameter = {} as any;
8567
- const localVarQueryParameter = {} as any;
8568
-
8569
-
8570
-
8571
- localVarHeaderParameter['Content-Type'] = 'application/json';
8572
-
8573
- setSearchParams(localVarUrlObj, localVarQueryParameter);
8574
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8575
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8576
- localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordPayloadDTO, localVarRequestOptions, configuration)
8577
-
8578
- return {
8579
- url: toPathString(localVarUrlObj),
8580
- options: localVarRequestOptions,
8581
- };
8582
- },
8583
8667
  /**
8584
8668
  *
8585
8669
  * @param {SignupDto} signupDto
@@ -8913,18 +8997,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
8913
8997
  export const AuthApiFp = function(configuration?: Configuration) {
8914
8998
  const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
8915
8999
  return {
8916
- /**
8917
- *
8918
- * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
8919
- * @param {*} [options] Override http request option.
8920
- * @throws {RequiredError}
8921
- */
8922
- async authControllerBusinessForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ForgotPasswordResponseDTO>> {
8923
- const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerBusinessForgotPassword(forgotPasswordPayloadDTO, options);
8924
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8925
- const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerBusinessForgotPassword']?.[localVarOperationServerIndex]?.url;
8926
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8927
- },
8928
9000
  /**
8929
9001
  *
8930
9002
  * @param {SignupDto} signupDto
@@ -9043,15 +9115,6 @@ export const AuthApiFp = function(configuration?: Configuration) {
9043
9115
  export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9044
9116
  const localVarFp = AuthApiFp(configuration)
9045
9117
  return {
9046
- /**
9047
- *
9048
- * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
9049
- * @param {*} [options] Override http request option.
9050
- * @throws {RequiredError}
9051
- */
9052
- authControllerBusinessForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ForgotPasswordResponseDTO> {
9053
- return localVarFp.authControllerBusinessForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(axios, basePath));
9054
- },
9055
9118
  /**
9056
9119
  *
9057
9120
  * @param {SignupDto} signupDto
@@ -9143,17 +9206,6 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
9143
9206
  * @extends {BaseAPI}
9144
9207
  */
9145
9208
  export class AuthApi extends BaseAPI {
9146
- /**
9147
- *
9148
- * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
9149
- * @param {*} [options] Override http request option.
9150
- * @throws {RequiredError}
9151
- * @memberof AuthApi
9152
- */
9153
- public authControllerBusinessForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
9154
- return AuthApiFp(this.configuration).authControllerBusinessForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
9155
- }
9156
-
9157
9209
  /**
9158
9210
  *
9159
9211
  * @param {SignupDto} signupDto
@@ -9988,6 +10040,84 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
9988
10040
  options: localVarRequestOptions,
9989
10041
  };
9990
10042
  },
10043
+ /**
10044
+ *
10045
+ * @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
10046
+ * @param {*} [options] Override http request option.
10047
+ * @throws {RequiredError}
10048
+ */
10049
+ bookingControllerListPrepaidServiceBooking: async (findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10050
+ // verify required parameter 'findWhatsOnAndPrepaidService' is not null or undefined
10051
+ assertParamExists('bookingControllerListPrepaidServiceBooking', 'findWhatsOnAndPrepaidService', findWhatsOnAndPrepaidService)
10052
+ const localVarPath = `/v1/booking/prepaid-service/list`;
10053
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10054
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10055
+ let baseOptions;
10056
+ if (configuration) {
10057
+ baseOptions = configuration.baseOptions;
10058
+ }
10059
+
10060
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10061
+ const localVarHeaderParameter = {} as any;
10062
+ const localVarQueryParameter = {} as any;
10063
+
10064
+ // authentication bearer required
10065
+ // http bearer authentication required
10066
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10067
+
10068
+
10069
+
10070
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10071
+
10072
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10073
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10074
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10075
+ localVarRequestOptions.data = serializeDataIfNeeded(findWhatsOnAndPrepaidService, localVarRequestOptions, configuration)
10076
+
10077
+ return {
10078
+ url: toPathString(localVarUrlObj),
10079
+ options: localVarRequestOptions,
10080
+ };
10081
+ },
10082
+ /**
10083
+ *
10084
+ * @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
10085
+ * @param {*} [options] Override http request option.
10086
+ * @throws {RequiredError}
10087
+ */
10088
+ bookingControllerListWhatsOnBooking: async (findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10089
+ // verify required parameter 'findWhatsOnAndPrepaidService' is not null or undefined
10090
+ assertParamExists('bookingControllerListWhatsOnBooking', 'findWhatsOnAndPrepaidService', findWhatsOnAndPrepaidService)
10091
+ const localVarPath = `/v1/booking/whats-on/list`;
10092
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10093
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10094
+ let baseOptions;
10095
+ if (configuration) {
10096
+ baseOptions = configuration.baseOptions;
10097
+ }
10098
+
10099
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10100
+ const localVarHeaderParameter = {} as any;
10101
+ const localVarQueryParameter = {} as any;
10102
+
10103
+ // authentication bearer required
10104
+ // http bearer authentication required
10105
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10106
+
10107
+
10108
+
10109
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10110
+
10111
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10112
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10113
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10114
+ localVarRequestOptions.data = serializeDataIfNeeded(findWhatsOnAndPrepaidService, localVarRequestOptions, configuration)
10115
+
10116
+ return {
10117
+ url: toPathString(localVarUrlObj),
10118
+ options: localVarRequestOptions,
10119
+ };
10120
+ },
9991
10121
  /**
9992
10122
  *
9993
10123
  * @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
@@ -10258,6 +10388,30 @@ export const BookingApiFp = function(configuration?: Configuration) {
10258
10388
  const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListCustomerBooking']?.[localVarOperationServerIndex]?.url;
10259
10389
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10260
10390
  },
10391
+ /**
10392
+ *
10393
+ * @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
10394
+ * @param {*} [options] Override http request option.
10395
+ * @throws {RequiredError}
10396
+ */
10397
+ async bookingControllerListPrepaidServiceBooking(findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindBookingResponseDTO>> {
10398
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerListPrepaidServiceBooking(findWhatsOnAndPrepaidService, options);
10399
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10400
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListPrepaidServiceBooking']?.[localVarOperationServerIndex]?.url;
10401
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10402
+ },
10403
+ /**
10404
+ *
10405
+ * @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
10406
+ * @param {*} [options] Override http request option.
10407
+ * @throws {RequiredError}
10408
+ */
10409
+ async bookingControllerListWhatsOnBooking(findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindBookingResponseDTO>> {
10410
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerListWhatsOnBooking(findWhatsOnAndPrepaidService, options);
10411
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10412
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListWhatsOnBooking']?.[localVarOperationServerIndex]?.url;
10413
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10414
+ },
10261
10415
  /**
10262
10416
  *
10263
10417
  * @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
@@ -10390,6 +10544,24 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
10390
10544
  bookingControllerListCustomerBooking(findCustomerBookingPayload: FindCustomerBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
10391
10545
  return localVarFp.bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(axios, basePath));
10392
10546
  },
10547
+ /**
10548
+ *
10549
+ * @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
10550
+ * @param {*} [options] Override http request option.
10551
+ * @throws {RequiredError}
10552
+ */
10553
+ bookingControllerListPrepaidServiceBooking(findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
10554
+ return localVarFp.bookingControllerListPrepaidServiceBooking(findWhatsOnAndPrepaidService, options).then((request) => request(axios, basePath));
10555
+ },
10556
+ /**
10557
+ *
10558
+ * @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
10559
+ * @param {*} [options] Override http request option.
10560
+ * @throws {RequiredError}
10561
+ */
10562
+ bookingControllerListWhatsOnBooking(findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
10563
+ return localVarFp.bookingControllerListWhatsOnBooking(findWhatsOnAndPrepaidService, options).then((request) => request(axios, basePath));
10564
+ },
10393
10565
  /**
10394
10566
  *
10395
10567
  * @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
@@ -10526,6 +10698,28 @@ export class BookingApi extends BaseAPI {
10526
10698
  return BookingApiFp(this.configuration).bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(this.axios, this.basePath));
10527
10699
  }
10528
10700
 
10701
+ /**
10702
+ *
10703
+ * @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
10704
+ * @param {*} [options] Override http request option.
10705
+ * @throws {RequiredError}
10706
+ * @memberof BookingApi
10707
+ */
10708
+ public bookingControllerListPrepaidServiceBooking(findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options?: RawAxiosRequestConfig) {
10709
+ return BookingApiFp(this.configuration).bookingControllerListPrepaidServiceBooking(findWhatsOnAndPrepaidService, options).then((request) => request(this.axios, this.basePath));
10710
+ }
10711
+
10712
+ /**
10713
+ *
10714
+ * @param {FindWhatsOnAndPrepaidService} findWhatsOnAndPrepaidService
10715
+ * @param {*} [options] Override http request option.
10716
+ * @throws {RequiredError}
10717
+ * @memberof BookingApi
10718
+ */
10719
+ public bookingControllerListWhatsOnBooking(findWhatsOnAndPrepaidService: FindWhatsOnAndPrepaidService, options?: RawAxiosRequestConfig) {
10720
+ return BookingApiFp(this.configuration).bookingControllerListWhatsOnBooking(findWhatsOnAndPrepaidService, options).then((request) => request(this.axios, this.basePath));
10721
+ }
10722
+
10529
10723
  /**
10530
10724
  *
10531
10725
  * @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.13",
3
+ "version": "1.3.14",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},