@tennac-booking/sdk 1.0.213 → 1.0.214
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 +10 -2
- package/README.md +15 -5
- package/api.ts +581 -71
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +474 -67
- package/dist/api.js +177 -17
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +474 -67
- package/dist/esm/api.js +172 -12
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingsUserApi.md +6 -6
- 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/OpenBookingPriceBody.md +26 -0
- package/docs/UserNotificationsResponse.md +22 -0
- package/docs/UserNotificationsResponseMeta.md +28 -0
- package/docs/UsersApi.md +110 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/GetOpenBookingPrice200Response.md +0 -24
- package/docs/GetOpenBookingPriceRequest.md +0 -26
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.214
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6717,62 +6717,6 @@ export interface GetInfillPercentagePerPeriod200Response {
|
|
|
6717
6717
|
*/
|
|
6718
6718
|
'infillPercentage': number;
|
|
6719
6719
|
}
|
|
6720
|
-
/**
|
|
6721
|
-
*
|
|
6722
|
-
* @export
|
|
6723
|
-
* @interface GetOpenBookingPrice200Response
|
|
6724
|
-
*/
|
|
6725
|
-
export interface GetOpenBookingPrice200Response {
|
|
6726
|
-
/**
|
|
6727
|
-
*
|
|
6728
|
-
* @type {number}
|
|
6729
|
-
* @memberof GetOpenBookingPrice200Response
|
|
6730
|
-
*/
|
|
6731
|
-
'totalBasePrice': number;
|
|
6732
|
-
/**
|
|
6733
|
-
*
|
|
6734
|
-
* @type {Array<PlayerPrice>}
|
|
6735
|
-
* @memberof GetOpenBookingPrice200Response
|
|
6736
|
-
*/
|
|
6737
|
-
'playersPrices': Array<PlayerPrice>;
|
|
6738
|
-
/**
|
|
6739
|
-
*
|
|
6740
|
-
* @type {number}
|
|
6741
|
-
* @memberof GetOpenBookingPrice200Response
|
|
6742
|
-
*/
|
|
6743
|
-
'basePricePerPlayer': number;
|
|
6744
|
-
}
|
|
6745
|
-
/**
|
|
6746
|
-
*
|
|
6747
|
-
* @export
|
|
6748
|
-
* @interface GetOpenBookingPriceRequest
|
|
6749
|
-
*/
|
|
6750
|
-
export interface GetOpenBookingPriceRequest {
|
|
6751
|
-
/**
|
|
6752
|
-
* Construct a type with a set of properties K of type T
|
|
6753
|
-
* @type {{ [key: string]: number; }}
|
|
6754
|
-
* @memberof GetOpenBookingPriceRequest
|
|
6755
|
-
*/
|
|
6756
|
-
'creditsByPlayer'?: { [key: string]: number; };
|
|
6757
|
-
/**
|
|
6758
|
-
*
|
|
6759
|
-
* @type {Array<string>}
|
|
6760
|
-
* @memberof GetOpenBookingPriceRequest
|
|
6761
|
-
*/
|
|
6762
|
-
'initialPlayerIds'?: Array<string>;
|
|
6763
|
-
/**
|
|
6764
|
-
*
|
|
6765
|
-
* @type {number}
|
|
6766
|
-
* @memberof GetOpenBookingPriceRequest
|
|
6767
|
-
*/
|
|
6768
|
-
'maxPlayers': number;
|
|
6769
|
-
/**
|
|
6770
|
-
*
|
|
6771
|
-
* @type {Array<string>}
|
|
6772
|
-
* @memberof GetOpenBookingPriceRequest
|
|
6773
|
-
*/
|
|
6774
|
-
'slotIds': Array<string>;
|
|
6775
|
-
}
|
|
6776
6720
|
/**
|
|
6777
6721
|
*
|
|
6778
6722
|
* @export
|
|
@@ -8285,6 +8229,38 @@ export interface ManagerCancelBookingResponse {
|
|
|
8285
8229
|
*/
|
|
8286
8230
|
'booking': BookingInfo;
|
|
8287
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
|
+
}
|
|
8288
8264
|
/**
|
|
8289
8265
|
*
|
|
8290
8266
|
* @export
|
|
@@ -8478,6 +8454,256 @@ export interface NoShowRateResponse {
|
|
|
8478
8454
|
*/
|
|
8479
8455
|
'rate': number;
|
|
8480
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
|
+
|
|
8481
8707
|
/**
|
|
8482
8708
|
*
|
|
8483
8709
|
* @export
|
|
@@ -8713,6 +8939,37 @@ export interface OpenBookingPlayerInfo {
|
|
|
8713
8939
|
*/
|
|
8714
8940
|
'profilePicture'?: string;
|
|
8715
8941
|
}
|
|
8942
|
+
/**
|
|
8943
|
+
*
|
|
8944
|
+
* @export
|
|
8945
|
+
* @interface OpenBookingPriceBody
|
|
8946
|
+
*/
|
|
8947
|
+
export interface OpenBookingPriceBody {
|
|
8948
|
+
/**
|
|
8949
|
+
*
|
|
8950
|
+
* @type {Array<string>}
|
|
8951
|
+
* @memberof OpenBookingPriceBody
|
|
8952
|
+
*/
|
|
8953
|
+
'slotIds': Array<string>;
|
|
8954
|
+
/**
|
|
8955
|
+
*
|
|
8956
|
+
* @type {Array<PlayerShare>}
|
|
8957
|
+
* @memberof OpenBookingPriceBody
|
|
8958
|
+
*/
|
|
8959
|
+
'playerShares'?: Array<PlayerShare>;
|
|
8960
|
+
/**
|
|
8961
|
+
*
|
|
8962
|
+
* @type {number}
|
|
8963
|
+
* @memberof OpenBookingPriceBody
|
|
8964
|
+
*/
|
|
8965
|
+
'creditToUseInCents'?: number;
|
|
8966
|
+
/**
|
|
8967
|
+
*
|
|
8968
|
+
* @type {number}
|
|
8969
|
+
* @memberof OpenBookingPriceBody
|
|
8970
|
+
*/
|
|
8971
|
+
'maxPlayersDesired': number;
|
|
8972
|
+
}
|
|
8716
8973
|
/**
|
|
8717
8974
|
*
|
|
8718
8975
|
* @export
|
|
@@ -13979,6 +14236,62 @@ export interface UserNextBookingSummary {
|
|
|
13979
14236
|
*/
|
|
13980
14237
|
'club': BookingClubInfo | null;
|
|
13981
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
|
+
}
|
|
13982
14295
|
/**
|
|
13983
14296
|
*
|
|
13984
14297
|
* @export
|
|
@@ -17164,13 +17477,13 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
|
|
|
17164
17477
|
},
|
|
17165
17478
|
/**
|
|
17166
17479
|
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
17167
|
-
* @param {
|
|
17480
|
+
* @param {OpenBookingPriceBody} openBookingPriceBody
|
|
17168
17481
|
* @param {*} [options] Override http request option.
|
|
17169
17482
|
* @throws {RequiredError}
|
|
17170
17483
|
*/
|
|
17171
|
-
getOpenBookingPrice: async (
|
|
17172
|
-
// verify required parameter '
|
|
17173
|
-
assertParamExists('getOpenBookingPrice', '
|
|
17484
|
+
getOpenBookingPrice: async (openBookingPriceBody: OpenBookingPriceBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17485
|
+
// verify required parameter 'openBookingPriceBody' is not null or undefined
|
|
17486
|
+
assertParamExists('getOpenBookingPrice', 'openBookingPriceBody', openBookingPriceBody)
|
|
17174
17487
|
const localVarPath = `/api/bookings/open/booking-price`;
|
|
17175
17488
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17176
17489
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -17194,7 +17507,7 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
|
|
|
17194
17507
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17195
17508
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17196
17509
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17197
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
17510
|
+
localVarRequestOptions.data = serializeDataIfNeeded(openBookingPriceBody, localVarRequestOptions, configuration)
|
|
17198
17511
|
|
|
17199
17512
|
return {
|
|
17200
17513
|
url: toPathString(localVarUrlObj),
|
|
@@ -17292,12 +17605,12 @@ export const BookingsUserApiFp = function(configuration?: Configuration) {
|
|
|
17292
17605
|
},
|
|
17293
17606
|
/**
|
|
17294
17607
|
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
17295
|
-
* @param {
|
|
17608
|
+
* @param {OpenBookingPriceBody} openBookingPriceBody
|
|
17296
17609
|
* @param {*} [options] Override http request option.
|
|
17297
17610
|
* @throws {RequiredError}
|
|
17298
17611
|
*/
|
|
17299
|
-
async getOpenBookingPrice(
|
|
17300
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookingPrice(
|
|
17612
|
+
async getOpenBookingPrice(openBookingPriceBody: OpenBookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPriceResponse>> {
|
|
17613
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookingPrice(openBookingPriceBody, options);
|
|
17301
17614
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17302
17615
|
const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.getOpenBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
17303
17616
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -17358,8 +17671,8 @@ export const BookingsUserApiFactory = function (configuration?: Configuration, b
|
|
|
17358
17671
|
* @param {*} [options] Override http request option.
|
|
17359
17672
|
* @throws {RequiredError}
|
|
17360
17673
|
*/
|
|
17361
|
-
getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
17362
|
-
return localVarFp.getOpenBookingPrice(requestParameters.
|
|
17674
|
+
getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse> {
|
|
17675
|
+
return localVarFp.getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(axios, basePath));
|
|
17363
17676
|
},
|
|
17364
17677
|
/**
|
|
17365
17678
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
@@ -17423,10 +17736,10 @@ export interface BookingsUserApiCreateOpenBookingRequest {
|
|
|
17423
17736
|
export interface BookingsUserApiGetOpenBookingPriceRequest {
|
|
17424
17737
|
/**
|
|
17425
17738
|
*
|
|
17426
|
-
* @type {
|
|
17739
|
+
* @type {OpenBookingPriceBody}
|
|
17427
17740
|
* @memberof BookingsUserApiGetOpenBookingPrice
|
|
17428
17741
|
*/
|
|
17429
|
-
readonly
|
|
17742
|
+
readonly openBookingPriceBody: OpenBookingPriceBody
|
|
17430
17743
|
}
|
|
17431
17744
|
|
|
17432
17745
|
/**
|
|
@@ -17498,7 +17811,7 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
17498
17811
|
* @memberof BookingsUserApi
|
|
17499
17812
|
*/
|
|
17500
17813
|
public getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig) {
|
|
17501
|
-
return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.
|
|
17814
|
+
return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
17502
17815
|
}
|
|
17503
17816
|
|
|
17504
17817
|
/**
|
|
@@ -32305,6 +32618,56 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
32305
32618
|
|
|
32306
32619
|
|
|
32307
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
|
+
|
|
32308
32671
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32309
32672
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32310
32673
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -32541,6 +32904,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
32541
32904
|
options: localVarRequestOptions,
|
|
32542
32905
|
};
|
|
32543
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
|
+
},
|
|
32544
32946
|
/**
|
|
32545
32947
|
*
|
|
32546
32948
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -32913,7 +33315,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
32913
33315
|
searchPartner: async (q: string, page?: number, limit?: number, excludeIds?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32914
33316
|
// verify required parameter 'q' is not null or undefined
|
|
32915
33317
|
assertParamExists('searchPartner', 'q', q)
|
|
32916
|
-
const localVarPath = `/api/users/
|
|
33318
|
+
const localVarPath = `/api/users/searchPartner`;
|
|
32917
33319
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32918
33320
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32919
33321
|
let baseOptions;
|
|
@@ -33508,6 +33910,20 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
33508
33910
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserEvents']?.[localVarOperationServerIndex]?.url;
|
|
33509
33911
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33510
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
|
+
},
|
|
33511
33927
|
/**
|
|
33512
33928
|
*
|
|
33513
33929
|
* @param {string} id
|
|
@@ -33577,6 +33993,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
33577
33993
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.loginClubMember']?.[localVarOperationServerIndex]?.url;
|
|
33578
33994
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33579
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
|
+
},
|
|
33580
34008
|
/**
|
|
33581
34009
|
*
|
|
33582
34010
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -33989,6 +34417,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
33989
34417
|
getUserEvents(requestParameters: UsersApiGetUserEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserEventsResponse> {
|
|
33990
34418
|
return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
33991
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
|
+
},
|
|
33992
34429
|
/**
|
|
33993
34430
|
*
|
|
33994
34431
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -34034,6 +34471,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
34034
34471
|
loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse> {
|
|
34035
34472
|
return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
34036
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
|
+
},
|
|
34037
34483
|
/**
|
|
34038
34484
|
*
|
|
34039
34485
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -34445,6 +34891,34 @@ export interface UsersApiGetUserEventsRequest {
|
|
|
34445
34891
|
readonly skip?: number
|
|
34446
34892
|
}
|
|
34447
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
|
+
|
|
34448
34922
|
/**
|
|
34449
34923
|
* Request parameters for getUserProfileById operation in UsersApi.
|
|
34450
34924
|
* @export
|
|
@@ -34578,6 +35052,20 @@ export interface UsersApiLoginClubMemberRequest {
|
|
|
34578
35052
|
readonly loginRequestBody: LoginRequestBody
|
|
34579
35053
|
}
|
|
34580
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
|
+
|
|
34581
35069
|
/**
|
|
34582
35070
|
* Request parameters for refreshToken operation in UsersApi.
|
|
34583
35071
|
* @export
|
|
@@ -35070,6 +35558,17 @@ export class UsersApi extends BaseAPI {
|
|
|
35070
35558
|
return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
35071
35559
|
}
|
|
35072
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
|
+
|
|
35073
35572
|
/**
|
|
35074
35573
|
*
|
|
35075
35574
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -35125,6 +35624,17 @@ export class UsersApi extends BaseAPI {
|
|
|
35125
35624
|
return UsersApiFp(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
35126
35625
|
}
|
|
35127
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
|
+
|
|
35128
35638
|
/**
|
|
35129
35639
|
*
|
|
35130
35640
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|