@gooday_corp/gooday-api-client 1.2.96 → 1.2.97

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 +108 -129
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -350,64 +350,6 @@ export interface AvailabilityDayDto {
350
350
  */
351
351
  'slots': Array<TimeSlotDto>;
352
352
  }
353
- /**
354
- *
355
- * @export
356
- * @interface AvailableSlotsPayload
357
- */
358
- export interface AvailableSlotsPayload {
359
- /**
360
- * Start date for the events
361
- * @type {string}
362
- * @memberof AvailableSlotsPayload
363
- */
364
- 'startDate': string;
365
- /**
366
- * End date for the events
367
- * @type {string}
368
- * @memberof AvailableSlotsPayload
369
- */
370
- 'endDate': string;
371
- /**
372
- * The business associated with the booking
373
- * @type {string}
374
- * @memberof AvailableSlotsPayload
375
- */
376
- 'business': string;
377
- /**
378
- *
379
- * @type {string}
380
- * @memberof AvailableSlotsPayload
381
- */
382
- 'venue': string;
383
- /**
384
- * List of collaborators associated with the booking
385
- * @type {Array<string>}
386
- * @memberof AvailableSlotsPayload
387
- */
388
- 'collaborators': Array<string>;
389
- /**
390
- * View
391
- * @type {string}
392
- * @memberof AvailableSlotsPayload
393
- */
394
- 'view': AvailableSlotsPayloadViewEnum;
395
- /**
396
- * List of staffs associated with the booking
397
- * @type {Array<string>}
398
- * @memberof AvailableSlotsPayload
399
- */
400
- 'staffs': Array<string>;
401
- }
402
-
403
- export const AvailableSlotsPayloadViewEnum = {
404
- Daily: 'daily',
405
- Weekly: 'weekly',
406
- Monthly: 'monthly'
407
- } as const;
408
-
409
- export type AvailableSlotsPayloadViewEnum = typeof AvailableSlotsPayloadViewEnum[keyof typeof AvailableSlotsPayloadViewEnum];
410
-
411
353
  /**
412
354
  *
413
355
  * @export
@@ -5824,6 +5766,43 @@ export interface StaffPrice {
5824
5766
  */
5825
5767
  'staff': string;
5826
5768
  }
5769
+ /**
5770
+ *
5771
+ * @export
5772
+ * @interface StandardBookingSlotsPayload
5773
+ */
5774
+ export interface StandardBookingSlotsPayload {
5775
+ /**
5776
+ * Start date for the events
5777
+ * @type {string}
5778
+ * @memberof StandardBookingSlotsPayload
5779
+ */
5780
+ 'startDate': string;
5781
+ /**
5782
+ * End date for the events
5783
+ * @type {string}
5784
+ * @memberof StandardBookingSlotsPayload
5785
+ */
5786
+ 'endDate': string;
5787
+ /**
5788
+ * List of collaborators associated with the booking
5789
+ * @type {Array<string>}
5790
+ * @memberof StandardBookingSlotsPayload
5791
+ */
5792
+ 'collaborators': Array<string>;
5793
+ /**
5794
+ * List of staff associated with the booking
5795
+ * @type {Array<string>}
5796
+ * @memberof StandardBookingSlotsPayload
5797
+ */
5798
+ 'staffs': Array<string>;
5799
+ /**
5800
+ * Venue ID
5801
+ * @type {string}
5802
+ * @memberof StandardBookingSlotsPayload
5803
+ */
5804
+ 'id': string;
5805
+ }
5827
5806
  /**
5828
5807
  *
5829
5808
  * @export
@@ -11524,45 +11503,6 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
11524
11503
  options: localVarRequestOptions,
11525
11504
  };
11526
11505
  },
11527
- /**
11528
- *
11529
- * @param {AvailableSlotsPayload} availableSlotsPayload
11530
- * @param {*} [options] Override http request option.
11531
- * @throws {RequiredError}
11532
- */
11533
- calendarControllerAvailableSlots: async (availableSlotsPayload: AvailableSlotsPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11534
- // verify required parameter 'availableSlotsPayload' is not null or undefined
11535
- assertParamExists('calendarControllerAvailableSlots', 'availableSlotsPayload', availableSlotsPayload)
11536
- const localVarPath = `/v1/calendar/slots`;
11537
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11538
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11539
- let baseOptions;
11540
- if (configuration) {
11541
- baseOptions = configuration.baseOptions;
11542
- }
11543
-
11544
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11545
- const localVarHeaderParameter = {} as any;
11546
- const localVarQueryParameter = {} as any;
11547
-
11548
- // authentication bearer required
11549
- // http bearer authentication required
11550
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
11551
-
11552
-
11553
-
11554
- localVarHeaderParameter['Content-Type'] = 'application/json';
11555
-
11556
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11557
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11558
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11559
- localVarRequestOptions.data = serializeDataIfNeeded(availableSlotsPayload, localVarRequestOptions, configuration)
11560
-
11561
- return {
11562
- url: toPathString(localVarUrlObj),
11563
- options: localVarRequestOptions,
11564
- };
11565
- },
11566
11506
  /**
11567
11507
  *
11568
11508
  * @param {string} id
@@ -11750,6 +11690,45 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
11750
11690
  options: localVarRequestOptions,
11751
11691
  };
11752
11692
  },
11693
+ /**
11694
+ *
11695
+ * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
11696
+ * @param {*} [options] Override http request option.
11697
+ * @throws {RequiredError}
11698
+ */
11699
+ calendarControllerListStandardBookingSlots: async (standardBookingSlotsPayload: StandardBookingSlotsPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11700
+ // verify required parameter 'standardBookingSlotsPayload' is not null or undefined
11701
+ assertParamExists('calendarControllerListStandardBookingSlots', 'standardBookingSlotsPayload', standardBookingSlotsPayload)
11702
+ const localVarPath = `/v1/calendar/slots/standard`;
11703
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11704
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11705
+ let baseOptions;
11706
+ if (configuration) {
11707
+ baseOptions = configuration.baseOptions;
11708
+ }
11709
+
11710
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11711
+ const localVarHeaderParameter = {} as any;
11712
+ const localVarQueryParameter = {} as any;
11713
+
11714
+ // authentication bearer required
11715
+ // http bearer authentication required
11716
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11717
+
11718
+
11719
+
11720
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11721
+
11722
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11723
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11724
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11725
+ localVarRequestOptions.data = serializeDataIfNeeded(standardBookingSlotsPayload, localVarRequestOptions, configuration)
11726
+
11727
+ return {
11728
+ url: toPathString(localVarUrlObj),
11729
+ options: localVarRequestOptions,
11730
+ };
11731
+ },
11753
11732
  /**
11754
11733
  *
11755
11734
  * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
@@ -11967,18 +11946,6 @@ export const CalendarApiFp = function(configuration?: Configuration) {
11967
11946
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerAcceptCalendarInvite']?.[localVarOperationServerIndex]?.url;
11968
11947
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11969
11948
  },
11970
- /**
11971
- *
11972
- * @param {AvailableSlotsPayload} availableSlotsPayload
11973
- * @param {*} [options] Override http request option.
11974
- * @throws {RequiredError}
11975
- */
11976
- async calendarControllerAvailableSlots(availableSlotsPayload: AvailableSlotsPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarSlotsDTO>> {
11977
- const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerAvailableSlots(availableSlotsPayload, options);
11978
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11979
- const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerAvailableSlots']?.[localVarOperationServerIndex]?.url;
11980
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11981
- },
11982
11949
  /**
11983
11950
  *
11984
11951
  * @param {string} id
@@ -12038,6 +12005,18 @@ export const CalendarApiFp = function(configuration?: Configuration) {
12038
12005
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListPrepaidServiceAvailableSlots']?.[localVarOperationServerIndex]?.url;
12039
12006
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12040
12007
  },
12008
+ /**
12009
+ *
12010
+ * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
12011
+ * @param {*} [options] Override http request option.
12012
+ * @throws {RequiredError}
12013
+ */
12014
+ async calendarControllerListStandardBookingSlots(standardBookingSlotsPayload: StandardBookingSlotsPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarSlotsDTO>> {
12015
+ const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListStandardBookingSlots(standardBookingSlotsPayload, options);
12016
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12017
+ const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListStandardBookingSlots']?.[localVarOperationServerIndex]?.url;
12018
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12019
+ },
12041
12020
  /**
12042
12021
  *
12043
12022
  * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
@@ -12117,15 +12096,6 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
12117
12096
  calendarControllerAcceptCalendarInvite(acceptCollaborateInvitePayload: AcceptCollaborateInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarDTO> {
12118
12097
  return localVarFp.calendarControllerAcceptCalendarInvite(acceptCollaborateInvitePayload, options).then((request) => request(axios, basePath));
12119
12098
  },
12120
- /**
12121
- *
12122
- * @param {AvailableSlotsPayload} availableSlotsPayload
12123
- * @param {*} [options] Override http request option.
12124
- * @throws {RequiredError}
12125
- */
12126
- calendarControllerAvailableSlots(availableSlotsPayload: AvailableSlotsPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarSlotsDTO> {
12127
- return localVarFp.calendarControllerAvailableSlots(availableSlotsPayload, options).then((request) => request(axios, basePath));
12128
- },
12129
12099
  /**
12130
12100
  *
12131
12101
  * @param {string} id
@@ -12170,6 +12140,15 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
12170
12140
  calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarSlotsDTO> {
12171
12141
  return localVarFp.calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(axios, basePath));
12172
12142
  },
12143
+ /**
12144
+ *
12145
+ * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
12146
+ * @param {*} [options] Override http request option.
12147
+ * @throws {RequiredError}
12148
+ */
12149
+ calendarControllerListStandardBookingSlots(standardBookingSlotsPayload: StandardBookingSlotsPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarSlotsDTO> {
12150
+ return localVarFp.calendarControllerListStandardBookingSlots(standardBookingSlotsPayload, options).then((request) => request(axios, basePath));
12151
+ },
12173
12152
  /**
12174
12153
  *
12175
12154
  * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
@@ -12236,17 +12215,6 @@ export class CalendarApi extends BaseAPI {
12236
12215
  return CalendarApiFp(this.configuration).calendarControllerAcceptCalendarInvite(acceptCollaborateInvitePayload, options).then((request) => request(this.axios, this.basePath));
12237
12216
  }
12238
12217
 
12239
- /**
12240
- *
12241
- * @param {AvailableSlotsPayload} availableSlotsPayload
12242
- * @param {*} [options] Override http request option.
12243
- * @throws {RequiredError}
12244
- * @memberof CalendarApi
12245
- */
12246
- public calendarControllerAvailableSlots(availableSlotsPayload: AvailableSlotsPayload, options?: RawAxiosRequestConfig) {
12247
- return CalendarApiFp(this.configuration).calendarControllerAvailableSlots(availableSlotsPayload, options).then((request) => request(this.axios, this.basePath));
12248
- }
12249
-
12250
12218
  /**
12251
12219
  *
12252
12220
  * @param {string} id
@@ -12301,6 +12269,17 @@ export class CalendarApi extends BaseAPI {
12301
12269
  return CalendarApiFp(this.configuration).calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(this.axios, this.basePath));
12302
12270
  }
12303
12271
 
12272
+ /**
12273
+ *
12274
+ * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
12275
+ * @param {*} [options] Override http request option.
12276
+ * @throws {RequiredError}
12277
+ * @memberof CalendarApi
12278
+ */
12279
+ public calendarControllerListStandardBookingSlots(standardBookingSlotsPayload: StandardBookingSlotsPayload, options?: RawAxiosRequestConfig) {
12280
+ return CalendarApiFp(this.configuration).calendarControllerListStandardBookingSlots(standardBookingSlotsPayload, options).then((request) => request(this.axios, this.basePath));
12281
+ }
12282
+
12304
12283
  /**
12305
12284
  *
12306
12285
  * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.96",
3
+ "version": "1.2.97",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},