@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/dist/esm/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,252 @@ 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
+ 'courtName'?: string;
8413
+ /**
8414
+ *
8415
+ * @type {string}
8416
+ * @memberof NotificationPreview
8417
+ */
8418
+ 'eventName'?: string;
8419
+ /**
8420
+ *
8421
+ * @type {string}
8422
+ * @memberof NotificationPreview
8423
+ */
8424
+ 'startDate'?: string;
8425
+ /**
8426
+ *
8427
+ * @type {string}
8428
+ * @memberof NotificationPreview
8429
+ */
8430
+ 'endDate'?: string;
8431
+ /**
8432
+ *
8433
+ * @type {number}
8434
+ * @memberof NotificationPreview
8435
+ */
8436
+ 'reminderDelayHours'?: number;
8437
+ /**
8438
+ *
8439
+ * @type {string}
8440
+ * @memberof NotificationPreview
8441
+ */
8442
+ 'reason'?: string;
8443
+ /**
8444
+ *
8445
+ * @type {string}
8446
+ * @memberof NotificationPreview
8447
+ */
8448
+ 'joinerId'?: string;
8449
+ /**
8450
+ *
8451
+ * @type {string}
8452
+ * @memberof NotificationPreview
8453
+ */
8454
+ 'joinerName'?: string;
8455
+ /**
8456
+ *
8457
+ * @type {string}
8458
+ * @memberof NotificationPreview
8459
+ */
8460
+ 'targetLabel'?: string;
8461
+ /**
8462
+ *
8463
+ * @type {string}
8464
+ * @memberof NotificationPreview
8465
+ */
8466
+ 'targetType'?: string;
8467
+ /**
8468
+ *
8469
+ * @type {string}
8470
+ * @memberof NotificationPreview
8471
+ */
8472
+ 'targetId'?: string;
8473
+ /**
8474
+ *
8475
+ * @type {number}
8476
+ * @memberof NotificationPreview
8477
+ */
8478
+ 'priceInCents'?: number;
8479
+ /**
8480
+ *
8481
+ * @type {string}
8482
+ * @memberof NotificationPreview
8483
+ */
8484
+ 'expiresAt'?: string;
8485
+ /**
8486
+ *
8487
+ * @type {number}
8488
+ * @memberof NotificationPreview
8489
+ */
8490
+ 'waitingListPaymentHoldDuration'?: number;
8491
+ /**
8492
+ *
8493
+ * @type {Array<NotificationParticipantPreview>}
8494
+ * @memberof NotificationPreview
8495
+ */
8496
+ 'participants'?: Array<NotificationParticipantPreview>;
8497
+ }
8498
+ /**
8499
+ *
8500
+ * @export
8501
+ * @interface NotificationResponse
8502
+ */
8503
+ export interface NotificationResponse {
8504
+ /**
8505
+ *
8506
+ * @type {string}
8507
+ * @memberof NotificationResponse
8508
+ */
8509
+ 'id': string;
8510
+ /**
8511
+ *
8512
+ * @type {NotificationType}
8513
+ * @memberof NotificationResponse
8514
+ */
8515
+ 'type': NotificationType;
8516
+ /**
8517
+ *
8518
+ * @type {string}
8519
+ * @memberof NotificationResponse
8520
+ */
8521
+ 'title': string;
8522
+ /**
8523
+ *
8524
+ * @type {string}
8525
+ * @memberof NotificationResponse
8526
+ */
8527
+ 'message': string;
8528
+ /**
8529
+ *
8530
+ * @type {NotificationData}
8531
+ * @memberof NotificationResponse
8532
+ */
8533
+ 'data'?: NotificationData;
8534
+ /**
8535
+ *
8536
+ * @type {NotificationPreview}
8537
+ * @memberof NotificationResponse
8538
+ */
8539
+ 'preview'?: NotificationPreview;
8540
+ /**
8541
+ *
8542
+ * @type {string}
8543
+ * @memberof NotificationResponse
8544
+ */
8545
+ 'createdAt': string;
8546
+ /**
8547
+ *
8548
+ * @type {string}
8549
+ * @memberof NotificationResponse
8550
+ */
8551
+ 'readAt'?: string | null;
8552
+ /**
8553
+ *
8554
+ * @type {boolean}
8555
+ * @memberof NotificationResponse
8556
+ */
8557
+ 'isRead': boolean;
8558
+ }
8559
+ /**
8560
+ *
8561
+ * @export
8562
+ * @enum {string}
8563
+ */
8564
+ export declare const NotificationType: {
8565
+ readonly BookingCreated: "booking_created";
8566
+ readonly BookingSetupRequired: "booking_setup_required";
8567
+ readonly BookingCancelled: "booking_cancelled";
8568
+ readonly BookingReminder: "booking_reminder";
8569
+ readonly EventRegistrationConfirmed: "event_registration_confirmed";
8570
+ readonly EventReminder: "event_reminder";
8571
+ readonly OpenBookingJoined: "open_booking_joined";
8572
+ readonly OpenBookingJoinConfirmed: "open_booking_join_confirmed";
8573
+ readonly WaitlistSpotAvailable: "waitlist_spot_available";
8574
+ readonly WaitlistConfirmed: "waitlist_confirmed";
8575
+ };
8576
+ export type NotificationType = typeof NotificationType[keyof typeof NotificationType];
8299
8577
  /**
8300
8578
  *
8301
8579
  * @export
@@ -13720,6 +13998,62 @@ export interface UserNextBookingSummary {
13720
13998
  */
13721
13999
  'club': BookingClubInfo | null;
13722
14000
  }
14001
+ /**
14002
+ *
14003
+ * @export
14004
+ * @interface UserNotificationsResponse
14005
+ */
14006
+ export interface UserNotificationsResponse {
14007
+ /**
14008
+ *
14009
+ * @type {Array<NotificationResponse>}
14010
+ * @memberof UserNotificationsResponse
14011
+ */
14012
+ 'notifications': Array<NotificationResponse>;
14013
+ /**
14014
+ *
14015
+ * @type {UserNotificationsResponseMeta}
14016
+ * @memberof UserNotificationsResponse
14017
+ */
14018
+ 'meta': UserNotificationsResponseMeta;
14019
+ }
14020
+ /**
14021
+ *
14022
+ * @export
14023
+ * @interface UserNotificationsResponseMeta
14024
+ */
14025
+ export interface UserNotificationsResponseMeta {
14026
+ /**
14027
+ *
14028
+ * @type {number}
14029
+ * @memberof UserNotificationsResponseMeta
14030
+ */
14031
+ 'unreadCount': number;
14032
+ /**
14033
+ *
14034
+ * @type {boolean}
14035
+ * @memberof UserNotificationsResponseMeta
14036
+ */
14037
+ 'hasMore': boolean;
14038
+ /**
14039
+ *
14040
+ * @type {number}
14041
+ * @memberof UserNotificationsResponseMeta
14042
+ */
14043
+ 'total': number;
14044
+ /**
14045
+ *
14046
+ * @type {number}
14047
+ * @memberof UserNotificationsResponseMeta
14048
+ */
14049
+ 'skip': number;
14050
+ /**
14051
+ *
14052
+ * @type {number}
14053
+ * @memberof UserNotificationsResponseMeta
14054
+ */
14055
+ 'limit': number;
14056
+ }
13723
14057
  /**
13724
14058
  *
13725
14059
  * @export
@@ -23261,6 +23595,15 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
23261
23595
  * @throws {RequiredError}
23262
23596
  */
23263
23597
  getUserEvents: (limit?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23598
+ /**
23599
+ *
23600
+ * @param {number} [limit]
23601
+ * @param {number} [skip]
23602
+ * @param {any} [includeRead]
23603
+ * @param {*} [options] Override http request option.
23604
+ * @throws {RequiredError}
23605
+ */
23606
+ getUserNotifications: (limit?: number, skip?: number, includeRead?: any, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23264
23607
  /**
23265
23608
  *
23266
23609
  * @param {string} id
@@ -23305,6 +23648,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
23305
23648
  * @throws {RequiredError}
23306
23649
  */
23307
23650
  loginClubMember: (loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23651
+ /**
23652
+ *
23653
+ * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
23654
+ * @param {*} [options] Override http request option.
23655
+ * @throws {RequiredError}
23656
+ */
23657
+ markNotificationsRead: (markNotificationsReadRequest: MarkNotificationsReadRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23308
23658
  /**
23309
23659
  *
23310
23660
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -23596,6 +23946,15 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
23596
23946
  * @throws {RequiredError}
23597
23947
  */
23598
23948
  getUserEvents(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserEventsResponse>>;
23949
+ /**
23950
+ *
23951
+ * @param {number} [limit]
23952
+ * @param {number} [skip]
23953
+ * @param {any} [includeRead]
23954
+ * @param {*} [options] Override http request option.
23955
+ * @throws {RequiredError}
23956
+ */
23957
+ getUserNotifications(limit?: number, skip?: number, includeRead?: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserNotificationsResponse>>;
23599
23958
  /**
23600
23959
  *
23601
23960
  * @param {string} id
@@ -23640,6 +23999,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
23640
23999
  * @throws {RequiredError}
23641
24000
  */
23642
24001
  loginClubMember(loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
24002
+ /**
24003
+ *
24004
+ * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
24005
+ * @param {*} [options] Override http request option.
24006
+ * @throws {RequiredError}
24007
+ */
24008
+ markNotificationsRead(markNotificationsReadRequest: MarkNotificationsReadRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MarkNotificationsReadResponse>>;
23643
24009
  /**
23644
24010
  *
23645
24011
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -23921,6 +24287,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
23921
24287
  * @throws {RequiredError}
23922
24288
  */
23923
24289
  getUserEvents(requestParameters?: UsersApiGetUserEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserEventsResponse>;
24290
+ /**
24291
+ *
24292
+ * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
24293
+ * @param {*} [options] Override http request option.
24294
+ * @throws {RequiredError}
24295
+ */
24296
+ getUserNotifications(requestParameters?: UsersApiGetUserNotificationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserNotificationsResponse>;
23924
24297
  /**
23925
24298
  *
23926
24299
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -23956,6 +24329,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
23956
24329
  * @throws {RequiredError}
23957
24330
  */
23958
24331
  loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
24332
+ /**
24333
+ *
24334
+ * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
24335
+ * @param {*} [options] Override http request option.
24336
+ * @throws {RequiredError}
24337
+ */
24338
+ markNotificationsRead(requestParameters: UsersApiMarkNotificationsReadRequest, options?: RawAxiosRequestConfig): AxiosPromise<MarkNotificationsReadResponse>;
23959
24339
  /**
23960
24340
  *
23961
24341
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -24305,6 +24685,31 @@ export interface UsersApiGetUserEventsRequest {
24305
24685
  */
24306
24686
  readonly skip?: number;
24307
24687
  }
24688
+ /**
24689
+ * Request parameters for getUserNotifications operation in UsersApi.
24690
+ * @export
24691
+ * @interface UsersApiGetUserNotificationsRequest
24692
+ */
24693
+ export interface UsersApiGetUserNotificationsRequest {
24694
+ /**
24695
+ *
24696
+ * @type {number}
24697
+ * @memberof UsersApiGetUserNotifications
24698
+ */
24699
+ readonly limit?: number;
24700
+ /**
24701
+ *
24702
+ * @type {number}
24703
+ * @memberof UsersApiGetUserNotifications
24704
+ */
24705
+ readonly skip?: number;
24706
+ /**
24707
+ *
24708
+ * @type {any}
24709
+ * @memberof UsersApiGetUserNotifications
24710
+ */
24711
+ readonly includeRead?: any;
24712
+ }
24308
24713
  /**
24309
24714
  * Request parameters for getUserProfileById operation in UsersApi.
24310
24715
  * @export
@@ -24424,6 +24829,19 @@ export interface UsersApiLoginClubMemberRequest {
24424
24829
  */
24425
24830
  readonly loginRequestBody: LoginRequestBody;
24426
24831
  }
24832
+ /**
24833
+ * Request parameters for markNotificationsRead operation in UsersApi.
24834
+ * @export
24835
+ * @interface UsersApiMarkNotificationsReadRequest
24836
+ */
24837
+ export interface UsersApiMarkNotificationsReadRequest {
24838
+ /**
24839
+ *
24840
+ * @type {MarkNotificationsReadRequest}
24841
+ * @memberof UsersApiMarkNotificationsRead
24842
+ */
24843
+ readonly markNotificationsReadRequest: MarkNotificationsReadRequest;
24844
+ }
24427
24845
  /**
24428
24846
  * Request parameters for refreshToken operation in UsersApi.
24429
24847
  * @export
@@ -24843,6 +25261,14 @@ export declare class UsersApi extends BaseAPI {
24843
25261
  * @memberof UsersApi
24844
25262
  */
24845
25263
  getUserEvents(requestParameters?: UsersApiGetUserEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserEventsResponse, any, {}>>;
25264
+ /**
25265
+ *
25266
+ * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
25267
+ * @param {*} [options] Override http request option.
25268
+ * @throws {RequiredError}
25269
+ * @memberof UsersApi
25270
+ */
25271
+ getUserNotifications(requestParameters?: UsersApiGetUserNotificationsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserNotificationsResponse, any, {}>>;
24846
25272
  /**
24847
25273
  *
24848
25274
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -24883,6 +25309,14 @@ export declare class UsersApi extends BaseAPI {
24883
25309
  * @memberof UsersApi
24884
25310
  */
24885
25311
  loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
25312
+ /**
25313
+ *
25314
+ * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
25315
+ * @param {*} [options] Override http request option.
25316
+ * @throws {RequiredError}
25317
+ * @memberof UsersApi
25318
+ */
25319
+ markNotificationsRead(requestParameters: UsersApiMarkNotificationsReadRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MarkNotificationsReadResponse, any, {}>>;
24886
25320
  /**
24887
25321
  *
24888
25322
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.