@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.
package/dist/api.d.ts CHANGED
@@ -8105,6 +8105,38 @@ export interface ManagerCancelBookingResponse {
8105
8105
  */
8106
8106
  'booking': BookingInfo;
8107
8107
  }
8108
+ /**
8109
+ *
8110
+ * @export
8111
+ * @interface MarkNotificationsReadRequest
8112
+ */
8113
+ export interface MarkNotificationsReadRequest {
8114
+ /**
8115
+ *
8116
+ * @type {Array<string>}
8117
+ * @memberof MarkNotificationsReadRequest
8118
+ */
8119
+ 'notificationIds'?: Array<string>;
8120
+ /**
8121
+ *
8122
+ * @type {boolean}
8123
+ * @memberof MarkNotificationsReadRequest
8124
+ */
8125
+ 'readAll'?: boolean;
8126
+ }
8127
+ /**
8128
+ *
8129
+ * @export
8130
+ * @interface MarkNotificationsReadResponse
8131
+ */
8132
+ export interface MarkNotificationsReadResponse {
8133
+ /**
8134
+ *
8135
+ * @type {number}
8136
+ * @memberof MarkNotificationsReadResponse
8137
+ */
8138
+ 'updatedCount': number;
8139
+ }
8108
8140
  /**
8109
8141
  *
8110
8142
  * @export
@@ -8296,6 +8328,258 @@ export interface NoShowRateResponse {
8296
8328
  */
8297
8329
  'rate': number;
8298
8330
  }
8331
+ /**
8332
+ *
8333
+ * @export
8334
+ * @interface NotificationData
8335
+ */
8336
+ export interface NotificationData {
8337
+ /**
8338
+ *
8339
+ * @type {string}
8340
+ * @memberof NotificationData
8341
+ */
8342
+ 'pathname': string;
8343
+ /**
8344
+ * Construct a type with a set of properties K of type T
8345
+ * @type {{ [key: string]: string; }}
8346
+ * @memberof NotificationData
8347
+ */
8348
+ 'params'?: {
8349
+ [key: string]: string;
8350
+ };
8351
+ }
8352
+ /**
8353
+ *
8354
+ * @export
8355
+ * @interface NotificationParticipantPreview
8356
+ */
8357
+ export interface NotificationParticipantPreview {
8358
+ /**
8359
+ *
8360
+ * @type {string}
8361
+ * @memberof NotificationParticipantPreview
8362
+ */
8363
+ 'id'?: string;
8364
+ /**
8365
+ *
8366
+ * @type {string}
8367
+ * @memberof NotificationParticipantPreview
8368
+ */
8369
+ 'name'?: string;
8370
+ }
8371
+ /**
8372
+ *
8373
+ * @export
8374
+ * @interface NotificationPreview
8375
+ */
8376
+ export interface NotificationPreview {
8377
+ /**
8378
+ *
8379
+ * @type {string}
8380
+ * @memberof NotificationPreview
8381
+ */
8382
+ 'bookingId'?: string;
8383
+ /**
8384
+ *
8385
+ * @type {string}
8386
+ * @memberof NotificationPreview
8387
+ */
8388
+ 'eventId'?: string;
8389
+ /**
8390
+ *
8391
+ * @type {string}
8392
+ * @memberof NotificationPreview
8393
+ */
8394
+ 'eventBookingId'?: string;
8395
+ /**
8396
+ *
8397
+ * @type {string}
8398
+ * @memberof NotificationPreview
8399
+ */
8400
+ 'clubId'?: string;
8401
+ /**
8402
+ *
8403
+ * @type {string}
8404
+ * @memberof NotificationPreview
8405
+ */
8406
+ 'clubName'?: string;
8407
+ /**
8408
+ *
8409
+ * @type {string}
8410
+ * @memberof NotificationPreview
8411
+ */
8412
+ 'clubPicture'?: string;
8413
+ /**
8414
+ *
8415
+ * @type {string}
8416
+ * @memberof NotificationPreview
8417
+ */
8418
+ 'courtName'?: string;
8419
+ /**
8420
+ *
8421
+ * @type {string}
8422
+ * @memberof NotificationPreview
8423
+ */
8424
+ 'eventName'?: string;
8425
+ /**
8426
+ *
8427
+ * @type {string}
8428
+ * @memberof NotificationPreview
8429
+ */
8430
+ 'startDate'?: string;
8431
+ /**
8432
+ *
8433
+ * @type {string}
8434
+ * @memberof NotificationPreview
8435
+ */
8436
+ 'endDate'?: string;
8437
+ /**
8438
+ *
8439
+ * @type {number}
8440
+ * @memberof NotificationPreview
8441
+ */
8442
+ 'reminderDelayHours'?: number;
8443
+ /**
8444
+ *
8445
+ * @type {string}
8446
+ * @memberof NotificationPreview
8447
+ */
8448
+ 'reason'?: string;
8449
+ /**
8450
+ *
8451
+ * @type {string}
8452
+ * @memberof NotificationPreview
8453
+ */
8454
+ 'joinerId'?: string;
8455
+ /**
8456
+ *
8457
+ * @type {string}
8458
+ * @memberof NotificationPreview
8459
+ */
8460
+ 'joinerName'?: string;
8461
+ /**
8462
+ *
8463
+ * @type {string}
8464
+ * @memberof NotificationPreview
8465
+ */
8466
+ 'targetLabel'?: string;
8467
+ /**
8468
+ *
8469
+ * @type {string}
8470
+ * @memberof NotificationPreview
8471
+ */
8472
+ 'targetType'?: string;
8473
+ /**
8474
+ *
8475
+ * @type {string}
8476
+ * @memberof NotificationPreview
8477
+ */
8478
+ 'targetId'?: string;
8479
+ /**
8480
+ *
8481
+ * @type {number}
8482
+ * @memberof NotificationPreview
8483
+ */
8484
+ 'priceInCents'?: number;
8485
+ /**
8486
+ *
8487
+ * @type {string}
8488
+ * @memberof NotificationPreview
8489
+ */
8490
+ 'expiresAt'?: string;
8491
+ /**
8492
+ *
8493
+ * @type {number}
8494
+ * @memberof NotificationPreview
8495
+ */
8496
+ 'waitingListPaymentHoldDuration'?: number;
8497
+ /**
8498
+ *
8499
+ * @type {Array<NotificationParticipantPreview>}
8500
+ * @memberof NotificationPreview
8501
+ */
8502
+ 'participants'?: Array<NotificationParticipantPreview>;
8503
+ }
8504
+ /**
8505
+ *
8506
+ * @export
8507
+ * @interface NotificationResponse
8508
+ */
8509
+ export interface NotificationResponse {
8510
+ /**
8511
+ *
8512
+ * @type {string}
8513
+ * @memberof NotificationResponse
8514
+ */
8515
+ 'id': string;
8516
+ /**
8517
+ *
8518
+ * @type {NotificationType}
8519
+ * @memberof NotificationResponse
8520
+ */
8521
+ 'type': NotificationType;
8522
+ /**
8523
+ *
8524
+ * @type {string}
8525
+ * @memberof NotificationResponse
8526
+ */
8527
+ 'title': string;
8528
+ /**
8529
+ *
8530
+ * @type {string}
8531
+ * @memberof NotificationResponse
8532
+ */
8533
+ 'message': string;
8534
+ /**
8535
+ *
8536
+ * @type {NotificationData}
8537
+ * @memberof NotificationResponse
8538
+ */
8539
+ 'data'?: NotificationData;
8540
+ /**
8541
+ *
8542
+ * @type {NotificationPreview}
8543
+ * @memberof NotificationResponse
8544
+ */
8545
+ 'preview'?: NotificationPreview;
8546
+ /**
8547
+ *
8548
+ * @type {string}
8549
+ * @memberof NotificationResponse
8550
+ */
8551
+ 'createdAt': string;
8552
+ /**
8553
+ *
8554
+ * @type {string}
8555
+ * @memberof NotificationResponse
8556
+ */
8557
+ 'readAt'?: string | null;
8558
+ /**
8559
+ *
8560
+ * @type {boolean}
8561
+ * @memberof NotificationResponse
8562
+ */
8563
+ 'isRead': boolean;
8564
+ }
8565
+ /**
8566
+ *
8567
+ * @export
8568
+ * @enum {string}
8569
+ */
8570
+ export declare const NotificationType: {
8571
+ readonly BookingCreated: "booking_created";
8572
+ readonly BookingSetupRequired: "booking_setup_required";
8573
+ readonly BookingCancelled: "booking_cancelled";
8574
+ readonly BookingReminder: "booking_reminder";
8575
+ readonly EventRegistrationConfirmed: "event_registration_confirmed";
8576
+ readonly EventReminder: "event_reminder";
8577
+ readonly OpenBookingJoined: "open_booking_joined";
8578
+ readonly OpenBookingJoinConfirmed: "open_booking_join_confirmed";
8579
+ readonly WaitlistSpotAvailable: "waitlist_spot_available";
8580
+ readonly WaitlistConfirmed: "waitlist_confirmed";
8581
+ };
8582
+ export type NotificationType = typeof NotificationType[keyof typeof NotificationType];
8299
8583
  /**
8300
8584
  *
8301
8585
  * @export
@@ -13720,6 +14004,62 @@ export interface UserNextBookingSummary {
13720
14004
  */
13721
14005
  'club': BookingClubInfo | null;
13722
14006
  }
14007
+ /**
14008
+ *
14009
+ * @export
14010
+ * @interface UserNotificationsResponse
14011
+ */
14012
+ export interface UserNotificationsResponse {
14013
+ /**
14014
+ *
14015
+ * @type {Array<NotificationResponse>}
14016
+ * @memberof UserNotificationsResponse
14017
+ */
14018
+ 'notifications': Array<NotificationResponse>;
14019
+ /**
14020
+ *
14021
+ * @type {UserNotificationsResponseMeta}
14022
+ * @memberof UserNotificationsResponse
14023
+ */
14024
+ 'meta': UserNotificationsResponseMeta;
14025
+ }
14026
+ /**
14027
+ *
14028
+ * @export
14029
+ * @interface UserNotificationsResponseMeta
14030
+ */
14031
+ export interface UserNotificationsResponseMeta {
14032
+ /**
14033
+ *
14034
+ * @type {number}
14035
+ * @memberof UserNotificationsResponseMeta
14036
+ */
14037
+ 'unreadCount': number;
14038
+ /**
14039
+ *
14040
+ * @type {boolean}
14041
+ * @memberof UserNotificationsResponseMeta
14042
+ */
14043
+ 'hasMore': boolean;
14044
+ /**
14045
+ *
14046
+ * @type {number}
14047
+ * @memberof UserNotificationsResponseMeta
14048
+ */
14049
+ 'total': number;
14050
+ /**
14051
+ *
14052
+ * @type {number}
14053
+ * @memberof UserNotificationsResponseMeta
14054
+ */
14055
+ 'skip': number;
14056
+ /**
14057
+ *
14058
+ * @type {number}
14059
+ * @memberof UserNotificationsResponseMeta
14060
+ */
14061
+ 'limit': number;
14062
+ }
13723
14063
  /**
13724
14064
  *
13725
14065
  * @export
@@ -23261,6 +23601,15 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
23261
23601
  * @throws {RequiredError}
23262
23602
  */
23263
23603
  getUserEvents: (limit?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23604
+ /**
23605
+ *
23606
+ * @param {number} [limit]
23607
+ * @param {number} [skip]
23608
+ * @param {any} [includeRead]
23609
+ * @param {*} [options] Override http request option.
23610
+ * @throws {RequiredError}
23611
+ */
23612
+ getUserNotifications: (limit?: number, skip?: number, includeRead?: any, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23264
23613
  /**
23265
23614
  *
23266
23615
  * @param {string} id
@@ -23305,6 +23654,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
23305
23654
  * @throws {RequiredError}
23306
23655
  */
23307
23656
  loginClubMember: (loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23657
+ /**
23658
+ *
23659
+ * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
23660
+ * @param {*} [options] Override http request option.
23661
+ * @throws {RequiredError}
23662
+ */
23663
+ markNotificationsRead: (markNotificationsReadRequest: MarkNotificationsReadRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23308
23664
  /**
23309
23665
  *
23310
23666
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -23596,6 +23952,15 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
23596
23952
  * @throws {RequiredError}
23597
23953
  */
23598
23954
  getUserEvents(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserEventsResponse>>;
23955
+ /**
23956
+ *
23957
+ * @param {number} [limit]
23958
+ * @param {number} [skip]
23959
+ * @param {any} [includeRead]
23960
+ * @param {*} [options] Override http request option.
23961
+ * @throws {RequiredError}
23962
+ */
23963
+ getUserNotifications(limit?: number, skip?: number, includeRead?: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserNotificationsResponse>>;
23599
23964
  /**
23600
23965
  *
23601
23966
  * @param {string} id
@@ -23640,6 +24005,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
23640
24005
  * @throws {RequiredError}
23641
24006
  */
23642
24007
  loginClubMember(loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
24008
+ /**
24009
+ *
24010
+ * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
24011
+ * @param {*} [options] Override http request option.
24012
+ * @throws {RequiredError}
24013
+ */
24014
+ markNotificationsRead(markNotificationsReadRequest: MarkNotificationsReadRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MarkNotificationsReadResponse>>;
23643
24015
  /**
23644
24016
  *
23645
24017
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -23921,6 +24293,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
23921
24293
  * @throws {RequiredError}
23922
24294
  */
23923
24295
  getUserEvents(requestParameters?: UsersApiGetUserEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserEventsResponse>;
24296
+ /**
24297
+ *
24298
+ * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
24299
+ * @param {*} [options] Override http request option.
24300
+ * @throws {RequiredError}
24301
+ */
24302
+ getUserNotifications(requestParameters?: UsersApiGetUserNotificationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserNotificationsResponse>;
23924
24303
  /**
23925
24304
  *
23926
24305
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -23956,6 +24335,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
23956
24335
  * @throws {RequiredError}
23957
24336
  */
23958
24337
  loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
24338
+ /**
24339
+ *
24340
+ * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
24341
+ * @param {*} [options] Override http request option.
24342
+ * @throws {RequiredError}
24343
+ */
24344
+ markNotificationsRead(requestParameters: UsersApiMarkNotificationsReadRequest, options?: RawAxiosRequestConfig): AxiosPromise<MarkNotificationsReadResponse>;
23959
24345
  /**
23960
24346
  *
23961
24347
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -24305,6 +24691,31 @@ export interface UsersApiGetUserEventsRequest {
24305
24691
  */
24306
24692
  readonly skip?: number;
24307
24693
  }
24694
+ /**
24695
+ * Request parameters for getUserNotifications operation in UsersApi.
24696
+ * @export
24697
+ * @interface UsersApiGetUserNotificationsRequest
24698
+ */
24699
+ export interface UsersApiGetUserNotificationsRequest {
24700
+ /**
24701
+ *
24702
+ * @type {number}
24703
+ * @memberof UsersApiGetUserNotifications
24704
+ */
24705
+ readonly limit?: number;
24706
+ /**
24707
+ *
24708
+ * @type {number}
24709
+ * @memberof UsersApiGetUserNotifications
24710
+ */
24711
+ readonly skip?: number;
24712
+ /**
24713
+ *
24714
+ * @type {any}
24715
+ * @memberof UsersApiGetUserNotifications
24716
+ */
24717
+ readonly includeRead?: any;
24718
+ }
24308
24719
  /**
24309
24720
  * Request parameters for getUserProfileById operation in UsersApi.
24310
24721
  * @export
@@ -24424,6 +24835,19 @@ export interface UsersApiLoginClubMemberRequest {
24424
24835
  */
24425
24836
  readonly loginRequestBody: LoginRequestBody;
24426
24837
  }
24838
+ /**
24839
+ * Request parameters for markNotificationsRead operation in UsersApi.
24840
+ * @export
24841
+ * @interface UsersApiMarkNotificationsReadRequest
24842
+ */
24843
+ export interface UsersApiMarkNotificationsReadRequest {
24844
+ /**
24845
+ *
24846
+ * @type {MarkNotificationsReadRequest}
24847
+ * @memberof UsersApiMarkNotificationsRead
24848
+ */
24849
+ readonly markNotificationsReadRequest: MarkNotificationsReadRequest;
24850
+ }
24427
24851
  /**
24428
24852
  * Request parameters for refreshToken operation in UsersApi.
24429
24853
  * @export
@@ -24843,6 +25267,14 @@ export declare class UsersApi extends BaseAPI {
24843
25267
  * @memberof UsersApi
24844
25268
  */
24845
25269
  getUserEvents(requestParameters?: UsersApiGetUserEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserEventsResponse, any, {}>>;
25270
+ /**
25271
+ *
25272
+ * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
25273
+ * @param {*} [options] Override http request option.
25274
+ * @throws {RequiredError}
25275
+ * @memberof UsersApi
25276
+ */
25277
+ getUserNotifications(requestParameters?: UsersApiGetUserNotificationsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserNotificationsResponse, any, {}>>;
24846
25278
  /**
24847
25279
  *
24848
25280
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -24883,6 +25315,14 @@ export declare class UsersApi extends BaseAPI {
24883
25315
  * @memberof UsersApi
24884
25316
  */
24885
25317
  loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
25318
+ /**
25319
+ *
25320
+ * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
25321
+ * @param {*} [options] Override http request option.
25322
+ * @throws {RequiredError}
25323
+ * @memberof UsersApi
25324
+ */
25325
+ markNotificationsRead(requestParameters: UsersApiMarkNotificationsReadRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MarkNotificationsReadResponse, any, {}>>;
24886
25326
  /**
24887
25327
  *
24888
25328
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.