@gooday_corp/gooday-api-client 1.1.49 → 1.1.51

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 +166 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -2559,6 +2559,25 @@ export interface NotificationActionEventResponseDTO {
2559
2559
  */
2560
2560
  'success': boolean;
2561
2561
  }
2562
+ /**
2563
+ *
2564
+ * @export
2565
+ * @interface NotificationCountResponseDTO
2566
+ */
2567
+ export interface NotificationCountResponseDTO {
2568
+ /**
2569
+ * statusCode
2570
+ * @type {number}
2571
+ * @memberof NotificationCountResponseDTO
2572
+ */
2573
+ 'statusCode': number;
2574
+ /**
2575
+ * Response
2576
+ * @type {number}
2577
+ * @memberof NotificationCountResponseDTO
2578
+ */
2579
+ 'data': number;
2580
+ }
2562
2581
  /**
2563
2582
  *
2564
2583
  * @export
@@ -8819,6 +8838,79 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
8819
8838
 
8820
8839
 
8821
8840
 
8841
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8842
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8843
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8844
+
8845
+ return {
8846
+ url: toPathString(localVarUrlObj),
8847
+ options: localVarRequestOptions,
8848
+ };
8849
+ },
8850
+ /**
8851
+ *
8852
+ * @param {NotificationControllerNotificationCountCategoryEnum} category
8853
+ * @param {*} [options] Override http request option.
8854
+ * @throws {RequiredError}
8855
+ */
8856
+ notificationControllerNotificationCount: async (category: NotificationControllerNotificationCountCategoryEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8857
+ // verify required parameter 'category' is not null or undefined
8858
+ assertParamExists('notificationControllerNotificationCount', 'category', category)
8859
+ const localVarPath = `/v1/notification/count`;
8860
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8861
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8862
+ let baseOptions;
8863
+ if (configuration) {
8864
+ baseOptions = configuration.baseOptions;
8865
+ }
8866
+
8867
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8868
+ const localVarHeaderParameter = {} as any;
8869
+ const localVarQueryParameter = {} as any;
8870
+
8871
+ // authentication bearer required
8872
+ // http bearer authentication required
8873
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8874
+
8875
+ if (category !== undefined) {
8876
+ localVarQueryParameter['category'] = category;
8877
+ }
8878
+
8879
+
8880
+
8881
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8882
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8883
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8884
+
8885
+ return {
8886
+ url: toPathString(localVarUrlObj),
8887
+ options: localVarRequestOptions,
8888
+ };
8889
+ },
8890
+ /**
8891
+ *
8892
+ * @param {*} [options] Override http request option.
8893
+ * @throws {RequiredError}
8894
+ */
8895
+ notificationControllerReadMarkAllNotification: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8896
+ const localVarPath = `/v1/notification/read-mark`;
8897
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8898
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8899
+ let baseOptions;
8900
+ if (configuration) {
8901
+ baseOptions = configuration.baseOptions;
8902
+ }
8903
+
8904
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8905
+ const localVarHeaderParameter = {} as any;
8906
+ const localVarQueryParameter = {} as any;
8907
+
8908
+ // authentication bearer required
8909
+ // http bearer authentication required
8910
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8911
+
8912
+
8913
+
8822
8914
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8823
8915
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8824
8916
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -8903,6 +8995,29 @@ export const NotificationApiFp = function(configuration?: Configuration) {
8903
8995
  const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerGetNotification']?.[localVarOperationServerIndex]?.url;
8904
8996
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8905
8997
  },
8998
+ /**
8999
+ *
9000
+ * @param {NotificationControllerNotificationCountCategoryEnum} category
9001
+ * @param {*} [options] Override http request option.
9002
+ * @throws {RequiredError}
9003
+ */
9004
+ async notificationControllerNotificationCount(category: NotificationControllerNotificationCountCategoryEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationCountResponseDTO>> {
9005
+ const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerNotificationCount(category, options);
9006
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9007
+ const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerNotificationCount']?.[localVarOperationServerIndex]?.url;
9008
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9009
+ },
9010
+ /**
9011
+ *
9012
+ * @param {*} [options] Override http request option.
9013
+ * @throws {RequiredError}
9014
+ */
9015
+ async notificationControllerReadMarkAllNotification(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationReadResponseDTO>> {
9016
+ const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerReadMarkAllNotification(options);
9017
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9018
+ const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerReadMarkAllNotification']?.[localVarOperationServerIndex]?.url;
9019
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9020
+ },
8906
9021
  /**
8907
9022
  *
8908
9023
  * @param {NotificationReadDTO} notificationReadDTO
@@ -8945,6 +9060,23 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
8945
9060
  notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
8946
9061
  return localVarFp.notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(axios, basePath));
8947
9062
  },
9063
+ /**
9064
+ *
9065
+ * @param {NotificationControllerNotificationCountCategoryEnum} category
9066
+ * @param {*} [options] Override http request option.
9067
+ * @throws {RequiredError}
9068
+ */
9069
+ notificationControllerNotificationCount(category: NotificationControllerNotificationCountCategoryEnum, options?: RawAxiosRequestConfig): AxiosPromise<NotificationCountResponseDTO> {
9070
+ return localVarFp.notificationControllerNotificationCount(category, options).then((request) => request(axios, basePath));
9071
+ },
9072
+ /**
9073
+ *
9074
+ * @param {*} [options] Override http request option.
9075
+ * @throws {RequiredError}
9076
+ */
9077
+ notificationControllerReadMarkAllNotification(options?: RawAxiosRequestConfig): AxiosPromise<NotificationReadResponseDTO> {
9078
+ return localVarFp.notificationControllerReadMarkAllNotification(options).then((request) => request(axios, basePath));
9079
+ },
8948
9080
  /**
8949
9081
  *
8950
9082
  * @param {NotificationReadDTO} notificationReadDTO
@@ -8988,6 +9120,27 @@ export class NotificationApi extends BaseAPI {
8988
9120
  return NotificationApiFp(this.configuration).notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(this.axios, this.basePath));
8989
9121
  }
8990
9122
 
9123
+ /**
9124
+ *
9125
+ * @param {NotificationControllerNotificationCountCategoryEnum} category
9126
+ * @param {*} [options] Override http request option.
9127
+ * @throws {RequiredError}
9128
+ * @memberof NotificationApi
9129
+ */
9130
+ public notificationControllerNotificationCount(category: NotificationControllerNotificationCountCategoryEnum, options?: RawAxiosRequestConfig) {
9131
+ return NotificationApiFp(this.configuration).notificationControllerNotificationCount(category, options).then((request) => request(this.axios, this.basePath));
9132
+ }
9133
+
9134
+ /**
9135
+ *
9136
+ * @param {*} [options] Override http request option.
9137
+ * @throws {RequiredError}
9138
+ * @memberof NotificationApi
9139
+ */
9140
+ public notificationControllerReadMarkAllNotification(options?: RawAxiosRequestConfig) {
9141
+ return NotificationApiFp(this.configuration).notificationControllerReadMarkAllNotification(options).then((request) => request(this.axios, this.basePath));
9142
+ }
9143
+
8991
9144
  /**
8992
9145
  *
8993
9146
  * @param {NotificationReadDTO} notificationReadDTO
@@ -9013,6 +9166,19 @@ export const NotificationControllerGetNotificationCategoryEnum = {
9013
9166
  General: 'GENERAL'
9014
9167
  } as const;
9015
9168
  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];
9016
9182
 
9017
9183
 
9018
9184
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.49",
3
+ "version": "1.1.51",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},