@gooday_corp/gooday-api-client 1.1.51 → 1.1.53
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.
- package/api.ts +55 -44
- 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
|
|
@@ -5569,12 +5595,15 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5569
5595
|
},
|
|
5570
5596
|
/**
|
|
5571
5597
|
*
|
|
5572
|
-
* @param {boolean}
|
|
5598
|
+
* @param {boolean} favorite
|
|
5573
5599
|
* @param {*} [options] Override http request option.
|
|
5574
5600
|
* @throws {RequiredError}
|
|
5575
5601
|
*/
|
|
5576
|
-
businessTypeControllerListBusinessType: async (favorite
|
|
5577
|
-
|
|
5602
|
+
businessTypeControllerListBusinessType: async (favorite: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5603
|
+
// verify required parameter 'favorite' is not null or undefined
|
|
5604
|
+
assertParamExists('businessTypeControllerListBusinessType', 'favorite', favorite)
|
|
5605
|
+
const localVarPath = `/v1/business/list{favorite}`
|
|
5606
|
+
.replace(`{${"favorite"}}`, encodeURIComponent(String(favorite)));
|
|
5578
5607
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5579
5608
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5580
5609
|
let baseOptions;
|
|
@@ -5590,10 +5619,6 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5590
5619
|
// http bearer authentication required
|
|
5591
5620
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5592
5621
|
|
|
5593
|
-
if (favorite !== undefined) {
|
|
5594
|
-
localVarQueryParameter['favorite'] = favorite;
|
|
5595
|
-
}
|
|
5596
|
-
|
|
5597
5622
|
|
|
5598
5623
|
|
|
5599
5624
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5881,11 +5906,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
5881
5906
|
},
|
|
5882
5907
|
/**
|
|
5883
5908
|
*
|
|
5884
|
-
* @param {boolean}
|
|
5909
|
+
* @param {boolean} favorite
|
|
5885
5910
|
* @param {*} [options] Override http request option.
|
|
5886
5911
|
* @throws {RequiredError}
|
|
5887
5912
|
*/
|
|
5888
|
-
async businessTypeControllerListBusinessType(favorite
|
|
5913
|
+
async businessTypeControllerListBusinessType(favorite: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessTypeListResponse>> {
|
|
5889
5914
|
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListBusinessType(favorite, options);
|
|
5890
5915
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5891
5916
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListBusinessType']?.[localVarOperationServerIndex]?.url;
|
|
@@ -6008,11 +6033,11 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
6008
6033
|
},
|
|
6009
6034
|
/**
|
|
6010
6035
|
*
|
|
6011
|
-
* @param {boolean}
|
|
6036
|
+
* @param {boolean} favorite
|
|
6012
6037
|
* @param {*} [options] Override http request option.
|
|
6013
6038
|
* @throws {RequiredError}
|
|
6014
6039
|
*/
|
|
6015
|
-
businessTypeControllerListBusinessType(favorite
|
|
6040
|
+
businessTypeControllerListBusinessType(favorite: boolean, options?: RawAxiosRequestConfig): AxiosPromise<BusinessTypeListResponse> {
|
|
6016
6041
|
return localVarFp.businessTypeControllerListBusinessType(favorite, options).then((request) => request(axios, basePath));
|
|
6017
6042
|
},
|
|
6018
6043
|
/**
|
|
@@ -6122,12 +6147,12 @@ export class BusinessApi extends BaseAPI {
|
|
|
6122
6147
|
|
|
6123
6148
|
/**
|
|
6124
6149
|
*
|
|
6125
|
-
* @param {boolean}
|
|
6150
|
+
* @param {boolean} favorite
|
|
6126
6151
|
* @param {*} [options] Override http request option.
|
|
6127
6152
|
* @throws {RequiredError}
|
|
6128
6153
|
* @memberof BusinessApi
|
|
6129
6154
|
*/
|
|
6130
|
-
public businessTypeControllerListBusinessType(favorite
|
|
6155
|
+
public businessTypeControllerListBusinessType(favorite: boolean, options?: RawAxiosRequestConfig) {
|
|
6131
6156
|
return BusinessApiFp(this.configuration).businessTypeControllerListBusinessType(favorite, options).then((request) => request(this.axios, this.basePath));
|
|
6132
6157
|
}
|
|
6133
6158
|
|
|
@@ -8849,13 +8874,13 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
8849
8874
|
},
|
|
8850
8875
|
/**
|
|
8851
8876
|
*
|
|
8852
|
-
* @param {
|
|
8877
|
+
* @param {NotificationCountDTO} notificationCountDTO
|
|
8853
8878
|
* @param {*} [options] Override http request option.
|
|
8854
8879
|
* @throws {RequiredError}
|
|
8855
8880
|
*/
|
|
8856
|
-
notificationControllerNotificationCount: async (
|
|
8857
|
-
// verify required parameter '
|
|
8858
|
-
assertParamExists('notificationControllerNotificationCount', '
|
|
8881
|
+
notificationControllerNotificationCount: async (notificationCountDTO: NotificationCountDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8882
|
+
// verify required parameter 'notificationCountDTO' is not null or undefined
|
|
8883
|
+
assertParamExists('notificationControllerNotificationCount', 'notificationCountDTO', notificationCountDTO)
|
|
8859
8884
|
const localVarPath = `/v1/notification/count`;
|
|
8860
8885
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8861
8886
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8864,7 +8889,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
8864
8889
|
baseOptions = configuration.baseOptions;
|
|
8865
8890
|
}
|
|
8866
8891
|
|
|
8867
|
-
const localVarRequestOptions = { method: '
|
|
8892
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8868
8893
|
const localVarHeaderParameter = {} as any;
|
|
8869
8894
|
const localVarQueryParameter = {} as any;
|
|
8870
8895
|
|
|
@@ -8872,15 +8897,14 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
8872
8897
|
// http bearer authentication required
|
|
8873
8898
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8874
8899
|
|
|
8875
|
-
if (category !== undefined) {
|
|
8876
|
-
localVarQueryParameter['category'] = category;
|
|
8877
|
-
}
|
|
8878
|
-
|
|
8879
8900
|
|
|
8880
8901
|
|
|
8902
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8903
|
+
|
|
8881
8904
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8882
8905
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8883
8906
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8907
|
+
localVarRequestOptions.data = serializeDataIfNeeded(notificationCountDTO, localVarRequestOptions, configuration)
|
|
8884
8908
|
|
|
8885
8909
|
return {
|
|
8886
8910
|
url: toPathString(localVarUrlObj),
|
|
@@ -8997,12 +9021,12 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
|
8997
9021
|
},
|
|
8998
9022
|
/**
|
|
8999
9023
|
*
|
|
9000
|
-
* @param {
|
|
9024
|
+
* @param {NotificationCountDTO} notificationCountDTO
|
|
9001
9025
|
* @param {*} [options] Override http request option.
|
|
9002
9026
|
* @throws {RequiredError}
|
|
9003
9027
|
*/
|
|
9004
|
-
async notificationControllerNotificationCount(
|
|
9005
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerNotificationCount(
|
|
9028
|
+
async notificationControllerNotificationCount(notificationCountDTO: NotificationCountDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationCountResponseDTO>> {
|
|
9029
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerNotificationCount(notificationCountDTO, options);
|
|
9006
9030
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9007
9031
|
const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerNotificationCount']?.[localVarOperationServerIndex]?.url;
|
|
9008
9032
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9062,12 +9086,12 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
|
9062
9086
|
},
|
|
9063
9087
|
/**
|
|
9064
9088
|
*
|
|
9065
|
-
* @param {
|
|
9089
|
+
* @param {NotificationCountDTO} notificationCountDTO
|
|
9066
9090
|
* @param {*} [options] Override http request option.
|
|
9067
9091
|
* @throws {RequiredError}
|
|
9068
9092
|
*/
|
|
9069
|
-
notificationControllerNotificationCount(
|
|
9070
|
-
return localVarFp.notificationControllerNotificationCount(
|
|
9093
|
+
notificationControllerNotificationCount(notificationCountDTO: NotificationCountDTO, options?: RawAxiosRequestConfig): AxiosPromise<NotificationCountResponseDTO> {
|
|
9094
|
+
return localVarFp.notificationControllerNotificationCount(notificationCountDTO, options).then((request) => request(axios, basePath));
|
|
9071
9095
|
},
|
|
9072
9096
|
/**
|
|
9073
9097
|
*
|
|
@@ -9122,13 +9146,13 @@ export class NotificationApi extends BaseAPI {
|
|
|
9122
9146
|
|
|
9123
9147
|
/**
|
|
9124
9148
|
*
|
|
9125
|
-
* @param {
|
|
9149
|
+
* @param {NotificationCountDTO} notificationCountDTO
|
|
9126
9150
|
* @param {*} [options] Override http request option.
|
|
9127
9151
|
* @throws {RequiredError}
|
|
9128
9152
|
* @memberof NotificationApi
|
|
9129
9153
|
*/
|
|
9130
|
-
public notificationControllerNotificationCount(
|
|
9131
|
-
return NotificationApiFp(this.configuration).notificationControllerNotificationCount(
|
|
9154
|
+
public notificationControllerNotificationCount(notificationCountDTO: NotificationCountDTO, options?: RawAxiosRequestConfig) {
|
|
9155
|
+
return NotificationApiFp(this.configuration).notificationControllerNotificationCount(notificationCountDTO, options).then((request) => request(this.axios, this.basePath));
|
|
9132
9156
|
}
|
|
9133
9157
|
|
|
9134
9158
|
/**
|
|
@@ -9166,19 +9190,6 @@ export const NotificationControllerGetNotificationCategoryEnum = {
|
|
|
9166
9190
|
General: 'GENERAL'
|
|
9167
9191
|
} as const;
|
|
9168
9192
|
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
9193
|
|
|
9183
9194
|
|
|
9184
9195
|
/**
|