@tennac-booking/sdk 1.0.67 → 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/.openapi-generator/FILES +4 -0
- package/README.md +9 -3
- package/api.ts +411 -5
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +275 -4
- package/dist/api.js +191 -6
- 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 +275 -4
- package/dist/esm/api.js +188 -3
- 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/BookingStatus.md +2 -2
- package/docs/BookingsStaffApi.md +1 -1
- package/docs/ClubResponse.md +2 -0
- package/docs/CourtResponse.md +4 -0
- package/docs/CreateBookingRequest.md +2 -0
- package/docs/PartialClubResponse.md +2 -0
- package/docs/PlayerCategoriesResponse.md +20 -0
- package/docs/PlayerCategory.md +26 -0
- package/docs/PlayerCategoryId.md +16 -0
- package/docs/PlayerListResponse.md +26 -0
- package/docs/UserProfileResponse.md +2 -0
- package/docs/UsersApi.md +125 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.
|
|
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";
|
|
@@ -1124,6 +1124,12 @@ export interface ClubResponse {
|
|
|
1124
1124
|
* @memberof ClubResponse
|
|
1125
1125
|
*/
|
|
1126
1126
|
'isNoShowEnabled'?: boolean;
|
|
1127
|
+
/**
|
|
1128
|
+
* Liste des sports proposés par le club (identifiés par leur clé)
|
|
1129
|
+
* @type {Array<string>}
|
|
1130
|
+
* @memberof ClubResponse
|
|
1131
|
+
*/
|
|
1132
|
+
'sports'?: Array<string>;
|
|
1127
1133
|
/**
|
|
1128
1134
|
*
|
|
1129
1135
|
* @type {ClubResponseCreatedAt}
|
|
@@ -1515,6 +1521,18 @@ export interface CourtResponse {
|
|
|
1515
1521
|
* @memberof CourtResponse
|
|
1516
1522
|
*/
|
|
1517
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;
|
|
1518
1536
|
/**
|
|
1519
1537
|
* Durée par défaut d\'un créneau en minutes
|
|
1520
1538
|
* @type {number}
|
|
@@ -1616,6 +1634,12 @@ export interface CreateBookingRequest {
|
|
|
1616
1634
|
* @memberof CreateBookingRequest
|
|
1617
1635
|
*/
|
|
1618
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;
|
|
1619
1643
|
}
|
|
1620
1644
|
/**
|
|
1621
1645
|
*
|
|
@@ -3437,6 +3461,12 @@ export interface PartialClubResponse {
|
|
|
3437
3461
|
* @memberof PartialClubResponse
|
|
3438
3462
|
*/
|
|
3439
3463
|
'isNoShowEnabled'?: boolean;
|
|
3464
|
+
/**
|
|
3465
|
+
* Liste des sports proposés par le club (identifiés par leur clé)
|
|
3466
|
+
* @type {Array<string>}
|
|
3467
|
+
* @memberof PartialClubResponse
|
|
3468
|
+
*/
|
|
3469
|
+
'sports'?: Array<string>;
|
|
3440
3470
|
/**
|
|
3441
3471
|
*
|
|
3442
3472
|
* @type {ClubResponseCreatedAt}
|
|
@@ -3613,6 +3643,94 @@ export declare const PlanInterval: {
|
|
|
3613
3643
|
readonly Semester: "semester";
|
|
3614
3644
|
};
|
|
3615
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
|
+
}
|
|
3616
3734
|
/**
|
|
3617
3735
|
*
|
|
3618
3736
|
* @export
|
|
@@ -3745,13 +3863,13 @@ export interface PlayerSummary {
|
|
|
3745
3863
|
* @type {string}
|
|
3746
3864
|
* @memberof PlayerSummary
|
|
3747
3865
|
*/
|
|
3748
|
-
'lastPlayedAt'?: string;
|
|
3866
|
+
'lastPlayedAt'?: string | null;
|
|
3749
3867
|
/**
|
|
3750
3868
|
*
|
|
3751
3869
|
* @type {number}
|
|
3752
3870
|
* @memberof PlayerSummary
|
|
3753
3871
|
*/
|
|
3754
|
-
'playCount'?: number;
|
|
3872
|
+
'playCount'?: number | null;
|
|
3755
3873
|
}
|
|
3756
3874
|
/**
|
|
3757
3875
|
*
|
|
@@ -6720,6 +6838,12 @@ export interface UserProfileResponse {
|
|
|
6720
6838
|
* @memberof UserProfileResponse
|
|
6721
6839
|
*/
|
|
6722
6840
|
'subscriptionsCount'?: number;
|
|
6841
|
+
/**
|
|
6842
|
+
*
|
|
6843
|
+
* @type {Array<ClubSubscriptions>}
|
|
6844
|
+
* @memberof UserProfileResponse
|
|
6845
|
+
*/
|
|
6846
|
+
'subscriptions'?: Array<ClubSubscriptions>;
|
|
6723
6847
|
/**
|
|
6724
6848
|
*
|
|
6725
6849
|
* @type {Array<ClubSummary>}
|
|
@@ -11035,6 +11159,12 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
11035
11159
|
* @throws {RequiredError}
|
|
11036
11160
|
*/
|
|
11037
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>;
|
|
11038
11168
|
/**
|
|
11039
11169
|
*
|
|
11040
11170
|
* @param {number} [limit]
|
|
@@ -11050,6 +11180,23 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
11050
11180
|
* @throws {RequiredError}
|
|
11051
11181
|
*/
|
|
11052
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>;
|
|
11053
11200
|
/**
|
|
11054
11201
|
*
|
|
11055
11202
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -11303,6 +11450,12 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
11303
11450
|
getNearestUsersFromCoordinates(latitude?: number, longitude?: number, radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<{
|
|
11304
11451
|
[key: string]: any;
|
|
11305
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>>;
|
|
11306
11459
|
/**
|
|
11307
11460
|
*
|
|
11308
11461
|
* @param {number} [limit]
|
|
@@ -11318,6 +11471,23 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
11318
11471
|
* @throws {RequiredError}
|
|
11319
11472
|
*/
|
|
11320
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>>;
|
|
11321
11491
|
/**
|
|
11322
11492
|
*
|
|
11323
11493
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -11563,6 +11733,12 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
11563
11733
|
getNearestUsersFromCoordinates(requestParameters?: UsersApiGetNearestUsersFromCoordinatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<{
|
|
11564
11734
|
[key: string]: any;
|
|
11565
11735
|
}>>;
|
|
11736
|
+
/**
|
|
11737
|
+
*
|
|
11738
|
+
* @param {*} [options] Override http request option.
|
|
11739
|
+
* @throws {RequiredError}
|
|
11740
|
+
*/
|
|
11741
|
+
getPlayerCategories(options?: RawAxiosRequestConfig): AxiosPromise<PlayerCategoriesResponse>;
|
|
11566
11742
|
/**
|
|
11567
11743
|
*
|
|
11568
11744
|
* @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
@@ -11577,6 +11753,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
11577
11753
|
* @throws {RequiredError}
|
|
11578
11754
|
*/
|
|
11579
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>;
|
|
11580
11763
|
/**
|
|
11581
11764
|
*
|
|
11582
11765
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -11919,6 +12102,79 @@ export interface UsersApiGetUserProfileByIdRequest {
|
|
|
11919
12102
|
*/
|
|
11920
12103
|
readonly id: string;
|
|
11921
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
|
+
}
|
|
11922
12178
|
/**
|
|
11923
12179
|
* Request parameters for login operation in UsersApi.
|
|
11924
12180
|
* @export
|
|
@@ -12272,6 +12528,13 @@ export declare class UsersApi extends BaseAPI {
|
|
|
12272
12528
|
getNearestUsersFromCoordinates(requestParameters?: UsersApiGetNearestUsersFromCoordinatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
12273
12529
|
[key: string]: any;
|
|
12274
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, {}>>;
|
|
12275
12538
|
/**
|
|
12276
12539
|
*
|
|
12277
12540
|
* @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
@@ -12288,6 +12551,14 @@ export declare class UsersApi extends BaseAPI {
|
|
|
12288
12551
|
* @memberof UsersApi
|
|
12289
12552
|
*/
|
|
12290
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, {}>>;
|
|
12291
12562
|
/**
|
|
12292
12563
|
*
|
|
12293
12564
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
package/dist/esm/api.js
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.68
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,8 +37,8 @@ export const BookingHistoryPerformedByTypeEnum = {
|
|
|
37
37
|
* @enum {string}
|
|
38
38
|
*/
|
|
39
39
|
export const BookingStatus = {
|
|
40
|
+
Paid: 'paid',
|
|
40
41
|
Active: 'active',
|
|
41
|
-
Past: 'past',
|
|
42
42
|
Pending: 'pending',
|
|
43
43
|
Expired: 'expired',
|
|
44
44
|
Canceled: 'canceled',
|
|
@@ -116,6 +116,18 @@ export const PlanInterval = {
|
|
|
116
116
|
Trimester: 'trimester',
|
|
117
117
|
Semester: 'semester'
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
* @enum {string}
|
|
123
|
+
*/
|
|
124
|
+
export const PlayerCategoryId = {
|
|
125
|
+
SameLevel: 'same-level',
|
|
126
|
+
MutualConnections: 'mutual-connections',
|
|
127
|
+
ClubMembers: 'club-members',
|
|
128
|
+
MostActive: 'most-active',
|
|
129
|
+
Nearby: 'nearby'
|
|
130
|
+
};
|
|
119
131
|
export const RegisterRequestBodyLocationTypeEnum = {
|
|
120
132
|
Point: 'Point'
|
|
121
133
|
};
|
|
@@ -597,7 +609,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
597
609
|
getBookingHistoryStaff: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
598
610
|
// verify required parameter 'bookingId' is not null or undefined
|
|
599
611
|
assertParamExists('getBookingHistoryStaff', 'bookingId', bookingId);
|
|
600
|
-
const localVarPath = `/api/bookings/staff/{bookingId}`
|
|
612
|
+
const localVarPath = `/api/bookings/staff/history{bookingId}`
|
|
601
613
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
602
614
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
603
615
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7349,6 +7361,33 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7349
7361
|
options: localVarRequestOptions,
|
|
7350
7362
|
};
|
|
7351
7363
|
}),
|
|
7364
|
+
/**
|
|
7365
|
+
*
|
|
7366
|
+
* @param {*} [options] Override http request option.
|
|
7367
|
+
* @throws {RequiredError}
|
|
7368
|
+
*/
|
|
7369
|
+
getPlayerCategories: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7370
|
+
const localVarPath = `/api/users/players/categories`;
|
|
7371
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7372
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7373
|
+
let baseOptions;
|
|
7374
|
+
if (configuration) {
|
|
7375
|
+
baseOptions = configuration.baseOptions;
|
|
7376
|
+
}
|
|
7377
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7378
|
+
const localVarHeaderParameter = {};
|
|
7379
|
+
const localVarQueryParameter = {};
|
|
7380
|
+
// authentication bearerAuth required
|
|
7381
|
+
// http bearer authentication required
|
|
7382
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7383
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7384
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7385
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7386
|
+
return {
|
|
7387
|
+
url: toPathString(localVarUrlObj),
|
|
7388
|
+
options: localVarRequestOptions,
|
|
7389
|
+
};
|
|
7390
|
+
}),
|
|
7352
7391
|
/**
|
|
7353
7392
|
*
|
|
7354
7393
|
* @param {number} [limit]
|
|
@@ -7415,6 +7454,77 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7415
7454
|
options: localVarRequestOptions,
|
|
7416
7455
|
};
|
|
7417
7456
|
}),
|
|
7457
|
+
/**
|
|
7458
|
+
*
|
|
7459
|
+
* @param {PlayerCategoryId} [category]
|
|
7460
|
+
* @param {string} [search]
|
|
7461
|
+
* @param {string} [gender]
|
|
7462
|
+
* @param {boolean} [sharedClub]
|
|
7463
|
+
* @param {string} [sportLevels]
|
|
7464
|
+
* @param {number} [limit]
|
|
7465
|
+
* @param {number} [offset]
|
|
7466
|
+
* @param {boolean} [useLocation]
|
|
7467
|
+
* @param {number} [latitude]
|
|
7468
|
+
* @param {number} [longitude]
|
|
7469
|
+
* @param {number} [radiusInKm]
|
|
7470
|
+
* @param {*} [options] Override http request option.
|
|
7471
|
+
* @throws {RequiredError}
|
|
7472
|
+
*/
|
|
7473
|
+
listPlayers: (category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, useLocation_1, latitude_1, longitude_1, radiusInKm_1, ...args_1) => __awaiter(this, [category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, useLocation_1, latitude_1, longitude_1, radiusInKm_1, ...args_1], void 0, function* (category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options = {}) {
|
|
7474
|
+
const localVarPath = `/api/users/players`;
|
|
7475
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7476
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7477
|
+
let baseOptions;
|
|
7478
|
+
if (configuration) {
|
|
7479
|
+
baseOptions = configuration.baseOptions;
|
|
7480
|
+
}
|
|
7481
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7482
|
+
const localVarHeaderParameter = {};
|
|
7483
|
+
const localVarQueryParameter = {};
|
|
7484
|
+
// authentication bearerAuth required
|
|
7485
|
+
// http bearer authentication required
|
|
7486
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7487
|
+
if (category !== undefined) {
|
|
7488
|
+
localVarQueryParameter['category'] = category;
|
|
7489
|
+
}
|
|
7490
|
+
if (search !== undefined) {
|
|
7491
|
+
localVarQueryParameter['search'] = search;
|
|
7492
|
+
}
|
|
7493
|
+
if (gender !== undefined) {
|
|
7494
|
+
localVarQueryParameter['gender'] = gender;
|
|
7495
|
+
}
|
|
7496
|
+
if (sharedClub !== undefined) {
|
|
7497
|
+
localVarQueryParameter['sharedClub'] = sharedClub;
|
|
7498
|
+
}
|
|
7499
|
+
if (sportLevels !== undefined) {
|
|
7500
|
+
localVarQueryParameter['sportLevels'] = sportLevels;
|
|
7501
|
+
}
|
|
7502
|
+
if (limit !== undefined) {
|
|
7503
|
+
localVarQueryParameter['limit'] = limit;
|
|
7504
|
+
}
|
|
7505
|
+
if (offset !== undefined) {
|
|
7506
|
+
localVarQueryParameter['offset'] = offset;
|
|
7507
|
+
}
|
|
7508
|
+
if (useLocation !== undefined) {
|
|
7509
|
+
localVarQueryParameter['useLocation'] = useLocation;
|
|
7510
|
+
}
|
|
7511
|
+
if (latitude !== undefined) {
|
|
7512
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
7513
|
+
}
|
|
7514
|
+
if (longitude !== undefined) {
|
|
7515
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
7516
|
+
}
|
|
7517
|
+
if (radiusInKm !== undefined) {
|
|
7518
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7519
|
+
}
|
|
7520
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7521
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7522
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7523
|
+
return {
|
|
7524
|
+
url: toPathString(localVarUrlObj),
|
|
7525
|
+
options: localVarRequestOptions,
|
|
7526
|
+
};
|
|
7527
|
+
}),
|
|
7418
7528
|
/**
|
|
7419
7529
|
*
|
|
7420
7530
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -8194,6 +8304,20 @@ export const UsersApiFp = function (configuration) {
|
|
|
8194
8304
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8195
8305
|
});
|
|
8196
8306
|
},
|
|
8307
|
+
/**
|
|
8308
|
+
*
|
|
8309
|
+
* @param {*} [options] Override http request option.
|
|
8310
|
+
* @throws {RequiredError}
|
|
8311
|
+
*/
|
|
8312
|
+
getPlayerCategories(options) {
|
|
8313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8314
|
+
var _a, _b, _c;
|
|
8315
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayerCategories(options);
|
|
8316
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8317
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getPlayerCategories']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8318
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8319
|
+
});
|
|
8320
|
+
},
|
|
8197
8321
|
/**
|
|
8198
8322
|
*
|
|
8199
8323
|
* @param {number} [limit]
|
|
@@ -8225,6 +8349,31 @@ export const UsersApiFp = function (configuration) {
|
|
|
8225
8349
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8226
8350
|
});
|
|
8227
8351
|
},
|
|
8352
|
+
/**
|
|
8353
|
+
*
|
|
8354
|
+
* @param {PlayerCategoryId} [category]
|
|
8355
|
+
* @param {string} [search]
|
|
8356
|
+
* @param {string} [gender]
|
|
8357
|
+
* @param {boolean} [sharedClub]
|
|
8358
|
+
* @param {string} [sportLevels]
|
|
8359
|
+
* @param {number} [limit]
|
|
8360
|
+
* @param {number} [offset]
|
|
8361
|
+
* @param {boolean} [useLocation]
|
|
8362
|
+
* @param {number} [latitude]
|
|
8363
|
+
* @param {number} [longitude]
|
|
8364
|
+
* @param {number} [radiusInKm]
|
|
8365
|
+
* @param {*} [options] Override http request option.
|
|
8366
|
+
* @throws {RequiredError}
|
|
8367
|
+
*/
|
|
8368
|
+
listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options) {
|
|
8369
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8370
|
+
var _a, _b, _c;
|
|
8371
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options);
|
|
8372
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8373
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.listPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8374
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8375
|
+
});
|
|
8376
|
+
},
|
|
8228
8377
|
/**
|
|
8229
8378
|
*
|
|
8230
8379
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -8635,6 +8784,14 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8635
8784
|
getNearestUsersFromCoordinates(requestParameters = {}, options) {
|
|
8636
8785
|
return localVarFp.getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
8637
8786
|
},
|
|
8787
|
+
/**
|
|
8788
|
+
*
|
|
8789
|
+
* @param {*} [options] Override http request option.
|
|
8790
|
+
* @throws {RequiredError}
|
|
8791
|
+
*/
|
|
8792
|
+
getPlayerCategories(options) {
|
|
8793
|
+
return localVarFp.getPlayerCategories(options).then((request) => request(axios, basePath));
|
|
8794
|
+
},
|
|
8638
8795
|
/**
|
|
8639
8796
|
*
|
|
8640
8797
|
* @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
@@ -8653,6 +8810,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8653
8810
|
getUserProfileById(requestParameters, options) {
|
|
8654
8811
|
return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
8655
8812
|
},
|
|
8813
|
+
/**
|
|
8814
|
+
*
|
|
8815
|
+
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
|
8816
|
+
* @param {*} [options] Override http request option.
|
|
8817
|
+
* @throws {RequiredError}
|
|
8818
|
+
*/
|
|
8819
|
+
listPlayers(requestParameters = {}, options) {
|
|
8820
|
+
return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.useLocation, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(axios, basePath));
|
|
8821
|
+
},
|
|
8656
8822
|
/**
|
|
8657
8823
|
*
|
|
8658
8824
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -8978,6 +9144,15 @@ export class UsersApi extends BaseAPI {
|
|
|
8978
9144
|
getNearestUsersFromCoordinates(requestParameters = {}, options) {
|
|
8979
9145
|
return UsersApiFp(this.configuration).getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
8980
9146
|
}
|
|
9147
|
+
/**
|
|
9148
|
+
*
|
|
9149
|
+
* @param {*} [options] Override http request option.
|
|
9150
|
+
* @throws {RequiredError}
|
|
9151
|
+
* @memberof UsersApi
|
|
9152
|
+
*/
|
|
9153
|
+
getPlayerCategories(options) {
|
|
9154
|
+
return UsersApiFp(this.configuration).getPlayerCategories(options).then((request) => request(this.axios, this.basePath));
|
|
9155
|
+
}
|
|
8981
9156
|
/**
|
|
8982
9157
|
*
|
|
8983
9158
|
* @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
@@ -8998,6 +9173,16 @@ export class UsersApi extends BaseAPI {
|
|
|
8998
9173
|
getUserProfileById(requestParameters, options) {
|
|
8999
9174
|
return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
9000
9175
|
}
|
|
9176
|
+
/**
|
|
9177
|
+
*
|
|
9178
|
+
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
|
9179
|
+
* @param {*} [options] Override http request option.
|
|
9180
|
+
* @throws {RequiredError}
|
|
9181
|
+
* @memberof UsersApi
|
|
9182
|
+
*/
|
|
9183
|
+
listPlayers(requestParameters = {}, options) {
|
|
9184
|
+
return UsersApiFp(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.useLocation, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(this.axios, this.basePath));
|
|
9185
|
+
}
|
|
9001
9186
|
/**
|
|
9002
9187
|
*
|
|
9003
9188
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED