@gooday_corp/gooday-api-client 1.2.36 → 1.2.39

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 +78 -59
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -380,6 +380,12 @@ export interface AvailableSlotsPayload {
380
380
  * @memberof AvailableSlotsPayload
381
381
  */
382
382
  'view': AvailableSlotsPayloadViewEnum;
383
+ /**
384
+ * List of staffs associated with the booking
385
+ * @type {Array<string>}
386
+ * @memberof AvailableSlotsPayload
387
+ */
388
+ 'staffs': Array<string>;
383
389
  }
384
390
 
385
391
  export const AvailableSlotsPayloadViewEnum = {
@@ -2978,6 +2984,25 @@ export interface FindFriendsFavoritesDTO {
2978
2984
  */
2979
2985
  'limit'?: number;
2980
2986
  }
2987
+ /**
2988
+ *
2989
+ * @export
2990
+ * @interface FindWaitlistResponseDTO
2991
+ */
2992
+ export interface FindWaitlistResponseDTO {
2993
+ /**
2994
+ * statusCode
2995
+ * @type {number}
2996
+ * @memberof FindWaitlistResponseDTO
2997
+ */
2998
+ 'statusCode': number;
2999
+ /**
3000
+ * Waitlist response
3001
+ * @type {Array<WaitlistEntity>}
3002
+ * @memberof FindWaitlistResponseDTO
3003
+ */
3004
+ 'data': Array<WaitlistEntity>;
3005
+ }
2981
3006
  /**
2982
3007
  *
2983
3008
  * @export
@@ -4762,31 +4787,6 @@ export interface StripePlanUpsertResponseDTO {
4762
4787
  */
4763
4788
  'data': StripePaymentDTO;
4764
4789
  }
4765
- /**
4766
- *
4767
- * @export
4768
- * @interface StripeSetupIntentPayment
4769
- */
4770
- export interface StripeSetupIntentPayment {
4771
- /**
4772
- *
4773
- * @type {string}
4774
- * @memberof StripeSetupIntentPayment
4775
- */
4776
- 'staff': string;
4777
- /**
4778
- *
4779
- * @type {number}
4780
- * @memberof StripeSetupIntentPayment
4781
- */
4782
- 'quantity': number;
4783
- /**
4784
- *
4785
- * @type {string}
4786
- * @memberof StripeSetupIntentPayment
4787
- */
4788
- 'serviceId': string;
4789
- }
4790
4790
  /**
4791
4791
  *
4792
4792
  * @export
@@ -4795,10 +4795,10 @@ export interface StripeSetupIntentPayment {
4795
4795
  export interface StripeSetupIntentPaymentPayloadDTO {
4796
4796
  /**
4797
4797
  *
4798
- * @type {Array<StripeSetupIntentPayment>}
4798
+ * @type {Array<string>}
4799
4799
  * @memberof StripeSetupIntentPaymentPayloadDTO
4800
4800
  */
4801
- 'service': Array<StripeSetupIntentPayment>;
4801
+ 'service': Array<string>;
4802
4802
  }
4803
4803
  /**
4804
4804
  *
@@ -5804,6 +5804,24 @@ export interface WaitlistEntity {
5804
5804
  * @memberof WaitlistEntity
5805
5805
  */
5806
5806
  'createdBy'?: UserEntity;
5807
+ /**
5808
+ * The user details
5809
+ * @type {UserEntity}
5810
+ * @memberof WaitlistEntity
5811
+ */
5812
+ 'user'?: UserEntity;
5813
+ /**
5814
+ * The list of staffs associated with the waitlist
5815
+ * @type {Array<BusinessStaffEntity>}
5816
+ * @memberof WaitlistEntity
5817
+ */
5818
+ 'staffs': Array<BusinessStaffEntity>;
5819
+ /**
5820
+ * The list of staffs associated with the waitlist
5821
+ * @type {Array<PrepaidServiceEntity>}
5822
+ * @memberof WaitlistEntity
5823
+ */
5824
+ 'services': Array<PrepaidServiceEntity>;
5807
5825
  }
5808
5826
 
5809
5827
  export const WaitlistEntityMethodEnum = {
@@ -5841,19 +5859,19 @@ export interface WaitlistPayloadDTO {
5841
5859
  */
5842
5860
  'endDate': string;
5843
5861
  /**
5844
- * The venue of the booking
5862
+ * The venue of the waitlist
5845
5863
  * @type {string}
5846
5864
  * @memberof WaitlistPayloadDTO
5847
5865
  */
5848
5866
  'venue': string;
5849
5867
  /**
5850
- * The business associated with the booking
5868
+ * The business associated with the waitlist
5851
5869
  * @type {string}
5852
5870
  * @memberof WaitlistPayloadDTO
5853
5871
  */
5854
5872
  'business': string;
5855
5873
  /**
5856
- * The list of customers associated with the booking
5874
+ * The list of customers associated with the waitlist
5857
5875
  * @type {Array<CreateWaitlistBookingCustomerPayload>}
5858
5876
  * @memberof WaitlistPayloadDTO
5859
5877
  */
@@ -5876,6 +5894,18 @@ export interface WaitlistPayloadDTO {
5876
5894
  * @memberof WaitlistPayloadDTO
5877
5895
  */
5878
5896
  'method': string;
5897
+ /**
5898
+ *
5899
+ * @type {string}
5900
+ * @memberof WaitlistPayloadDTO
5901
+ */
5902
+ 'user': string;
5903
+ /**
5904
+ * The list of services associated with the waitlist
5905
+ * @type {Array<string>}
5906
+ * @memberof WaitlistPayloadDTO
5907
+ */
5908
+ 'services': Array<string>;
5879
5909
  }
5880
5910
  /**
5881
5911
  *
@@ -6113,25 +6143,6 @@ export interface WhatsOnResponseDTO {
6113
6143
  */
6114
6144
  'statusCode': number;
6115
6145
  }
6116
- /**
6117
- *
6118
- * @export
6119
- * @interface WhitelistsResponseDTO
6120
- */
6121
- export interface WhitelistsResponseDTO {
6122
- /**
6123
- * statusCode
6124
- * @type {number}
6125
- * @memberof WhitelistsResponseDTO
6126
- */
6127
- 'statusCode': number;
6128
- /**
6129
- * Waitlist response
6130
- * @type {Array<WaitlistEntity>}
6131
- * @memberof WhitelistsResponseDTO
6132
- */
6133
- 'data': Array<WaitlistEntity>;
6134
- }
6135
6146
 
6136
6147
  /**
6137
6148
  * AIApi - axios parameter creator
@@ -15497,14 +15508,15 @@ export const WaitlistApiAxiosParamCreator = function (configuration?: Configurat
15497
15508
  * @param {number} page
15498
15509
  * @param {number} pageSize
15499
15510
  * @param {string} [search]
15511
+ * @param {string} [venue]
15500
15512
  * @param {*} [options] Override http request option.
15501
15513
  * @throws {RequiredError}
15502
15514
  */
15503
- waitlistControllerFindBusinessStaffs: async (page: number, pageSize: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15515
+ waitlistControllerFindWaitlist: async (page: number, pageSize: number, search?: string, venue?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15504
15516
  // verify required parameter 'page' is not null or undefined
15505
- assertParamExists('waitlistControllerFindBusinessStaffs', 'page', page)
15517
+ assertParamExists('waitlistControllerFindWaitlist', 'page', page)
15506
15518
  // verify required parameter 'pageSize' is not null or undefined
15507
- assertParamExists('waitlistControllerFindBusinessStaffs', 'pageSize', pageSize)
15519
+ assertParamExists('waitlistControllerFindWaitlist', 'pageSize', pageSize)
15508
15520
  const localVarPath = `/v1/waitlist`;
15509
15521
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15510
15522
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15533,6 +15545,10 @@ export const WaitlistApiAxiosParamCreator = function (configuration?: Configurat
15533
15545
  localVarQueryParameter['search'] = search;
15534
15546
  }
15535
15547
 
15548
+ if (venue !== undefined) {
15549
+ localVarQueryParameter['venue'] = venue;
15550
+ }
15551
+
15536
15552
 
15537
15553
 
15538
15554
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -15584,13 +15600,14 @@ export const WaitlistApiFp = function(configuration?: Configuration) {
15584
15600
  * @param {number} page
15585
15601
  * @param {number} pageSize
15586
15602
  * @param {string} [search]
15603
+ * @param {string} [venue]
15587
15604
  * @param {*} [options] Override http request option.
15588
15605
  * @throws {RequiredError}
15589
15606
  */
15590
- async waitlistControllerFindBusinessStaffs(page: number, pageSize: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhitelistsResponseDTO>> {
15591
- const localVarAxiosArgs = await localVarAxiosParamCreator.waitlistControllerFindBusinessStaffs(page, pageSize, search, options);
15607
+ async waitlistControllerFindWaitlist(page: number, pageSize: number, search?: string, venue?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindWaitlistResponseDTO>> {
15608
+ const localVarAxiosArgs = await localVarAxiosParamCreator.waitlistControllerFindWaitlist(page, pageSize, search, venue, options);
15592
15609
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15593
- const localVarOperationServerBasePath = operationServerMap['WaitlistApi.waitlistControllerFindBusinessStaffs']?.[localVarOperationServerIndex]?.url;
15610
+ const localVarOperationServerBasePath = operationServerMap['WaitlistApi.waitlistControllerFindWaitlist']?.[localVarOperationServerIndex]?.url;
15594
15611
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15595
15612
  },
15596
15613
  }
@@ -15627,11 +15644,12 @@ export const WaitlistApiFactory = function (configuration?: Configuration, baseP
15627
15644
  * @param {number} page
15628
15645
  * @param {number} pageSize
15629
15646
  * @param {string} [search]
15647
+ * @param {string} [venue]
15630
15648
  * @param {*} [options] Override http request option.
15631
15649
  * @throws {RequiredError}
15632
15650
  */
15633
- waitlistControllerFindBusinessStaffs(page: number, pageSize: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<WhitelistsResponseDTO> {
15634
- return localVarFp.waitlistControllerFindBusinessStaffs(page, pageSize, search, options).then((request) => request(axios, basePath));
15651
+ waitlistControllerFindWaitlist(page: number, pageSize: number, search?: string, venue?: string, options?: RawAxiosRequestConfig): AxiosPromise<FindWaitlistResponseDTO> {
15652
+ return localVarFp.waitlistControllerFindWaitlist(page, pageSize, search, venue, options).then((request) => request(axios, basePath));
15635
15653
  },
15636
15654
  };
15637
15655
  };
@@ -15671,12 +15689,13 @@ export class WaitlistApi extends BaseAPI {
15671
15689
  * @param {number} page
15672
15690
  * @param {number} pageSize
15673
15691
  * @param {string} [search]
15692
+ * @param {string} [venue]
15674
15693
  * @param {*} [options] Override http request option.
15675
15694
  * @throws {RequiredError}
15676
15695
  * @memberof WaitlistApi
15677
15696
  */
15678
- public waitlistControllerFindBusinessStaffs(page: number, pageSize: number, search?: string, options?: RawAxiosRequestConfig) {
15679
- return WaitlistApiFp(this.configuration).waitlistControllerFindBusinessStaffs(page, pageSize, search, options).then((request) => request(this.axios, this.basePath));
15697
+ public waitlistControllerFindWaitlist(page: number, pageSize: number, search?: string, venue?: string, options?: RawAxiosRequestConfig) {
15698
+ return WaitlistApiFp(this.configuration).waitlistControllerFindWaitlist(page, pageSize, search, venue, options).then((request) => request(this.axios, this.basePath));
15680
15699
  }
15681
15700
  }
15682
15701
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.36",
3
+ "version": "1.2.39",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},