@gooday_corp/gooday-api-client 1.1.16 → 1.1.18

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 +61 -64
  2. 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
- 'message': string;
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
- UserSignup: 'user_signup',
2348
- EmailVerification: 'email_verification',
2349
- Promotion: 'promotion',
2350
- SystemAlert: 'system_alert',
2351
- FriendRequest: 'friend_request'
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
  *
@@ -2410,6 +2370,12 @@ export interface OnBoardingDTO {
2410
2370
  * @memberof OnBoardingDTO
2411
2371
  */
2412
2372
  'assistant'?: string;
2373
+ /**
2374
+ * Profile For user
2375
+ * @type {string}
2376
+ * @memberof OnBoardingDTO
2377
+ */
2378
+ 'profile'?: string;
2413
2379
  /**
2414
2380
  *
2415
2381
  * @type {UserPlanDTO}
@@ -4578,7 +4544,7 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
4578
4544
  baseOptions = configuration.baseOptions;
4579
4545
  }
4580
4546
 
4581
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4547
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4582
4548
  const localVarHeaderParameter = {} as any;
4583
4549
  const localVarQueryParameter = {} as any;
4584
4550
 
@@ -5024,10 +4990,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
5024
4990
  },
5025
4991
  /**
5026
4992
  *
4993
+ * @param {boolean} [favorite] Business Type Allow Return Favourite
5027
4994
  * @param {*} [options] Override http request option.
5028
4995
  * @throws {RequiredError}
5029
4996
  */
5030
- businessTypeControllerListBusinessType: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4997
+ businessTypeControllerListBusinessType: async (favorite?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5031
4998
  const localVarPath = `/v1/business/list`;
5032
4999
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5033
5000
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5044,6 +5011,10 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
5044
5011
  // http bearer authentication required
5045
5012
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
5046
5013
 
5014
+ if (favorite !== undefined) {
5015
+ localVarQueryParameter['favorite'] = favorite;
5016
+ }
5017
+
5047
5018
 
5048
5019
 
5049
5020
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -5331,11 +5302,12 @@ export const BusinessApiFp = function(configuration?: Configuration) {
5331
5302
  },
5332
5303
  /**
5333
5304
  *
5305
+ * @param {boolean} [favorite] Business Type Allow Return Favourite
5334
5306
  * @param {*} [options] Override http request option.
5335
5307
  * @throws {RequiredError}
5336
5308
  */
5337
- async businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessTypeListResponse>> {
5338
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListBusinessType(options);
5309
+ async businessTypeControllerListBusinessType(favorite?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessTypeListResponse>> {
5310
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListBusinessType(favorite, options);
5339
5311
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5340
5312
  const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListBusinessType']?.[localVarOperationServerIndex]?.url;
5341
5313
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5457,11 +5429,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
5457
5429
  },
5458
5430
  /**
5459
5431
  *
5432
+ * @param {boolean} [favorite] Business Type Allow Return Favourite
5460
5433
  * @param {*} [options] Override http request option.
5461
5434
  * @throws {RequiredError}
5462
5435
  */
5463
- businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): AxiosPromise<BusinessTypeListResponse> {
5464
- return localVarFp.businessTypeControllerListBusinessType(options).then((request) => request(axios, basePath));
5436
+ businessTypeControllerListBusinessType(favorite?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<BusinessTypeListResponse> {
5437
+ return localVarFp.businessTypeControllerListBusinessType(favorite, options).then((request) => request(axios, basePath));
5465
5438
  },
5466
5439
  /**
5467
5440
  *
@@ -5570,12 +5543,13 @@ export class BusinessApi extends BaseAPI {
5570
5543
 
5571
5544
  /**
5572
5545
  *
5546
+ * @param {boolean} [favorite] Business Type Allow Return Favourite
5573
5547
  * @param {*} [options] Override http request option.
5574
5548
  * @throws {RequiredError}
5575
5549
  * @memberof BusinessApi
5576
5550
  */
5577
- public businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig) {
5578
- return BusinessApiFp(this.configuration).businessTypeControllerListBusinessType(options).then((request) => request(this.axios, this.basePath));
5551
+ public businessTypeControllerListBusinessType(favorite?: boolean, options?: RawAxiosRequestConfig) {
5552
+ return BusinessApiFp(this.configuration).businessTypeControllerListBusinessType(favorite, options).then((request) => request(this.axios, this.basePath));
5579
5553
  }
5580
5554
 
5581
5555
  /**
@@ -8040,14 +8014,17 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
8040
8014
  *
8041
8015
  * @param {number} page
8042
8016
  * @param {number} pageSize
8017
+ * @param {NotificationControllerGetNotificationCategoryEnum} category
8043
8018
  * @param {*} [options] Override http request option.
8044
8019
  * @throws {RequiredError}
8045
8020
  */
8046
- notificationControllerGetNotification: async (page: number, pageSize: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8021
+ notificationControllerGetNotification: async (page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8047
8022
  // verify required parameter 'page' is not null or undefined
8048
8023
  assertParamExists('notificationControllerGetNotification', 'page', page)
8049
8024
  // verify required parameter 'pageSize' is not null or undefined
8050
8025
  assertParamExists('notificationControllerGetNotification', 'pageSize', pageSize)
8026
+ // verify required parameter 'category' is not null or undefined
8027
+ assertParamExists('notificationControllerGetNotification', 'category', category)
8051
8028
  const localVarPath = `/v1/notification`;
8052
8029
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8053
8030
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -8072,6 +8049,10 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
8072
8049
  localVarQueryParameter['pageSize'] = pageSize;
8073
8050
  }
8074
8051
 
8052
+ if (category !== undefined) {
8053
+ localVarQueryParameter['category'] = category;
8054
+ }
8055
+
8075
8056
 
8076
8057
 
8077
8058
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -8136,11 +8117,12 @@ export const NotificationApiFp = function(configuration?: Configuration) {
8136
8117
  *
8137
8118
  * @param {number} page
8138
8119
  * @param {number} pageSize
8120
+ * @param {NotificationControllerGetNotificationCategoryEnum} category
8139
8121
  * @param {*} [options] Override http request option.
8140
8122
  * @throws {RequiredError}
8141
8123
  */
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);
8124
+ async notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNotificationDTO>> {
8125
+ const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerGetNotification(page, pageSize, category, options);
8144
8126
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8145
8127
  const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerGetNotification']?.[localVarOperationServerIndex]?.url;
8146
8128
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8171,11 +8153,12 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
8171
8153
  *
8172
8154
  * @param {number} page
8173
8155
  * @param {number} pageSize
8156
+ * @param {NotificationControllerGetNotificationCategoryEnum} category
8174
8157
  * @param {*} [options] Override http request option.
8175
8158
  * @throws {RequiredError}
8176
8159
  */
8177
- notificationControllerGetNotification(page: number, pageSize: number, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
8178
- return localVarFp.notificationControllerGetNotification(page, pageSize, options).then((request) => request(axios, basePath));
8160
+ notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
8161
+ return localVarFp.notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(axios, basePath));
8179
8162
  },
8180
8163
  /**
8181
8164
  *
@@ -8200,12 +8183,13 @@ export class NotificationApi extends BaseAPI {
8200
8183
  *
8201
8184
  * @param {number} page
8202
8185
  * @param {number} pageSize
8186
+ * @param {NotificationControllerGetNotificationCategoryEnum} category
8203
8187
  * @param {*} [options] Override http request option.
8204
8188
  * @throws {RequiredError}
8205
8189
  * @memberof NotificationApi
8206
8190
  */
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));
8191
+ public notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig) {
8192
+ return NotificationApiFp(this.configuration).notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(this.axios, this.basePath));
8209
8193
  }
8210
8194
 
8211
8195
  /**
@@ -8220,6 +8204,19 @@ export class NotificationApi extends BaseAPI {
8220
8204
  }
8221
8205
  }
8222
8206
 
8207
+ /**
8208
+ * @export
8209
+ */
8210
+ export const NotificationControllerGetNotificationCategoryEnum = {
8211
+ Calendar: 'CALENDAR',
8212
+ Tasks: 'TASKS',
8213
+ Reminders: 'REMINDERS',
8214
+ Waitlist: 'WAITLIST',
8215
+ Booking: 'BOOKING',
8216
+ Invites: 'INVITES',
8217
+ General: 'GENERAL'
8218
+ } as const;
8219
+ export type NotificationControllerGetNotificationCategoryEnum = typeof NotificationControllerGetNotificationCategoryEnum[keyof typeof NotificationControllerGetNotificationCategoryEnum];
8223
8220
 
8224
8221
 
8225
8222
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},