@gooday_corp/gooday-api-client 1.2.103 → 1.2.105

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 +171 -20
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -2513,13 +2513,19 @@ export interface CreateBookingPayload {
2513
2513
  * @type {string}
2514
2514
  * @memberof CreateBookingPayload
2515
2515
  */
2516
- 'startDate': string;
2516
+ 'date': string;
2517
2517
  /**
2518
- * The end date of the booking
2518
+ *
2519
2519
  * @type {string}
2520
2520
  * @memberof CreateBookingPayload
2521
2521
  */
2522
- 'endDate': string;
2522
+ 'from'?: string;
2523
+ /**
2524
+ *
2525
+ * @type {string}
2526
+ * @memberof CreateBookingPayload
2527
+ */
2528
+ 'to'?: string;
2523
2529
  /**
2524
2530
  * The venue of the booking
2525
2531
  * @type {string}
@@ -2543,25 +2549,25 @@ export interface CreateBookingPayload {
2543
2549
  * @type {string}
2544
2550
  * @memberof CreateBookingPayload
2545
2551
  */
2546
- 'note': string;
2552
+ 'note'?: string;
2547
2553
  /**
2548
2554
  * Occasion id
2549
2555
  * @type {string}
2550
2556
  * @memberof CreateBookingPayload
2551
2557
  */
2552
- 'occasion': string;
2558
+ 'occasion'?: string;
2553
2559
  /**
2554
2560
  * Calendar attached with booking
2555
2561
  * @type {Array<string>}
2556
2562
  * @memberof CreateBookingPayload
2557
2563
  */
2558
- 'calendar': Array<string>;
2564
+ 'calendar'?: Array<string>;
2559
2565
  /**
2560
2566
  * Payment method Id
2561
2567
  * @type {string}
2562
2568
  * @memberof CreateBookingPayload
2563
2569
  */
2564
- 'paymentMethodId': string;
2570
+ 'paymentMethodId'?: string;
2565
2571
  /**
2566
2572
  * The list of collaborators associated with the booking
2567
2573
  * @type {Array<CreateBookingCollaboratorPayload>}
@@ -2585,19 +2591,19 @@ export interface CreateBookingPayload {
2585
2591
  * @type {Array<string>}
2586
2592
  * @memberof CreateBookingPayload
2587
2593
  */
2588
- 'staffs': Array<string>;
2594
+ 'staffs'?: Array<string>;
2589
2595
  /**
2590
2596
  *
2591
2597
  * @type {string}
2592
2598
  * @memberof CreateBookingPayload
2593
2599
  */
2594
- 'selectedStaff': string;
2600
+ 'selectedStaff'?: string;
2595
2601
  /**
2596
2602
  *
2597
2603
  * @type {Array<string>}
2598
2604
  * @memberof CreateBookingPayload
2599
2605
  */
2600
- 'tags': Array<string>;
2606
+ 'tags'?: Array<string>;
2601
2607
  /**
2602
2608
  *
2603
2609
  * @type {number}
@@ -2609,13 +2615,13 @@ export interface CreateBookingPayload {
2609
2615
  * @type {string}
2610
2616
  * @memberof CreateBookingPayload
2611
2617
  */
2612
- 'serviceId': string;
2618
+ 'serviceId'?: string;
2613
2619
  /**
2614
2620
  *
2615
2621
  * @type {StripeSetupIntentPaymentResponse}
2616
2622
  * @memberof CreateBookingPayload
2617
2623
  */
2618
- 'paymentMethod': StripeSetupIntentPaymentResponse;
2624
+ 'paymentMethod'?: StripeSetupIntentPaymentResponse;
2619
2625
  }
2620
2626
  /**
2621
2627
  *
@@ -3485,6 +3491,12 @@ export interface FindBookingPayload {
3485
3491
  * @memberof FindBookingPayload
3486
3492
  */
3487
3493
  'search'?: string;
3494
+ /**
3495
+ *
3496
+ * @type {string}
3497
+ * @memberof FindBookingPayload
3498
+ */
3499
+ 'venue'?: string;
3488
3500
  }
3489
3501
 
3490
3502
  export const FindBookingPayloadViewEnum = {
@@ -4925,6 +4937,12 @@ export interface PrepaidServiceAvailabilityResponseDTO {
4925
4937
  * @memberof PrepaidServiceAvailabilityResponseDTO
4926
4938
  */
4927
4939
  'isBookingAllowed': boolean;
4940
+ /**
4941
+ *
4942
+ * @type {string}
4943
+ * @memberof PrepaidServiceAvailabilityResponseDTO
4944
+ */
4945
+ 'message': string;
4928
4946
  }
4929
4947
  /**
4930
4948
  *
@@ -5454,6 +5472,62 @@ export interface PriceRangeListResponse {
5454
5472
  */
5455
5473
  'data': Array<PriceRangeEntity>;
5456
5474
  }
5475
+ /**
5476
+ *
5477
+ * @export
5478
+ * @interface RegularBookingAvailabilityPayloadDTO
5479
+ */
5480
+ export interface RegularBookingAvailabilityPayloadDTO {
5481
+ /**
5482
+ * Start date for the events
5483
+ * @type {string}
5484
+ * @memberof RegularBookingAvailabilityPayloadDTO
5485
+ */
5486
+ 'startDate': string;
5487
+ /**
5488
+ * End date for the events
5489
+ * @type {string}
5490
+ * @memberof RegularBookingAvailabilityPayloadDTO
5491
+ */
5492
+ 'endDate': string;
5493
+ /**
5494
+ * Staff id for this event
5495
+ * @type {string}
5496
+ * @memberof RegularBookingAvailabilityPayloadDTO
5497
+ */
5498
+ 'staff'?: string;
5499
+ /**
5500
+ * No of people for this booking
5501
+ * @type {number}
5502
+ * @memberof RegularBookingAvailabilityPayloadDTO
5503
+ */
5504
+ 'noOfPeople': number;
5505
+ /**
5506
+ * Venue id
5507
+ * @type {string}
5508
+ * @memberof RegularBookingAvailabilityPayloadDTO
5509
+ */
5510
+ 'id': string;
5511
+ }
5512
+ /**
5513
+ *
5514
+ * @export
5515
+ * @interface RegularBookingAvailabilityResponseDTO
5516
+ */
5517
+ export interface RegularBookingAvailabilityResponseDTO {
5518
+ /**
5519
+ * Flag to indicate whether user can do booking or not
5520
+ * @type {boolean}
5521
+ * @memberof RegularBookingAvailabilityResponseDTO
5522
+ */
5523
+ 'isBookingAllowed': boolean;
5524
+ /**
5525
+ *
5526
+ * @type {string}
5527
+ * @memberof RegularBookingAvailabilityResponseDTO
5528
+ */
5529
+ 'message': string;
5530
+ }
5457
5531
  /**
5458
5532
  *
5459
5533
  * @export
@@ -6989,16 +7063,16 @@ export interface WaitlistEntity {
6989
7063
  'user'?: UserEntity;
6990
7064
  /**
6991
7065
  * The list of staffs associated with the waitlist
6992
- * @type {Array<BusinessStaffEntity>}
7066
+ * @type {BusinessStaffEntity}
6993
7067
  * @memberof WaitlistEntity
6994
7068
  */
6995
- 'staffs': Array<BusinessStaffEntity>;
7069
+ 'staffs': BusinessStaffEntity;
6996
7070
  /**
6997
7071
  * The list of staffs associated with the waitlist
6998
- * @type {Array<PrepaidServiceEntity>}
7072
+ * @type {PrepaidServiceEntity}
6999
7073
  * @memberof WaitlistEntity
7000
7074
  */
7001
- 'services': Array<PrepaidServiceEntity>;
7075
+ 'serviceId': PrepaidServiceEntity;
7002
7076
  }
7003
7077
 
7004
7078
  export const WaitlistEntityMethodEnum = {
@@ -7055,10 +7129,10 @@ export interface WaitlistPayloadDTO {
7055
7129
  'collaborators': Array<CreateWaitlistBookingCollaboratorPayload>;
7056
7130
  /**
7057
7131
  *
7058
- * @type {Array<string>}
7132
+ * @type {string}
7059
7133
  * @memberof WaitlistPayloadDTO
7060
7134
  */
7061
- 'staffs': Array<string>;
7135
+ 'staffs': string;
7062
7136
  /**
7063
7137
  * Waitlist status
7064
7138
  * @type {string}
@@ -7079,10 +7153,10 @@ export interface WaitlistPayloadDTO {
7079
7153
  'user': string;
7080
7154
  /**
7081
7155
  * The list of services associated with the waitlist
7082
- * @type {Array<string>}
7156
+ * @type {string}
7083
7157
  * @memberof WaitlistPayloadDTO
7084
7158
  */
7085
- 'services': Array<string>;
7159
+ 'serviceId': string;
7086
7160
  }
7087
7161
  /**
7088
7162
  *
@@ -7209,6 +7283,12 @@ export interface WhatsOnAvailabilityResponseDTO {
7209
7283
  * @memberof WhatsOnAvailabilityResponseDTO
7210
7284
  */
7211
7285
  'isBookingAllowed': boolean;
7286
+ /**
7287
+ *
7288
+ * @type {string}
7289
+ * @memberof WhatsOnAvailabilityResponseDTO
7290
+ */
7291
+ 'message': string;
7212
7292
  }
7213
7293
  /**
7214
7294
  *
@@ -9536,6 +9616,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
9536
9616
  options: localVarRequestOptions,
9537
9617
  };
9538
9618
  },
9619
+ /**
9620
+ *
9621
+ * @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
9622
+ * @param {*} [options] Override http request option.
9623
+ * @throws {RequiredError}
9624
+ */
9625
+ bookingControllerRegularBookingAvailability: async (regularBookingAvailabilityPayloadDTO: RegularBookingAvailabilityPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9626
+ // verify required parameter 'regularBookingAvailabilityPayloadDTO' is not null or undefined
9627
+ assertParamExists('bookingControllerRegularBookingAvailability', 'regularBookingAvailabilityPayloadDTO', regularBookingAvailabilityPayloadDTO)
9628
+ const localVarPath = `/v1/booking/availability`;
9629
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9630
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9631
+ let baseOptions;
9632
+ if (configuration) {
9633
+ baseOptions = configuration.baseOptions;
9634
+ }
9635
+
9636
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9637
+ const localVarHeaderParameter = {} as any;
9638
+ const localVarQueryParameter = {} as any;
9639
+
9640
+ // authentication bearer required
9641
+ // http bearer authentication required
9642
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9643
+
9644
+
9645
+
9646
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9647
+
9648
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9649
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9650
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9651
+ localVarRequestOptions.data = serializeDataIfNeeded(regularBookingAvailabilityPayloadDTO, localVarRequestOptions, configuration)
9652
+
9653
+ return {
9654
+ url: toPathString(localVarUrlObj),
9655
+ options: localVarRequestOptions,
9656
+ };
9657
+ },
9539
9658
  /**
9540
9659
  *
9541
9660
  * @param {RejectBookingInvitePayload} rejectBookingInvitePayload
@@ -9724,6 +9843,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
9724
9843
  const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListCustomerBooking']?.[localVarOperationServerIndex]?.url;
9725
9844
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9726
9845
  },
9846
+ /**
9847
+ *
9848
+ * @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
9849
+ * @param {*} [options] Override http request option.
9850
+ * @throws {RequiredError}
9851
+ */
9852
+ async bookingControllerRegularBookingAvailability(regularBookingAvailabilityPayloadDTO: RegularBookingAvailabilityPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegularBookingAvailabilityResponseDTO>> {
9853
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerRegularBookingAvailability(regularBookingAvailabilityPayloadDTO, options);
9854
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9855
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerRegularBookingAvailability']?.[localVarOperationServerIndex]?.url;
9856
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9857
+ },
9727
9858
  /**
9728
9859
  *
9729
9860
  * @param {RejectBookingInvitePayload} rejectBookingInvitePayload
@@ -9831,6 +9962,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
9831
9962
  bookingControllerListCustomerBooking(findCustomerBookingPayload: FindCustomerBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
9832
9963
  return localVarFp.bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(axios, basePath));
9833
9964
  },
9965
+ /**
9966
+ *
9967
+ * @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
9968
+ * @param {*} [options] Override http request option.
9969
+ * @throws {RequiredError}
9970
+ */
9971
+ bookingControllerRegularBookingAvailability(regularBookingAvailabilityPayloadDTO: RegularBookingAvailabilityPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<RegularBookingAvailabilityResponseDTO> {
9972
+ return localVarFp.bookingControllerRegularBookingAvailability(regularBookingAvailabilityPayloadDTO, options).then((request) => request(axios, basePath));
9973
+ },
9834
9974
  /**
9835
9975
  *
9836
9976
  * @param {RejectBookingInvitePayload} rejectBookingInvitePayload
@@ -9948,6 +10088,17 @@ export class BookingApi extends BaseAPI {
9948
10088
  return BookingApiFp(this.configuration).bookingControllerListCustomerBooking(findCustomerBookingPayload, options).then((request) => request(this.axios, this.basePath));
9949
10089
  }
9950
10090
 
10091
+ /**
10092
+ *
10093
+ * @param {RegularBookingAvailabilityPayloadDTO} regularBookingAvailabilityPayloadDTO
10094
+ * @param {*} [options] Override http request option.
10095
+ * @throws {RequiredError}
10096
+ * @memberof BookingApi
10097
+ */
10098
+ public bookingControllerRegularBookingAvailability(regularBookingAvailabilityPayloadDTO: RegularBookingAvailabilityPayloadDTO, options?: RawAxiosRequestConfig) {
10099
+ return BookingApiFp(this.configuration).bookingControllerRegularBookingAvailability(regularBookingAvailabilityPayloadDTO, options).then((request) => request(this.axios, this.basePath));
10100
+ }
10101
+
9951
10102
  /**
9952
10103
  *
9953
10104
  * @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.103",
3
+ "version": "1.2.105",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},