@gooday_corp/gooday-api-client 1.1.50 → 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 +178 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -2559,6 +2559,51 @@ 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
+
2588
+ /**
2589
+ *
2590
+ * @export
2591
+ * @interface NotificationCountResponseDTO
2592
+ */
2593
+ export interface NotificationCountResponseDTO {
2594
+ /**
2595
+ * statusCode
2596
+ * @type {number}
2597
+ * @memberof NotificationCountResponseDTO
2598
+ */
2599
+ 'statusCode': number;
2600
+ /**
2601
+ * Response
2602
+ * @type {number}
2603
+ * @memberof NotificationCountResponseDTO
2604
+ */
2605
+ 'data': number;
2606
+ }
2562
2607
  /**
2563
2608
  *
2564
2609
  * @export
@@ -8819,6 +8864,78 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
8819
8864
 
8820
8865
 
8821
8866
 
8867
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8868
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8869
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8870
+
8871
+ return {
8872
+ url: toPathString(localVarUrlObj),
8873
+ options: localVarRequestOptions,
8874
+ };
8875
+ },
8876
+ /**
8877
+ *
8878
+ * @param {NotificationCountDTO} notificationCountDTO
8879
+ * @param {*} [options] Override http request option.
8880
+ * @throws {RequiredError}
8881
+ */
8882
+ notificationControllerNotificationCount: async (notificationCountDTO: NotificationCountDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8883
+ // verify required parameter 'notificationCountDTO' is not null or undefined
8884
+ assertParamExists('notificationControllerNotificationCount', 'notificationCountDTO', notificationCountDTO)
8885
+ const localVarPath = `/v1/notification/count`;
8886
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8887
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8888
+ let baseOptions;
8889
+ if (configuration) {
8890
+ baseOptions = configuration.baseOptions;
8891
+ }
8892
+
8893
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8894
+ const localVarHeaderParameter = {} as any;
8895
+ const localVarQueryParameter = {} as any;
8896
+
8897
+ // authentication bearer required
8898
+ // http bearer authentication required
8899
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8900
+
8901
+
8902
+
8903
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8904
+
8905
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8906
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8907
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8908
+ localVarRequestOptions.data = serializeDataIfNeeded(notificationCountDTO, localVarRequestOptions, configuration)
8909
+
8910
+ return {
8911
+ url: toPathString(localVarUrlObj),
8912
+ options: localVarRequestOptions,
8913
+ };
8914
+ },
8915
+ /**
8916
+ *
8917
+ * @param {*} [options] Override http request option.
8918
+ * @throws {RequiredError}
8919
+ */
8920
+ notificationControllerReadMarkAllNotification: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8921
+ const localVarPath = `/v1/notification/read-mark`;
8922
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8923
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8924
+ let baseOptions;
8925
+ if (configuration) {
8926
+ baseOptions = configuration.baseOptions;
8927
+ }
8928
+
8929
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8930
+ const localVarHeaderParameter = {} as any;
8931
+ const localVarQueryParameter = {} as any;
8932
+
8933
+ // authentication bearer required
8934
+ // http bearer authentication required
8935
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8936
+
8937
+
8938
+
8822
8939
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8823
8940
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8824
8941
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -8903,6 +9020,29 @@ export const NotificationApiFp = function(configuration?: Configuration) {
8903
9020
  const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerGetNotification']?.[localVarOperationServerIndex]?.url;
8904
9021
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8905
9022
  },
9023
+ /**
9024
+ *
9025
+ * @param {NotificationCountDTO} notificationCountDTO
9026
+ * @param {*} [options] Override http request option.
9027
+ * @throws {RequiredError}
9028
+ */
9029
+ async notificationControllerNotificationCount(notificationCountDTO: NotificationCountDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationCountResponseDTO>> {
9030
+ const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerNotificationCount(notificationCountDTO, options);
9031
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9032
+ const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerNotificationCount']?.[localVarOperationServerIndex]?.url;
9033
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9034
+ },
9035
+ /**
9036
+ *
9037
+ * @param {*} [options] Override http request option.
9038
+ * @throws {RequiredError}
9039
+ */
9040
+ async notificationControllerReadMarkAllNotification(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationReadResponseDTO>> {
9041
+ const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerReadMarkAllNotification(options);
9042
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9043
+ const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerReadMarkAllNotification']?.[localVarOperationServerIndex]?.url;
9044
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9045
+ },
8906
9046
  /**
8907
9047
  *
8908
9048
  * @param {NotificationReadDTO} notificationReadDTO
@@ -8945,6 +9085,23 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
8945
9085
  notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
8946
9086
  return localVarFp.notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(axios, basePath));
8947
9087
  },
9088
+ /**
9089
+ *
9090
+ * @param {NotificationCountDTO} notificationCountDTO
9091
+ * @param {*} [options] Override http request option.
9092
+ * @throws {RequiredError}
9093
+ */
9094
+ notificationControllerNotificationCount(notificationCountDTO: NotificationCountDTO, options?: RawAxiosRequestConfig): AxiosPromise<NotificationCountResponseDTO> {
9095
+ return localVarFp.notificationControllerNotificationCount(notificationCountDTO, options).then((request) => request(axios, basePath));
9096
+ },
9097
+ /**
9098
+ *
9099
+ * @param {*} [options] Override http request option.
9100
+ * @throws {RequiredError}
9101
+ */
9102
+ notificationControllerReadMarkAllNotification(options?: RawAxiosRequestConfig): AxiosPromise<NotificationReadResponseDTO> {
9103
+ return localVarFp.notificationControllerReadMarkAllNotification(options).then((request) => request(axios, basePath));
9104
+ },
8948
9105
  /**
8949
9106
  *
8950
9107
  * @param {NotificationReadDTO} notificationReadDTO
@@ -8988,6 +9145,27 @@ export class NotificationApi extends BaseAPI {
8988
9145
  return NotificationApiFp(this.configuration).notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(this.axios, this.basePath));
8989
9146
  }
8990
9147
 
9148
+ /**
9149
+ *
9150
+ * @param {NotificationCountDTO} notificationCountDTO
9151
+ * @param {*} [options] Override http request option.
9152
+ * @throws {RequiredError}
9153
+ * @memberof NotificationApi
9154
+ */
9155
+ public notificationControllerNotificationCount(notificationCountDTO: NotificationCountDTO, options?: RawAxiosRequestConfig) {
9156
+ return NotificationApiFp(this.configuration).notificationControllerNotificationCount(notificationCountDTO, options).then((request) => request(this.axios, this.basePath));
9157
+ }
9158
+
9159
+ /**
9160
+ *
9161
+ * @param {*} [options] Override http request option.
9162
+ * @throws {RequiredError}
9163
+ * @memberof NotificationApi
9164
+ */
9165
+ public notificationControllerReadMarkAllNotification(options?: RawAxiosRequestConfig) {
9166
+ return NotificationApiFp(this.configuration).notificationControllerReadMarkAllNotification(options).then((request) => request(this.axios, this.basePath));
9167
+ }
9168
+
8991
9169
  /**
8992
9170
  *
8993
9171
  * @param {NotificationReadDTO} notificationReadDTO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.50",
3
+ "version": "1.1.52",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},