@gooday_corp/gooday-api-client 1.1.16 → 1.1.20
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 +40 -57
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2280,49 +2280,19 @@ export interface NotificationEntity {
|
|
|
2280
2280
|
* @type {string}
|
|
2281
2281
|
* @memberof NotificationEntity
|
|
2282
2282
|
*/
|
|
2283
|
-
'
|
|
2284
|
-
/**
|
|
2285
|
-
* The ID of the recipient (optional)
|
|
2286
|
-
* @type {string}
|
|
2287
|
-
* @memberof NotificationEntity
|
|
2288
|
-
*/
|
|
2289
|
-
'recipientId'?: string;
|
|
2290
|
-
/**
|
|
2291
|
-
* The badge number (optional)
|
|
2292
|
-
* @type {number}
|
|
2293
|
-
* @memberof NotificationEntity
|
|
2294
|
-
*/
|
|
2295
|
-
'badge'?: number;
|
|
2283
|
+
'content': string;
|
|
2296
2284
|
/**
|
|
2297
2285
|
* The user associated with the notification
|
|
2298
2286
|
* @type {string}
|
|
2299
2287
|
* @memberof NotificationEntity
|
|
2300
2288
|
*/
|
|
2301
2289
|
'user': string;
|
|
2302
|
-
/**
|
|
2303
|
-
* The channel through which the notification is sent
|
|
2304
|
-
* @type {string}
|
|
2305
|
-
* @memberof NotificationEntity
|
|
2306
|
-
*/
|
|
2307
|
-
'channel': NotificationEntityChannelEnum;
|
|
2308
2290
|
/**
|
|
2309
2291
|
* The type of the notification (optional)
|
|
2310
2292
|
* @type {string}
|
|
2311
2293
|
* @memberof NotificationEntity
|
|
2312
2294
|
*/
|
|
2313
2295
|
'type'?: NotificationEntityTypeEnum;
|
|
2314
|
-
/**
|
|
2315
|
-
* The status of the notification
|
|
2316
|
-
* @type {string}
|
|
2317
|
-
* @memberof NotificationEntity
|
|
2318
|
-
*/
|
|
2319
|
-
'status': NotificationEntityStatusEnum;
|
|
2320
|
-
/**
|
|
2321
|
-
* The scheduled time for the notification (optional)
|
|
2322
|
-
* @type {string}
|
|
2323
|
-
* @memberof NotificationEntity
|
|
2324
|
-
*/
|
|
2325
|
-
'scheduledAt'?: string;
|
|
2326
2296
|
/**
|
|
2327
2297
|
* Additional metadata associated with the notification (optional)
|
|
2328
2298
|
* @type {object}
|
|
@@ -2337,28 +2307,18 @@ export interface NotificationEntity {
|
|
|
2337
2307
|
'isRead': boolean;
|
|
2338
2308
|
}
|
|
2339
2309
|
|
|
2340
|
-
export const NotificationEntityChannelEnum = {
|
|
2341
|
-
PushNotification: 'push-notification',
|
|
2342
|
-
Email: 'email'
|
|
2343
|
-
} as const;
|
|
2344
|
-
|
|
2345
|
-
export type NotificationEntityChannelEnum = typeof NotificationEntityChannelEnum[keyof typeof NotificationEntityChannelEnum];
|
|
2346
2310
|
export const NotificationEntityTypeEnum = {
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2311
|
+
FriendInvite: 'FRIEND_INVITE',
|
|
2312
|
+
FriendInviteAccept: 'FRIEND_INVITE_ACCEPT',
|
|
2313
|
+
FriendInviteReject: 'FRIEND_INVITE_REJECT',
|
|
2314
|
+
UserOnboard: 'USER_ONBOARD',
|
|
2315
|
+
BusinessBookingCreate: 'BUSINESS_BOOKING_CREATE',
|
|
2316
|
+
BookingCreate: 'BOOKING_CREATE',
|
|
2317
|
+
BokkingAccept: 'BOKKING_ACCEPT',
|
|
2318
|
+
BookingReject: 'BOOKING_REJECT'
|
|
2352
2319
|
} as const;
|
|
2353
2320
|
|
|
2354
2321
|
export type NotificationEntityTypeEnum = typeof NotificationEntityTypeEnum[keyof typeof NotificationEntityTypeEnum];
|
|
2355
|
-
export const NotificationEntityStatusEnum = {
|
|
2356
|
-
Pending: 'pending',
|
|
2357
|
-
Sent: 'sent',
|
|
2358
|
-
Failed: 'failed'
|
|
2359
|
-
} as const;
|
|
2360
|
-
|
|
2361
|
-
export type NotificationEntityStatusEnum = typeof NotificationEntityStatusEnum[keyof typeof NotificationEntityStatusEnum];
|
|
2362
2322
|
|
|
2363
2323
|
/**
|
|
2364
2324
|
*
|
|
@@ -4578,7 +4538,7 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4578
4538
|
baseOptions = configuration.baseOptions;
|
|
4579
4539
|
}
|
|
4580
4540
|
|
|
4581
|
-
const localVarRequestOptions = { method: '
|
|
4541
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4582
4542
|
const localVarHeaderParameter = {} as any;
|
|
4583
4543
|
const localVarQueryParameter = {} as any;
|
|
4584
4544
|
|
|
@@ -8040,14 +8000,17 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
8040
8000
|
*
|
|
8041
8001
|
* @param {number} page
|
|
8042
8002
|
* @param {number} pageSize
|
|
8003
|
+
* @param {NotificationControllerGetNotificationCategoryEnum} category
|
|
8043
8004
|
* @param {*} [options] Override http request option.
|
|
8044
8005
|
* @throws {RequiredError}
|
|
8045
8006
|
*/
|
|
8046
|
-
notificationControllerGetNotification: async (page: number, pageSize: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8007
|
+
notificationControllerGetNotification: async (page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8047
8008
|
// verify required parameter 'page' is not null or undefined
|
|
8048
8009
|
assertParamExists('notificationControllerGetNotification', 'page', page)
|
|
8049
8010
|
// verify required parameter 'pageSize' is not null or undefined
|
|
8050
8011
|
assertParamExists('notificationControllerGetNotification', 'pageSize', pageSize)
|
|
8012
|
+
// verify required parameter 'category' is not null or undefined
|
|
8013
|
+
assertParamExists('notificationControllerGetNotification', 'category', category)
|
|
8051
8014
|
const localVarPath = `/v1/notification`;
|
|
8052
8015
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8053
8016
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8072,6 +8035,10 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
8072
8035
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
8073
8036
|
}
|
|
8074
8037
|
|
|
8038
|
+
if (category !== undefined) {
|
|
8039
|
+
localVarQueryParameter['category'] = category;
|
|
8040
|
+
}
|
|
8041
|
+
|
|
8075
8042
|
|
|
8076
8043
|
|
|
8077
8044
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -8136,11 +8103,12 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
|
8136
8103
|
*
|
|
8137
8104
|
* @param {number} page
|
|
8138
8105
|
* @param {number} pageSize
|
|
8106
|
+
* @param {NotificationControllerGetNotificationCategoryEnum} category
|
|
8139
8107
|
* @param {*} [options] Override http request option.
|
|
8140
8108
|
* @throws {RequiredError}
|
|
8141
8109
|
*/
|
|
8142
|
-
async notificationControllerGetNotification(page: number, pageSize: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNotificationDTO>> {
|
|
8143
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerGetNotification(page, pageSize, options);
|
|
8110
|
+
async notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNotificationDTO>> {
|
|
8111
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerGetNotification(page, pageSize, category, options);
|
|
8144
8112
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8145
8113
|
const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerGetNotification']?.[localVarOperationServerIndex]?.url;
|
|
8146
8114
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8171,11 +8139,12 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
|
8171
8139
|
*
|
|
8172
8140
|
* @param {number} page
|
|
8173
8141
|
* @param {number} pageSize
|
|
8142
|
+
* @param {NotificationControllerGetNotificationCategoryEnum} category
|
|
8174
8143
|
* @param {*} [options] Override http request option.
|
|
8175
8144
|
* @throws {RequiredError}
|
|
8176
8145
|
*/
|
|
8177
|
-
notificationControllerGetNotification(page: number, pageSize: number, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
|
|
8178
|
-
return localVarFp.notificationControllerGetNotification(page, pageSize, options).then((request) => request(axios, basePath));
|
|
8146
|
+
notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
|
|
8147
|
+
return localVarFp.notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(axios, basePath));
|
|
8179
8148
|
},
|
|
8180
8149
|
/**
|
|
8181
8150
|
*
|
|
@@ -8200,12 +8169,13 @@ export class NotificationApi extends BaseAPI {
|
|
|
8200
8169
|
*
|
|
8201
8170
|
* @param {number} page
|
|
8202
8171
|
* @param {number} pageSize
|
|
8172
|
+
* @param {NotificationControllerGetNotificationCategoryEnum} category
|
|
8203
8173
|
* @param {*} [options] Override http request option.
|
|
8204
8174
|
* @throws {RequiredError}
|
|
8205
8175
|
* @memberof NotificationApi
|
|
8206
8176
|
*/
|
|
8207
|
-
public notificationControllerGetNotification(page: number, pageSize: number, options?: RawAxiosRequestConfig) {
|
|
8208
|
-
return NotificationApiFp(this.configuration).notificationControllerGetNotification(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
8177
|
+
public notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig) {
|
|
8178
|
+
return NotificationApiFp(this.configuration).notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(this.axios, this.basePath));
|
|
8209
8179
|
}
|
|
8210
8180
|
|
|
8211
8181
|
/**
|
|
@@ -8220,6 +8190,19 @@ export class NotificationApi extends BaseAPI {
|
|
|
8220
8190
|
}
|
|
8221
8191
|
}
|
|
8222
8192
|
|
|
8193
|
+
/**
|
|
8194
|
+
* @export
|
|
8195
|
+
*/
|
|
8196
|
+
export const NotificationControllerGetNotificationCategoryEnum = {
|
|
8197
|
+
Calendar: 'CALENDAR',
|
|
8198
|
+
Tasks: 'TASKS',
|
|
8199
|
+
Reminders: 'REMINDERS',
|
|
8200
|
+
Waitlist: 'WAITLIST',
|
|
8201
|
+
Booking: 'BOOKING',
|
|
8202
|
+
Invites: 'INVITES',
|
|
8203
|
+
General: 'GENERAL'
|
|
8204
|
+
} as const;
|
|
8205
|
+
export type NotificationControllerGetNotificationCategoryEnum = typeof NotificationControllerGetNotificationCategoryEnum[keyof typeof NotificationControllerGetNotificationCategoryEnum];
|
|
8223
8206
|
|
|
8224
8207
|
|
|
8225
8208
|
/**
|