@tennac-booking/sdk 1.0.215 → 1.0.216
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/.openapi-generator/FILES +9 -0
- package/README.md +11 -0
- package/api.ts +535 -0
- package/dist/api.d.ts +434 -0
- package/dist/api.js +165 -5
- package/dist/esm/api.d.ts +434 -0
- package/dist/esm/api.js +160 -0
- package/docs/MarkNotificationsReadRequest.md +22 -0
- package/docs/MarkNotificationsReadResponse.md +20 -0
- package/docs/NotificationData.md +22 -0
- package/docs/NotificationParticipantPreview.md +22 -0
- package/docs/NotificationPreview.md +58 -0
- package/docs/NotificationResponse.md +36 -0
- package/docs/NotificationType.md +26 -0
- package/docs/UserNotificationsResponse.md +22 -0
- package/docs/UserNotificationsResponseMeta.md +28 -0
- package/docs/UsersApi.md +109 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -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,256 @@ 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
|
+
'courtName'?: string;
|
|
8537
|
+
/**
|
|
8538
|
+
*
|
|
8539
|
+
* @type {string}
|
|
8540
|
+
* @memberof NotificationPreview
|
|
8541
|
+
*/
|
|
8542
|
+
'eventName'?: string;
|
|
8543
|
+
/**
|
|
8544
|
+
*
|
|
8545
|
+
* @type {string}
|
|
8546
|
+
* @memberof NotificationPreview
|
|
8547
|
+
*/
|
|
8548
|
+
'startDate'?: string;
|
|
8549
|
+
/**
|
|
8550
|
+
*
|
|
8551
|
+
* @type {string}
|
|
8552
|
+
* @memberof NotificationPreview
|
|
8553
|
+
*/
|
|
8554
|
+
'endDate'?: string;
|
|
8555
|
+
/**
|
|
8556
|
+
*
|
|
8557
|
+
* @type {number}
|
|
8558
|
+
* @memberof NotificationPreview
|
|
8559
|
+
*/
|
|
8560
|
+
'reminderDelayHours'?: number;
|
|
8561
|
+
/**
|
|
8562
|
+
*
|
|
8563
|
+
* @type {string}
|
|
8564
|
+
* @memberof NotificationPreview
|
|
8565
|
+
*/
|
|
8566
|
+
'reason'?: string;
|
|
8567
|
+
/**
|
|
8568
|
+
*
|
|
8569
|
+
* @type {string}
|
|
8570
|
+
* @memberof NotificationPreview
|
|
8571
|
+
*/
|
|
8572
|
+
'joinerId'?: string;
|
|
8573
|
+
/**
|
|
8574
|
+
*
|
|
8575
|
+
* @type {string}
|
|
8576
|
+
* @memberof NotificationPreview
|
|
8577
|
+
*/
|
|
8578
|
+
'joinerName'?: string;
|
|
8579
|
+
/**
|
|
8580
|
+
*
|
|
8581
|
+
* @type {string}
|
|
8582
|
+
* @memberof NotificationPreview
|
|
8583
|
+
*/
|
|
8584
|
+
'targetLabel'?: string;
|
|
8585
|
+
/**
|
|
8586
|
+
*
|
|
8587
|
+
* @type {string}
|
|
8588
|
+
* @memberof NotificationPreview
|
|
8589
|
+
*/
|
|
8590
|
+
'targetType'?: string;
|
|
8591
|
+
/**
|
|
8592
|
+
*
|
|
8593
|
+
* @type {string}
|
|
8594
|
+
* @memberof NotificationPreview
|
|
8595
|
+
*/
|
|
8596
|
+
'targetId'?: string;
|
|
8597
|
+
/**
|
|
8598
|
+
*
|
|
8599
|
+
* @type {number}
|
|
8600
|
+
* @memberof NotificationPreview
|
|
8601
|
+
*/
|
|
8602
|
+
'priceInCents'?: number;
|
|
8603
|
+
/**
|
|
8604
|
+
*
|
|
8605
|
+
* @type {string}
|
|
8606
|
+
* @memberof NotificationPreview
|
|
8607
|
+
*/
|
|
8608
|
+
'expiresAt'?: string;
|
|
8609
|
+
/**
|
|
8610
|
+
*
|
|
8611
|
+
* @type {number}
|
|
8612
|
+
* @memberof NotificationPreview
|
|
8613
|
+
*/
|
|
8614
|
+
'waitingListPaymentHoldDuration'?: number;
|
|
8615
|
+
/**
|
|
8616
|
+
*
|
|
8617
|
+
* @type {Array<NotificationParticipantPreview>}
|
|
8618
|
+
* @memberof NotificationPreview
|
|
8619
|
+
*/
|
|
8620
|
+
'participants'?: Array<NotificationParticipantPreview>;
|
|
8621
|
+
}
|
|
8622
|
+
/**
|
|
8623
|
+
*
|
|
8624
|
+
* @export
|
|
8625
|
+
* @interface NotificationResponse
|
|
8626
|
+
*/
|
|
8627
|
+
export interface NotificationResponse {
|
|
8628
|
+
/**
|
|
8629
|
+
*
|
|
8630
|
+
* @type {string}
|
|
8631
|
+
* @memberof NotificationResponse
|
|
8632
|
+
*/
|
|
8633
|
+
'id': string;
|
|
8634
|
+
/**
|
|
8635
|
+
*
|
|
8636
|
+
* @type {NotificationType}
|
|
8637
|
+
* @memberof NotificationResponse
|
|
8638
|
+
*/
|
|
8639
|
+
'type': NotificationType;
|
|
8640
|
+
/**
|
|
8641
|
+
*
|
|
8642
|
+
* @type {string}
|
|
8643
|
+
* @memberof NotificationResponse
|
|
8644
|
+
*/
|
|
8645
|
+
'title': string;
|
|
8646
|
+
/**
|
|
8647
|
+
*
|
|
8648
|
+
* @type {string}
|
|
8649
|
+
* @memberof NotificationResponse
|
|
8650
|
+
*/
|
|
8651
|
+
'message': string;
|
|
8652
|
+
/**
|
|
8653
|
+
*
|
|
8654
|
+
* @type {NotificationData}
|
|
8655
|
+
* @memberof NotificationResponse
|
|
8656
|
+
*/
|
|
8657
|
+
'data'?: NotificationData;
|
|
8658
|
+
/**
|
|
8659
|
+
*
|
|
8660
|
+
* @type {NotificationPreview}
|
|
8661
|
+
* @memberof NotificationResponse
|
|
8662
|
+
*/
|
|
8663
|
+
'preview'?: NotificationPreview;
|
|
8664
|
+
/**
|
|
8665
|
+
*
|
|
8666
|
+
* @type {string}
|
|
8667
|
+
* @memberof NotificationResponse
|
|
8668
|
+
*/
|
|
8669
|
+
'createdAt': string;
|
|
8670
|
+
/**
|
|
8671
|
+
*
|
|
8672
|
+
* @type {string}
|
|
8673
|
+
* @memberof NotificationResponse
|
|
8674
|
+
*/
|
|
8675
|
+
'readAt'?: string | null;
|
|
8676
|
+
/**
|
|
8677
|
+
*
|
|
8678
|
+
* @type {boolean}
|
|
8679
|
+
* @memberof NotificationResponse
|
|
8680
|
+
*/
|
|
8681
|
+
'isRead': boolean;
|
|
8682
|
+
}
|
|
8683
|
+
|
|
8684
|
+
|
|
8685
|
+
/**
|
|
8686
|
+
*
|
|
8687
|
+
* @export
|
|
8688
|
+
* @enum {string}
|
|
8689
|
+
*/
|
|
8690
|
+
|
|
8691
|
+
export const NotificationType = {
|
|
8692
|
+
BookingCreated: 'booking_created',
|
|
8693
|
+
BookingSetupRequired: 'booking_setup_required',
|
|
8694
|
+
BookingCancelled: 'booking_cancelled',
|
|
8695
|
+
BookingReminder: 'booking_reminder',
|
|
8696
|
+
EventRegistrationConfirmed: 'event_registration_confirmed',
|
|
8697
|
+
EventReminder: 'event_reminder',
|
|
8698
|
+
OpenBookingJoined: 'open_booking_joined',
|
|
8699
|
+
OpenBookingJoinConfirmed: 'open_booking_join_confirmed',
|
|
8700
|
+
WaitlistSpotAvailable: 'waitlist_spot_available',
|
|
8701
|
+
WaitlistConfirmed: 'waitlist_confirmed'
|
|
8702
|
+
} as const;
|
|
8703
|
+
|
|
8704
|
+
export type NotificationType = typeof NotificationType[keyof typeof NotificationType];
|
|
8705
|
+
|
|
8706
|
+
|
|
8425
8707
|
/**
|
|
8426
8708
|
*
|
|
8427
8709
|
* @export
|
|
@@ -13954,6 +14236,62 @@ export interface UserNextBookingSummary {
|
|
|
13954
14236
|
*/
|
|
13955
14237
|
'club': BookingClubInfo | null;
|
|
13956
14238
|
}
|
|
14239
|
+
/**
|
|
14240
|
+
*
|
|
14241
|
+
* @export
|
|
14242
|
+
* @interface UserNotificationsResponse
|
|
14243
|
+
*/
|
|
14244
|
+
export interface UserNotificationsResponse {
|
|
14245
|
+
/**
|
|
14246
|
+
*
|
|
14247
|
+
* @type {Array<NotificationResponse>}
|
|
14248
|
+
* @memberof UserNotificationsResponse
|
|
14249
|
+
*/
|
|
14250
|
+
'notifications': Array<NotificationResponse>;
|
|
14251
|
+
/**
|
|
14252
|
+
*
|
|
14253
|
+
* @type {UserNotificationsResponseMeta}
|
|
14254
|
+
* @memberof UserNotificationsResponse
|
|
14255
|
+
*/
|
|
14256
|
+
'meta': UserNotificationsResponseMeta;
|
|
14257
|
+
}
|
|
14258
|
+
/**
|
|
14259
|
+
*
|
|
14260
|
+
* @export
|
|
14261
|
+
* @interface UserNotificationsResponseMeta
|
|
14262
|
+
*/
|
|
14263
|
+
export interface UserNotificationsResponseMeta {
|
|
14264
|
+
/**
|
|
14265
|
+
*
|
|
14266
|
+
* @type {number}
|
|
14267
|
+
* @memberof UserNotificationsResponseMeta
|
|
14268
|
+
*/
|
|
14269
|
+
'unreadCount': number;
|
|
14270
|
+
/**
|
|
14271
|
+
*
|
|
14272
|
+
* @type {boolean}
|
|
14273
|
+
* @memberof UserNotificationsResponseMeta
|
|
14274
|
+
*/
|
|
14275
|
+
'hasMore': boolean;
|
|
14276
|
+
/**
|
|
14277
|
+
*
|
|
14278
|
+
* @type {number}
|
|
14279
|
+
* @memberof UserNotificationsResponseMeta
|
|
14280
|
+
*/
|
|
14281
|
+
'total': number;
|
|
14282
|
+
/**
|
|
14283
|
+
*
|
|
14284
|
+
* @type {number}
|
|
14285
|
+
* @memberof UserNotificationsResponseMeta
|
|
14286
|
+
*/
|
|
14287
|
+
'skip': number;
|
|
14288
|
+
/**
|
|
14289
|
+
*
|
|
14290
|
+
* @type {number}
|
|
14291
|
+
* @memberof UserNotificationsResponseMeta
|
|
14292
|
+
*/
|
|
14293
|
+
'limit': number;
|
|
14294
|
+
}
|
|
13957
14295
|
/**
|
|
13958
14296
|
*
|
|
13959
14297
|
* @export
|
|
@@ -32280,6 +32618,56 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
32280
32618
|
|
|
32281
32619
|
|
|
32282
32620
|
|
|
32621
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32622
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32623
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32624
|
+
|
|
32625
|
+
return {
|
|
32626
|
+
url: toPathString(localVarUrlObj),
|
|
32627
|
+
options: localVarRequestOptions,
|
|
32628
|
+
};
|
|
32629
|
+
},
|
|
32630
|
+
/**
|
|
32631
|
+
*
|
|
32632
|
+
* @param {number} [limit]
|
|
32633
|
+
* @param {number} [skip]
|
|
32634
|
+
* @param {any} [includeRead]
|
|
32635
|
+
* @param {*} [options] Override http request option.
|
|
32636
|
+
* @throws {RequiredError}
|
|
32637
|
+
*/
|
|
32638
|
+
getUserNotifications: async (limit?: number, skip?: number, includeRead?: any, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32639
|
+
const localVarPath = `/api/users/me/notifications`;
|
|
32640
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32641
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32642
|
+
let baseOptions;
|
|
32643
|
+
if (configuration) {
|
|
32644
|
+
baseOptions = configuration.baseOptions;
|
|
32645
|
+
}
|
|
32646
|
+
|
|
32647
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
32648
|
+
const localVarHeaderParameter = {} as any;
|
|
32649
|
+
const localVarQueryParameter = {} as any;
|
|
32650
|
+
|
|
32651
|
+
// authentication bearerAuth required
|
|
32652
|
+
// http bearer authentication required
|
|
32653
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32654
|
+
|
|
32655
|
+
if (limit !== undefined) {
|
|
32656
|
+
localVarQueryParameter['limit'] = limit;
|
|
32657
|
+
}
|
|
32658
|
+
|
|
32659
|
+
if (skip !== undefined) {
|
|
32660
|
+
localVarQueryParameter['skip'] = skip;
|
|
32661
|
+
}
|
|
32662
|
+
|
|
32663
|
+
if (includeRead !== undefined) {
|
|
32664
|
+
for (const [key, value] of Object.entries(includeRead)) {
|
|
32665
|
+
localVarQueryParameter[key] = value;
|
|
32666
|
+
}
|
|
32667
|
+
}
|
|
32668
|
+
|
|
32669
|
+
|
|
32670
|
+
|
|
32283
32671
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32284
32672
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32285
32673
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -32516,6 +32904,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
32516
32904
|
options: localVarRequestOptions,
|
|
32517
32905
|
};
|
|
32518
32906
|
},
|
|
32907
|
+
/**
|
|
32908
|
+
*
|
|
32909
|
+
* @param {MarkNotificationsReadRequest} markNotificationsReadRequest
|
|
32910
|
+
* @param {*} [options] Override http request option.
|
|
32911
|
+
* @throws {RequiredError}
|
|
32912
|
+
*/
|
|
32913
|
+
markNotificationsRead: async (markNotificationsReadRequest: MarkNotificationsReadRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32914
|
+
// verify required parameter 'markNotificationsReadRequest' is not null or undefined
|
|
32915
|
+
assertParamExists('markNotificationsRead', 'markNotificationsReadRequest', markNotificationsReadRequest)
|
|
32916
|
+
const localVarPath = `/api/users/me/notifications/read`;
|
|
32917
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32918
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32919
|
+
let baseOptions;
|
|
32920
|
+
if (configuration) {
|
|
32921
|
+
baseOptions = configuration.baseOptions;
|
|
32922
|
+
}
|
|
32923
|
+
|
|
32924
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
32925
|
+
const localVarHeaderParameter = {} as any;
|
|
32926
|
+
const localVarQueryParameter = {} as any;
|
|
32927
|
+
|
|
32928
|
+
// authentication bearerAuth required
|
|
32929
|
+
// http bearer authentication required
|
|
32930
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32931
|
+
|
|
32932
|
+
|
|
32933
|
+
|
|
32934
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32935
|
+
|
|
32936
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32937
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32938
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32939
|
+
localVarRequestOptions.data = serializeDataIfNeeded(markNotificationsReadRequest, localVarRequestOptions, configuration)
|
|
32940
|
+
|
|
32941
|
+
return {
|
|
32942
|
+
url: toPathString(localVarUrlObj),
|
|
32943
|
+
options: localVarRequestOptions,
|
|
32944
|
+
};
|
|
32945
|
+
},
|
|
32519
32946
|
/**
|
|
32520
32947
|
*
|
|
32521
32948
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -33483,6 +33910,20 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
33483
33910
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserEvents']?.[localVarOperationServerIndex]?.url;
|
|
33484
33911
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33485
33912
|
},
|
|
33913
|
+
/**
|
|
33914
|
+
*
|
|
33915
|
+
* @param {number} [limit]
|
|
33916
|
+
* @param {number} [skip]
|
|
33917
|
+
* @param {any} [includeRead]
|
|
33918
|
+
* @param {*} [options] Override http request option.
|
|
33919
|
+
* @throws {RequiredError}
|
|
33920
|
+
*/
|
|
33921
|
+
async getUserNotifications(limit?: number, skip?: number, includeRead?: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserNotificationsResponse>> {
|
|
33922
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserNotifications(limit, skip, includeRead, options);
|
|
33923
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
33924
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserNotifications']?.[localVarOperationServerIndex]?.url;
|
|
33925
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33926
|
+
},
|
|
33486
33927
|
/**
|
|
33487
33928
|
*
|
|
33488
33929
|
* @param {string} id
|
|
@@ -33552,6 +33993,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
33552
33993
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.loginClubMember']?.[localVarOperationServerIndex]?.url;
|
|
33553
33994
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33554
33995
|
},
|
|
33996
|
+
/**
|
|
33997
|
+
*
|
|
33998
|
+
* @param {MarkNotificationsReadRequest} markNotificationsReadRequest
|
|
33999
|
+
* @param {*} [options] Override http request option.
|
|
34000
|
+
* @throws {RequiredError}
|
|
34001
|
+
*/
|
|
34002
|
+
async markNotificationsRead(markNotificationsReadRequest: MarkNotificationsReadRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MarkNotificationsReadResponse>> {
|
|
34003
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.markNotificationsRead(markNotificationsReadRequest, options);
|
|
34004
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
34005
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.markNotificationsRead']?.[localVarOperationServerIndex]?.url;
|
|
34006
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34007
|
+
},
|
|
33555
34008
|
/**
|
|
33556
34009
|
*
|
|
33557
34010
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -33964,6 +34417,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
33964
34417
|
getUserEvents(requestParameters: UsersApiGetUserEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserEventsResponse> {
|
|
33965
34418
|
return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
33966
34419
|
},
|
|
34420
|
+
/**
|
|
34421
|
+
*
|
|
34422
|
+
* @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
|
|
34423
|
+
* @param {*} [options] Override http request option.
|
|
34424
|
+
* @throws {RequiredError}
|
|
34425
|
+
*/
|
|
34426
|
+
getUserNotifications(requestParameters: UsersApiGetUserNotificationsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserNotificationsResponse> {
|
|
34427
|
+
return localVarFp.getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(axios, basePath));
|
|
34428
|
+
},
|
|
33967
34429
|
/**
|
|
33968
34430
|
*
|
|
33969
34431
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -34009,6 +34471,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
34009
34471
|
loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse> {
|
|
34010
34472
|
return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
34011
34473
|
},
|
|
34474
|
+
/**
|
|
34475
|
+
*
|
|
34476
|
+
* @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
|
|
34477
|
+
* @param {*} [options] Override http request option.
|
|
34478
|
+
* @throws {RequiredError}
|
|
34479
|
+
*/
|
|
34480
|
+
markNotificationsRead(requestParameters: UsersApiMarkNotificationsReadRequest, options?: RawAxiosRequestConfig): AxiosPromise<MarkNotificationsReadResponse> {
|
|
34481
|
+
return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
|
|
34482
|
+
},
|
|
34012
34483
|
/**
|
|
34013
34484
|
*
|
|
34014
34485
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -34420,6 +34891,34 @@ export interface UsersApiGetUserEventsRequest {
|
|
|
34420
34891
|
readonly skip?: number
|
|
34421
34892
|
}
|
|
34422
34893
|
|
|
34894
|
+
/**
|
|
34895
|
+
* Request parameters for getUserNotifications operation in UsersApi.
|
|
34896
|
+
* @export
|
|
34897
|
+
* @interface UsersApiGetUserNotificationsRequest
|
|
34898
|
+
*/
|
|
34899
|
+
export interface UsersApiGetUserNotificationsRequest {
|
|
34900
|
+
/**
|
|
34901
|
+
*
|
|
34902
|
+
* @type {number}
|
|
34903
|
+
* @memberof UsersApiGetUserNotifications
|
|
34904
|
+
*/
|
|
34905
|
+
readonly limit?: number
|
|
34906
|
+
|
|
34907
|
+
/**
|
|
34908
|
+
*
|
|
34909
|
+
* @type {number}
|
|
34910
|
+
* @memberof UsersApiGetUserNotifications
|
|
34911
|
+
*/
|
|
34912
|
+
readonly skip?: number
|
|
34913
|
+
|
|
34914
|
+
/**
|
|
34915
|
+
*
|
|
34916
|
+
* @type {any}
|
|
34917
|
+
* @memberof UsersApiGetUserNotifications
|
|
34918
|
+
*/
|
|
34919
|
+
readonly includeRead?: any
|
|
34920
|
+
}
|
|
34921
|
+
|
|
34423
34922
|
/**
|
|
34424
34923
|
* Request parameters for getUserProfileById operation in UsersApi.
|
|
34425
34924
|
* @export
|
|
@@ -34553,6 +35052,20 @@ export interface UsersApiLoginClubMemberRequest {
|
|
|
34553
35052
|
readonly loginRequestBody: LoginRequestBody
|
|
34554
35053
|
}
|
|
34555
35054
|
|
|
35055
|
+
/**
|
|
35056
|
+
* Request parameters for markNotificationsRead operation in UsersApi.
|
|
35057
|
+
* @export
|
|
35058
|
+
* @interface UsersApiMarkNotificationsReadRequest
|
|
35059
|
+
*/
|
|
35060
|
+
export interface UsersApiMarkNotificationsReadRequest {
|
|
35061
|
+
/**
|
|
35062
|
+
*
|
|
35063
|
+
* @type {MarkNotificationsReadRequest}
|
|
35064
|
+
* @memberof UsersApiMarkNotificationsRead
|
|
35065
|
+
*/
|
|
35066
|
+
readonly markNotificationsReadRequest: MarkNotificationsReadRequest
|
|
35067
|
+
}
|
|
35068
|
+
|
|
34556
35069
|
/**
|
|
34557
35070
|
* Request parameters for refreshToken operation in UsersApi.
|
|
34558
35071
|
* @export
|
|
@@ -35045,6 +35558,17 @@ export class UsersApi extends BaseAPI {
|
|
|
35045
35558
|
return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
35046
35559
|
}
|
|
35047
35560
|
|
|
35561
|
+
/**
|
|
35562
|
+
*
|
|
35563
|
+
* @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
|
|
35564
|
+
* @param {*} [options] Override http request option.
|
|
35565
|
+
* @throws {RequiredError}
|
|
35566
|
+
* @memberof UsersApi
|
|
35567
|
+
*/
|
|
35568
|
+
public getUserNotifications(requestParameters: UsersApiGetUserNotificationsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
35569
|
+
return UsersApiFp(this.configuration).getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(this.axios, this.basePath));
|
|
35570
|
+
}
|
|
35571
|
+
|
|
35048
35572
|
/**
|
|
35049
35573
|
*
|
|
35050
35574
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -35100,6 +35624,17 @@ export class UsersApi extends BaseAPI {
|
|
|
35100
35624
|
return UsersApiFp(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
35101
35625
|
}
|
|
35102
35626
|
|
|
35627
|
+
/**
|
|
35628
|
+
*
|
|
35629
|
+
* @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
|
|
35630
|
+
* @param {*} [options] Override http request option.
|
|
35631
|
+
* @throws {RequiredError}
|
|
35632
|
+
* @memberof UsersApi
|
|
35633
|
+
*/
|
|
35634
|
+
public markNotificationsRead(requestParameters: UsersApiMarkNotificationsReadRequest, options?: RawAxiosRequestConfig) {
|
|
35635
|
+
return UsersApiFp(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
|
|
35636
|
+
}
|
|
35637
|
+
|
|
35103
35638
|
/**
|
|
35104
35639
|
*
|
|
35105
35640
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|