@gooday_corp/gooday-api-client 1.2.49-alpha → 1.2.50

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 +12 -71
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -488,6 +488,12 @@ export interface BookingEntity {
488
488
  * @memberof BookingEntity
489
489
  */
490
490
  'collaborators': Array<object>;
491
+ /**
492
+ * List of customers in the booking
493
+ * @type {Array<CustomerEntity>}
494
+ * @memberof BookingEntity
495
+ */
496
+ 'customers': Array<CustomerEntity>;
491
497
  /**
492
498
  * Users associated with the booking
493
499
  * @type {Array<string>}
@@ -2200,6 +2206,12 @@ export interface CreateBookingPayload {
2200
2206
  * @memberof CreateBookingPayload
2201
2207
  */
2202
2208
  'collaborators': Array<CreateBookingCollaboratorPayload>;
2209
+ /**
2210
+ * The list of customers associated with the booking
2211
+ * @type {Array<string>}
2212
+ * @memberof CreateBookingPayload
2213
+ */
2214
+ 'customers': Array<string>;
2203
2215
  /**
2204
2216
  * Booking method
2205
2217
  * @type {string}
@@ -7673,45 +7685,6 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
7673
7685
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7674
7686
  localVarRequestOptions.data = serializeDataIfNeeded(rejectBookingInvitePayload, localVarRequestOptions, configuration)
7675
7687
 
7676
- return {
7677
- url: toPathString(localVarUrlObj),
7678
- options: localVarRequestOptions,
7679
- };
7680
- },
7681
- /**
7682
- *
7683
- * @param {CreateBookingPayload} createBookingPayload
7684
- * @param {*} [options] Override http request option.
7685
- * @throws {RequiredError}
7686
- */
7687
- bookingVersion2ControllerCreateBooking: async (createBookingPayload: CreateBookingPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7688
- // verify required parameter 'createBookingPayload' is not null or undefined
7689
- assertParamExists('bookingVersion2ControllerCreateBooking', 'createBookingPayload', createBookingPayload)
7690
- const localVarPath = `/v2/booking`;
7691
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7692
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7693
- let baseOptions;
7694
- if (configuration) {
7695
- baseOptions = configuration.baseOptions;
7696
- }
7697
-
7698
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7699
- const localVarHeaderParameter = {} as any;
7700
- const localVarQueryParameter = {} as any;
7701
-
7702
- // authentication bearer required
7703
- // http bearer authentication required
7704
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7705
-
7706
-
7707
-
7708
- localVarHeaderParameter['Content-Type'] = 'application/json';
7709
-
7710
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7711
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7712
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7713
- localVarRequestOptions.data = serializeDataIfNeeded(createBookingPayload, localVarRequestOptions, configuration)
7714
-
7715
7688
  return {
7716
7689
  url: toPathString(localVarUrlObj),
7717
7690
  options: localVarRequestOptions,
@@ -7811,18 +7784,6 @@ export const BookingApiFp = function(configuration?: Configuration) {
7811
7784
  const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerRejectBookingInvite']?.[localVarOperationServerIndex]?.url;
7812
7785
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7813
7786
  },
7814
- /**
7815
- *
7816
- * @param {CreateBookingPayload} createBookingPayload
7817
- * @param {*} [options] Override http request option.
7818
- * @throws {RequiredError}
7819
- */
7820
- async bookingVersion2ControllerCreateBooking(createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponseDTO>> {
7821
- const localVarAxiosArgs = await localVarAxiosParamCreator.bookingVersion2ControllerCreateBooking(createBookingPayload, options);
7822
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7823
- const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingVersion2ControllerCreateBooking']?.[localVarOperationServerIndex]?.url;
7824
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7825
- },
7826
7787
  }
7827
7788
  };
7828
7789
 
@@ -7896,15 +7857,6 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
7896
7857
  bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingRequestResponseDTO> {
7897
7858
  return localVarFp.bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(axios, basePath));
7898
7859
  },
7899
- /**
7900
- *
7901
- * @param {CreateBookingPayload} createBookingPayload
7902
- * @param {*} [options] Override http request option.
7903
- * @throws {RequiredError}
7904
- */
7905
- bookingVersion2ControllerCreateBooking(createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponseDTO> {
7906
- return localVarFp.bookingVersion2ControllerCreateBooking(createBookingPayload, options).then((request) => request(axios, basePath));
7907
- },
7908
7860
  };
7909
7861
  };
7910
7862
 
@@ -7991,17 +7943,6 @@ export class BookingApi extends BaseAPI {
7991
7943
  public bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig) {
7992
7944
  return BookingApiFp(this.configuration).bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(this.axios, this.basePath));
7993
7945
  }
7994
-
7995
- /**
7996
- *
7997
- * @param {CreateBookingPayload} createBookingPayload
7998
- * @param {*} [options] Override http request option.
7999
- * @throws {RequiredError}
8000
- * @memberof BookingApi
8001
- */
8002
- public bookingVersion2ControllerCreateBooking(createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig) {
8003
- return BookingApiFp(this.configuration).bookingVersion2ControllerCreateBooking(createBookingPayload, options).then((request) => request(this.axios, this.basePath));
8004
- }
8005
7946
  }
8006
7947
 
8007
7948
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.49-alpha",
3
+ "version": "1.2.50",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},