@gooday_corp/gooday-api-client 1.2.102 → 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.
Files changed (2) hide show
  1. package/api.ts +156 -10
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -1033,6 +1033,31 @@ export interface BookingRulesPayloadDTO {
1033
1033
  */
1034
1034
  'finalBookingTimeAbsolute': string;
1035
1035
  }
1036
+ /**
1037
+ *
1038
+ * @export
1039
+ * @interface BookingServicePayload
1040
+ */
1041
+ export interface BookingServicePayload {
1042
+ /**
1043
+ *
1044
+ * @type {string}
1045
+ * @memberof BookingServicePayload
1046
+ */
1047
+ 'selectedStaff': string;
1048
+ /**
1049
+ *
1050
+ * @type {number}
1051
+ * @memberof BookingServicePayload
1052
+ */
1053
+ 'quantity': number;
1054
+ /**
1055
+ *
1056
+ * @type {string}
1057
+ * @memberof BookingServicePayload
1058
+ */
1059
+ 'serviceId': string;
1060
+ }
1036
1061
  /**
1037
1062
  *
1038
1063
  * @export
@@ -5429,6 +5454,56 @@ export interface PriceRangeListResponse {
5429
5454
  */
5430
5455
  'data': Array<PriceRangeEntity>;
5431
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
+ }
5432
5507
  /**
5433
5508
  *
5434
5509
  * @export
@@ -5892,10 +5967,10 @@ export interface StripePlanUpsertResponseDTO {
5892
5967
  export interface StripeSetupIntentPaymentPayloadDTO {
5893
5968
  /**
5894
5969
  *
5895
- * @type {Array<string>}
5970
+ * @type {BookingServicePayload}
5896
5971
  * @memberof StripeSetupIntentPaymentPayloadDTO
5897
5972
  */
5898
- 'service'?: Array<string>;
5973
+ 'service'?: BookingServicePayload;
5899
5974
  /**
5900
5975
  *
5901
5976
  * @type {string}
@@ -6964,16 +7039,16 @@ export interface WaitlistEntity {
6964
7039
  'user'?: UserEntity;
6965
7040
  /**
6966
7041
  * The list of staffs associated with the waitlist
6967
- * @type {Array<BusinessStaffEntity>}
7042
+ * @type {BusinessStaffEntity}
6968
7043
  * @memberof WaitlistEntity
6969
7044
  */
6970
- 'staffs': Array<BusinessStaffEntity>;
7045
+ 'staffs': BusinessStaffEntity;
6971
7046
  /**
6972
7047
  * The list of staffs associated with the waitlist
6973
- * @type {Array<PrepaidServiceEntity>}
7048
+ * @type {PrepaidServiceEntity}
6974
7049
  * @memberof WaitlistEntity
6975
7050
  */
6976
- 'services': Array<PrepaidServiceEntity>;
7051
+ 'serviceId': PrepaidServiceEntity;
6977
7052
  }
6978
7053
 
6979
7054
  export const WaitlistEntityMethodEnum = {
@@ -7030,10 +7105,10 @@ export interface WaitlistPayloadDTO {
7030
7105
  'collaborators': Array<CreateWaitlistBookingCollaboratorPayload>;
7031
7106
  /**
7032
7107
  *
7033
- * @type {Array<string>}
7108
+ * @type {string}
7034
7109
  * @memberof WaitlistPayloadDTO
7035
7110
  */
7036
- 'staffs': Array<string>;
7111
+ 'staffs': string;
7037
7112
  /**
7038
7113
  * Waitlist status
7039
7114
  * @type {string}
@@ -7054,10 +7129,10 @@ export interface WaitlistPayloadDTO {
7054
7129
  'user': string;
7055
7130
  /**
7056
7131
  * The list of services associated with the waitlist
7057
- * @type {Array<string>}
7132
+ * @type {string}
7058
7133
  * @memberof WaitlistPayloadDTO
7059
7134
  */
7060
- 'services': Array<string>;
7135
+ 'serviceId': string;
7061
7136
  }
7062
7137
  /**
7063
7138
  *
@@ -9511,6 +9586,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
9511
9586
  options: localVarRequestOptions,
9512
9587
  };
9513
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
+ },
9514
9628
  /**
9515
9629
  *
9516
9630
  * @param {RejectBookingInvitePayload} rejectBookingInvitePayload
@@ -9699,6 +9813,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
9699
9813
  const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListCustomerBooking']?.[localVarOperationServerIndex]?.url;
9700
9814
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9701
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
+ },
9702
9828
  /**
9703
9829
  *
9704
9830
  * @param {RejectBookingInvitePayload} rejectBookingInvitePayload
@@ -9806,6 +9932,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
9806
9932
  bookingControllerListCustomerBooking(findCustomerBookingPayload: FindCustomerBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
9807
9933
  return localVarFp.bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(axios, basePath));
9808
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
+ },
9809
9944
  /**
9810
9945
  *
9811
9946
  * @param {RejectBookingInvitePayload} rejectBookingInvitePayload
@@ -9923,6 +10058,17 @@ export class BookingApi extends BaseAPI {
9923
10058
  return BookingApiFp(this.configuration).bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(this.axios, this.basePath));
9924
10059
  }
9925
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
+
9926
10072
  /**
9927
10073
  *
9928
10074
  * @param {RejectBookingInvitePayload} rejectBookingInvitePayload
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.102",
3
+ "version": "1.2.104",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},