@tennac-booking/sdk 1.0.218 → 1.0.220
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 +6 -0
- package/README.md +6 -0
- package/api.ts +250 -0
- package/dist/api.d.ts +239 -0
- package/dist/api.js +21 -5
- package/dist/esm/api.d.ts +239 -0
- package/dist/esm/api.js +16 -0
- package/docs/NotificationActorType.md +12 -0
- package/docs/NotificationInitiator.md +28 -0
- package/docs/NotificationParticipantPreview.md +2 -0
- package/docs/NotificationPreview.md +18 -0
- package/docs/NotificationResponse.md +10 -0
- package/docs/NotificationResponseClub.md +24 -0
- package/docs/NotificationSlotPreview.md +24 -0
- package/docs/NotificationSportPreview.md +24 -0
- package/docs/NotificationTargetPreview.md +22 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -260,10 +260,16 @@ docs/MonthlyTurnoverResponse.md
|
|
|
260
260
|
docs/MyClubInfosResponse.md
|
|
261
261
|
docs/NoShowFeeResponse.md
|
|
262
262
|
docs/NoShowRateResponse.md
|
|
263
|
+
docs/NotificationActorType.md
|
|
263
264
|
docs/NotificationData.md
|
|
265
|
+
docs/NotificationInitiator.md
|
|
264
266
|
docs/NotificationParticipantPreview.md
|
|
265
267
|
docs/NotificationPreview.md
|
|
266
268
|
docs/NotificationResponse.md
|
|
269
|
+
docs/NotificationResponseClub.md
|
|
270
|
+
docs/NotificationSlotPreview.md
|
|
271
|
+
docs/NotificationSportPreview.md
|
|
272
|
+
docs/NotificationTargetPreview.md
|
|
267
273
|
docs/NotificationType.md
|
|
268
274
|
docs/OffPeakRule.md
|
|
269
275
|
docs/OpenBookingBasePriceResponse.md
|
package/README.md
CHANGED
|
@@ -531,10 +531,16 @@ Class | Method | HTTP request | Description
|
|
|
531
531
|
- [MyClubInfosResponse](docs/MyClubInfosResponse.md)
|
|
532
532
|
- [NoShowFeeResponse](docs/NoShowFeeResponse.md)
|
|
533
533
|
- [NoShowRateResponse](docs/NoShowRateResponse.md)
|
|
534
|
+
- [NotificationActorType](docs/NotificationActorType.md)
|
|
534
535
|
- [NotificationData](docs/NotificationData.md)
|
|
536
|
+
- [NotificationInitiator](docs/NotificationInitiator.md)
|
|
535
537
|
- [NotificationParticipantPreview](docs/NotificationParticipantPreview.md)
|
|
536
538
|
- [NotificationPreview](docs/NotificationPreview.md)
|
|
537
539
|
- [NotificationResponse](docs/NotificationResponse.md)
|
|
540
|
+
- [NotificationResponseClub](docs/NotificationResponseClub.md)
|
|
541
|
+
- [NotificationSlotPreview](docs/NotificationSlotPreview.md)
|
|
542
|
+
- [NotificationSportPreview](docs/NotificationSportPreview.md)
|
|
543
|
+
- [NotificationTargetPreview](docs/NotificationTargetPreview.md)
|
|
538
544
|
- [NotificationType](docs/NotificationType.md)
|
|
539
545
|
- [OffPeakRule](docs/OffPeakRule.md)
|
|
540
546
|
- [OpenBookingBasePriceResponse](docs/OpenBookingBasePriceResponse.md)
|
package/api.ts
CHANGED
|
@@ -8491,6 +8491,21 @@ export interface NoShowRateResponse {
|
|
|
8491
8491
|
*/
|
|
8492
8492
|
'rate': number;
|
|
8493
8493
|
}
|
|
8494
|
+
/**
|
|
8495
|
+
*
|
|
8496
|
+
* @export
|
|
8497
|
+
* @enum {string}
|
|
8498
|
+
*/
|
|
8499
|
+
|
|
8500
|
+
export const NotificationActorType = {
|
|
8501
|
+
User: 'user',
|
|
8502
|
+
Club: 'club',
|
|
8503
|
+
System: 'system'
|
|
8504
|
+
} as const;
|
|
8505
|
+
|
|
8506
|
+
export type NotificationActorType = typeof NotificationActorType[keyof typeof NotificationActorType];
|
|
8507
|
+
|
|
8508
|
+
|
|
8494
8509
|
/**
|
|
8495
8510
|
*
|
|
8496
8511
|
* @export
|
|
@@ -8510,6 +8525,45 @@ export interface NotificationData {
|
|
|
8510
8525
|
*/
|
|
8511
8526
|
'params'?: { [key: string]: string; };
|
|
8512
8527
|
}
|
|
8528
|
+
/**
|
|
8529
|
+
*
|
|
8530
|
+
* @export
|
|
8531
|
+
* @interface NotificationInitiator
|
|
8532
|
+
*/
|
|
8533
|
+
export interface NotificationInitiator {
|
|
8534
|
+
/**
|
|
8535
|
+
*
|
|
8536
|
+
* @type {string}
|
|
8537
|
+
* @memberof NotificationInitiator
|
|
8538
|
+
*/
|
|
8539
|
+
'id'?: string;
|
|
8540
|
+
/**
|
|
8541
|
+
*
|
|
8542
|
+
* @type {NotificationActorType}
|
|
8543
|
+
* @memberof NotificationInitiator
|
|
8544
|
+
*/
|
|
8545
|
+
'type': NotificationActorType;
|
|
8546
|
+
/**
|
|
8547
|
+
*
|
|
8548
|
+
* @type {string}
|
|
8549
|
+
* @memberof NotificationInitiator
|
|
8550
|
+
*/
|
|
8551
|
+
'name'?: string;
|
|
8552
|
+
/**
|
|
8553
|
+
*
|
|
8554
|
+
* @type {string}
|
|
8555
|
+
* @memberof NotificationInitiator
|
|
8556
|
+
*/
|
|
8557
|
+
'picture'?: string;
|
|
8558
|
+
/**
|
|
8559
|
+
*
|
|
8560
|
+
* @type {boolean}
|
|
8561
|
+
* @memberof NotificationInitiator
|
|
8562
|
+
*/
|
|
8563
|
+
'isCurrentUser'?: boolean;
|
|
8564
|
+
}
|
|
8565
|
+
|
|
8566
|
+
|
|
8513
8567
|
/**
|
|
8514
8568
|
*
|
|
8515
8569
|
* @export
|
|
@@ -8528,6 +8582,12 @@ export interface NotificationParticipantPreview {
|
|
|
8528
8582
|
* @memberof NotificationParticipantPreview
|
|
8529
8583
|
*/
|
|
8530
8584
|
'name'?: string;
|
|
8585
|
+
/**
|
|
8586
|
+
*
|
|
8587
|
+
* @type {string}
|
|
8588
|
+
* @memberof NotificationParticipantPreview
|
|
8589
|
+
*/
|
|
8590
|
+
'picture'?: string;
|
|
8531
8591
|
}
|
|
8532
8592
|
/**
|
|
8533
8593
|
*
|
|
@@ -8571,6 +8631,12 @@ export interface NotificationPreview {
|
|
|
8571
8631
|
* @memberof NotificationPreview
|
|
8572
8632
|
*/
|
|
8573
8633
|
'clubPicture'?: string;
|
|
8634
|
+
/**
|
|
8635
|
+
*
|
|
8636
|
+
* @type {string}
|
|
8637
|
+
* @memberof NotificationPreview
|
|
8638
|
+
*/
|
|
8639
|
+
'courtId'?: string;
|
|
8574
8640
|
/**
|
|
8575
8641
|
*
|
|
8576
8642
|
* @type {string}
|
|
@@ -8583,6 +8649,24 @@ export interface NotificationPreview {
|
|
|
8583
8649
|
* @memberof NotificationPreview
|
|
8584
8650
|
*/
|
|
8585
8651
|
'eventName'?: string;
|
|
8652
|
+
/**
|
|
8653
|
+
*
|
|
8654
|
+
* @type {string}
|
|
8655
|
+
* @memberof NotificationPreview
|
|
8656
|
+
*/
|
|
8657
|
+
'sportId'?: string;
|
|
8658
|
+
/**
|
|
8659
|
+
*
|
|
8660
|
+
* @type {string}
|
|
8661
|
+
* @memberof NotificationPreview
|
|
8662
|
+
*/
|
|
8663
|
+
'sportName'?: string;
|
|
8664
|
+
/**
|
|
8665
|
+
*
|
|
8666
|
+
* @type {string}
|
|
8667
|
+
* @memberof NotificationPreview
|
|
8668
|
+
*/
|
|
8669
|
+
'sportKey'?: string;
|
|
8586
8670
|
/**
|
|
8587
8671
|
*
|
|
8588
8672
|
* @type {string}
|
|
@@ -8661,7 +8745,39 @@ export interface NotificationPreview {
|
|
|
8661
8745
|
* @memberof NotificationPreview
|
|
8662
8746
|
*/
|
|
8663
8747
|
'participants'?: Array<NotificationParticipantPreview>;
|
|
8748
|
+
/**
|
|
8749
|
+
*
|
|
8750
|
+
* @type {string}
|
|
8751
|
+
* @memberof NotificationPreview
|
|
8752
|
+
*/
|
|
8753
|
+
'initiatorUserId'?: string;
|
|
8754
|
+
/**
|
|
8755
|
+
*
|
|
8756
|
+
* @type {string}
|
|
8757
|
+
* @memberof NotificationPreview
|
|
8758
|
+
*/
|
|
8759
|
+
'initiatorClubId'?: string;
|
|
8760
|
+
/**
|
|
8761
|
+
*
|
|
8762
|
+
* @type {NotificationActorType}
|
|
8763
|
+
* @memberof NotificationPreview
|
|
8764
|
+
*/
|
|
8765
|
+
'initiatorType'?: NotificationActorType;
|
|
8766
|
+
/**
|
|
8767
|
+
*
|
|
8768
|
+
* @type {string}
|
|
8769
|
+
* @memberof NotificationPreview
|
|
8770
|
+
*/
|
|
8771
|
+
'initiatorName'?: string;
|
|
8772
|
+
/**
|
|
8773
|
+
*
|
|
8774
|
+
* @type {string}
|
|
8775
|
+
* @memberof NotificationPreview
|
|
8776
|
+
*/
|
|
8777
|
+
'initiatorPicture'?: string;
|
|
8664
8778
|
}
|
|
8779
|
+
|
|
8780
|
+
|
|
8665
8781
|
/**
|
|
8666
8782
|
*
|
|
8667
8783
|
* @export
|
|
@@ -8704,6 +8820,36 @@ export interface NotificationResponse {
|
|
|
8704
8820
|
* @memberof NotificationResponse
|
|
8705
8821
|
*/
|
|
8706
8822
|
'preview'?: NotificationPreview;
|
|
8823
|
+
/**
|
|
8824
|
+
*
|
|
8825
|
+
* @type {NotificationTargetPreview}
|
|
8826
|
+
* @memberof NotificationResponse
|
|
8827
|
+
*/
|
|
8828
|
+
'target'?: NotificationTargetPreview;
|
|
8829
|
+
/**
|
|
8830
|
+
*
|
|
8831
|
+
* @type {NotificationInitiator}
|
|
8832
|
+
* @memberof NotificationResponse
|
|
8833
|
+
*/
|
|
8834
|
+
'initiator'?: NotificationInitiator;
|
|
8835
|
+
/**
|
|
8836
|
+
*
|
|
8837
|
+
* @type {NotificationSportPreview}
|
|
8838
|
+
* @memberof NotificationResponse
|
|
8839
|
+
*/
|
|
8840
|
+
'sport'?: NotificationSportPreview;
|
|
8841
|
+
/**
|
|
8842
|
+
*
|
|
8843
|
+
* @type {NotificationSlotPreview}
|
|
8844
|
+
* @memberof NotificationResponse
|
|
8845
|
+
*/
|
|
8846
|
+
'slot'?: NotificationSlotPreview;
|
|
8847
|
+
/**
|
|
8848
|
+
*
|
|
8849
|
+
* @type {NotificationResponseClub}
|
|
8850
|
+
* @memberof NotificationResponse
|
|
8851
|
+
*/
|
|
8852
|
+
'club'?: NotificationResponseClub;
|
|
8707
8853
|
/**
|
|
8708
8854
|
*
|
|
8709
8855
|
* @type {string}
|
|
@@ -8725,6 +8871,110 @@ export interface NotificationResponse {
|
|
|
8725
8871
|
}
|
|
8726
8872
|
|
|
8727
8873
|
|
|
8874
|
+
/**
|
|
8875
|
+
*
|
|
8876
|
+
* @export
|
|
8877
|
+
* @interface NotificationResponseClub
|
|
8878
|
+
*/
|
|
8879
|
+
export interface NotificationResponseClub {
|
|
8880
|
+
/**
|
|
8881
|
+
*
|
|
8882
|
+
* @type {string}
|
|
8883
|
+
* @memberof NotificationResponseClub
|
|
8884
|
+
*/
|
|
8885
|
+
'picture'?: string;
|
|
8886
|
+
/**
|
|
8887
|
+
*
|
|
8888
|
+
* @type {string}
|
|
8889
|
+
* @memberof NotificationResponseClub
|
|
8890
|
+
*/
|
|
8891
|
+
'name'?: string;
|
|
8892
|
+
/**
|
|
8893
|
+
*
|
|
8894
|
+
* @type {string}
|
|
8895
|
+
* @memberof NotificationResponseClub
|
|
8896
|
+
*/
|
|
8897
|
+
'id'?: string;
|
|
8898
|
+
}
|
|
8899
|
+
/**
|
|
8900
|
+
*
|
|
8901
|
+
* @export
|
|
8902
|
+
* @interface NotificationSlotPreview
|
|
8903
|
+
*/
|
|
8904
|
+
export interface NotificationSlotPreview {
|
|
8905
|
+
/**
|
|
8906
|
+
*
|
|
8907
|
+
* @type {string}
|
|
8908
|
+
* @memberof NotificationSlotPreview
|
|
8909
|
+
*/
|
|
8910
|
+
'startDate'?: string;
|
|
8911
|
+
/**
|
|
8912
|
+
*
|
|
8913
|
+
* @type {string}
|
|
8914
|
+
* @memberof NotificationSlotPreview
|
|
8915
|
+
*/
|
|
8916
|
+
'endDate'?: string;
|
|
8917
|
+
/**
|
|
8918
|
+
*
|
|
8919
|
+
* @type {string}
|
|
8920
|
+
* @memberof NotificationSlotPreview
|
|
8921
|
+
*/
|
|
8922
|
+
'courtName'?: string;
|
|
8923
|
+
}
|
|
8924
|
+
/**
|
|
8925
|
+
*
|
|
8926
|
+
* @export
|
|
8927
|
+
* @interface NotificationSportPreview
|
|
8928
|
+
*/
|
|
8929
|
+
export interface NotificationSportPreview {
|
|
8930
|
+
/**
|
|
8931
|
+
*
|
|
8932
|
+
* @type {string}
|
|
8933
|
+
* @memberof NotificationSportPreview
|
|
8934
|
+
*/
|
|
8935
|
+
'id'?: string;
|
|
8936
|
+
/**
|
|
8937
|
+
*
|
|
8938
|
+
* @type {string}
|
|
8939
|
+
* @memberof NotificationSportPreview
|
|
8940
|
+
*/
|
|
8941
|
+
'name'?: string;
|
|
8942
|
+
/**
|
|
8943
|
+
*
|
|
8944
|
+
* @type {string}
|
|
8945
|
+
* @memberof NotificationSportPreview
|
|
8946
|
+
*/
|
|
8947
|
+
'key'?: string;
|
|
8948
|
+
}
|
|
8949
|
+
/**
|
|
8950
|
+
*
|
|
8951
|
+
* @export
|
|
8952
|
+
* @interface NotificationTargetPreview
|
|
8953
|
+
*/
|
|
8954
|
+
export interface NotificationTargetPreview {
|
|
8955
|
+
/**
|
|
8956
|
+
*
|
|
8957
|
+
* @type {string}
|
|
8958
|
+
* @memberof NotificationTargetPreview
|
|
8959
|
+
*/
|
|
8960
|
+
'type': NotificationTargetPreviewTypeEnum;
|
|
8961
|
+
/**
|
|
8962
|
+
*
|
|
8963
|
+
* @type {string}
|
|
8964
|
+
* @memberof NotificationTargetPreview
|
|
8965
|
+
*/
|
|
8966
|
+
'id'?: string;
|
|
8967
|
+
}
|
|
8968
|
+
|
|
8969
|
+
export const NotificationTargetPreviewTypeEnum = {
|
|
8970
|
+
Booking: 'booking',
|
|
8971
|
+
Event: 'event',
|
|
8972
|
+
Waitlist: 'waitlist',
|
|
8973
|
+
Unknown: 'unknown'
|
|
8974
|
+
} as const;
|
|
8975
|
+
|
|
8976
|
+
export type NotificationTargetPreviewTypeEnum = typeof NotificationTargetPreviewTypeEnum[keyof typeof NotificationTargetPreviewTypeEnum];
|
|
8977
|
+
|
|
8728
8978
|
/**
|
|
8729
8979
|
*
|
|
8730
8980
|
* @export
|
package/dist/api.d.ts
CHANGED
|
@@ -8365,6 +8365,17 @@ export interface NoShowRateResponse {
|
|
|
8365
8365
|
*/
|
|
8366
8366
|
'rate': number;
|
|
8367
8367
|
}
|
|
8368
|
+
/**
|
|
8369
|
+
*
|
|
8370
|
+
* @export
|
|
8371
|
+
* @enum {string}
|
|
8372
|
+
*/
|
|
8373
|
+
export declare const NotificationActorType: {
|
|
8374
|
+
readonly User: "user";
|
|
8375
|
+
readonly Club: "club";
|
|
8376
|
+
readonly System: "system";
|
|
8377
|
+
};
|
|
8378
|
+
export type NotificationActorType = typeof NotificationActorType[keyof typeof NotificationActorType];
|
|
8368
8379
|
/**
|
|
8369
8380
|
*
|
|
8370
8381
|
* @export
|
|
@@ -8386,6 +8397,43 @@ export interface NotificationData {
|
|
|
8386
8397
|
[key: string]: string;
|
|
8387
8398
|
};
|
|
8388
8399
|
}
|
|
8400
|
+
/**
|
|
8401
|
+
*
|
|
8402
|
+
* @export
|
|
8403
|
+
* @interface NotificationInitiator
|
|
8404
|
+
*/
|
|
8405
|
+
export interface NotificationInitiator {
|
|
8406
|
+
/**
|
|
8407
|
+
*
|
|
8408
|
+
* @type {string}
|
|
8409
|
+
* @memberof NotificationInitiator
|
|
8410
|
+
*/
|
|
8411
|
+
'id'?: string;
|
|
8412
|
+
/**
|
|
8413
|
+
*
|
|
8414
|
+
* @type {NotificationActorType}
|
|
8415
|
+
* @memberof NotificationInitiator
|
|
8416
|
+
*/
|
|
8417
|
+
'type': NotificationActorType;
|
|
8418
|
+
/**
|
|
8419
|
+
*
|
|
8420
|
+
* @type {string}
|
|
8421
|
+
* @memberof NotificationInitiator
|
|
8422
|
+
*/
|
|
8423
|
+
'name'?: string;
|
|
8424
|
+
/**
|
|
8425
|
+
*
|
|
8426
|
+
* @type {string}
|
|
8427
|
+
* @memberof NotificationInitiator
|
|
8428
|
+
*/
|
|
8429
|
+
'picture'?: string;
|
|
8430
|
+
/**
|
|
8431
|
+
*
|
|
8432
|
+
* @type {boolean}
|
|
8433
|
+
* @memberof NotificationInitiator
|
|
8434
|
+
*/
|
|
8435
|
+
'isCurrentUser'?: boolean;
|
|
8436
|
+
}
|
|
8389
8437
|
/**
|
|
8390
8438
|
*
|
|
8391
8439
|
* @export
|
|
@@ -8404,6 +8452,12 @@ export interface NotificationParticipantPreview {
|
|
|
8404
8452
|
* @memberof NotificationParticipantPreview
|
|
8405
8453
|
*/
|
|
8406
8454
|
'name'?: string;
|
|
8455
|
+
/**
|
|
8456
|
+
*
|
|
8457
|
+
* @type {string}
|
|
8458
|
+
* @memberof NotificationParticipantPreview
|
|
8459
|
+
*/
|
|
8460
|
+
'picture'?: string;
|
|
8407
8461
|
}
|
|
8408
8462
|
/**
|
|
8409
8463
|
*
|
|
@@ -8447,6 +8501,12 @@ export interface NotificationPreview {
|
|
|
8447
8501
|
* @memberof NotificationPreview
|
|
8448
8502
|
*/
|
|
8449
8503
|
'clubPicture'?: string;
|
|
8504
|
+
/**
|
|
8505
|
+
*
|
|
8506
|
+
* @type {string}
|
|
8507
|
+
* @memberof NotificationPreview
|
|
8508
|
+
*/
|
|
8509
|
+
'courtId'?: string;
|
|
8450
8510
|
/**
|
|
8451
8511
|
*
|
|
8452
8512
|
* @type {string}
|
|
@@ -8459,6 +8519,24 @@ export interface NotificationPreview {
|
|
|
8459
8519
|
* @memberof NotificationPreview
|
|
8460
8520
|
*/
|
|
8461
8521
|
'eventName'?: string;
|
|
8522
|
+
/**
|
|
8523
|
+
*
|
|
8524
|
+
* @type {string}
|
|
8525
|
+
* @memberof NotificationPreview
|
|
8526
|
+
*/
|
|
8527
|
+
'sportId'?: string;
|
|
8528
|
+
/**
|
|
8529
|
+
*
|
|
8530
|
+
* @type {string}
|
|
8531
|
+
* @memberof NotificationPreview
|
|
8532
|
+
*/
|
|
8533
|
+
'sportName'?: string;
|
|
8534
|
+
/**
|
|
8535
|
+
*
|
|
8536
|
+
* @type {string}
|
|
8537
|
+
* @memberof NotificationPreview
|
|
8538
|
+
*/
|
|
8539
|
+
'sportKey'?: string;
|
|
8462
8540
|
/**
|
|
8463
8541
|
*
|
|
8464
8542
|
* @type {string}
|
|
@@ -8537,6 +8615,36 @@ export interface NotificationPreview {
|
|
|
8537
8615
|
* @memberof NotificationPreview
|
|
8538
8616
|
*/
|
|
8539
8617
|
'participants'?: Array<NotificationParticipantPreview>;
|
|
8618
|
+
/**
|
|
8619
|
+
*
|
|
8620
|
+
* @type {string}
|
|
8621
|
+
* @memberof NotificationPreview
|
|
8622
|
+
*/
|
|
8623
|
+
'initiatorUserId'?: string;
|
|
8624
|
+
/**
|
|
8625
|
+
*
|
|
8626
|
+
* @type {string}
|
|
8627
|
+
* @memberof NotificationPreview
|
|
8628
|
+
*/
|
|
8629
|
+
'initiatorClubId'?: string;
|
|
8630
|
+
/**
|
|
8631
|
+
*
|
|
8632
|
+
* @type {NotificationActorType}
|
|
8633
|
+
* @memberof NotificationPreview
|
|
8634
|
+
*/
|
|
8635
|
+
'initiatorType'?: NotificationActorType;
|
|
8636
|
+
/**
|
|
8637
|
+
*
|
|
8638
|
+
* @type {string}
|
|
8639
|
+
* @memberof NotificationPreview
|
|
8640
|
+
*/
|
|
8641
|
+
'initiatorName'?: string;
|
|
8642
|
+
/**
|
|
8643
|
+
*
|
|
8644
|
+
* @type {string}
|
|
8645
|
+
* @memberof NotificationPreview
|
|
8646
|
+
*/
|
|
8647
|
+
'initiatorPicture'?: string;
|
|
8540
8648
|
}
|
|
8541
8649
|
/**
|
|
8542
8650
|
*
|
|
@@ -8580,6 +8688,36 @@ export interface NotificationResponse {
|
|
|
8580
8688
|
* @memberof NotificationResponse
|
|
8581
8689
|
*/
|
|
8582
8690
|
'preview'?: NotificationPreview;
|
|
8691
|
+
/**
|
|
8692
|
+
*
|
|
8693
|
+
* @type {NotificationTargetPreview}
|
|
8694
|
+
* @memberof NotificationResponse
|
|
8695
|
+
*/
|
|
8696
|
+
'target'?: NotificationTargetPreview;
|
|
8697
|
+
/**
|
|
8698
|
+
*
|
|
8699
|
+
* @type {NotificationInitiator}
|
|
8700
|
+
* @memberof NotificationResponse
|
|
8701
|
+
*/
|
|
8702
|
+
'initiator'?: NotificationInitiator;
|
|
8703
|
+
/**
|
|
8704
|
+
*
|
|
8705
|
+
* @type {NotificationSportPreview}
|
|
8706
|
+
* @memberof NotificationResponse
|
|
8707
|
+
*/
|
|
8708
|
+
'sport'?: NotificationSportPreview;
|
|
8709
|
+
/**
|
|
8710
|
+
*
|
|
8711
|
+
* @type {NotificationSlotPreview}
|
|
8712
|
+
* @memberof NotificationResponse
|
|
8713
|
+
*/
|
|
8714
|
+
'slot'?: NotificationSlotPreview;
|
|
8715
|
+
/**
|
|
8716
|
+
*
|
|
8717
|
+
* @type {NotificationResponseClub}
|
|
8718
|
+
* @memberof NotificationResponse
|
|
8719
|
+
*/
|
|
8720
|
+
'club'?: NotificationResponseClub;
|
|
8583
8721
|
/**
|
|
8584
8722
|
*
|
|
8585
8723
|
* @type {string}
|
|
@@ -8599,6 +8737,107 @@ export interface NotificationResponse {
|
|
|
8599
8737
|
*/
|
|
8600
8738
|
'isRead': boolean;
|
|
8601
8739
|
}
|
|
8740
|
+
/**
|
|
8741
|
+
*
|
|
8742
|
+
* @export
|
|
8743
|
+
* @interface NotificationResponseClub
|
|
8744
|
+
*/
|
|
8745
|
+
export interface NotificationResponseClub {
|
|
8746
|
+
/**
|
|
8747
|
+
*
|
|
8748
|
+
* @type {string}
|
|
8749
|
+
* @memberof NotificationResponseClub
|
|
8750
|
+
*/
|
|
8751
|
+
'picture'?: string;
|
|
8752
|
+
/**
|
|
8753
|
+
*
|
|
8754
|
+
* @type {string}
|
|
8755
|
+
* @memberof NotificationResponseClub
|
|
8756
|
+
*/
|
|
8757
|
+
'name'?: string;
|
|
8758
|
+
/**
|
|
8759
|
+
*
|
|
8760
|
+
* @type {string}
|
|
8761
|
+
* @memberof NotificationResponseClub
|
|
8762
|
+
*/
|
|
8763
|
+
'id'?: string;
|
|
8764
|
+
}
|
|
8765
|
+
/**
|
|
8766
|
+
*
|
|
8767
|
+
* @export
|
|
8768
|
+
* @interface NotificationSlotPreview
|
|
8769
|
+
*/
|
|
8770
|
+
export interface NotificationSlotPreview {
|
|
8771
|
+
/**
|
|
8772
|
+
*
|
|
8773
|
+
* @type {string}
|
|
8774
|
+
* @memberof NotificationSlotPreview
|
|
8775
|
+
*/
|
|
8776
|
+
'startDate'?: string;
|
|
8777
|
+
/**
|
|
8778
|
+
*
|
|
8779
|
+
* @type {string}
|
|
8780
|
+
* @memberof NotificationSlotPreview
|
|
8781
|
+
*/
|
|
8782
|
+
'endDate'?: string;
|
|
8783
|
+
/**
|
|
8784
|
+
*
|
|
8785
|
+
* @type {string}
|
|
8786
|
+
* @memberof NotificationSlotPreview
|
|
8787
|
+
*/
|
|
8788
|
+
'courtName'?: string;
|
|
8789
|
+
}
|
|
8790
|
+
/**
|
|
8791
|
+
*
|
|
8792
|
+
* @export
|
|
8793
|
+
* @interface NotificationSportPreview
|
|
8794
|
+
*/
|
|
8795
|
+
export interface NotificationSportPreview {
|
|
8796
|
+
/**
|
|
8797
|
+
*
|
|
8798
|
+
* @type {string}
|
|
8799
|
+
* @memberof NotificationSportPreview
|
|
8800
|
+
*/
|
|
8801
|
+
'id'?: string;
|
|
8802
|
+
/**
|
|
8803
|
+
*
|
|
8804
|
+
* @type {string}
|
|
8805
|
+
* @memberof NotificationSportPreview
|
|
8806
|
+
*/
|
|
8807
|
+
'name'?: string;
|
|
8808
|
+
/**
|
|
8809
|
+
*
|
|
8810
|
+
* @type {string}
|
|
8811
|
+
* @memberof NotificationSportPreview
|
|
8812
|
+
*/
|
|
8813
|
+
'key'?: string;
|
|
8814
|
+
}
|
|
8815
|
+
/**
|
|
8816
|
+
*
|
|
8817
|
+
* @export
|
|
8818
|
+
* @interface NotificationTargetPreview
|
|
8819
|
+
*/
|
|
8820
|
+
export interface NotificationTargetPreview {
|
|
8821
|
+
/**
|
|
8822
|
+
*
|
|
8823
|
+
* @type {string}
|
|
8824
|
+
* @memberof NotificationTargetPreview
|
|
8825
|
+
*/
|
|
8826
|
+
'type': NotificationTargetPreviewTypeEnum;
|
|
8827
|
+
/**
|
|
8828
|
+
*
|
|
8829
|
+
* @type {string}
|
|
8830
|
+
* @memberof NotificationTargetPreview
|
|
8831
|
+
*/
|
|
8832
|
+
'id'?: string;
|
|
8833
|
+
}
|
|
8834
|
+
export declare const NotificationTargetPreviewTypeEnum: {
|
|
8835
|
+
readonly Booking: "booking";
|
|
8836
|
+
readonly Event: "event";
|
|
8837
|
+
readonly Waitlist: "waitlist";
|
|
8838
|
+
readonly Unknown: "unknown";
|
|
8839
|
+
};
|
|
8840
|
+
export type NotificationTargetPreviewTypeEnum = typeof NotificationTargetPreviewTypeEnum[keyof typeof NotificationTargetPreviewTypeEnum];
|
|
8602
8841
|
/**
|
|
8603
8842
|
*
|
|
8604
8843
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -22,11 +22,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = void 0;
|
|
25
|
+
exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.SupportedLanguage = exports.StaffUserProfileResponseCreatedFromEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.QuickReservationCourtType = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.NotificationType = exports.NotificationTargetPreviewTypeEnum = exports.NotificationActorType = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.IUserAttributesCreatedFromEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.EventBookingDetailSummaryUserParticipationStatusEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CreateActualityRequestDiffusionModeEnum = exports.CourtStatus = exports.CourtEnvironment = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingSummaryUserParticipationStatusEnum = exports.BookingStatus = exports.BookingInvoicePaymentStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.ClubCustomerMeApi = exports.ClubCustomerMeApiFactory = exports.ClubCustomerMeApiFp = exports.ClubCustomerMeApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.WeekdayKey = exports.WaitListResponseTargetTypeEnum = exports.WaitListEntryWithPlayerTargetTypeEnum = exports.VisibilityType = exports.UserProfileResponseCreatedFromEnum = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = void 0;
|
|
27
|
+
exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ContactApi = exports.ContactApiFactory = exports.ContactApiFp = exports.ContactApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubCustomerStaffApi = exports.ClubCustomerStaffApiFactory = exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = void 0;
|
|
28
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.PublicEmailApi = exports.PublicEmailApiFactory = exports.PublicEmailApiFp = exports.PublicEmailApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = void 0;
|
|
29
|
+
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = void 0;
|
|
30
30
|
const axios_1 = require("axios");
|
|
31
31
|
// Some imports not used depending on template conditions
|
|
32
32
|
// @ts-ignore
|
|
@@ -252,6 +252,22 @@ exports.InvoiceStatusSETUPPENDING = {
|
|
|
252
252
|
exports.InvoiceStatusSETUPSUCCESS = {
|
|
253
253
|
SetupSuccess: 'setup_success'
|
|
254
254
|
};
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @export
|
|
258
|
+
* @enum {string}
|
|
259
|
+
*/
|
|
260
|
+
exports.NotificationActorType = {
|
|
261
|
+
User: 'user',
|
|
262
|
+
Club: 'club',
|
|
263
|
+
System: 'system'
|
|
264
|
+
};
|
|
265
|
+
exports.NotificationTargetPreviewTypeEnum = {
|
|
266
|
+
Booking: 'booking',
|
|
267
|
+
Event: 'event',
|
|
268
|
+
Waitlist: 'waitlist',
|
|
269
|
+
Unknown: 'unknown'
|
|
270
|
+
};
|
|
255
271
|
/**
|
|
256
272
|
*
|
|
257
273
|
* @export
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -8365,6 +8365,17 @@ export interface NoShowRateResponse {
|
|
|
8365
8365
|
*/
|
|
8366
8366
|
'rate': number;
|
|
8367
8367
|
}
|
|
8368
|
+
/**
|
|
8369
|
+
*
|
|
8370
|
+
* @export
|
|
8371
|
+
* @enum {string}
|
|
8372
|
+
*/
|
|
8373
|
+
export declare const NotificationActorType: {
|
|
8374
|
+
readonly User: "user";
|
|
8375
|
+
readonly Club: "club";
|
|
8376
|
+
readonly System: "system";
|
|
8377
|
+
};
|
|
8378
|
+
export type NotificationActorType = typeof NotificationActorType[keyof typeof NotificationActorType];
|
|
8368
8379
|
/**
|
|
8369
8380
|
*
|
|
8370
8381
|
* @export
|
|
@@ -8386,6 +8397,43 @@ export interface NotificationData {
|
|
|
8386
8397
|
[key: string]: string;
|
|
8387
8398
|
};
|
|
8388
8399
|
}
|
|
8400
|
+
/**
|
|
8401
|
+
*
|
|
8402
|
+
* @export
|
|
8403
|
+
* @interface NotificationInitiator
|
|
8404
|
+
*/
|
|
8405
|
+
export interface NotificationInitiator {
|
|
8406
|
+
/**
|
|
8407
|
+
*
|
|
8408
|
+
* @type {string}
|
|
8409
|
+
* @memberof NotificationInitiator
|
|
8410
|
+
*/
|
|
8411
|
+
'id'?: string;
|
|
8412
|
+
/**
|
|
8413
|
+
*
|
|
8414
|
+
* @type {NotificationActorType}
|
|
8415
|
+
* @memberof NotificationInitiator
|
|
8416
|
+
*/
|
|
8417
|
+
'type': NotificationActorType;
|
|
8418
|
+
/**
|
|
8419
|
+
*
|
|
8420
|
+
* @type {string}
|
|
8421
|
+
* @memberof NotificationInitiator
|
|
8422
|
+
*/
|
|
8423
|
+
'name'?: string;
|
|
8424
|
+
/**
|
|
8425
|
+
*
|
|
8426
|
+
* @type {string}
|
|
8427
|
+
* @memberof NotificationInitiator
|
|
8428
|
+
*/
|
|
8429
|
+
'picture'?: string;
|
|
8430
|
+
/**
|
|
8431
|
+
*
|
|
8432
|
+
* @type {boolean}
|
|
8433
|
+
* @memberof NotificationInitiator
|
|
8434
|
+
*/
|
|
8435
|
+
'isCurrentUser'?: boolean;
|
|
8436
|
+
}
|
|
8389
8437
|
/**
|
|
8390
8438
|
*
|
|
8391
8439
|
* @export
|
|
@@ -8404,6 +8452,12 @@ export interface NotificationParticipantPreview {
|
|
|
8404
8452
|
* @memberof NotificationParticipantPreview
|
|
8405
8453
|
*/
|
|
8406
8454
|
'name'?: string;
|
|
8455
|
+
/**
|
|
8456
|
+
*
|
|
8457
|
+
* @type {string}
|
|
8458
|
+
* @memberof NotificationParticipantPreview
|
|
8459
|
+
*/
|
|
8460
|
+
'picture'?: string;
|
|
8407
8461
|
}
|
|
8408
8462
|
/**
|
|
8409
8463
|
*
|
|
@@ -8447,6 +8501,12 @@ export interface NotificationPreview {
|
|
|
8447
8501
|
* @memberof NotificationPreview
|
|
8448
8502
|
*/
|
|
8449
8503
|
'clubPicture'?: string;
|
|
8504
|
+
/**
|
|
8505
|
+
*
|
|
8506
|
+
* @type {string}
|
|
8507
|
+
* @memberof NotificationPreview
|
|
8508
|
+
*/
|
|
8509
|
+
'courtId'?: string;
|
|
8450
8510
|
/**
|
|
8451
8511
|
*
|
|
8452
8512
|
* @type {string}
|
|
@@ -8459,6 +8519,24 @@ export interface NotificationPreview {
|
|
|
8459
8519
|
* @memberof NotificationPreview
|
|
8460
8520
|
*/
|
|
8461
8521
|
'eventName'?: string;
|
|
8522
|
+
/**
|
|
8523
|
+
*
|
|
8524
|
+
* @type {string}
|
|
8525
|
+
* @memberof NotificationPreview
|
|
8526
|
+
*/
|
|
8527
|
+
'sportId'?: string;
|
|
8528
|
+
/**
|
|
8529
|
+
*
|
|
8530
|
+
* @type {string}
|
|
8531
|
+
* @memberof NotificationPreview
|
|
8532
|
+
*/
|
|
8533
|
+
'sportName'?: string;
|
|
8534
|
+
/**
|
|
8535
|
+
*
|
|
8536
|
+
* @type {string}
|
|
8537
|
+
* @memberof NotificationPreview
|
|
8538
|
+
*/
|
|
8539
|
+
'sportKey'?: string;
|
|
8462
8540
|
/**
|
|
8463
8541
|
*
|
|
8464
8542
|
* @type {string}
|
|
@@ -8537,6 +8615,36 @@ export interface NotificationPreview {
|
|
|
8537
8615
|
* @memberof NotificationPreview
|
|
8538
8616
|
*/
|
|
8539
8617
|
'participants'?: Array<NotificationParticipantPreview>;
|
|
8618
|
+
/**
|
|
8619
|
+
*
|
|
8620
|
+
* @type {string}
|
|
8621
|
+
* @memberof NotificationPreview
|
|
8622
|
+
*/
|
|
8623
|
+
'initiatorUserId'?: string;
|
|
8624
|
+
/**
|
|
8625
|
+
*
|
|
8626
|
+
* @type {string}
|
|
8627
|
+
* @memberof NotificationPreview
|
|
8628
|
+
*/
|
|
8629
|
+
'initiatorClubId'?: string;
|
|
8630
|
+
/**
|
|
8631
|
+
*
|
|
8632
|
+
* @type {NotificationActorType}
|
|
8633
|
+
* @memberof NotificationPreview
|
|
8634
|
+
*/
|
|
8635
|
+
'initiatorType'?: NotificationActorType;
|
|
8636
|
+
/**
|
|
8637
|
+
*
|
|
8638
|
+
* @type {string}
|
|
8639
|
+
* @memberof NotificationPreview
|
|
8640
|
+
*/
|
|
8641
|
+
'initiatorName'?: string;
|
|
8642
|
+
/**
|
|
8643
|
+
*
|
|
8644
|
+
* @type {string}
|
|
8645
|
+
* @memberof NotificationPreview
|
|
8646
|
+
*/
|
|
8647
|
+
'initiatorPicture'?: string;
|
|
8540
8648
|
}
|
|
8541
8649
|
/**
|
|
8542
8650
|
*
|
|
@@ -8580,6 +8688,36 @@ export interface NotificationResponse {
|
|
|
8580
8688
|
* @memberof NotificationResponse
|
|
8581
8689
|
*/
|
|
8582
8690
|
'preview'?: NotificationPreview;
|
|
8691
|
+
/**
|
|
8692
|
+
*
|
|
8693
|
+
* @type {NotificationTargetPreview}
|
|
8694
|
+
* @memberof NotificationResponse
|
|
8695
|
+
*/
|
|
8696
|
+
'target'?: NotificationTargetPreview;
|
|
8697
|
+
/**
|
|
8698
|
+
*
|
|
8699
|
+
* @type {NotificationInitiator}
|
|
8700
|
+
* @memberof NotificationResponse
|
|
8701
|
+
*/
|
|
8702
|
+
'initiator'?: NotificationInitiator;
|
|
8703
|
+
/**
|
|
8704
|
+
*
|
|
8705
|
+
* @type {NotificationSportPreview}
|
|
8706
|
+
* @memberof NotificationResponse
|
|
8707
|
+
*/
|
|
8708
|
+
'sport'?: NotificationSportPreview;
|
|
8709
|
+
/**
|
|
8710
|
+
*
|
|
8711
|
+
* @type {NotificationSlotPreview}
|
|
8712
|
+
* @memberof NotificationResponse
|
|
8713
|
+
*/
|
|
8714
|
+
'slot'?: NotificationSlotPreview;
|
|
8715
|
+
/**
|
|
8716
|
+
*
|
|
8717
|
+
* @type {NotificationResponseClub}
|
|
8718
|
+
* @memberof NotificationResponse
|
|
8719
|
+
*/
|
|
8720
|
+
'club'?: NotificationResponseClub;
|
|
8583
8721
|
/**
|
|
8584
8722
|
*
|
|
8585
8723
|
* @type {string}
|
|
@@ -8599,6 +8737,107 @@ export interface NotificationResponse {
|
|
|
8599
8737
|
*/
|
|
8600
8738
|
'isRead': boolean;
|
|
8601
8739
|
}
|
|
8740
|
+
/**
|
|
8741
|
+
*
|
|
8742
|
+
* @export
|
|
8743
|
+
* @interface NotificationResponseClub
|
|
8744
|
+
*/
|
|
8745
|
+
export interface NotificationResponseClub {
|
|
8746
|
+
/**
|
|
8747
|
+
*
|
|
8748
|
+
* @type {string}
|
|
8749
|
+
* @memberof NotificationResponseClub
|
|
8750
|
+
*/
|
|
8751
|
+
'picture'?: string;
|
|
8752
|
+
/**
|
|
8753
|
+
*
|
|
8754
|
+
* @type {string}
|
|
8755
|
+
* @memberof NotificationResponseClub
|
|
8756
|
+
*/
|
|
8757
|
+
'name'?: string;
|
|
8758
|
+
/**
|
|
8759
|
+
*
|
|
8760
|
+
* @type {string}
|
|
8761
|
+
* @memberof NotificationResponseClub
|
|
8762
|
+
*/
|
|
8763
|
+
'id'?: string;
|
|
8764
|
+
}
|
|
8765
|
+
/**
|
|
8766
|
+
*
|
|
8767
|
+
* @export
|
|
8768
|
+
* @interface NotificationSlotPreview
|
|
8769
|
+
*/
|
|
8770
|
+
export interface NotificationSlotPreview {
|
|
8771
|
+
/**
|
|
8772
|
+
*
|
|
8773
|
+
* @type {string}
|
|
8774
|
+
* @memberof NotificationSlotPreview
|
|
8775
|
+
*/
|
|
8776
|
+
'startDate'?: string;
|
|
8777
|
+
/**
|
|
8778
|
+
*
|
|
8779
|
+
* @type {string}
|
|
8780
|
+
* @memberof NotificationSlotPreview
|
|
8781
|
+
*/
|
|
8782
|
+
'endDate'?: string;
|
|
8783
|
+
/**
|
|
8784
|
+
*
|
|
8785
|
+
* @type {string}
|
|
8786
|
+
* @memberof NotificationSlotPreview
|
|
8787
|
+
*/
|
|
8788
|
+
'courtName'?: string;
|
|
8789
|
+
}
|
|
8790
|
+
/**
|
|
8791
|
+
*
|
|
8792
|
+
* @export
|
|
8793
|
+
* @interface NotificationSportPreview
|
|
8794
|
+
*/
|
|
8795
|
+
export interface NotificationSportPreview {
|
|
8796
|
+
/**
|
|
8797
|
+
*
|
|
8798
|
+
* @type {string}
|
|
8799
|
+
* @memberof NotificationSportPreview
|
|
8800
|
+
*/
|
|
8801
|
+
'id'?: string;
|
|
8802
|
+
/**
|
|
8803
|
+
*
|
|
8804
|
+
* @type {string}
|
|
8805
|
+
* @memberof NotificationSportPreview
|
|
8806
|
+
*/
|
|
8807
|
+
'name'?: string;
|
|
8808
|
+
/**
|
|
8809
|
+
*
|
|
8810
|
+
* @type {string}
|
|
8811
|
+
* @memberof NotificationSportPreview
|
|
8812
|
+
*/
|
|
8813
|
+
'key'?: string;
|
|
8814
|
+
}
|
|
8815
|
+
/**
|
|
8816
|
+
*
|
|
8817
|
+
* @export
|
|
8818
|
+
* @interface NotificationTargetPreview
|
|
8819
|
+
*/
|
|
8820
|
+
export interface NotificationTargetPreview {
|
|
8821
|
+
/**
|
|
8822
|
+
*
|
|
8823
|
+
* @type {string}
|
|
8824
|
+
* @memberof NotificationTargetPreview
|
|
8825
|
+
*/
|
|
8826
|
+
'type': NotificationTargetPreviewTypeEnum;
|
|
8827
|
+
/**
|
|
8828
|
+
*
|
|
8829
|
+
* @type {string}
|
|
8830
|
+
* @memberof NotificationTargetPreview
|
|
8831
|
+
*/
|
|
8832
|
+
'id'?: string;
|
|
8833
|
+
}
|
|
8834
|
+
export declare const NotificationTargetPreviewTypeEnum: {
|
|
8835
|
+
readonly Booking: "booking";
|
|
8836
|
+
readonly Event: "event";
|
|
8837
|
+
readonly Waitlist: "waitlist";
|
|
8838
|
+
readonly Unknown: "unknown";
|
|
8839
|
+
};
|
|
8840
|
+
export type NotificationTargetPreviewTypeEnum = typeof NotificationTargetPreviewTypeEnum[keyof typeof NotificationTargetPreviewTypeEnum];
|
|
8602
8841
|
/**
|
|
8603
8842
|
*
|
|
8604
8843
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -245,6 +245,22 @@ export const InvoiceStatusSETUPPENDING = {
|
|
|
245
245
|
export const InvoiceStatusSETUPSUCCESS = {
|
|
246
246
|
SetupSuccess: 'setup_success'
|
|
247
247
|
};
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @export
|
|
251
|
+
* @enum {string}
|
|
252
|
+
*/
|
|
253
|
+
export const NotificationActorType = {
|
|
254
|
+
User: 'user',
|
|
255
|
+
Club: 'club',
|
|
256
|
+
System: 'system'
|
|
257
|
+
};
|
|
258
|
+
export const NotificationTargetPreviewTypeEnum = {
|
|
259
|
+
Booking: 'booking',
|
|
260
|
+
Event: 'event',
|
|
261
|
+
Waitlist: 'waitlist',
|
|
262
|
+
Unknown: 'unknown'
|
|
263
|
+
};
|
|
248
264
|
/**
|
|
249
265
|
*
|
|
250
266
|
* @export
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# NotificationActorType
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `User` (value: `'user'`)
|
|
7
|
+
|
|
8
|
+
* `Club` (value: `'club'`)
|
|
9
|
+
|
|
10
|
+
* `System` (value: `'system'`)
|
|
11
|
+
|
|
12
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# NotificationInitiator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**type** | [**NotificationActorType**](NotificationActorType.md) | | [default to undefined]
|
|
10
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**picture** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**isCurrentUser** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { NotificationInitiator } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: NotificationInitiator = {
|
|
20
|
+
id,
|
|
21
|
+
type,
|
|
22
|
+
name,
|
|
23
|
+
picture,
|
|
24
|
+
isCurrentUser,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**picture** | **string** | | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { NotificationParticipantPreview } from '@tennac-booking/sdk';
|
|
|
16
17
|
const instance: NotificationParticipantPreview = {
|
|
17
18
|
id,
|
|
18
19
|
name,
|
|
20
|
+
picture,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
|
@@ -11,8 +11,12 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**clubId** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**clubName** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**clubPicture** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**courtId** | **string** | | [optional] [default to undefined]
|
|
14
15
|
**courtName** | **string** | | [optional] [default to undefined]
|
|
15
16
|
**eventName** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**sportId** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**sportName** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**sportKey** | **string** | | [optional] [default to undefined]
|
|
16
20
|
**startDate** | **string** | | [optional] [default to undefined]
|
|
17
21
|
**endDate** | **string** | | [optional] [default to undefined]
|
|
18
22
|
**reminderDelayHours** | **number** | | [optional] [default to undefined]
|
|
@@ -26,6 +30,11 @@ Name | Type | Description | Notes
|
|
|
26
30
|
**expiresAt** | **string** | | [optional] [default to undefined]
|
|
27
31
|
**waitingListPaymentHoldDuration** | **number** | | [optional] [default to undefined]
|
|
28
32
|
**participants** | [**Array<NotificationParticipantPreview>**](NotificationParticipantPreview.md) | | [optional] [default to undefined]
|
|
33
|
+
**initiatorUserId** | **string** | | [optional] [default to undefined]
|
|
34
|
+
**initiatorClubId** | **string** | | [optional] [default to undefined]
|
|
35
|
+
**initiatorType** | [**NotificationActorType**](NotificationActorType.md) | | [optional] [default to undefined]
|
|
36
|
+
**initiatorName** | **string** | | [optional] [default to undefined]
|
|
37
|
+
**initiatorPicture** | **string** | | [optional] [default to undefined]
|
|
29
38
|
|
|
30
39
|
## Example
|
|
31
40
|
|
|
@@ -39,8 +48,12 @@ const instance: NotificationPreview = {
|
|
|
39
48
|
clubId,
|
|
40
49
|
clubName,
|
|
41
50
|
clubPicture,
|
|
51
|
+
courtId,
|
|
42
52
|
courtName,
|
|
43
53
|
eventName,
|
|
54
|
+
sportId,
|
|
55
|
+
sportName,
|
|
56
|
+
sportKey,
|
|
44
57
|
startDate,
|
|
45
58
|
endDate,
|
|
46
59
|
reminderDelayHours,
|
|
@@ -54,6 +67,11 @@ const instance: NotificationPreview = {
|
|
|
54
67
|
expiresAt,
|
|
55
68
|
waitingListPaymentHoldDuration,
|
|
56
69
|
participants,
|
|
70
|
+
initiatorUserId,
|
|
71
|
+
initiatorClubId,
|
|
72
|
+
initiatorType,
|
|
73
|
+
initiatorName,
|
|
74
|
+
initiatorPicture,
|
|
57
75
|
};
|
|
58
76
|
```
|
|
59
77
|
|
|
@@ -11,6 +11,11 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**message** | **string** | | [default to undefined]
|
|
12
12
|
**data** | [**NotificationData**](NotificationData.md) | | [optional] [default to undefined]
|
|
13
13
|
**preview** | [**NotificationPreview**](NotificationPreview.md) | | [optional] [default to undefined]
|
|
14
|
+
**target** | [**NotificationTargetPreview**](NotificationTargetPreview.md) | | [optional] [default to undefined]
|
|
15
|
+
**initiator** | [**NotificationInitiator**](NotificationInitiator.md) | | [optional] [default to undefined]
|
|
16
|
+
**sport** | [**NotificationSportPreview**](NotificationSportPreview.md) | | [optional] [default to undefined]
|
|
17
|
+
**slot** | [**NotificationSlotPreview**](NotificationSlotPreview.md) | | [optional] [default to undefined]
|
|
18
|
+
**club** | [**NotificationResponseClub**](NotificationResponseClub.md) | | [optional] [default to undefined]
|
|
14
19
|
**createdAt** | **string** | | [default to undefined]
|
|
15
20
|
**readAt** | **string** | | [optional] [default to undefined]
|
|
16
21
|
**isRead** | **boolean** | | [default to undefined]
|
|
@@ -27,6 +32,11 @@ const instance: NotificationResponse = {
|
|
|
27
32
|
message,
|
|
28
33
|
data,
|
|
29
34
|
preview,
|
|
35
|
+
target,
|
|
36
|
+
initiator,
|
|
37
|
+
sport,
|
|
38
|
+
slot,
|
|
39
|
+
club,
|
|
30
40
|
createdAt,
|
|
31
41
|
readAt,
|
|
32
42
|
isRead,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# NotificationResponseClub
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**picture** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { NotificationResponseClub } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: NotificationResponseClub = {
|
|
18
|
+
picture,
|
|
19
|
+
name,
|
|
20
|
+
id,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# NotificationSlotPreview
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**startDate** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**endDate** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**courtName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { NotificationSlotPreview } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: NotificationSlotPreview = {
|
|
18
|
+
startDate,
|
|
19
|
+
endDate,
|
|
20
|
+
courtName,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# NotificationSportPreview
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**key** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { NotificationSportPreview } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: NotificationSportPreview = {
|
|
18
|
+
id,
|
|
19
|
+
name,
|
|
20
|
+
key,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# NotificationTargetPreview
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [default to undefined]
|
|
9
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { NotificationTargetPreview } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: NotificationTargetPreview = {
|
|
17
|
+
type,
|
|
18
|
+
id,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|