@gooday_corp/gooday-api-client 1.2.95 → 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 +71 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -11711,6 +11711,45 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
11711
11711
  options: localVarRequestOptions,
11712
11712
  };
11713
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
+ },
11714
11753
  /**
11715
11754
  *
11716
11755
  * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
@@ -11987,6 +12026,18 @@ export const CalendarApiFp = function(configuration?: Configuration) {
11987
12026
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListMyCalendar']?.[localVarOperationServerIndex]?.url;
11988
12027
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11989
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
+ },
11990
12041
  /**
11991
12042
  *
11992
12043
  * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
@@ -12110,6 +12161,15 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
12110
12161
  calendarControllerListMyCalendar(options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponseDTO> {
12111
12162
  return localVarFp.calendarControllerListMyCalendar(options).then((request) => request(axios, basePath));
12112
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
+ },
12113
12173
  /**
12114
12174
  *
12115
12175
  * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
@@ -12230,6 +12290,17 @@ export class CalendarApi extends BaseAPI {
12230
12290
  return CalendarApiFp(this.configuration).calendarControllerListMyCalendar(options).then((request) => request(this.axios, this.basePath));
12231
12291
  }
12232
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
+
12233
12304
  /**
12234
12305
  *
12235
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.95",
3
+ "version": "1.2.96",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},