@gooday_corp/gooday-api-client 1.1.12-delta-9 → 1.1.12-delta-11

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 +424 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -1018,6 +1018,38 @@ export interface GetBusinessVenueDto {
1018
1018
  */
1019
1019
  'limit'?: number;
1020
1020
  }
1021
+ /**
1022
+ *
1023
+ * @export
1024
+ * @interface GetNotificationDTO
1025
+ */
1026
+ export interface GetNotificationDTO {
1027
+ /**
1028
+ * statusCode
1029
+ * @type {number}
1030
+ * @memberof GetNotificationDTO
1031
+ */
1032
+ 'statusCode': number;
1033
+ /**
1034
+ * Notifications
1035
+ * @type {Array<NotificationEntity>}
1036
+ * @memberof GetNotificationDTO
1037
+ */
1038
+ 'data': Array<NotificationEntity>;
1039
+ }
1040
+ /**
1041
+ *
1042
+ * @export
1043
+ * @interface GetUserDTO
1044
+ */
1045
+ export interface GetUserDTO {
1046
+ /**
1047
+ * 66f135c95a81ce68c9015414
1048
+ * @type {string}
1049
+ * @memberof GetUserDTO
1050
+ */
1051
+ 'id': string;
1052
+ }
1021
1053
  /**
1022
1054
  *
1023
1055
  * @export
@@ -1374,6 +1406,135 @@ export interface NewPasswordResponseDTO {
1374
1406
  */
1375
1407
  'message': string;
1376
1408
  }
1409
+ /**
1410
+ *
1411
+ * @export
1412
+ * @interface NotificationEntity
1413
+ */
1414
+ export interface NotificationEntity {
1415
+ /**
1416
+ * The title of the notification
1417
+ * @type {string}
1418
+ * @memberof NotificationEntity
1419
+ */
1420
+ 'title': string;
1421
+ /**
1422
+ * The message content of the notification
1423
+ * @type {string}
1424
+ * @memberof NotificationEntity
1425
+ */
1426
+ 'message': string;
1427
+ /**
1428
+ * The ID of the recipient (optional)
1429
+ * @type {string}
1430
+ * @memberof NotificationEntity
1431
+ */
1432
+ 'recipientId'?: string;
1433
+ /**
1434
+ * The badge number (optional)
1435
+ * @type {number}
1436
+ * @memberof NotificationEntity
1437
+ */
1438
+ 'badge'?: number;
1439
+ /**
1440
+ * The user associated with the notification
1441
+ * @type {string}
1442
+ * @memberof NotificationEntity
1443
+ */
1444
+ 'user': string;
1445
+ /**
1446
+ * The channel through which the notification is sent
1447
+ * @type {string}
1448
+ * @memberof NotificationEntity
1449
+ */
1450
+ 'channel': NotificationEntityChannelEnum;
1451
+ /**
1452
+ * The type of the notification (optional)
1453
+ * @type {string}
1454
+ * @memberof NotificationEntity
1455
+ */
1456
+ 'type'?: NotificationEntityTypeEnum;
1457
+ /**
1458
+ * The status of the notification
1459
+ * @type {string}
1460
+ * @memberof NotificationEntity
1461
+ */
1462
+ 'status': NotificationEntityStatusEnum;
1463
+ /**
1464
+ * The scheduled time for the notification (optional)
1465
+ * @type {string}
1466
+ * @memberof NotificationEntity
1467
+ */
1468
+ 'scheduledAt'?: string;
1469
+ /**
1470
+ * Additional metadata associated with the notification (optional)
1471
+ * @type {object}
1472
+ * @memberof NotificationEntity
1473
+ */
1474
+ 'metadata'?: object;
1475
+ /**
1476
+ * Indicates if the notification has been read (optional)
1477
+ * @type {boolean}
1478
+ * @memberof NotificationEntity
1479
+ */
1480
+ 'isRead': boolean;
1481
+ }
1482
+
1483
+ export const NotificationEntityChannelEnum = {
1484
+ PushNotification: 'push-notification',
1485
+ Email: 'email'
1486
+ } as const;
1487
+
1488
+ export type NotificationEntityChannelEnum = typeof NotificationEntityChannelEnum[keyof typeof NotificationEntityChannelEnum];
1489
+ export const NotificationEntityTypeEnum = {
1490
+ UserSignup: 'user_signup',
1491
+ EmailVerification: 'email_verification',
1492
+ Promotion: 'promotion',
1493
+ SystemAlert: 'system_alert',
1494
+ FriendRequest: 'friend_request'
1495
+ } as const;
1496
+
1497
+ export type NotificationEntityTypeEnum = typeof NotificationEntityTypeEnum[keyof typeof NotificationEntityTypeEnum];
1498
+ export const NotificationEntityStatusEnum = {
1499
+ Pending: 'pending',
1500
+ Sent: 'sent',
1501
+ Failed: 'failed'
1502
+ } as const;
1503
+
1504
+ export type NotificationEntityStatusEnum = typeof NotificationEntityStatusEnum[keyof typeof NotificationEntityStatusEnum];
1505
+
1506
+ /**
1507
+ *
1508
+ * @export
1509
+ * @interface NotificationReadDTO
1510
+ */
1511
+ export interface NotificationReadDTO {
1512
+ /**
1513
+ * Notification Id
1514
+ * @type {string}
1515
+ * @memberof NotificationReadDTO
1516
+ */
1517
+ 'notificationId': string;
1518
+ }
1519
+ /**
1520
+ *
1521
+ * @export
1522
+ * @interface NotificationReadResponseDTO
1523
+ */
1524
+ export interface NotificationReadResponseDTO {
1525
+ /**
1526
+ * statusCode
1527
+ * @type {number}
1528
+ * @memberof NotificationReadResponseDTO
1529
+ */
1530
+ 'statusCode': number;
1531
+ /**
1532
+ *
1533
+ * @type {boolean}
1534
+ * @memberof NotificationReadResponseDTO
1535
+ */
1536
+ 'data': boolean;
1537
+ }
1377
1538
  /**
1378
1539
  *
1379
1540
  * @export
@@ -5008,6 +5169,198 @@ export class LocationApi extends BaseAPI {
5008
5169
 
5009
5170
 
5010
5171
 
5172
+ /**
5173
+ * NotificationApi - axios parameter creator
5174
+ * @export
5175
+ */
5176
+ export const NotificationApiAxiosParamCreator = function (configuration?: Configuration) {
5177
+ return {
5178
+ /**
5179
+ *
5180
+ * @param {number} page
5181
+ * @param {number} pageSize
5182
+ * @param {*} [options] Override http request option.
5183
+ * @throws {RequiredError}
5184
+ */
5185
+ notificationControllerGetNotification: async (page: number, pageSize: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5186
+ // verify required parameter 'page' is not null or undefined
5187
+ assertParamExists('notificationControllerGetNotification', 'page', page)
5188
+ // verify required parameter 'pageSize' is not null or undefined
5189
+ assertParamExists('notificationControllerGetNotification', 'pageSize', pageSize)
5190
+ const localVarPath = `/v1/notification`;
5191
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5192
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5193
+ let baseOptions;
5194
+ if (configuration) {
5195
+ baseOptions = configuration.baseOptions;
5196
+ }
5197
+
5198
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5199
+ const localVarHeaderParameter = {} as any;
5200
+ const localVarQueryParameter = {} as any;
5201
+
5202
+ // authentication bearer required
5203
+ // http bearer authentication required
5204
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5205
+
5206
+ if (page !== undefined) {
5207
+ localVarQueryParameter['page'] = page;
5208
+ }
5209
+
5210
+ if (pageSize !== undefined) {
5211
+ localVarQueryParameter['pageSize'] = pageSize;
5212
+ }
5213
+
5214
+
5215
+
5216
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5217
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5218
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5219
+
5220
+ return {
5221
+ url: toPathString(localVarUrlObj),
5222
+ options: localVarRequestOptions,
5223
+ };
5224
+ },
5225
+ /**
5226
+ *
5227
+ * @param {NotificationReadDTO} notificationReadDTO
5228
+ * @param {*} [options] Override http request option.
5229
+ * @throws {RequiredError}
5230
+ */
5231
+ notificationControllerReadNotification: async (notificationReadDTO: NotificationReadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5232
+ // verify required parameter 'notificationReadDTO' is not null or undefined
5233
+ assertParamExists('notificationControllerReadNotification', 'notificationReadDTO', notificationReadDTO)
5234
+ const localVarPath = `/v1/notification/read`;
5235
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5236
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5237
+ let baseOptions;
5238
+ if (configuration) {
5239
+ baseOptions = configuration.baseOptions;
5240
+ }
5241
+
5242
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5243
+ const localVarHeaderParameter = {} as any;
5244
+ const localVarQueryParameter = {} as any;
5245
+
5246
+ // authentication bearer required
5247
+ // http bearer authentication required
5248
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5249
+
5250
+
5251
+
5252
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5253
+
5254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5256
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5257
+ localVarRequestOptions.data = serializeDataIfNeeded(notificationReadDTO, localVarRequestOptions, configuration)
5258
+
5259
+ return {
5260
+ url: toPathString(localVarUrlObj),
5261
+ options: localVarRequestOptions,
5262
+ };
5263
+ },
5264
+ }
5265
+ };
5266
+
5267
+ /**
5268
+ * NotificationApi - functional programming interface
5269
+ * @export
5270
+ */
5271
+ export const NotificationApiFp = function(configuration?: Configuration) {
5272
+ const localVarAxiosParamCreator = NotificationApiAxiosParamCreator(configuration)
5273
+ return {
5274
+ /**
5275
+ *
5276
+ * @param {number} page
5277
+ * @param {number} pageSize
5278
+ * @param {*} [options] Override http request option.
5279
+ * @throws {RequiredError}
5280
+ */
5281
+ async notificationControllerGetNotification(page: number, pageSize: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNotificationDTO>> {
5282
+ const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerGetNotification(page, pageSize, options);
5283
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5284
+ const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerGetNotification']?.[localVarOperationServerIndex]?.url;
5285
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5286
+ },
5287
+ /**
5288
+ *
5289
+ * @param {NotificationReadDTO} notificationReadDTO
5290
+ * @param {*} [options] Override http request option.
5291
+ * @throws {RequiredError}
5292
+ */
5293
+ async notificationControllerReadNotification(notificationReadDTO: NotificationReadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationReadResponseDTO>> {
5294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerReadNotification(notificationReadDTO, options);
5295
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5296
+ const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerReadNotification']?.[localVarOperationServerIndex]?.url;
5297
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5298
+ },
5299
+ }
5300
+ };
5301
+
5302
+ /**
5303
+ * NotificationApi - factory interface
5304
+ * @export
5305
+ */
5306
+ export const NotificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5307
+ const localVarFp = NotificationApiFp(configuration)
5308
+ return {
5309
+ /**
5310
+ *
5311
+ * @param {number} page
5312
+ * @param {number} pageSize
5313
+ * @param {*} [options] Override http request option.
5314
+ * @throws {RequiredError}
5315
+ */
5316
+ notificationControllerGetNotification(page: number, pageSize: number, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
5317
+ return localVarFp.notificationControllerGetNotification(page, pageSize, options).then((request) => request(axios, basePath));
5318
+ },
5319
+ /**
5320
+ *
5321
+ * @param {NotificationReadDTO} notificationReadDTO
5322
+ * @param {*} [options] Override http request option.
5323
+ * @throws {RequiredError}
5324
+ */
5325
+ notificationControllerReadNotification(notificationReadDTO: NotificationReadDTO, options?: RawAxiosRequestConfig): AxiosPromise<NotificationReadResponseDTO> {
5326
+ return localVarFp.notificationControllerReadNotification(notificationReadDTO, options).then((request) => request(axios, basePath));
5327
+ },
5328
+ };
5329
+ };
5330
+
5331
+ /**
5332
+ * NotificationApi - object-oriented interface
5333
+ * @export
5334
+ * @class NotificationApi
5335
+ * @extends {BaseAPI}
5336
+ */
5337
+ export class NotificationApi extends BaseAPI {
5338
+ /**
5339
+ *
5340
+ * @param {number} page
5341
+ * @param {number} pageSize
5342
+ * @param {*} [options] Override http request option.
5343
+ * @throws {RequiredError}
5344
+ * @memberof NotificationApi
5345
+ */
5346
+ public notificationControllerGetNotification(page: number, pageSize: number, options?: RawAxiosRequestConfig) {
5347
+ return NotificationApiFp(this.configuration).notificationControllerGetNotification(page, pageSize, options).then((request) => request(this.axios, this.basePath));
5348
+ }
5349
+
5350
+ /**
5351
+ *
5352
+ * @param {NotificationReadDTO} notificationReadDTO
5353
+ * @param {*} [options] Override http request option.
5354
+ * @throws {RequiredError}
5355
+ * @memberof NotificationApi
5356
+ */
5357
+ public notificationControllerReadNotification(notificationReadDTO: NotificationReadDTO, options?: RawAxiosRequestConfig) {
5358
+ return NotificationApiFp(this.configuration).notificationControllerReadNotification(notificationReadDTO, options).then((request) => request(this.axios, this.basePath));
5359
+ }
5360
+ }
5361
+
5362
+
5363
+
5011
5364
  /**
5012
5365
  * OAuthApi - axios parameter creator
5013
5366
  * @export
@@ -5524,6 +5877,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
5524
5877
  options: localVarRequestOptions,
5525
5878
  };
5526
5879
  },
5880
+ /**
5881
+ *
5882
+ * @param {GetUserDTO} getUserDTO
5883
+ * @param {*} [options] Override http request option.
5884
+ * @throws {RequiredError}
5885
+ */
5886
+ usersControllerGetUser: async (getUserDTO: GetUserDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5887
+ // verify required parameter 'getUserDTO' is not null or undefined
5888
+ assertParamExists('usersControllerGetUser', 'getUserDTO', getUserDTO)
5889
+ const localVarPath = `/v1/user/get-user`;
5890
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5891
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5892
+ let baseOptions;
5893
+ if (configuration) {
5894
+ baseOptions = configuration.baseOptions;
5895
+ }
5896
+
5897
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5898
+ const localVarHeaderParameter = {} as any;
5899
+ const localVarQueryParameter = {} as any;
5900
+
5901
+ // authentication bearer required
5902
+ // http bearer authentication required
5903
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5904
+
5905
+
5906
+
5907
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5908
+
5909
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5910
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5911
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5912
+ localVarRequestOptions.data = serializeDataIfNeeded(getUserDTO, localVarRequestOptions, configuration)
5913
+
5914
+ return {
5915
+ url: toPathString(localVarUrlObj),
5916
+ options: localVarRequestOptions,
5917
+ };
5918
+ },
5527
5919
  /**
5528
5920
  *
5529
5921
  * @param {OnBoardingDTO} onBoardingDTO
@@ -5623,6 +6015,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
5623
6015
  const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerGetMe']?.[localVarOperationServerIndex]?.url;
5624
6016
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5625
6017
  },
6018
+ /**
6019
+ *
6020
+ * @param {GetUserDTO} getUserDTO
6021
+ * @param {*} [options] Override http request option.
6022
+ * @throws {RequiredError}
6023
+ */
6024
+ async usersControllerGetUser(getUserDTO: GetUserDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnBoardingResponseDTO>> {
6025
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerGetUser(getUserDTO, options);
6026
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6027
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerGetUser']?.[localVarOperationServerIndex]?.url;
6028
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6029
+ },
5626
6030
  /**
5627
6031
  *
5628
6032
  * @param {OnBoardingDTO} onBoardingDTO
@@ -5665,6 +6069,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
5665
6069
  usersControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<UserMeDTO> {
5666
6070
  return localVarFp.usersControllerGetMe(options).then((request) => request(axios, basePath));
5667
6071
  },
6072
+ /**
6073
+ *
6074
+ * @param {GetUserDTO} getUserDTO
6075
+ * @param {*} [options] Override http request option.
6076
+ * @throws {RequiredError}
6077
+ */
6078
+ usersControllerGetUser(getUserDTO: GetUserDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
6079
+ return localVarFp.usersControllerGetUser(getUserDTO, options).then((request) => request(axios, basePath));
6080
+ },
5668
6081
  /**
5669
6082
  *
5670
6083
  * @param {OnBoardingDTO} onBoardingDTO
@@ -5703,6 +6116,17 @@ export class UsersApi extends BaseAPI {
5703
6116
  return UsersApiFp(this.configuration).usersControllerGetMe(options).then((request) => request(this.axios, this.basePath));
5704
6117
  }
5705
6118
 
6119
+ /**
6120
+ *
6121
+ * @param {GetUserDTO} getUserDTO
6122
+ * @param {*} [options] Override http request option.
6123
+ * @throws {RequiredError}
6124
+ * @memberof UsersApi
6125
+ */
6126
+ public usersControllerGetUser(getUserDTO: GetUserDTO, options?: RawAxiosRequestConfig) {
6127
+ return UsersApiFp(this.configuration).usersControllerGetUser(getUserDTO, options).then((request) => request(this.axios, this.basePath));
6128
+ }
6129
+
5706
6130
  /**
5707
6131
  *
5708
6132
  * @param {OnBoardingDTO} onBoardingDTO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.12-delta-9",
3
+ "version": "1.1.12-delta-11",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},