@tennac-booking/sdk 1.0.68 → 1.0.69

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/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.67
8
+ * The version of the OpenAPI document: 1.0.68
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.67
5
+ * The version of the OpenAPI document: 1.0.68
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.67
8
+ * The version of the OpenAPI document: 1.0.68
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.67
5
+ * The version of the OpenAPI document: 1.0.68
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.67
8
+ * The version of the OpenAPI document: 1.0.68
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.67
5
+ * The version of the OpenAPI document: 1.0.68
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -601,8 +601,8 @@ export interface BookingResponseOnsitePaymentsInner {
601
601
  * @enum {string}
602
602
  */
603
603
  export declare const BookingStatus: {
604
+ readonly Paid: "paid";
604
605
  readonly Active: "active";
605
- readonly Past: "past";
606
606
  readonly Pending: "pending";
607
607
  readonly Expired: "expired";
608
608
  readonly Canceled: "canceled";
@@ -1521,6 +1521,18 @@ export interface CourtResponse {
1521
1521
  * @memberof CourtResponse
1522
1522
  */
1523
1523
  'comments'?: string;
1524
+ /**
1525
+ *
1526
+ * @type {number}
1527
+ * @memberof CourtResponse
1528
+ */
1529
+ 'pricePerHour'?: number;
1530
+ /**
1531
+ *
1532
+ * @type {number}
1533
+ * @memberof CourtResponse
1534
+ */
1535
+ 'bookingCount'?: number;
1524
1536
  /**
1525
1537
  * Durée par défaut d\'un créneau en minutes
1526
1538
  * @type {number}
@@ -1622,6 +1634,12 @@ export interface CreateBookingRequest {
1622
1634
  * @memberof CreateBookingRequest
1623
1635
  */
1624
1636
  'paymentMethod'?: PaymentMethod;
1637
+ /**
1638
+ * Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut
1639
+ * @type {boolean}
1640
+ * @memberof CreateBookingRequest
1641
+ */
1642
+ 'useDefaultPaymentMethod'?: boolean;
1625
1643
  }
1626
1644
  /**
1627
1645
  *
@@ -3625,6 +3643,94 @@ export declare const PlanInterval: {
3625
3643
  readonly Semester: "semester";
3626
3644
  };
3627
3645
  export type PlanInterval = typeof PlanInterval[keyof typeof PlanInterval];
3646
+ /**
3647
+ *
3648
+ * @export
3649
+ * @interface PlayerCategoriesResponse
3650
+ */
3651
+ export interface PlayerCategoriesResponse {
3652
+ /**
3653
+ *
3654
+ * @type {Array<PlayerCategory>}
3655
+ * @memberof PlayerCategoriesResponse
3656
+ */
3657
+ 'categories': Array<PlayerCategory>;
3658
+ }
3659
+ /**
3660
+ *
3661
+ * @export
3662
+ * @interface PlayerCategory
3663
+ */
3664
+ export interface PlayerCategory {
3665
+ /**
3666
+ *
3667
+ * @type {PlayerCategoryId}
3668
+ * @memberof PlayerCategory
3669
+ */
3670
+ 'id': PlayerCategoryId;
3671
+ /**
3672
+ *
3673
+ * @type {string}
3674
+ * @memberof PlayerCategory
3675
+ */
3676
+ 'label': string;
3677
+ /**
3678
+ *
3679
+ * @type {string}
3680
+ * @memberof PlayerCategory
3681
+ */
3682
+ 'description'?: string;
3683
+ /**
3684
+ *
3685
+ * @type {number}
3686
+ * @memberof PlayerCategory
3687
+ */
3688
+ 'limit'?: number;
3689
+ }
3690
+ /**
3691
+ *
3692
+ * @export
3693
+ * @enum {string}
3694
+ */
3695
+ export declare const PlayerCategoryId: {
3696
+ readonly SameLevel: "same-level";
3697
+ readonly MutualConnections: "mutual-connections";
3698
+ readonly ClubMembers: "club-members";
3699
+ readonly MostActive: "most-active";
3700
+ readonly Nearby: "nearby";
3701
+ };
3702
+ export type PlayerCategoryId = typeof PlayerCategoryId[keyof typeof PlayerCategoryId];
3703
+ /**
3704
+ *
3705
+ * @export
3706
+ * @interface PlayerListResponse
3707
+ */
3708
+ export interface PlayerListResponse {
3709
+ /**
3710
+ *
3711
+ * @type {Array<PlayerSummary>}
3712
+ * @memberof PlayerListResponse
3713
+ */
3714
+ 'players': Array<PlayerSummary>;
3715
+ /**
3716
+ *
3717
+ * @type {number}
3718
+ * @memberof PlayerListResponse
3719
+ */
3720
+ 'total'?: number;
3721
+ /**
3722
+ *
3723
+ * @type {boolean}
3724
+ * @memberof PlayerListResponse
3725
+ */
3726
+ 'hasMore'?: boolean;
3727
+ /**
3728
+ *
3729
+ * @type {number}
3730
+ * @memberof PlayerListResponse
3731
+ */
3732
+ 'nextOffset'?: number;
3733
+ }
3628
3734
  /**
3629
3735
  *
3630
3736
  * @export
@@ -3757,13 +3863,13 @@ export interface PlayerSummary {
3757
3863
  * @type {string}
3758
3864
  * @memberof PlayerSummary
3759
3865
  */
3760
- 'lastPlayedAt'?: string;
3866
+ 'lastPlayedAt'?: string | null;
3761
3867
  /**
3762
3868
  *
3763
3869
  * @type {number}
3764
3870
  * @memberof PlayerSummary
3765
3871
  */
3766
- 'playCount'?: number;
3872
+ 'playCount'?: number | null;
3767
3873
  }
3768
3874
  /**
3769
3875
  *
@@ -6732,6 +6838,12 @@ export interface UserProfileResponse {
6732
6838
  * @memberof UserProfileResponse
6733
6839
  */
6734
6840
  'subscriptionsCount'?: number;
6841
+ /**
6842
+ *
6843
+ * @type {Array<ClubSubscriptions>}
6844
+ * @memberof UserProfileResponse
6845
+ */
6846
+ 'subscriptions'?: Array<ClubSubscriptions>;
6735
6847
  /**
6736
6848
  *
6737
6849
  * @type {Array<ClubSummary>}
@@ -11047,6 +11159,12 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
11047
11159
  * @throws {RequiredError}
11048
11160
  */
11049
11161
  getNearestUsersFromCoordinates: (latitude?: number, longitude?: number, radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11162
+ /**
11163
+ *
11164
+ * @param {*} [options] Override http request option.
11165
+ * @throws {RequiredError}
11166
+ */
11167
+ getPlayerCategories: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11050
11168
  /**
11051
11169
  *
11052
11170
  * @param {number} [limit]
@@ -11062,6 +11180,23 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
11062
11180
  * @throws {RequiredError}
11063
11181
  */
11064
11182
  getUserProfileById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11183
+ /**
11184
+ *
11185
+ * @param {PlayerCategoryId} [category]
11186
+ * @param {string} [search]
11187
+ * @param {string} [gender]
11188
+ * @param {boolean} [sharedClub]
11189
+ * @param {string} [sportLevels]
11190
+ * @param {number} [limit]
11191
+ * @param {number} [offset]
11192
+ * @param {boolean} [useLocation]
11193
+ * @param {number} [latitude]
11194
+ * @param {number} [longitude]
11195
+ * @param {number} [radiusInKm]
11196
+ * @param {*} [options] Override http request option.
11197
+ * @throws {RequiredError}
11198
+ */
11199
+ listPlayers: (category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number, useLocation?: boolean, latitude?: number, longitude?: number, radiusInKm?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11065
11200
  /**
11066
11201
  *
11067
11202
  * @param {LoginRequestBody} loginRequestBody
@@ -11315,6 +11450,12 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
11315
11450
  getNearestUsersFromCoordinates(latitude?: number, longitude?: number, radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<{
11316
11451
  [key: string]: any;
11317
11452
  }>>>;
11453
+ /**
11454
+ *
11455
+ * @param {*} [options] Override http request option.
11456
+ * @throws {RequiredError}
11457
+ */
11458
+ getPlayerCategories(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerCategoriesResponse>>;
11318
11459
  /**
11319
11460
  *
11320
11461
  * @param {number} [limit]
@@ -11330,6 +11471,23 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
11330
11471
  * @throws {RequiredError}
11331
11472
  */
11332
11473
  getUserProfileById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicUserProfileResponse>>;
11474
+ /**
11475
+ *
11476
+ * @param {PlayerCategoryId} [category]
11477
+ * @param {string} [search]
11478
+ * @param {string} [gender]
11479
+ * @param {boolean} [sharedClub]
11480
+ * @param {string} [sportLevels]
11481
+ * @param {number} [limit]
11482
+ * @param {number} [offset]
11483
+ * @param {boolean} [useLocation]
11484
+ * @param {number} [latitude]
11485
+ * @param {number} [longitude]
11486
+ * @param {number} [radiusInKm]
11487
+ * @param {*} [options] Override http request option.
11488
+ * @throws {RequiredError}
11489
+ */
11490
+ listPlayers(category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number, useLocation?: boolean, latitude?: number, longitude?: number, radiusInKm?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerListResponse>>;
11333
11491
  /**
11334
11492
  *
11335
11493
  * @param {LoginRequestBody} loginRequestBody
@@ -11575,6 +11733,12 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
11575
11733
  getNearestUsersFromCoordinates(requestParameters?: UsersApiGetNearestUsersFromCoordinatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<{
11576
11734
  [key: string]: any;
11577
11735
  }>>;
11736
+ /**
11737
+ *
11738
+ * @param {*} [options] Override http request option.
11739
+ * @throws {RequiredError}
11740
+ */
11741
+ getPlayerCategories(options?: RawAxiosRequestConfig): AxiosPromise<PlayerCategoriesResponse>;
11578
11742
  /**
11579
11743
  *
11580
11744
  * @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
@@ -11589,6 +11753,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
11589
11753
  * @throws {RequiredError}
11590
11754
  */
11591
11755
  getUserProfileById(requestParameters: UsersApiGetUserProfileByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicUserProfileResponse>;
11756
+ /**
11757
+ *
11758
+ * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
11759
+ * @param {*} [options] Override http request option.
11760
+ * @throws {RequiredError}
11761
+ */
11762
+ listPlayers(requestParameters?: UsersApiListPlayersRequest, options?: RawAxiosRequestConfig): AxiosPromise<PlayerListResponse>;
11592
11763
  /**
11593
11764
  *
11594
11765
  * @param {UsersApiLoginRequest} requestParameters Request parameters.
@@ -11931,6 +12102,79 @@ export interface UsersApiGetUserProfileByIdRequest {
11931
12102
  */
11932
12103
  readonly id: string;
11933
12104
  }
12105
+ /**
12106
+ * Request parameters for listPlayers operation in UsersApi.
12107
+ * @export
12108
+ * @interface UsersApiListPlayersRequest
12109
+ */
12110
+ export interface UsersApiListPlayersRequest {
12111
+ /**
12112
+ *
12113
+ * @type {PlayerCategoryId}
12114
+ * @memberof UsersApiListPlayers
12115
+ */
12116
+ readonly category?: PlayerCategoryId;
12117
+ /**
12118
+ *
12119
+ * @type {string}
12120
+ * @memberof UsersApiListPlayers
12121
+ */
12122
+ readonly search?: string;
12123
+ /**
12124
+ *
12125
+ * @type {string}
12126
+ * @memberof UsersApiListPlayers
12127
+ */
12128
+ readonly gender?: string;
12129
+ /**
12130
+ *
12131
+ * @type {boolean}
12132
+ * @memberof UsersApiListPlayers
12133
+ */
12134
+ readonly sharedClub?: boolean;
12135
+ /**
12136
+ *
12137
+ * @type {string}
12138
+ * @memberof UsersApiListPlayers
12139
+ */
12140
+ readonly sportLevels?: string;
12141
+ /**
12142
+ *
12143
+ * @type {number}
12144
+ * @memberof UsersApiListPlayers
12145
+ */
12146
+ readonly limit?: number;
12147
+ /**
12148
+ *
12149
+ * @type {number}
12150
+ * @memberof UsersApiListPlayers
12151
+ */
12152
+ readonly offset?: number;
12153
+ /**
12154
+ *
12155
+ * @type {boolean}
12156
+ * @memberof UsersApiListPlayers
12157
+ */
12158
+ readonly useLocation?: boolean;
12159
+ /**
12160
+ *
12161
+ * @type {number}
12162
+ * @memberof UsersApiListPlayers
12163
+ */
12164
+ readonly latitude?: number;
12165
+ /**
12166
+ *
12167
+ * @type {number}
12168
+ * @memberof UsersApiListPlayers
12169
+ */
12170
+ readonly longitude?: number;
12171
+ /**
12172
+ *
12173
+ * @type {number}
12174
+ * @memberof UsersApiListPlayers
12175
+ */
12176
+ readonly radiusInKm?: number;
12177
+ }
11934
12178
  /**
11935
12179
  * Request parameters for login operation in UsersApi.
11936
12180
  * @export
@@ -12284,6 +12528,13 @@ export declare class UsersApi extends BaseAPI {
12284
12528
  getNearestUsersFromCoordinates(requestParameters?: UsersApiGetNearestUsersFromCoordinatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
12285
12529
  [key: string]: any;
12286
12530
  }[], any, {}>>;
12531
+ /**
12532
+ *
12533
+ * @param {*} [options] Override http request option.
12534
+ * @throws {RequiredError}
12535
+ * @memberof UsersApi
12536
+ */
12537
+ getPlayerCategories(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PlayerCategoriesResponse, any, {}>>;
12287
12538
  /**
12288
12539
  *
12289
12540
  * @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
@@ -12300,6 +12551,14 @@ export declare class UsersApi extends BaseAPI {
12300
12551
  * @memberof UsersApi
12301
12552
  */
12302
12553
  getUserProfileById(requestParameters: UsersApiGetUserProfileByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicUserProfileResponse, any, {}>>;
12554
+ /**
12555
+ *
12556
+ * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
12557
+ * @param {*} [options] Override http request option.
12558
+ * @throws {RequiredError}
12559
+ * @memberof UsersApi
12560
+ */
12561
+ listPlayers(requestParameters?: UsersApiListPlayersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PlayerListResponse, any, {}>>;
12303
12562
  /**
12304
12563
  *
12305
12564
  * @param {UsersApiLoginRequest} requestParameters Request parameters.