@gooday_corp/gooday-api-client 1.2.88 → 1.2.89

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 +96 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -7712,6 +7712,31 @@ export interface WhatsOnResponseDTO {
7712
7712
  */
7713
7713
  'statusCode': number;
7714
7714
  }
7715
+ /**
7716
+ *
7717
+ * @export
7718
+ * @interface WhatsOnSlotsPayload
7719
+ */
7720
+ export interface WhatsOnSlotsPayload {
7721
+ /**
7722
+ * Start date for the events
7723
+ * @type {string}
7724
+ * @memberof WhatsOnSlotsPayload
7725
+ */
7726
+ 'startDate': string;
7727
+ /**
7728
+ * End date for the events
7729
+ * @type {string}
7730
+ * @memberof WhatsOnSlotsPayload
7731
+ */
7732
+ 'endDate': string;
7733
+ /**
7734
+ * WhatsOn ID
7735
+ * @type {string}
7736
+ * @memberof WhatsOnSlotsPayload
7737
+ */
7738
+ 'id': string;
7739
+ }
7715
7740
  /**
7716
7741
  *
7717
7742
  * @export
@@ -11682,6 +11707,45 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
11682
11707
  options: localVarRequestOptions,
11683
11708
  };
11684
11709
  },
11710
+ /**
11711
+ *
11712
+ * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
11713
+ * @param {*} [options] Override http request option.
11714
+ * @throws {RequiredError}
11715
+ */
11716
+ calendarControllerListWhatsOnAvailableSlots: async (whatsOnSlotsPayload: WhatsOnSlotsPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11717
+ // verify required parameter 'whatsOnSlotsPayload' is not null or undefined
11718
+ assertParamExists('calendarControllerListWhatsOnAvailableSlots', 'whatsOnSlotsPayload', whatsOnSlotsPayload)
11719
+ const localVarPath = `/v1/calendar/slots/whats-on`;
11720
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11721
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11722
+ let baseOptions;
11723
+ if (configuration) {
11724
+ baseOptions = configuration.baseOptions;
11725
+ }
11726
+
11727
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11728
+ const localVarHeaderParameter = {} as any;
11729
+ const localVarQueryParameter = {} as any;
11730
+
11731
+ // authentication bearer required
11732
+ // http bearer authentication required
11733
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11734
+
11735
+
11736
+
11737
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11738
+
11739
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11740
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11741
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11742
+ localVarRequestOptions.data = serializeDataIfNeeded(whatsOnSlotsPayload, localVarRequestOptions, configuration)
11743
+
11744
+ return {
11745
+ url: toPathString(localVarUrlObj),
11746
+ options: localVarRequestOptions,
11747
+ };
11748
+ },
11685
11749
  /**
11686
11750
  *
11687
11751
  * @param {RejectCollaborateInvitePayload} rejectCollaborateInvitePayload
@@ -11919,6 +11983,18 @@ export const CalendarApiFp = function(configuration?: Configuration) {
11919
11983
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListMyCalendar']?.[localVarOperationServerIndex]?.url;
11920
11984
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11921
11985
  },
11986
+ /**
11987
+ *
11988
+ * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
11989
+ * @param {*} [options] Override http request option.
11990
+ * @throws {RequiredError}
11991
+ */
11992
+ async calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarSlotsDTO>> {
11993
+ const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload, options);
11994
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11995
+ const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListWhatsOnAvailableSlots']?.[localVarOperationServerIndex]?.url;
11996
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11997
+ },
11922
11998
  /**
11923
11999
  *
11924
12000
  * @param {RejectCollaborateInvitePayload} rejectCollaborateInvitePayload
@@ -12030,6 +12106,15 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
12030
12106
  calendarControllerListMyCalendar(options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponseDTO> {
12031
12107
  return localVarFp.calendarControllerListMyCalendar(options).then((request) => request(axios, basePath));
12032
12108
  },
12109
+ /**
12110
+ *
12111
+ * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
12112
+ * @param {*} [options] Override http request option.
12113
+ * @throws {RequiredError}
12114
+ */
12115
+ calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarSlotsDTO> {
12116
+ return localVarFp.calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(axios, basePath));
12117
+ },
12033
12118
  /**
12034
12119
  *
12035
12120
  * @param {RejectCollaborateInvitePayload} rejectCollaborateInvitePayload
@@ -12141,6 +12226,17 @@ export class CalendarApi extends BaseAPI {
12141
12226
  return CalendarApiFp(this.configuration).calendarControllerListMyCalendar(options).then((request) => request(this.axios, this.basePath));
12142
12227
  }
12143
12228
 
12229
+ /**
12230
+ *
12231
+ * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
12232
+ * @param {*} [options] Override http request option.
12233
+ * @throws {RequiredError}
12234
+ * @memberof CalendarApi
12235
+ */
12236
+ public calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig) {
12237
+ return CalendarApiFp(this.configuration).calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(this.axios, this.basePath));
12238
+ }
12239
+
12144
12240
  /**
12145
12241
  *
12146
12242
  * @param {RejectCollaborateInvitePayload} rejectCollaborateInvitePayload
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.88",
3
+ "version": "1.2.89",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},