@gooday_corp/gooday-api-client 1.2.115-beta → 1.2.116-beta

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 +182 -47
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -654,10 +654,10 @@ export interface BookingEntity {
654
654
  'venue': string;
655
655
  /**
656
656
  * Business associated with the booking
657
- * @type {string}
657
+ * @type {BusinessEntity}
658
658
  * @memberof BookingEntity
659
659
  */
660
- 'business': string;
660
+ 'business': BusinessEntity;
661
661
  /**
662
662
  * List of collaborators in the booking
663
663
  * @type {Array<object>}
@@ -778,6 +778,12 @@ export interface BookingEntity {
778
778
  * @memberof BookingEntity
779
779
  */
780
780
  'whatsOn': WhatsOnEntity;
781
+ /**
782
+ * Cancellation fee
783
+ * @type {object}
784
+ * @memberof BookingEntity
785
+ */
786
+ 'cancellationFee'?: object;
781
787
  }
782
788
 
783
789
  export const BookingEntityStatusEnum = {
@@ -854,6 +860,12 @@ export interface BookingPaymentCreateResponse {
854
860
  * @memberof BookingPaymentCreateResponse
855
861
  */
856
862
  'currency': string;
863
+ /**
864
+ *
865
+ * @type {string}
866
+ * @memberof BookingPaymentCreateResponse
867
+ */
868
+ 'currencySymbol': string;
857
869
  }
858
870
  /**
859
871
  *
@@ -5762,6 +5774,31 @@ export interface RenameCalendarPayload {
5762
5774
  */
5763
5775
  'name': string;
5764
5776
  }
5777
+ /**
5778
+ *
5779
+ * @export
5780
+ * @interface RescheduleBookingPayload
5781
+ */
5782
+ export interface RescheduleBookingPayload {
5783
+ /**
5784
+ * The start date of the booking
5785
+ * @type {string}
5786
+ * @memberof RescheduleBookingPayload
5787
+ */
5788
+ 'date': string;
5789
+ /**
5790
+ *
5791
+ * @type {string}
5792
+ * @memberof RescheduleBookingPayload
5793
+ */
5794
+ 'from'?: string;
5795
+ /**
5796
+ *
5797
+ * @type {string}
5798
+ * @memberof RescheduleBookingPayload
5799
+ */
5800
+ 'to'?: string;
5801
+ }
5765
5802
  /**
5766
5803
  *
5767
5804
  * @export
@@ -7236,6 +7273,53 @@ export interface WaitlistResponseDTO {
7236
7273
  */
7237
7274
  'data': WaitlistEntity;
7238
7275
  }
7276
+ /**
7277
+ *
7278
+ * @export
7279
+ * @interface WaitlistStaff
7280
+ */
7281
+ export interface WaitlistStaff {
7282
+ /**
7283
+ *
7284
+ * @type {number}
7285
+ * @memberof WaitlistStaff
7286
+ */
7287
+ 'page': number;
7288
+ /**
7289
+ *
7290
+ * @type {number}
7291
+ * @memberof WaitlistStaff
7292
+ */
7293
+ 'pageSize': number;
7294
+ /**
7295
+ *
7296
+ * @type {string}
7297
+ * @memberof WaitlistStaff
7298
+ */
7299
+ 'search'?: string;
7300
+ /**
7301
+ *
7302
+ * @type {string}
7303
+ * @memberof WaitlistStaff
7304
+ */
7305
+ 'venue'?: string;
7306
+ /**
7307
+ *
7308
+ * @type {Array<string>}
7309
+ * @memberof WaitlistStaff
7310
+ */
7311
+ 'status'?: Array<WaitlistStaffStatusEnum>;
7312
+ }
7313
+
7314
+ export const WaitlistStaffStatusEnum = {
7315
+ Pending: 'PENDING',
7316
+ Confirm: 'CONFIRM',
7317
+ ConnectedNoAnswer: 'CONNECTED_NO_ANSWER',
7318
+ Withdraw: 'WITHDRAW'
7319
+ } as const;
7320
+
7321
+ export type WaitlistStaffStatusEnum = typeof WaitlistStaffStatusEnum[keyof typeof WaitlistStaffStatusEnum];
7322
+
7239
7323
  /**
7240
7324
  *
7241
7325
  * @export
@@ -9753,6 +9837,49 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
9753
9837
  options: localVarRequestOptions,
9754
9838
  };
9755
9839
  },
9840
+ /**
9841
+ *
9842
+ * @param {string} id
9843
+ * @param {RescheduleBookingPayload} rescheduleBookingPayload
9844
+ * @param {*} [options] Override http request option.
9845
+ * @throws {RequiredError}
9846
+ */
9847
+ bookingControllerRescheduleBooking: async (id: string, rescheduleBookingPayload: RescheduleBookingPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9848
+ // verify required parameter 'id' is not null or undefined
9849
+ assertParamExists('bookingControllerRescheduleBooking', 'id', id)
9850
+ // verify required parameter 'rescheduleBookingPayload' is not null or undefined
9851
+ assertParamExists('bookingControllerRescheduleBooking', 'rescheduleBookingPayload', rescheduleBookingPayload)
9852
+ const localVarPath = `/v1/booking/reschedule/{id}`
9853
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9854
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9855
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9856
+ let baseOptions;
9857
+ if (configuration) {
9858
+ baseOptions = configuration.baseOptions;
9859
+ }
9860
+
9861
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
9862
+ const localVarHeaderParameter = {} as any;
9863
+ const localVarQueryParameter = {} as any;
9864
+
9865
+ // authentication bearer required
9866
+ // http bearer authentication required
9867
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9868
+
9869
+
9870
+
9871
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9872
+
9873
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9874
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9875
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9876
+ localVarRequestOptions.data = serializeDataIfNeeded(rescheduleBookingPayload, localVarRequestOptions, configuration)
9877
+
9878
+ return {
9879
+ url: toPathString(localVarUrlObj),
9880
+ options: localVarRequestOptions,
9881
+ };
9882
+ },
9756
9883
  /**
9757
9884
  *
9758
9885
  * @param {string} id
@@ -9926,6 +10053,19 @@ export const BookingApiFp = function(configuration?: Configuration) {
9926
10053
  const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerRejectBookingInvite']?.[localVarOperationServerIndex]?.url;
9927
10054
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9928
10055
  },
10056
+ /**
10057
+ *
10058
+ * @param {string} id
10059
+ * @param {RescheduleBookingPayload} rescheduleBookingPayload
10060
+ * @param {*} [options] Override http request option.
10061
+ * @throws {RequiredError}
10062
+ */
10063
+ async bookingControllerRescheduleBooking(id: string, rescheduleBookingPayload: RescheduleBookingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponseDTO>> {
10064
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerRescheduleBooking(id, rescheduleBookingPayload, options);
10065
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10066
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerRescheduleBooking']?.[localVarOperationServerIndex]?.url;
10067
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10068
+ },
9929
10069
  /**
9930
10070
  *
9931
10071
  * @param {string} id
@@ -10039,6 +10179,16 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
10039
10179
  bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingRequestResponseDTO> {
10040
10180
  return localVarFp.bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(axios, basePath));
10041
10181
  },
10182
+ /**
10183
+ *
10184
+ * @param {string} id
10185
+ * @param {RescheduleBookingPayload} rescheduleBookingPayload
10186
+ * @param {*} [options] Override http request option.
10187
+ * @throws {RequiredError}
10188
+ */
10189
+ bookingControllerRescheduleBooking(id: string, rescheduleBookingPayload: RescheduleBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponseDTO> {
10190
+ return localVarFp.bookingControllerRescheduleBooking(id, rescheduleBookingPayload, options).then((request) => request(axios, basePath));
10191
+ },
10042
10192
  /**
10043
10193
  *
10044
10194
  * @param {string} id
@@ -10169,6 +10319,18 @@ export class BookingApi extends BaseAPI {
10169
10319
  return BookingApiFp(this.configuration).bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(this.axios, this.basePath));
10170
10320
  }
10171
10321
 
10322
+ /**
10323
+ *
10324
+ * @param {string} id
10325
+ * @param {RescheduleBookingPayload} rescheduleBookingPayload
10326
+ * @param {*} [options] Override http request option.
10327
+ * @throws {RequiredError}
10328
+ * @memberof BookingApi
10329
+ */
10330
+ public bookingControllerRescheduleBooking(id: string, rescheduleBookingPayload: RescheduleBookingPayload, options?: RawAxiosRequestConfig) {
10331
+ return BookingApiFp(this.configuration).bookingControllerRescheduleBooking(id, rescheduleBookingPayload, options).then((request) => request(this.axios, this.basePath));
10332
+ }
10333
+
10172
10334
  /**
10173
10335
  *
10174
10336
  * @param {string} id
@@ -19564,19 +19726,14 @@ export const WaitlistApiAxiosParamCreator = function (configuration?: Configurat
19564
19726
  },
19565
19727
  /**
19566
19728
  *
19567
- * @param {number} page
19568
- * @param {number} pageSize
19569
- * @param {string} [search]
19570
- * @param {string} [venue]
19729
+ * @param {WaitlistStaff} waitlistStaff
19571
19730
  * @param {*} [options] Override http request option.
19572
19731
  * @throws {RequiredError}
19573
19732
  */
19574
- waitlistControllerFindWaitlist: async (page: number, pageSize: number, search?: string, venue?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19575
- // verify required parameter 'page' is not null or undefined
19576
- assertParamExists('waitlistControllerFindWaitlist', 'page', page)
19577
- // verify required parameter 'pageSize' is not null or undefined
19578
- assertParamExists('waitlistControllerFindWaitlist', 'pageSize', pageSize)
19579
- const localVarPath = `/v1/waitlist`;
19733
+ waitlistControllerFindWaitlist: async (waitlistStaff: WaitlistStaff, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19734
+ // verify required parameter 'waitlistStaff' is not null or undefined
19735
+ assertParamExists('waitlistControllerFindWaitlist', 'waitlistStaff', waitlistStaff)
19736
+ const localVarPath = `/v1/waitlist/list`;
19580
19737
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19581
19738
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19582
19739
  let baseOptions;
@@ -19584,7 +19741,7 @@ export const WaitlistApiAxiosParamCreator = function (configuration?: Configurat
19584
19741
  baseOptions = configuration.baseOptions;
19585
19742
  }
19586
19743
 
19587
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19744
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19588
19745
  const localVarHeaderParameter = {} as any;
19589
19746
  const localVarQueryParameter = {} as any;
19590
19747
 
@@ -19592,27 +19749,14 @@ export const WaitlistApiAxiosParamCreator = function (configuration?: Configurat
19592
19749
  // http bearer authentication required
19593
19750
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
19594
19751
 
19595
- if (page !== undefined) {
19596
- localVarQueryParameter['page'] = page;
19597
- }
19598
-
19599
- if (pageSize !== undefined) {
19600
- localVarQueryParameter['pageSize'] = pageSize;
19601
- }
19602
-
19603
- if (search !== undefined) {
19604
- localVarQueryParameter['search'] = search;
19605
- }
19606
-
19607
- if (venue !== undefined) {
19608
- localVarQueryParameter['venue'] = venue;
19609
- }
19610
-
19611
19752
 
19612
19753
 
19754
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19755
+
19613
19756
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19614
19757
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19615
19758
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19759
+ localVarRequestOptions.data = serializeDataIfNeeded(waitlistStaff, localVarRequestOptions, configuration)
19616
19760
 
19617
19761
  return {
19618
19762
  url: toPathString(localVarUrlObj),
@@ -19686,15 +19830,12 @@ export const WaitlistApiFp = function(configuration?: Configuration) {
19686
19830
  },
19687
19831
  /**
19688
19832
  *
19689
- * @param {number} page
19690
- * @param {number} pageSize
19691
- * @param {string} [search]
19692
- * @param {string} [venue]
19833
+ * @param {WaitlistStaff} waitlistStaff
19693
19834
  * @param {*} [options] Override http request option.
19694
19835
  * @throws {RequiredError}
19695
19836
  */
19696
- async waitlistControllerFindWaitlist(page: number, pageSize: number, search?: string, venue?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindWaitlistResponseDTO>> {
19697
- const localVarAxiosArgs = await localVarAxiosParamCreator.waitlistControllerFindWaitlist(page, pageSize, search, venue, options);
19837
+ async waitlistControllerFindWaitlist(waitlistStaff: WaitlistStaff, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindWaitlistResponseDTO>> {
19838
+ const localVarAxiosArgs = await localVarAxiosParamCreator.waitlistControllerFindWaitlist(waitlistStaff, options);
19698
19839
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19699
19840
  const localVarOperationServerBasePath = operationServerMap['WaitlistApi.waitlistControllerFindWaitlist']?.[localVarOperationServerIndex]?.url;
19700
19841
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19733,15 +19874,12 @@ export const WaitlistApiFactory = function (configuration?: Configuration, baseP
19733
19874
  },
19734
19875
  /**
19735
19876
  *
19736
- * @param {number} page
19737
- * @param {number} pageSize
19738
- * @param {string} [search]
19739
- * @param {string} [venue]
19877
+ * @param {WaitlistStaff} waitlistStaff
19740
19878
  * @param {*} [options] Override http request option.
19741
19879
  * @throws {RequiredError}
19742
19880
  */
19743
- waitlistControllerFindWaitlist(page: number, pageSize: number, search?: string, venue?: string, options?: RawAxiosRequestConfig): AxiosPromise<FindWaitlistResponseDTO> {
19744
- return localVarFp.waitlistControllerFindWaitlist(page, pageSize, search, venue, options).then((request) => request(axios, basePath));
19881
+ waitlistControllerFindWaitlist(waitlistStaff: WaitlistStaff, options?: RawAxiosRequestConfig): AxiosPromise<FindWaitlistResponseDTO> {
19882
+ return localVarFp.waitlistControllerFindWaitlist(waitlistStaff, options).then((request) => request(axios, basePath));
19745
19883
  },
19746
19884
  /**
19747
19885
  *
@@ -19776,16 +19914,13 @@ export class WaitlistApi extends BaseAPI {
19776
19914
 
19777
19915
  /**
19778
19916
  *
19779
- * @param {number} page
19780
- * @param {number} pageSize
19781
- * @param {string} [search]
19782
- * @param {string} [venue]
19917
+ * @param {WaitlistStaff} waitlistStaff
19783
19918
  * @param {*} [options] Override http request option.
19784
19919
  * @throws {RequiredError}
19785
19920
  * @memberof WaitlistApi
19786
19921
  */
19787
- public waitlistControllerFindWaitlist(page: number, pageSize: number, search?: string, venue?: string, options?: RawAxiosRequestConfig) {
19788
- return WaitlistApiFp(this.configuration).waitlistControllerFindWaitlist(page, pageSize, search, venue, options).then((request) => request(this.axios, this.basePath));
19922
+ public waitlistControllerFindWaitlist(waitlistStaff: WaitlistStaff, options?: RawAxiosRequestConfig) {
19923
+ return WaitlistApiFp(this.configuration).waitlistControllerFindWaitlist(waitlistStaff, options).then((request) => request(this.axios, this.basePath));
19789
19924
  }
19790
19925
 
19791
19926
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.115-beta",
3
+ "version": "1.2.116-beta",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},