@tennac-booking/sdk 1.0.215 → 1.0.217

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.
@@ -252,11 +252,18 @@ docs/LoginResponse.md
252
252
  docs/ManagedClubsResponse.md
253
253
  docs/ManagerCancelBookingRequest.md
254
254
  docs/ManagerCancelBookingResponse.md
255
+ docs/MarkNotificationsReadRequest.md
256
+ docs/MarkNotificationsReadResponse.md
255
257
  docs/MonthlyBreakdown.md
256
258
  docs/MonthlyTurnoverResponse.md
257
259
  docs/MyClubInfosResponse.md
258
260
  docs/NoShowFeeResponse.md
259
261
  docs/NoShowRateResponse.md
262
+ docs/NotificationData.md
263
+ docs/NotificationParticipantPreview.md
264
+ docs/NotificationPreview.md
265
+ docs/NotificationResponse.md
266
+ docs/NotificationType.md
260
267
  docs/OffPeakRule.md
261
268
  docs/OpenBookingBasePriceResponse.md
262
269
  docs/OpenBookingInfo.md
@@ -406,6 +413,8 @@ docs/UserEventsResponse.md
406
413
  docs/UserInfo.md
407
414
  docs/UserLocationSummary.md
408
415
  docs/UserNextBookingSummary.md
416
+ docs/UserNotificationsResponse.md
417
+ docs/UserNotificationsResponseMeta.md
409
418
  docs/UserProfileResponse.md
410
419
  docs/UserRolesResponse.md
411
420
  docs/UserSubscriptionsResponse.md
package/README.md CHANGED
@@ -255,11 +255,13 @@ Class | Method | HTTP request | Description
255
255
  *UsersApi* | [**getPlayerCategories**](docs/UsersApi.md#getplayercategories) | **GET** /api/users/players/categories |
256
256
  *UsersApi* | [**getUserBookings**](docs/UsersApi.md#getuserbookings) | **GET** /api/users/me/bookings |
257
257
  *UsersApi* | [**getUserEvents**](docs/UsersApi.md#getuserevents) | **GET** /api/users/me/events |
258
+ *UsersApi* | [**getUserNotifications**](docs/UsersApi.md#getusernotifications) | **GET** /api/users/me/notifications |
258
259
  *UsersApi* | [**getUserProfileById**](docs/UsersApi.md#getuserprofilebyid) | **GET** /api/users/profile/{id} |
259
260
  *UsersApi* | [**leaveBooking**](docs/UsersApi.md#leavebooking) | **DELETE** /api/users/me/bookings/{bookingId}/leave |
260
261
  *UsersApi* | [**listPlayers**](docs/UsersApi.md#listplayers) | **GET** /api/users/players |
261
262
  *UsersApi* | [**login**](docs/UsersApi.md#login) | **POST** /api/users/login |
262
263
  *UsersApi* | [**loginClubMember**](docs/UsersApi.md#loginclubmember) | **POST** /api/users/club-members/login |
264
+ *UsersApi* | [**markNotificationsRead**](docs/UsersApi.md#marknotificationsread) | **POST** /api/users/me/notifications/read |
263
265
  *UsersApi* | [**refreshToken**](docs/UsersApi.md#refreshtoken) | **POST** /api/users/refresh-token |
264
266
  *UsersApi* | [**register**](docs/UsersApi.md#register) | **POST** /api/users |
265
267
  *UsersApi* | [**registerFromApp**](docs/UsersApi.md#registerfromapp) | **POST** /api/users/register-app |
@@ -521,11 +523,18 @@ Class | Method | HTTP request | Description
521
523
  - [ManagedClubsResponse](docs/ManagedClubsResponse.md)
522
524
  - [ManagerCancelBookingRequest](docs/ManagerCancelBookingRequest.md)
523
525
  - [ManagerCancelBookingResponse](docs/ManagerCancelBookingResponse.md)
526
+ - [MarkNotificationsReadRequest](docs/MarkNotificationsReadRequest.md)
527
+ - [MarkNotificationsReadResponse](docs/MarkNotificationsReadResponse.md)
524
528
  - [MonthlyBreakdown](docs/MonthlyBreakdown.md)
525
529
  - [MonthlyTurnoverResponse](docs/MonthlyTurnoverResponse.md)
526
530
  - [MyClubInfosResponse](docs/MyClubInfosResponse.md)
527
531
  - [NoShowFeeResponse](docs/NoShowFeeResponse.md)
528
532
  - [NoShowRateResponse](docs/NoShowRateResponse.md)
533
+ - [NotificationData](docs/NotificationData.md)
534
+ - [NotificationParticipantPreview](docs/NotificationParticipantPreview.md)
535
+ - [NotificationPreview](docs/NotificationPreview.md)
536
+ - [NotificationResponse](docs/NotificationResponse.md)
537
+ - [NotificationType](docs/NotificationType.md)
529
538
  - [OffPeakRule](docs/OffPeakRule.md)
530
539
  - [OpenBookingBasePriceResponse](docs/OpenBookingBasePriceResponse.md)
531
540
  - [OpenBookingInfo](docs/OpenBookingInfo.md)
@@ -667,6 +676,8 @@ Class | Method | HTTP request | Description
667
676
  - [UserInfo](docs/UserInfo.md)
668
677
  - [UserLocationSummary](docs/UserLocationSummary.md)
669
678
  - [UserNextBookingSummary](docs/UserNextBookingSummary.md)
679
+ - [UserNotificationsResponse](docs/UserNotificationsResponse.md)
680
+ - [UserNotificationsResponseMeta](docs/UserNotificationsResponseMeta.md)
670
681
  - [UserProfileResponse](docs/UserProfileResponse.md)
671
682
  - [UserRolesResponse](docs/UserRolesResponse.md)
672
683
  - [UserSubscriptionsResponse](docs/UserSubscriptionsResponse.md)
package/api.ts CHANGED
@@ -8229,6 +8229,38 @@ export interface ManagerCancelBookingResponse {
8229
8229
  */
8230
8230
  'booking': BookingInfo;
8231
8231
  }
8232
+ /**
8233
+ *
8234
+ * @export
8235
+ * @interface MarkNotificationsReadRequest
8236
+ */
8237
+ export interface MarkNotificationsReadRequest {
8238
+ /**
8239
+ *
8240
+ * @type {Array<string>}
8241
+ * @memberof MarkNotificationsReadRequest
8242
+ */
8243
+ 'notificationIds'?: Array<string>;
8244
+ /**
8245
+ *
8246
+ * @type {boolean}
8247
+ * @memberof MarkNotificationsReadRequest
8248
+ */
8249
+ 'readAll'?: boolean;
8250
+ }
8251
+ /**
8252
+ *
8253
+ * @export
8254
+ * @interface MarkNotificationsReadResponse
8255
+ */
8256
+ export interface MarkNotificationsReadResponse {
8257
+ /**
8258
+ *
8259
+ * @type {number}
8260
+ * @memberof MarkNotificationsReadResponse
8261
+ */
8262
+ 'updatedCount': number;
8263
+ }
8232
8264
  /**
8233
8265
  *
8234
8266
  * @export
@@ -8422,6 +8454,262 @@ export interface NoShowRateResponse {
8422
8454
  */
8423
8455
  'rate': number;
8424
8456
  }
8457
+ /**
8458
+ *
8459
+ * @export
8460
+ * @interface NotificationData
8461
+ */
8462
+ export interface NotificationData {
8463
+ /**
8464
+ *
8465
+ * @type {string}
8466
+ * @memberof NotificationData
8467
+ */
8468
+ 'pathname': string;
8469
+ /**
8470
+ * Construct a type with a set of properties K of type T
8471
+ * @type {{ [key: string]: string; }}
8472
+ * @memberof NotificationData
8473
+ */
8474
+ 'params'?: { [key: string]: string; };
8475
+ }
8476
+ /**
8477
+ *
8478
+ * @export
8479
+ * @interface NotificationParticipantPreview
8480
+ */
8481
+ export interface NotificationParticipantPreview {
8482
+ /**
8483
+ *
8484
+ * @type {string}
8485
+ * @memberof NotificationParticipantPreview
8486
+ */
8487
+ 'id'?: string;
8488
+ /**
8489
+ *
8490
+ * @type {string}
8491
+ * @memberof NotificationParticipantPreview
8492
+ */
8493
+ 'name'?: string;
8494
+ }
8495
+ /**
8496
+ *
8497
+ * @export
8498
+ * @interface NotificationPreview
8499
+ */
8500
+ export interface NotificationPreview {
8501
+ /**
8502
+ *
8503
+ * @type {string}
8504
+ * @memberof NotificationPreview
8505
+ */
8506
+ 'bookingId'?: string;
8507
+ /**
8508
+ *
8509
+ * @type {string}
8510
+ * @memberof NotificationPreview
8511
+ */
8512
+ 'eventId'?: string;
8513
+ /**
8514
+ *
8515
+ * @type {string}
8516
+ * @memberof NotificationPreview
8517
+ */
8518
+ 'eventBookingId'?: string;
8519
+ /**
8520
+ *
8521
+ * @type {string}
8522
+ * @memberof NotificationPreview
8523
+ */
8524
+ 'clubId'?: string;
8525
+ /**
8526
+ *
8527
+ * @type {string}
8528
+ * @memberof NotificationPreview
8529
+ */
8530
+ 'clubName'?: string;
8531
+ /**
8532
+ *
8533
+ * @type {string}
8534
+ * @memberof NotificationPreview
8535
+ */
8536
+ 'clubPicture'?: string;
8537
+ /**
8538
+ *
8539
+ * @type {string}
8540
+ * @memberof NotificationPreview
8541
+ */
8542
+ 'courtName'?: string;
8543
+ /**
8544
+ *
8545
+ * @type {string}
8546
+ * @memberof NotificationPreview
8547
+ */
8548
+ 'eventName'?: string;
8549
+ /**
8550
+ *
8551
+ * @type {string}
8552
+ * @memberof NotificationPreview
8553
+ */
8554
+ 'startDate'?: string;
8555
+ /**
8556
+ *
8557
+ * @type {string}
8558
+ * @memberof NotificationPreview
8559
+ */
8560
+ 'endDate'?: string;
8561
+ /**
8562
+ *
8563
+ * @type {number}
8564
+ * @memberof NotificationPreview
8565
+ */
8566
+ 'reminderDelayHours'?: number;
8567
+ /**
8568
+ *
8569
+ * @type {string}
8570
+ * @memberof NotificationPreview
8571
+ */
8572
+ 'reason'?: string;
8573
+ /**
8574
+ *
8575
+ * @type {string}
8576
+ * @memberof NotificationPreview
8577
+ */
8578
+ 'joinerId'?: string;
8579
+ /**
8580
+ *
8581
+ * @type {string}
8582
+ * @memberof NotificationPreview
8583
+ */
8584
+ 'joinerName'?: string;
8585
+ /**
8586
+ *
8587
+ * @type {string}
8588
+ * @memberof NotificationPreview
8589
+ */
8590
+ 'targetLabel'?: string;
8591
+ /**
8592
+ *
8593
+ * @type {string}
8594
+ * @memberof NotificationPreview
8595
+ */
8596
+ 'targetType'?: string;
8597
+ /**
8598
+ *
8599
+ * @type {string}
8600
+ * @memberof NotificationPreview
8601
+ */
8602
+ 'targetId'?: string;
8603
+ /**
8604
+ *
8605
+ * @type {number}
8606
+ * @memberof NotificationPreview
8607
+ */
8608
+ 'priceInCents'?: number;
8609
+ /**
8610
+ *
8611
+ * @type {string}
8612
+ * @memberof NotificationPreview
8613
+ */
8614
+ 'expiresAt'?: string;
8615
+ /**
8616
+ *
8617
+ * @type {number}
8618
+ * @memberof NotificationPreview
8619
+ */
8620
+ 'waitingListPaymentHoldDuration'?: number;
8621
+ /**
8622
+ *
8623
+ * @type {Array<NotificationParticipantPreview>}
8624
+ * @memberof NotificationPreview
8625
+ */
8626
+ 'participants'?: Array<NotificationParticipantPreview>;
8627
+ }
8628
+ /**
8629
+ *
8630
+ * @export
8631
+ * @interface NotificationResponse
8632
+ */
8633
+ export interface NotificationResponse {
8634
+ /**
8635
+ *
8636
+ * @type {string}
8637
+ * @memberof NotificationResponse
8638
+ */
8639
+ 'id': string;
8640
+ /**
8641
+ *
8642
+ * @type {NotificationType}
8643
+ * @memberof NotificationResponse
8644
+ */
8645
+ 'type': NotificationType;
8646
+ /**
8647
+ *
8648
+ * @type {string}
8649
+ * @memberof NotificationResponse
8650
+ */
8651
+ 'title': string;
8652
+ /**
8653
+ *
8654
+ * @type {string}
8655
+ * @memberof NotificationResponse
8656
+ */
8657
+ 'message': string;
8658
+ /**
8659
+ *
8660
+ * @type {NotificationData}
8661
+ * @memberof NotificationResponse
8662
+ */
8663
+ 'data'?: NotificationData;
8664
+ /**
8665
+ *
8666
+ * @type {NotificationPreview}
8667
+ * @memberof NotificationResponse
8668
+ */
8669
+ 'preview'?: NotificationPreview;
8670
+ /**
8671
+ *
8672
+ * @type {string}
8673
+ * @memberof NotificationResponse
8674
+ */
8675
+ 'createdAt': string;
8676
+ /**
8677
+ *
8678
+ * @type {string}
8679
+ * @memberof NotificationResponse
8680
+ */
8681
+ 'readAt'?: string | null;
8682
+ /**
8683
+ *
8684
+ * @type {boolean}
8685
+ * @memberof NotificationResponse
8686
+ */
8687
+ 'isRead': boolean;
8688
+ }
8689
+
8690
+
8691
+ /**
8692
+ *
8693
+ * @export
8694
+ * @enum {string}
8695
+ */
8696
+
8697
+ export const NotificationType = {
8698
+ BookingCreated: 'booking_created',
8699
+ BookingSetupRequired: 'booking_setup_required',
8700
+ BookingCancelled: 'booking_cancelled',
8701
+ BookingReminder: 'booking_reminder',
8702
+ EventRegistrationConfirmed: 'event_registration_confirmed',
8703
+ EventReminder: 'event_reminder',
8704
+ OpenBookingJoined: 'open_booking_joined',
8705
+ OpenBookingJoinConfirmed: 'open_booking_join_confirmed',
8706
+ WaitlistSpotAvailable: 'waitlist_spot_available',
8707
+ WaitlistConfirmed: 'waitlist_confirmed'
8708
+ } as const;
8709
+
8710
+ export type NotificationType = typeof NotificationType[keyof typeof NotificationType];
8711
+
8712
+
8425
8713
  /**
8426
8714
  *
8427
8715
  * @export
@@ -13954,6 +14242,62 @@ export interface UserNextBookingSummary {
13954
14242
  */
13955
14243
  'club': BookingClubInfo | null;
13956
14244
  }
14245
+ /**
14246
+ *
14247
+ * @export
14248
+ * @interface UserNotificationsResponse
14249
+ */
14250
+ export interface UserNotificationsResponse {
14251
+ /**
14252
+ *
14253
+ * @type {Array<NotificationResponse>}
14254
+ * @memberof UserNotificationsResponse
14255
+ */
14256
+ 'notifications': Array<NotificationResponse>;
14257
+ /**
14258
+ *
14259
+ * @type {UserNotificationsResponseMeta}
14260
+ * @memberof UserNotificationsResponse
14261
+ */
14262
+ 'meta': UserNotificationsResponseMeta;
14263
+ }
14264
+ /**
14265
+ *
14266
+ * @export
14267
+ * @interface UserNotificationsResponseMeta
14268
+ */
14269
+ export interface UserNotificationsResponseMeta {
14270
+ /**
14271
+ *
14272
+ * @type {number}
14273
+ * @memberof UserNotificationsResponseMeta
14274
+ */
14275
+ 'unreadCount': number;
14276
+ /**
14277
+ *
14278
+ * @type {boolean}
14279
+ * @memberof UserNotificationsResponseMeta
14280
+ */
14281
+ 'hasMore': boolean;
14282
+ /**
14283
+ *
14284
+ * @type {number}
14285
+ * @memberof UserNotificationsResponseMeta
14286
+ */
14287
+ 'total': number;
14288
+ /**
14289
+ *
14290
+ * @type {number}
14291
+ * @memberof UserNotificationsResponseMeta
14292
+ */
14293
+ 'skip': number;
14294
+ /**
14295
+ *
14296
+ * @type {number}
14297
+ * @memberof UserNotificationsResponseMeta
14298
+ */
14299
+ 'limit': number;
14300
+ }
13957
14301
  /**
13958
14302
  *
13959
14303
  * @export
@@ -32280,6 +32624,56 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
32280
32624
 
32281
32625
 
32282
32626
 
32627
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32628
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32629
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32630
+
32631
+ return {
32632
+ url: toPathString(localVarUrlObj),
32633
+ options: localVarRequestOptions,
32634
+ };
32635
+ },
32636
+ /**
32637
+ *
32638
+ * @param {number} [limit]
32639
+ * @param {number} [skip]
32640
+ * @param {any} [includeRead]
32641
+ * @param {*} [options] Override http request option.
32642
+ * @throws {RequiredError}
32643
+ */
32644
+ getUserNotifications: async (limit?: number, skip?: number, includeRead?: any, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32645
+ const localVarPath = `/api/users/me/notifications`;
32646
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32647
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32648
+ let baseOptions;
32649
+ if (configuration) {
32650
+ baseOptions = configuration.baseOptions;
32651
+ }
32652
+
32653
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32654
+ const localVarHeaderParameter = {} as any;
32655
+ const localVarQueryParameter = {} as any;
32656
+
32657
+ // authentication bearerAuth required
32658
+ // http bearer authentication required
32659
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32660
+
32661
+ if (limit !== undefined) {
32662
+ localVarQueryParameter['limit'] = limit;
32663
+ }
32664
+
32665
+ if (skip !== undefined) {
32666
+ localVarQueryParameter['skip'] = skip;
32667
+ }
32668
+
32669
+ if (includeRead !== undefined) {
32670
+ for (const [key, value] of Object.entries(includeRead)) {
32671
+ localVarQueryParameter[key] = value;
32672
+ }
32673
+ }
32674
+
32675
+
32676
+
32283
32677
  setSearchParams(localVarUrlObj, localVarQueryParameter);
32284
32678
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32285
32679
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -32516,6 +32910,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
32516
32910
  options: localVarRequestOptions,
32517
32911
  };
32518
32912
  },
32913
+ /**
32914
+ *
32915
+ * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
32916
+ * @param {*} [options] Override http request option.
32917
+ * @throws {RequiredError}
32918
+ */
32919
+ markNotificationsRead: async (markNotificationsReadRequest: MarkNotificationsReadRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32920
+ // verify required parameter 'markNotificationsReadRequest' is not null or undefined
32921
+ assertParamExists('markNotificationsRead', 'markNotificationsReadRequest', markNotificationsReadRequest)
32922
+ const localVarPath = `/api/users/me/notifications/read`;
32923
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32924
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32925
+ let baseOptions;
32926
+ if (configuration) {
32927
+ baseOptions = configuration.baseOptions;
32928
+ }
32929
+
32930
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
32931
+ const localVarHeaderParameter = {} as any;
32932
+ const localVarQueryParameter = {} as any;
32933
+
32934
+ // authentication bearerAuth required
32935
+ // http bearer authentication required
32936
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32937
+
32938
+
32939
+
32940
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32941
+
32942
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32943
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32944
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32945
+ localVarRequestOptions.data = serializeDataIfNeeded(markNotificationsReadRequest, localVarRequestOptions, configuration)
32946
+
32947
+ return {
32948
+ url: toPathString(localVarUrlObj),
32949
+ options: localVarRequestOptions,
32950
+ };
32951
+ },
32519
32952
  /**
32520
32953
  *
32521
32954
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -33483,6 +33916,20 @@ export const UsersApiFp = function(configuration?: Configuration) {
33483
33916
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserEvents']?.[localVarOperationServerIndex]?.url;
33484
33917
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33485
33918
  },
33919
+ /**
33920
+ *
33921
+ * @param {number} [limit]
33922
+ * @param {number} [skip]
33923
+ * @param {any} [includeRead]
33924
+ * @param {*} [options] Override http request option.
33925
+ * @throws {RequiredError}
33926
+ */
33927
+ async getUserNotifications(limit?: number, skip?: number, includeRead?: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserNotificationsResponse>> {
33928
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserNotifications(limit, skip, includeRead, options);
33929
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33930
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserNotifications']?.[localVarOperationServerIndex]?.url;
33931
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33932
+ },
33486
33933
  /**
33487
33934
  *
33488
33935
  * @param {string} id
@@ -33552,6 +33999,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
33552
33999
  const localVarOperationServerBasePath = operationServerMap['UsersApi.loginClubMember']?.[localVarOperationServerIndex]?.url;
33553
34000
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33554
34001
  },
34002
+ /**
34003
+ *
34004
+ * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
34005
+ * @param {*} [options] Override http request option.
34006
+ * @throws {RequiredError}
34007
+ */
34008
+ async markNotificationsRead(markNotificationsReadRequest: MarkNotificationsReadRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MarkNotificationsReadResponse>> {
34009
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markNotificationsRead(markNotificationsReadRequest, options);
34010
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34011
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.markNotificationsRead']?.[localVarOperationServerIndex]?.url;
34012
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34013
+ },
33555
34014
  /**
33556
34015
  *
33557
34016
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -33964,6 +34423,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
33964
34423
  getUserEvents(requestParameters: UsersApiGetUserEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserEventsResponse> {
33965
34424
  return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
33966
34425
  },
34426
+ /**
34427
+ *
34428
+ * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
34429
+ * @param {*} [options] Override http request option.
34430
+ * @throws {RequiredError}
34431
+ */
34432
+ getUserNotifications(requestParameters: UsersApiGetUserNotificationsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserNotificationsResponse> {
34433
+ return localVarFp.getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(axios, basePath));
34434
+ },
33967
34435
  /**
33968
34436
  *
33969
34437
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -34009,6 +34477,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
34009
34477
  loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse> {
34010
34478
  return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
34011
34479
  },
34480
+ /**
34481
+ *
34482
+ * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
34483
+ * @param {*} [options] Override http request option.
34484
+ * @throws {RequiredError}
34485
+ */
34486
+ markNotificationsRead(requestParameters: UsersApiMarkNotificationsReadRequest, options?: RawAxiosRequestConfig): AxiosPromise<MarkNotificationsReadResponse> {
34487
+ return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
34488
+ },
34012
34489
  /**
34013
34490
  *
34014
34491
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -34420,6 +34897,34 @@ export interface UsersApiGetUserEventsRequest {
34420
34897
  readonly skip?: number
34421
34898
  }
34422
34899
 
34900
+ /**
34901
+ * Request parameters for getUserNotifications operation in UsersApi.
34902
+ * @export
34903
+ * @interface UsersApiGetUserNotificationsRequest
34904
+ */
34905
+ export interface UsersApiGetUserNotificationsRequest {
34906
+ /**
34907
+ *
34908
+ * @type {number}
34909
+ * @memberof UsersApiGetUserNotifications
34910
+ */
34911
+ readonly limit?: number
34912
+
34913
+ /**
34914
+ *
34915
+ * @type {number}
34916
+ * @memberof UsersApiGetUserNotifications
34917
+ */
34918
+ readonly skip?: number
34919
+
34920
+ /**
34921
+ *
34922
+ * @type {any}
34923
+ * @memberof UsersApiGetUserNotifications
34924
+ */
34925
+ readonly includeRead?: any
34926
+ }
34927
+
34423
34928
  /**
34424
34929
  * Request parameters for getUserProfileById operation in UsersApi.
34425
34930
  * @export
@@ -34553,6 +35058,20 @@ export interface UsersApiLoginClubMemberRequest {
34553
35058
  readonly loginRequestBody: LoginRequestBody
34554
35059
  }
34555
35060
 
35061
+ /**
35062
+ * Request parameters for markNotificationsRead operation in UsersApi.
35063
+ * @export
35064
+ * @interface UsersApiMarkNotificationsReadRequest
35065
+ */
35066
+ export interface UsersApiMarkNotificationsReadRequest {
35067
+ /**
35068
+ *
35069
+ * @type {MarkNotificationsReadRequest}
35070
+ * @memberof UsersApiMarkNotificationsRead
35071
+ */
35072
+ readonly markNotificationsReadRequest: MarkNotificationsReadRequest
35073
+ }
35074
+
34556
35075
  /**
34557
35076
  * Request parameters for refreshToken operation in UsersApi.
34558
35077
  * @export
@@ -35045,6 +35564,17 @@ export class UsersApi extends BaseAPI {
35045
35564
  return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
35046
35565
  }
35047
35566
 
35567
+ /**
35568
+ *
35569
+ * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
35570
+ * @param {*} [options] Override http request option.
35571
+ * @throws {RequiredError}
35572
+ * @memberof UsersApi
35573
+ */
35574
+ public getUserNotifications(requestParameters: UsersApiGetUserNotificationsRequest = {}, options?: RawAxiosRequestConfig) {
35575
+ return UsersApiFp(this.configuration).getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(this.axios, this.basePath));
35576
+ }
35577
+
35048
35578
  /**
35049
35579
  *
35050
35580
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -35100,6 +35630,17 @@ export class UsersApi extends BaseAPI {
35100
35630
  return UsersApiFp(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
35101
35631
  }
35102
35632
 
35633
+ /**
35634
+ *
35635
+ * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
35636
+ * @param {*} [options] Override http request option.
35637
+ * @throws {RequiredError}
35638
+ * @memberof UsersApi
35639
+ */
35640
+ public markNotificationsRead(requestParameters: UsersApiMarkNotificationsReadRequest, options?: RawAxiosRequestConfig) {
35641
+ return UsersApiFp(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
35642
+ }
35643
+
35103
35644
  /**
35104
35645
  *
35105
35646
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.