@gooday_corp/gooday-api-client 1.2.88 → 1.2.90

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 +100 -42
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -4898,25 +4898,6 @@ export interface PlanUpsertPayloadDTO {
4898
4898
  */
4899
4899
  'plan': string;
4900
4900
  }
4901
- /**
4902
- *
4903
- * @export
4904
- * @interface PrepaidServiceCapacityDTO
4905
- */
4906
- export interface PrepaidServiceCapacityDTO {
4907
- /**
4908
- * Time duration
4909
- * @type {TimeDuration}
4910
- * @memberof PrepaidServiceCapacityDTO
4911
- */
4912
- 'time': TimeDuration;
4913
- /**
4914
- * Capacity
4915
- * @type {number}
4916
- * @memberof PrepaidServiceCapacityDTO
4917
- */
4918
- 'capacity': number;
4919
- }
4920
4901
  /**
4921
4902
  *
4922
4903
  * @export
@@ -5042,10 +5023,10 @@ export interface PrepaidServiceEntity {
5042
5023
  'category': string;
5043
5024
  /**
5044
5025
  *
5045
- * @type {Array<PrepaidServiceCapacityDTO>}
5026
+ * @type {number}
5046
5027
  * @memberof PrepaidServiceEntity
5047
5028
  */
5048
- 'capacity': Array<PrepaidServiceCapacityDTO>;
5029
+ 'capacity': number;
5049
5030
  /**
5050
5031
  *
5051
5032
  * @type {boolean}
@@ -5313,10 +5294,10 @@ export interface PrepaidServicePayloadDTO {
5313
5294
  'discounts': Array<PrepaidServiceDiscount>;
5314
5295
  /**
5315
5296
  *
5316
- * @type {Array<PrepaidServiceCapacityDTO>}
5297
+ * @type {number}
5317
5298
  * @memberof PrepaidServicePayloadDTO
5318
5299
  */
5319
- 'capacity': Array<PrepaidServiceCapacityDTO>;
5300
+ 'capacity': number;
5320
5301
  /**
5321
5302
  *
5322
5303
  * @type {number}
@@ -6298,25 +6279,6 @@ export interface TaskListResponseDTO {
6298
6279
  */
6299
6280
  'data': Array<TaskEntity>;
6300
6281
  }
6301
- /**
6302
- *
6303
- * @export
6304
- * @interface TimeDuration
6305
- */
6306
- export interface TimeDuration {
6307
- /**
6308
- * Start time
6309
- * @type {string}
6310
- * @memberof TimeDuration
6311
- */
6312
- 'start': string;
6313
- /**
6314
- * End Time
6315
- * @type {string}
6316
- * @memberof TimeDuration
6317
- */
6318
- 'end': string;
6319
- }
6320
6282
  /**
6321
6283
  *
6322
6284
  * @export
@@ -7712,6 +7674,31 @@ export interface WhatsOnResponseDTO {
7712
7674
  */
7713
7675
  'statusCode': number;
7714
7676
  }
7677
+ /**
7678
+ *
7679
+ * @export
7680
+ * @interface WhatsOnSlotsPayload
7681
+ */
7682
+ export interface WhatsOnSlotsPayload {
7683
+ /**
7684
+ * Start date for the events
7685
+ * @type {string}
7686
+ * @memberof WhatsOnSlotsPayload
7687
+ */
7688
+ 'startDate': string;
7689
+ /**
7690
+ * End date for the events
7691
+ * @type {string}
7692
+ * @memberof WhatsOnSlotsPayload
7693
+ */
7694
+ 'endDate': string;
7695
+ /**
7696
+ * WhatsOn ID
7697
+ * @type {string}
7698
+ * @memberof WhatsOnSlotsPayload
7699
+ */
7700
+ 'id': string;
7701
+ }
7715
7702
  /**
7716
7703
  *
7717
7704
  * @export
@@ -11682,6 +11669,45 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
11682
11669
  options: localVarRequestOptions,
11683
11670
  };
11684
11671
  },
11672
+ /**
11673
+ *
11674
+ * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
11675
+ * @param {*} [options] Override http request option.
11676
+ * @throws {RequiredError}
11677
+ */
11678
+ calendarControllerListWhatsOnAvailableSlots: async (whatsOnSlotsPayload: WhatsOnSlotsPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11679
+ // verify required parameter 'whatsOnSlotsPayload' is not null or undefined
11680
+ assertParamExists('calendarControllerListWhatsOnAvailableSlots', 'whatsOnSlotsPayload', whatsOnSlotsPayload)
11681
+ const localVarPath = `/v1/calendar/slots/whats-on`;
11682
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11683
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11684
+ let baseOptions;
11685
+ if (configuration) {
11686
+ baseOptions = configuration.baseOptions;
11687
+ }
11688
+
11689
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11690
+ const localVarHeaderParameter = {} as any;
11691
+ const localVarQueryParameter = {} as any;
11692
+
11693
+ // authentication bearer required
11694
+ // http bearer authentication required
11695
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11696
+
11697
+
11698
+
11699
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11700
+
11701
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11702
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11703
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11704
+ localVarRequestOptions.data = serializeDataIfNeeded(whatsOnSlotsPayload, localVarRequestOptions, configuration)
11705
+
11706
+ return {
11707
+ url: toPathString(localVarUrlObj),
11708
+ options: localVarRequestOptions,
11709
+ };
11710
+ },
11685
11711
  /**
11686
11712
  *
11687
11713
  * @param {RejectCollaborateInvitePayload} rejectCollaborateInvitePayload
@@ -11919,6 +11945,18 @@ export const CalendarApiFp = function(configuration?: Configuration) {
11919
11945
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListMyCalendar']?.[localVarOperationServerIndex]?.url;
11920
11946
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11921
11947
  },
11948
+ /**
11949
+ *
11950
+ * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
11951
+ * @param {*} [options] Override http request option.
11952
+ * @throws {RequiredError}
11953
+ */
11954
+ async calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarSlotsDTO>> {
11955
+ const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload, options);
11956
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11957
+ const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListWhatsOnAvailableSlots']?.[localVarOperationServerIndex]?.url;
11958
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11959
+ },
11922
11960
  /**
11923
11961
  *
11924
11962
  * @param {RejectCollaborateInvitePayload} rejectCollaborateInvitePayload
@@ -12030,6 +12068,15 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
12030
12068
  calendarControllerListMyCalendar(options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponseDTO> {
12031
12069
  return localVarFp.calendarControllerListMyCalendar(options).then((request) => request(axios, basePath));
12032
12070
  },
12071
+ /**
12072
+ *
12073
+ * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
12074
+ * @param {*} [options] Override http request option.
12075
+ * @throws {RequiredError}
12076
+ */
12077
+ calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarSlotsDTO> {
12078
+ return localVarFp.calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(axios, basePath));
12079
+ },
12033
12080
  /**
12034
12081
  *
12035
12082
  * @param {RejectCollaborateInvitePayload} rejectCollaborateInvitePayload
@@ -12141,6 +12188,17 @@ export class CalendarApi extends BaseAPI {
12141
12188
  return CalendarApiFp(this.configuration).calendarControllerListMyCalendar(options).then((request) => request(this.axios, this.basePath));
12142
12189
  }
12143
12190
 
12191
+ /**
12192
+ *
12193
+ * @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
12194
+ * @param {*} [options] Override http request option.
12195
+ * @throws {RequiredError}
12196
+ * @memberof CalendarApi
12197
+ */
12198
+ public calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig) {
12199
+ return CalendarApiFp(this.configuration).calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(this.axios, this.basePath));
12200
+ }
12201
+
12144
12202
  /**
12145
12203
  *
12146
12204
  * @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.90",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},