@gooday_corp/gooday-api-client 1.1.51 → 1.1.52

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 +43 -31
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -2559,6 +2559,32 @@ export interface NotificationActionEventResponseDTO {
2559
2559
  */
2560
2560
  'success': boolean;
2561
2561
  }
2562
+ /**
2563
+ *
2564
+ * @export
2565
+ * @interface NotificationCountDTO
2566
+ */
2567
+ export interface NotificationCountDTO {
2568
+ /**
2569
+ *
2570
+ * @type {Array<string>}
2571
+ * @memberof NotificationCountDTO
2572
+ */
2573
+ 'category': Array<NotificationCountDTOCategoryEnum>;
2574
+ }
2575
+
2576
+ export const NotificationCountDTOCategoryEnum = {
2577
+ Calendar: 'CALENDAR',
2578
+ Tasks: 'TASKS',
2579
+ Reminders: 'REMINDERS',
2580
+ Waitlist: 'WAITLIST',
2581
+ Booking: 'BOOKING',
2582
+ Invites: 'INVITES',
2583
+ General: 'GENERAL'
2584
+ } as const;
2585
+
2586
+ export type NotificationCountDTOCategoryEnum = typeof NotificationCountDTOCategoryEnum[keyof typeof NotificationCountDTOCategoryEnum];
2587
+
2562
2588
  /**
2563
2589
  *
2564
2590
  * @export
@@ -8849,13 +8875,13 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
8849
8875
  },
8850
8876
  /**
8851
8877
  *
8852
- * @param {NotificationControllerNotificationCountCategoryEnum} category
8878
+ * @param {NotificationCountDTO} notificationCountDTO
8853
8879
  * @param {*} [options] Override http request option.
8854
8880
  * @throws {RequiredError}
8855
8881
  */
8856
- notificationControllerNotificationCount: async (category: NotificationControllerNotificationCountCategoryEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8857
- // verify required parameter 'category' is not null or undefined
8858
- assertParamExists('notificationControllerNotificationCount', 'category', category)
8882
+ notificationControllerNotificationCount: async (notificationCountDTO: NotificationCountDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8883
+ // verify required parameter 'notificationCountDTO' is not null or undefined
8884
+ assertParamExists('notificationControllerNotificationCount', 'notificationCountDTO', notificationCountDTO)
8859
8885
  const localVarPath = `/v1/notification/count`;
8860
8886
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8861
8887
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -8864,7 +8890,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
8864
8890
  baseOptions = configuration.baseOptions;
8865
8891
  }
8866
8892
 
8867
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8893
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8868
8894
  const localVarHeaderParameter = {} as any;
8869
8895
  const localVarQueryParameter = {} as any;
8870
8896
 
@@ -8872,15 +8898,14 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
8872
8898
  // http bearer authentication required
8873
8899
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
8874
8900
 
8875
- if (category !== undefined) {
8876
- localVarQueryParameter['category'] = category;
8877
- }
8878
-
8879
8901
 
8880
8902
 
8903
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8904
+
8881
8905
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8882
8906
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8883
8907
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8908
+ localVarRequestOptions.data = serializeDataIfNeeded(notificationCountDTO, localVarRequestOptions, configuration)
8884
8909
 
8885
8910
  return {
8886
8911
  url: toPathString(localVarUrlObj),
@@ -8997,12 +9022,12 @@ export const NotificationApiFp = function(configuration?: Configuration) {
8997
9022
  },
8998
9023
  /**
8999
9024
  *
9000
- * @param {NotificationControllerNotificationCountCategoryEnum} category
9025
+ * @param {NotificationCountDTO} notificationCountDTO
9001
9026
  * @param {*} [options] Override http request option.
9002
9027
  * @throws {RequiredError}
9003
9028
  */
9004
- async notificationControllerNotificationCount(category: NotificationControllerNotificationCountCategoryEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationCountResponseDTO>> {
9005
- const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerNotificationCount(category, options);
9029
+ async notificationControllerNotificationCount(notificationCountDTO: NotificationCountDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationCountResponseDTO>> {
9030
+ const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerNotificationCount(notificationCountDTO, options);
9006
9031
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9007
9032
  const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerNotificationCount']?.[localVarOperationServerIndex]?.url;
9008
9033
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9062,12 +9087,12 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
9062
9087
  },
9063
9088
  /**
9064
9089
  *
9065
- * @param {NotificationControllerNotificationCountCategoryEnum} category
9090
+ * @param {NotificationCountDTO} notificationCountDTO
9066
9091
  * @param {*} [options] Override http request option.
9067
9092
  * @throws {RequiredError}
9068
9093
  */
9069
- notificationControllerNotificationCount(category: NotificationControllerNotificationCountCategoryEnum, options?: RawAxiosRequestConfig): AxiosPromise<NotificationCountResponseDTO> {
9070
- return localVarFp.notificationControllerNotificationCount(category, options).then((request) => request(axios, basePath));
9094
+ notificationControllerNotificationCount(notificationCountDTO: NotificationCountDTO, options?: RawAxiosRequestConfig): AxiosPromise<NotificationCountResponseDTO> {
9095
+ return localVarFp.notificationControllerNotificationCount(notificationCountDTO, options).then((request) => request(axios, basePath));
9071
9096
  },
9072
9097
  /**
9073
9098
  *
@@ -9122,13 +9147,13 @@ export class NotificationApi extends BaseAPI {
9122
9147
 
9123
9148
  /**
9124
9149
  *
9125
- * @param {NotificationControllerNotificationCountCategoryEnum} category
9150
+ * @param {NotificationCountDTO} notificationCountDTO
9126
9151
  * @param {*} [options] Override http request option.
9127
9152
  * @throws {RequiredError}
9128
9153
  * @memberof NotificationApi
9129
9154
  */
9130
- public notificationControllerNotificationCount(category: NotificationControllerNotificationCountCategoryEnum, options?: RawAxiosRequestConfig) {
9131
- return NotificationApiFp(this.configuration).notificationControllerNotificationCount(category, options).then((request) => request(this.axios, this.basePath));
9155
+ public notificationControllerNotificationCount(notificationCountDTO: NotificationCountDTO, options?: RawAxiosRequestConfig) {
9156
+ return NotificationApiFp(this.configuration).notificationControllerNotificationCount(notificationCountDTO, options).then((request) => request(this.axios, this.basePath));
9132
9157
  }
9133
9158
 
9134
9159
  /**
@@ -9166,19 +9191,6 @@ export const NotificationControllerGetNotificationCategoryEnum = {
9166
9191
  General: 'GENERAL'
9167
9192
  } as const;
9168
9193
  export type NotificationControllerGetNotificationCategoryEnum = typeof NotificationControllerGetNotificationCategoryEnum[keyof typeof NotificationControllerGetNotificationCategoryEnum];
9169
- /**
9170
- * @export
9171
- */
9172
- export const NotificationControllerNotificationCountCategoryEnum = {
9173
- Calendar: 'CALENDAR',
9174
- Tasks: 'TASKS',
9175
- Reminders: 'REMINDERS',
9176
- Waitlist: 'WAITLIST',
9177
- Booking: 'BOOKING',
9178
- Invites: 'INVITES',
9179
- General: 'GENERAL'
9180
- } as const;
9181
- export type NotificationControllerNotificationCountCategoryEnum = typeof NotificationControllerNotificationCountCategoryEnum[keyof typeof NotificationControllerNotificationCountCategoryEnum];
9182
9194
 
9183
9195
 
9184
9196
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.51",
3
+ "version": "1.1.52",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},