@gooday_corp/gooday-api-client 1.2.94 → 1.2.96

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 +83 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -2391,6 +2391,12 @@ export interface CalendarSlots {
2391
2391
  * @memberof CalendarSlots
2392
2392
  */
2393
2393
  'unavailableFriends': Array<object>;
2394
+ /**
2395
+ * Staffs unavailable for this slot
2396
+ * @type {Array<BusinessStaffEntity>}
2397
+ * @memberof CalendarSlots
2398
+ */
2399
+ 'unavailableStaffs': Array<BusinessStaffEntity>;
2394
2400
  }
2395
2401
  /**
2396
2402
  *
@@ -7722,6 +7728,12 @@ export interface WhatsOnSlotsPayload {
7722
7728
  * @memberof WhatsOnSlotsPayload
7723
7729
  */
7724
7730
  'collaborators': Array<string>;
7731
+ /**
7732
+ * List of staff associated with the booking
7733
+ * @type {Array<string>}
7734
+ * @memberof WhatsOnSlotsPayload
7735
+ */
7736
+ 'staffs': Array<string>;
7725
7737
  /**
7726
7738
  * WhatsOn ID
7727
7739
  * @type {string}
@@ -11699,6 +11711,45 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
11699
11711
  options: localVarRequestOptions,
11700
11712
  };
11701
11713
  },
11714
+ /**
11715
+ *
11716
+ * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
11717
+ * @param {*} [options] Override http request option.
11718
+ * @throws {RequiredError}
11719
+ */
11720
+ calendarControllerListPrepaidServiceAvailableSlots: async (whatsOnSlotsPayload: WhatsOnSlotsPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11721
+ // verify required parameter 'whatsOnSlotsPayload' is not null or undefined
11722
+ assertParamExists('calendarControllerListPrepaidServiceAvailableSlots', 'whatsOnSlotsPayload', whatsOnSlotsPayload)
11723
+ const localVarPath = `/v1/calendar/slots/prepaid-service`;
11724
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11725
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11726
+ let baseOptions;
11727
+ if (configuration) {
11728
+ baseOptions = configuration.baseOptions;
11729
+ }
11730
+
11731
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11732
+ const localVarHeaderParameter = {} as any;
11733
+ const localVarQueryParameter = {} as any;
11734
+
11735
+ // authentication bearer required
11736
+ // http bearer authentication required
11737
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11738
+
11739
+
11740
+
11741
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11742
+
11743
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11744
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11745
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11746
+ localVarRequestOptions.data = serializeDataIfNeeded(whatsOnSlotsPayload, localVarRequestOptions, configuration)
11747
+
11748
+ return {
11749
+ url: toPathString(localVarUrlObj),
11750
+ options: localVarRequestOptions,
11751
+ };
11752
+ },
11702
11753
  /**
11703
11754
  *
11704
11755
  * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
@@ -11975,6 +12026,18 @@ export const CalendarApiFp = function(configuration?: Configuration) {
11975
12026
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListMyCalendar']?.[localVarOperationServerIndex]?.url;
11976
12027
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11977
12028
  },
12029
+ /**
12030
+ *
12031
+ * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
12032
+ * @param {*} [options] Override http request option.
12033
+ * @throws {RequiredError}
12034
+ */
12035
+ async calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarSlotsDTO>> {
12036
+ const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload, options);
12037
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12038
+ const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListPrepaidServiceAvailableSlots']?.[localVarOperationServerIndex]?.url;
12039
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12040
+ },
11978
12041
  /**
11979
12042
  *
11980
12043
  * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
@@ -12098,6 +12161,15 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
12098
12161
  calendarControllerListMyCalendar(options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponseDTO> {
12099
12162
  return localVarFp.calendarControllerListMyCalendar(options).then((request) => request(axios, basePath));
12100
12163
  },
12164
+ /**
12165
+ *
12166
+ * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
12167
+ * @param {*} [options] Override http request option.
12168
+ * @throws {RequiredError}
12169
+ */
12170
+ calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarSlotsDTO> {
12171
+ return localVarFp.calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(axios, basePath));
12172
+ },
12101
12173
  /**
12102
12174
  *
12103
12175
  * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
@@ -12218,6 +12290,17 @@ export class CalendarApi extends BaseAPI {
12218
12290
  return CalendarApiFp(this.configuration).calendarControllerListMyCalendar(options).then((request) => request(this.axios, this.basePath));
12219
12291
  }
12220
12292
 
12293
+ /**
12294
+ *
12295
+ * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
12296
+ * @param {*} [options] Override http request option.
12297
+ * @throws {RequiredError}
12298
+ * @memberof CalendarApi
12299
+ */
12300
+ public calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig) {
12301
+ return CalendarApiFp(this.configuration).calendarControllerListPrepaidServiceAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(this.axios, this.basePath));
12302
+ }
12303
+
12221
12304
  /**
12222
12305
  *
12223
12306
  * @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.94",
3
+ "version": "1.2.96",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},