@tennac-booking/sdk 1.0.34 → 1.0.35
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 +3 -2
- package/README.md +9 -4
- package/api.ts +692 -55
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +425 -58
- package/dist/api.js +436 -4
- 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 +425 -58
- package/dist/esm/api.js +429 -1
- 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/ActiveClub.md +4 -2
- package/docs/BookingPopulated.md +2 -0
- package/docs/Club.md +2 -2
- package/docs/CourtWithNameResponse.md +2 -0
- package/docs/GenderPercentage.md +26 -0
- package/docs/Location.md +32 -0
- package/docs/Sport.md +0 -2
- package/docs/StaffClubAnalyticsApi.md +49 -2
- package/docs/StaffClubsApi.md +2 -2
- package/docs/UserClubSportsApi.md +2 -2
- package/docs/UsersApi.md +243 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/GetClubPlayers200Response.md +0 -22
- package/docs/SportsResponse.md +0 -22
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.35
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -40,13 +40,19 @@ export interface ActiveClub {
|
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof ActiveClub
|
|
42
42
|
*/
|
|
43
|
-
'
|
|
43
|
+
'picture'?: string;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof ActiveClub
|
|
48
48
|
*/
|
|
49
|
-
'
|
|
49
|
+
'name'?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Location}
|
|
53
|
+
* @memberof ActiveClub
|
|
54
|
+
*/
|
|
55
|
+
'location'?: Location;
|
|
50
56
|
/**
|
|
51
57
|
*
|
|
52
58
|
* @type {boolean}
|
|
@@ -518,6 +524,12 @@ export interface BookingPopulated {
|
|
|
518
524
|
* @memberof BookingPopulated
|
|
519
525
|
*/
|
|
520
526
|
'slotId'?: BookingPopulatedSlotId;
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @type {number}
|
|
530
|
+
* @memberof BookingPopulated
|
|
531
|
+
*/
|
|
532
|
+
'playersCount'?: number;
|
|
521
533
|
/**
|
|
522
534
|
*
|
|
523
535
|
* @type {Array<BookingPopulatedPaymentByPlayersStatusInner>}
|
|
@@ -944,10 +956,10 @@ export interface Club {
|
|
|
944
956
|
'name': string;
|
|
945
957
|
/**
|
|
946
958
|
*
|
|
947
|
-
* @type {
|
|
959
|
+
* @type {Location}
|
|
948
960
|
* @memberof Club
|
|
949
961
|
*/
|
|
950
|
-
'
|
|
962
|
+
'location'?: Location;
|
|
951
963
|
/**
|
|
952
964
|
*
|
|
953
965
|
* @type {string}
|
|
@@ -1742,6 +1754,12 @@ export interface CourtWithNameResponse {
|
|
|
1742
1754
|
* @memberof CourtWithNameResponse
|
|
1743
1755
|
*/
|
|
1744
1756
|
'clubId'?: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* Type de surface
|
|
1759
|
+
* @type {string}
|
|
1760
|
+
* @memberof CourtWithNameResponse
|
|
1761
|
+
*/
|
|
1762
|
+
'surface'?: CourtWithNameResponseSurfaceEnum;
|
|
1745
1763
|
/**
|
|
1746
1764
|
* Indique si le terrain est en intérieur ou extérieur
|
|
1747
1765
|
* @type {boolean}
|
|
@@ -1762,6 +1780,13 @@ export interface CourtWithNameResponse {
|
|
|
1762
1780
|
'updatedAt'?: string;
|
|
1763
1781
|
}
|
|
1764
1782
|
|
|
1783
|
+
export const CourtWithNameResponseSurfaceEnum = {
|
|
1784
|
+
Clay: 'clay',
|
|
1785
|
+
Grass: 'grass',
|
|
1786
|
+
Hard: 'hard'
|
|
1787
|
+
} as const;
|
|
1788
|
+
|
|
1789
|
+
export type CourtWithNameResponseSurfaceEnum = typeof CourtWithNameResponseSurfaceEnum[keyof typeof CourtWithNameResponseSurfaceEnum];
|
|
1765
1790
|
|
|
1766
1791
|
/**
|
|
1767
1792
|
*
|
|
@@ -2476,6 +2501,37 @@ export interface FrequentlyVisitedClubItem {
|
|
|
2476
2501
|
*/
|
|
2477
2502
|
'visitCount'?: number;
|
|
2478
2503
|
}
|
|
2504
|
+
/**
|
|
2505
|
+
*
|
|
2506
|
+
* @export
|
|
2507
|
+
* @interface GenderPercentage
|
|
2508
|
+
*/
|
|
2509
|
+
export interface GenderPercentage {
|
|
2510
|
+
/**
|
|
2511
|
+
* Pourcentage d\'utilisateurs masculins
|
|
2512
|
+
* @type {number}
|
|
2513
|
+
* @memberof GenderPercentage
|
|
2514
|
+
*/
|
|
2515
|
+
'malePercentage'?: number;
|
|
2516
|
+
/**
|
|
2517
|
+
* Pourcentage d\'utilisateurs féminins
|
|
2518
|
+
* @type {number}
|
|
2519
|
+
* @memberof GenderPercentage
|
|
2520
|
+
*/
|
|
2521
|
+
'femalePercentage'?: number;
|
|
2522
|
+
/**
|
|
2523
|
+
* Pourcentage d\'utilisateurs non spécifiés
|
|
2524
|
+
* @type {number}
|
|
2525
|
+
* @memberof GenderPercentage
|
|
2526
|
+
*/
|
|
2527
|
+
'otherPercentage'?: number;
|
|
2528
|
+
/**
|
|
2529
|
+
* Nombre total de joueurs
|
|
2530
|
+
* @type {number}
|
|
2531
|
+
* @memberof GenderPercentage
|
|
2532
|
+
*/
|
|
2533
|
+
'totalPlayers'?: number;
|
|
2534
|
+
}
|
|
2479
2535
|
/**
|
|
2480
2536
|
*
|
|
2481
2537
|
* @export
|
|
@@ -2532,25 +2588,6 @@ export interface GetClubInfos200Response {
|
|
|
2532
2588
|
*/
|
|
2533
2589
|
'websiteUrl'?: string;
|
|
2534
2590
|
}
|
|
2535
|
-
/**
|
|
2536
|
-
*
|
|
2537
|
-
* @export
|
|
2538
|
-
* @interface GetClubPlayers200Response
|
|
2539
|
-
*/
|
|
2540
|
-
export interface GetClubPlayers200Response {
|
|
2541
|
-
/**
|
|
2542
|
-
*
|
|
2543
|
-
* @type {Array<UserStaffResponse>}
|
|
2544
|
-
* @memberof GetClubPlayers200Response
|
|
2545
|
-
*/
|
|
2546
|
-
'clubPlayers'?: Array<UserStaffResponse>;
|
|
2547
|
-
/**
|
|
2548
|
-
*
|
|
2549
|
-
* @type {number}
|
|
2550
|
-
* @memberof GetClubPlayers200Response
|
|
2551
|
-
*/
|
|
2552
|
-
'total'?: number;
|
|
2553
|
-
}
|
|
2554
2591
|
/**
|
|
2555
2592
|
*
|
|
2556
2593
|
* @export
|
|
@@ -2927,6 +2964,62 @@ export interface LevelBySportsItem {
|
|
|
2927
2964
|
*/
|
|
2928
2965
|
'level': string;
|
|
2929
2966
|
}
|
|
2967
|
+
/**
|
|
2968
|
+
*
|
|
2969
|
+
* @export
|
|
2970
|
+
* @interface Location
|
|
2971
|
+
*/
|
|
2972
|
+
export interface Location {
|
|
2973
|
+
/**
|
|
2974
|
+
*
|
|
2975
|
+
* @type {string}
|
|
2976
|
+
* @memberof Location
|
|
2977
|
+
*/
|
|
2978
|
+
'type': LocationTypeEnum;
|
|
2979
|
+
/**
|
|
2980
|
+
* Longitude et latitude
|
|
2981
|
+
* @type {Array<number>}
|
|
2982
|
+
* @memberof Location
|
|
2983
|
+
*/
|
|
2984
|
+
'coordinates': Array<number>;
|
|
2985
|
+
/**
|
|
2986
|
+
*
|
|
2987
|
+
* @type {string}
|
|
2988
|
+
* @memberof Location
|
|
2989
|
+
*/
|
|
2990
|
+
'city'?: string;
|
|
2991
|
+
/**
|
|
2992
|
+
*
|
|
2993
|
+
* @type {string}
|
|
2994
|
+
* @memberof Location
|
|
2995
|
+
*/
|
|
2996
|
+
'country'?: string;
|
|
2997
|
+
/**
|
|
2998
|
+
*
|
|
2999
|
+
* @type {string}
|
|
3000
|
+
* @memberof Location
|
|
3001
|
+
*/
|
|
3002
|
+
'postalCode'?: string;
|
|
3003
|
+
/**
|
|
3004
|
+
*
|
|
3005
|
+
* @type {string}
|
|
3006
|
+
* @memberof Location
|
|
3007
|
+
*/
|
|
3008
|
+
'state'?: string;
|
|
3009
|
+
/**
|
|
3010
|
+
*
|
|
3011
|
+
* @type {string}
|
|
3012
|
+
* @memberof Location
|
|
3013
|
+
*/
|
|
3014
|
+
'address'?: string;
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
export const LocationTypeEnum = {
|
|
3018
|
+
Point: 'Point'
|
|
3019
|
+
} as const;
|
|
3020
|
+
|
|
3021
|
+
export type LocationTypeEnum = typeof LocationTypeEnum[keyof typeof LocationTypeEnum];
|
|
3022
|
+
|
|
2930
3023
|
/**
|
|
2931
3024
|
*
|
|
2932
3025
|
* @export
|
|
@@ -3880,12 +3973,6 @@ export interface SlotsResponse {
|
|
|
3880
3973
|
* @interface Sport
|
|
3881
3974
|
*/
|
|
3882
3975
|
export interface Sport {
|
|
3883
|
-
/**
|
|
3884
|
-
*
|
|
3885
|
-
* @type {string}
|
|
3886
|
-
* @memberof Sport
|
|
3887
|
-
*/
|
|
3888
|
-
'_id'?: string;
|
|
3889
3976
|
/**
|
|
3890
3977
|
*
|
|
3891
3978
|
* @type {string}
|
|
@@ -3960,25 +4047,6 @@ export interface SportResponse {
|
|
|
3960
4047
|
*/
|
|
3961
4048
|
'updatedAt'?: string;
|
|
3962
4049
|
}
|
|
3963
|
-
/**
|
|
3964
|
-
*
|
|
3965
|
-
* @export
|
|
3966
|
-
* @interface SportsResponse
|
|
3967
|
-
*/
|
|
3968
|
-
export interface SportsResponse {
|
|
3969
|
-
/**
|
|
3970
|
-
*
|
|
3971
|
-
* @type {Array<SportResponse>}
|
|
3972
|
-
* @memberof SportsResponse
|
|
3973
|
-
*/
|
|
3974
|
-
'sports'?: Array<SportResponse>;
|
|
3975
|
-
/**
|
|
3976
|
-
*
|
|
3977
|
-
* @type {number}
|
|
3978
|
-
* @memberof SportsResponse
|
|
3979
|
-
*/
|
|
3980
|
-
'total'?: number;
|
|
3981
|
-
}
|
|
3982
4050
|
/**
|
|
3983
4051
|
*
|
|
3984
4052
|
* @export
|
|
@@ -9336,6 +9404,40 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration?:
|
|
|
9336
9404
|
|
|
9337
9405
|
|
|
9338
9406
|
|
|
9407
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9408
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9409
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9410
|
+
|
|
9411
|
+
return {
|
|
9412
|
+
url: toPathString(localVarUrlObj),
|
|
9413
|
+
options: localVarRequestOptions,
|
|
9414
|
+
};
|
|
9415
|
+
},
|
|
9416
|
+
/**
|
|
9417
|
+
*
|
|
9418
|
+
* @summary Récupère le pourcentage de joueurs par genre pour le club courant
|
|
9419
|
+
* @param {*} [options] Override http request option.
|
|
9420
|
+
* @throws {RequiredError}
|
|
9421
|
+
*/
|
|
9422
|
+
getGenderPercentage: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9423
|
+
const localVarPath = `/api/analytics/gender`;
|
|
9424
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9425
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9426
|
+
let baseOptions;
|
|
9427
|
+
if (configuration) {
|
|
9428
|
+
baseOptions = configuration.baseOptions;
|
|
9429
|
+
}
|
|
9430
|
+
|
|
9431
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9432
|
+
const localVarHeaderParameter = {} as any;
|
|
9433
|
+
const localVarQueryParameter = {} as any;
|
|
9434
|
+
|
|
9435
|
+
// authentication bearerAuth required
|
|
9436
|
+
// http bearer authentication required
|
|
9437
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9438
|
+
|
|
9439
|
+
|
|
9440
|
+
|
|
9339
9441
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9340
9442
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9341
9443
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -9431,12 +9533,24 @@ export const StaffClubAnalyticsApiFp = function(configuration?: Configuration) {
|
|
|
9431
9533
|
* @param {*} [options] Override http request option.
|
|
9432
9534
|
* @throws {RequiredError}
|
|
9433
9535
|
*/
|
|
9434
|
-
async getClubPlayers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
9536
|
+
async getClubPlayers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserStaffResponse>>> {
|
|
9435
9537
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayers(options);
|
|
9436
9538
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9437
9539
|
const localVarOperationServerBasePath = operationServerMap['StaffClubAnalyticsApi.getClubPlayers']?.[localVarOperationServerIndex]?.url;
|
|
9438
9540
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9439
9541
|
},
|
|
9542
|
+
/**
|
|
9543
|
+
*
|
|
9544
|
+
* @summary Récupère le pourcentage de joueurs par genre pour le club courant
|
|
9545
|
+
* @param {*} [options] Override http request option.
|
|
9546
|
+
* @throws {RequiredError}
|
|
9547
|
+
*/
|
|
9548
|
+
async getGenderPercentage(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenderPercentage>> {
|
|
9549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGenderPercentage(options);
|
|
9550
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9551
|
+
const localVarOperationServerBasePath = operationServerMap['StaffClubAnalyticsApi.getGenderPercentage']?.[localVarOperationServerIndex]?.url;
|
|
9552
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9553
|
+
},
|
|
9440
9554
|
/**
|
|
9441
9555
|
*
|
|
9442
9556
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -9478,9 +9592,18 @@ export const StaffClubAnalyticsApiFactory = function (configuration?: Configurat
|
|
|
9478
9592
|
* @param {*} [options] Override http request option.
|
|
9479
9593
|
* @throws {RequiredError}
|
|
9480
9594
|
*/
|
|
9481
|
-
getClubPlayers(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
9595
|
+
getClubPlayers(options?: RawAxiosRequestConfig): AxiosPromise<Array<UserStaffResponse>> {
|
|
9482
9596
|
return localVarFp.getClubPlayers(options).then((request) => request(axios, basePath));
|
|
9483
9597
|
},
|
|
9598
|
+
/**
|
|
9599
|
+
*
|
|
9600
|
+
* @summary Récupère le pourcentage de joueurs par genre pour le club courant
|
|
9601
|
+
* @param {*} [options] Override http request option.
|
|
9602
|
+
* @throws {RequiredError}
|
|
9603
|
+
*/
|
|
9604
|
+
getGenderPercentage(options?: RawAxiosRequestConfig): AxiosPromise<GenderPercentage> {
|
|
9605
|
+
return localVarFp.getGenderPercentage(options).then((request) => request(axios, basePath));
|
|
9606
|
+
},
|
|
9484
9607
|
/**
|
|
9485
9608
|
*
|
|
9486
9609
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -9535,6 +9658,17 @@ export class StaffClubAnalyticsApi extends BaseAPI {
|
|
|
9535
9658
|
return StaffClubAnalyticsApiFp(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
9536
9659
|
}
|
|
9537
9660
|
|
|
9661
|
+
/**
|
|
9662
|
+
*
|
|
9663
|
+
* @summary Récupère le pourcentage de joueurs par genre pour le club courant
|
|
9664
|
+
* @param {*} [options] Override http request option.
|
|
9665
|
+
* @throws {RequiredError}
|
|
9666
|
+
* @memberof StaffClubAnalyticsApi
|
|
9667
|
+
*/
|
|
9668
|
+
public getGenderPercentage(options?: RawAxiosRequestConfig) {
|
|
9669
|
+
return StaffClubAnalyticsApiFp(this.configuration).getGenderPercentage(options).then((request) => request(this.axios, this.basePath));
|
|
9670
|
+
}
|
|
9671
|
+
|
|
9538
9672
|
/**
|
|
9539
9673
|
*
|
|
9540
9674
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -9814,7 +9948,7 @@ export const StaffClubsApiFp = function(configuration?: Configuration) {
|
|
|
9814
9948
|
* @param {*} [options] Override http request option.
|
|
9815
9949
|
* @throws {RequiredError}
|
|
9816
9950
|
*/
|
|
9817
|
-
async getSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
9951
|
+
async getSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
|
|
9818
9952
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSports(options);
|
|
9819
9953
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9820
9954
|
const localVarOperationServerBasePath = operationServerMap['StaffClubsApi.getSports']?.[localVarOperationServerIndex]?.url;
|
|
@@ -9854,7 +9988,7 @@ export const StaffClubsApiFactory = function (configuration?: Configuration, bas
|
|
|
9854
9988
|
* @param {*} [options] Override http request option.
|
|
9855
9989
|
* @throws {RequiredError}
|
|
9856
9990
|
*/
|
|
9857
|
-
getSports(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
9991
|
+
getSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
|
|
9858
9992
|
return localVarFp.getSports(options).then((request) => request(axios, basePath));
|
|
9859
9993
|
},
|
|
9860
9994
|
};
|
|
@@ -11482,7 +11616,7 @@ export const UserClubSportsApiFp = function(configuration?: Configuration) {
|
|
|
11482
11616
|
* @param {*} [options] Override http request option.
|
|
11483
11617
|
* @throws {RequiredError}
|
|
11484
11618
|
*/
|
|
11485
|
-
async getSportsByClub(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
11619
|
+
async getSportsByClub(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Sport>>> {
|
|
11486
11620
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSportsByClub(id, options);
|
|
11487
11621
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11488
11622
|
const localVarOperationServerBasePath = operationServerMap['UserClubSportsApi.getSportsByClub']?.[localVarOperationServerIndex]?.url;
|
|
@@ -11505,7 +11639,7 @@ export const UserClubSportsApiFactory = function (configuration?: Configuration,
|
|
|
11505
11639
|
* @param {*} [options] Override http request option.
|
|
11506
11640
|
* @throws {RequiredError}
|
|
11507
11641
|
*/
|
|
11508
|
-
getSportsByClub(requestParameters: UserClubSportsApiGetSportsByClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
11642
|
+
getSportsByClub(requestParameters: UserClubSportsApiGetSportsByClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Sport>> {
|
|
11509
11643
|
return localVarFp.getSportsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
11510
11644
|
},
|
|
11511
11645
|
};
|
|
@@ -14347,3 +14481,506 @@ export class UserSubscriptionsApi extends BaseAPI {
|
|
|
14347
14481
|
|
|
14348
14482
|
|
|
14349
14483
|
|
|
14484
|
+
/**
|
|
14485
|
+
* UsersApi - axios parameter creator
|
|
14486
|
+
* @export
|
|
14487
|
+
*/
|
|
14488
|
+
export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
14489
|
+
return {
|
|
14490
|
+
/**
|
|
14491
|
+
*
|
|
14492
|
+
* @summary Récupère les clubs proches de l’utilisateur connecté
|
|
14493
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
14494
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
14495
|
+
* @param {*} [options] Override http request option.
|
|
14496
|
+
* @throws {RequiredError}
|
|
14497
|
+
*/
|
|
14498
|
+
apiUsersMeNearestClubsGet: async (radiusInKm?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14499
|
+
const localVarPath = `/api/users/me/nearest-clubs/`;
|
|
14500
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14501
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14502
|
+
let baseOptions;
|
|
14503
|
+
if (configuration) {
|
|
14504
|
+
baseOptions = configuration.baseOptions;
|
|
14505
|
+
}
|
|
14506
|
+
|
|
14507
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14508
|
+
const localVarHeaderParameter = {} as any;
|
|
14509
|
+
const localVarQueryParameter = {} as any;
|
|
14510
|
+
|
|
14511
|
+
// authentication bearerAuth required
|
|
14512
|
+
// http bearer authentication required
|
|
14513
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14514
|
+
|
|
14515
|
+
if (radiusInKm !== undefined) {
|
|
14516
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
14517
|
+
}
|
|
14518
|
+
|
|
14519
|
+
if (limit !== undefined) {
|
|
14520
|
+
localVarQueryParameter['limit'] = limit;
|
|
14521
|
+
}
|
|
14522
|
+
|
|
14523
|
+
|
|
14524
|
+
|
|
14525
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14526
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14527
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14528
|
+
|
|
14529
|
+
return {
|
|
14530
|
+
url: toPathString(localVarUrlObj),
|
|
14531
|
+
options: localVarRequestOptions,
|
|
14532
|
+
};
|
|
14533
|
+
},
|
|
14534
|
+
/**
|
|
14535
|
+
*
|
|
14536
|
+
* @summary Récupère les utilisateurs proches de l’utilisateur connecté
|
|
14537
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
14538
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
14539
|
+
* @param {*} [options] Override http request option.
|
|
14540
|
+
* @throws {RequiredError}
|
|
14541
|
+
*/
|
|
14542
|
+
apiUsersMeNearestPlayersGet: async (radiusInKm?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14543
|
+
const localVarPath = `/api/users/me/nearest-players/`;
|
|
14544
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14545
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14546
|
+
let baseOptions;
|
|
14547
|
+
if (configuration) {
|
|
14548
|
+
baseOptions = configuration.baseOptions;
|
|
14549
|
+
}
|
|
14550
|
+
|
|
14551
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14552
|
+
const localVarHeaderParameter = {} as any;
|
|
14553
|
+
const localVarQueryParameter = {} as any;
|
|
14554
|
+
|
|
14555
|
+
// authentication bearerAuth required
|
|
14556
|
+
// http bearer authentication required
|
|
14557
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14558
|
+
|
|
14559
|
+
if (radiusInKm !== undefined) {
|
|
14560
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
14561
|
+
}
|
|
14562
|
+
|
|
14563
|
+
if (limit !== undefined) {
|
|
14564
|
+
localVarQueryParameter['limit'] = limit;
|
|
14565
|
+
}
|
|
14566
|
+
|
|
14567
|
+
|
|
14568
|
+
|
|
14569
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14570
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14571
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14572
|
+
|
|
14573
|
+
return {
|
|
14574
|
+
url: toPathString(localVarUrlObj),
|
|
14575
|
+
options: localVarRequestOptions,
|
|
14576
|
+
};
|
|
14577
|
+
},
|
|
14578
|
+
/**
|
|
14579
|
+
*
|
|
14580
|
+
* @summary Récupère les clubs proches d’une position donnée
|
|
14581
|
+
* @param {number} latitude Latitude de la position
|
|
14582
|
+
* @param {number} longitude Longitude de la position
|
|
14583
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
14584
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
14585
|
+
* @param {*} [options] Override http request option.
|
|
14586
|
+
* @throws {RequiredError}
|
|
14587
|
+
*/
|
|
14588
|
+
apiUsersNearestClubsCoordinatesGet: async (latitude: number, longitude: number, radiusInKm?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14589
|
+
// verify required parameter 'latitude' is not null or undefined
|
|
14590
|
+
assertParamExists('apiUsersNearestClubsCoordinatesGet', 'latitude', latitude)
|
|
14591
|
+
// verify required parameter 'longitude' is not null or undefined
|
|
14592
|
+
assertParamExists('apiUsersNearestClubsCoordinatesGet', 'longitude', longitude)
|
|
14593
|
+
const localVarPath = `/api/users/nearest-clubs/coordinates`;
|
|
14594
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14595
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14596
|
+
let baseOptions;
|
|
14597
|
+
if (configuration) {
|
|
14598
|
+
baseOptions = configuration.baseOptions;
|
|
14599
|
+
}
|
|
14600
|
+
|
|
14601
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14602
|
+
const localVarHeaderParameter = {} as any;
|
|
14603
|
+
const localVarQueryParameter = {} as any;
|
|
14604
|
+
|
|
14605
|
+
// authentication bearerAuth required
|
|
14606
|
+
// http bearer authentication required
|
|
14607
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14608
|
+
|
|
14609
|
+
if (latitude !== undefined) {
|
|
14610
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
14611
|
+
}
|
|
14612
|
+
|
|
14613
|
+
if (longitude !== undefined) {
|
|
14614
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
14615
|
+
}
|
|
14616
|
+
|
|
14617
|
+
if (radiusInKm !== undefined) {
|
|
14618
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
14619
|
+
}
|
|
14620
|
+
|
|
14621
|
+
if (limit !== undefined) {
|
|
14622
|
+
localVarQueryParameter['limit'] = limit;
|
|
14623
|
+
}
|
|
14624
|
+
|
|
14625
|
+
|
|
14626
|
+
|
|
14627
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14628
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14629
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14630
|
+
|
|
14631
|
+
return {
|
|
14632
|
+
url: toPathString(localVarUrlObj),
|
|
14633
|
+
options: localVarRequestOptions,
|
|
14634
|
+
};
|
|
14635
|
+
},
|
|
14636
|
+
/**
|
|
14637
|
+
*
|
|
14638
|
+
* @summary Récupère les utilisateurs proches d’une position donnée
|
|
14639
|
+
* @param {number} latitude Latitude de la position
|
|
14640
|
+
* @param {number} longitude Longitude de la position
|
|
14641
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
14642
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
14643
|
+
* @param {*} [options] Override http request option.
|
|
14644
|
+
* @throws {RequiredError}
|
|
14645
|
+
*/
|
|
14646
|
+
apiUsersNearestPlayersCoordinatesGet: async (latitude: number, longitude: number, radiusInKm?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14647
|
+
// verify required parameter 'latitude' is not null or undefined
|
|
14648
|
+
assertParamExists('apiUsersNearestPlayersCoordinatesGet', 'latitude', latitude)
|
|
14649
|
+
// verify required parameter 'longitude' is not null or undefined
|
|
14650
|
+
assertParamExists('apiUsersNearestPlayersCoordinatesGet', 'longitude', longitude)
|
|
14651
|
+
const localVarPath = `/api/users/nearest-players/coordinates`;
|
|
14652
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14653
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14654
|
+
let baseOptions;
|
|
14655
|
+
if (configuration) {
|
|
14656
|
+
baseOptions = configuration.baseOptions;
|
|
14657
|
+
}
|
|
14658
|
+
|
|
14659
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14660
|
+
const localVarHeaderParameter = {} as any;
|
|
14661
|
+
const localVarQueryParameter = {} as any;
|
|
14662
|
+
|
|
14663
|
+
// authentication bearerAuth required
|
|
14664
|
+
// http bearer authentication required
|
|
14665
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14666
|
+
|
|
14667
|
+
if (latitude !== undefined) {
|
|
14668
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
14669
|
+
}
|
|
14670
|
+
|
|
14671
|
+
if (longitude !== undefined) {
|
|
14672
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
14673
|
+
}
|
|
14674
|
+
|
|
14675
|
+
if (radiusInKm !== undefined) {
|
|
14676
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
14677
|
+
}
|
|
14678
|
+
|
|
14679
|
+
if (limit !== undefined) {
|
|
14680
|
+
localVarQueryParameter['limit'] = limit;
|
|
14681
|
+
}
|
|
14682
|
+
|
|
14683
|
+
|
|
14684
|
+
|
|
14685
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14686
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14687
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14688
|
+
|
|
14689
|
+
return {
|
|
14690
|
+
url: toPathString(localVarUrlObj),
|
|
14691
|
+
options: localVarRequestOptions,
|
|
14692
|
+
};
|
|
14693
|
+
},
|
|
14694
|
+
}
|
|
14695
|
+
};
|
|
14696
|
+
|
|
14697
|
+
/**
|
|
14698
|
+
* UsersApi - functional programming interface
|
|
14699
|
+
* @export
|
|
14700
|
+
*/
|
|
14701
|
+
export const UsersApiFp = function(configuration?: Configuration) {
|
|
14702
|
+
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
|
|
14703
|
+
return {
|
|
14704
|
+
/**
|
|
14705
|
+
*
|
|
14706
|
+
* @summary Récupère les clubs proches de l’utilisateur connecté
|
|
14707
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
14708
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
14709
|
+
* @param {*} [options] Override http request option.
|
|
14710
|
+
* @throws {RequiredError}
|
|
14711
|
+
*/
|
|
14712
|
+
async apiUsersMeNearestClubsGet(radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Club>>> {
|
|
14713
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiUsersMeNearestClubsGet(radiusInKm, limit, options);
|
|
14714
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14715
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.apiUsersMeNearestClubsGet']?.[localVarOperationServerIndex]?.url;
|
|
14716
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14717
|
+
},
|
|
14718
|
+
/**
|
|
14719
|
+
*
|
|
14720
|
+
* @summary Récupère les utilisateurs proches de l’utilisateur connecté
|
|
14721
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
14722
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
14723
|
+
* @param {*} [options] Override http request option.
|
|
14724
|
+
* @throws {RequiredError}
|
|
14725
|
+
*/
|
|
14726
|
+
async apiUsersMeNearestPlayersGet(radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponse>>> {
|
|
14727
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiUsersMeNearestPlayersGet(radiusInKm, limit, options);
|
|
14728
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14729
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.apiUsersMeNearestPlayersGet']?.[localVarOperationServerIndex]?.url;
|
|
14730
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14731
|
+
},
|
|
14732
|
+
/**
|
|
14733
|
+
*
|
|
14734
|
+
* @summary Récupère les clubs proches d’une position donnée
|
|
14735
|
+
* @param {number} latitude Latitude de la position
|
|
14736
|
+
* @param {number} longitude Longitude de la position
|
|
14737
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
14738
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
14739
|
+
* @param {*} [options] Override http request option.
|
|
14740
|
+
* @throws {RequiredError}
|
|
14741
|
+
*/
|
|
14742
|
+
async apiUsersNearestClubsCoordinatesGet(latitude: number, longitude: number, radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Club>>> {
|
|
14743
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiUsersNearestClubsCoordinatesGet(latitude, longitude, radiusInKm, limit, options);
|
|
14744
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14745
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.apiUsersNearestClubsCoordinatesGet']?.[localVarOperationServerIndex]?.url;
|
|
14746
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14747
|
+
},
|
|
14748
|
+
/**
|
|
14749
|
+
*
|
|
14750
|
+
* @summary Récupère les utilisateurs proches d’une position donnée
|
|
14751
|
+
* @param {number} latitude Latitude de la position
|
|
14752
|
+
* @param {number} longitude Longitude de la position
|
|
14753
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
14754
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
14755
|
+
* @param {*} [options] Override http request option.
|
|
14756
|
+
* @throws {RequiredError}
|
|
14757
|
+
*/
|
|
14758
|
+
async apiUsersNearestPlayersCoordinatesGet(latitude: number, longitude: number, radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponse>>> {
|
|
14759
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiUsersNearestPlayersCoordinatesGet(latitude, longitude, radiusInKm, limit, options);
|
|
14760
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14761
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.apiUsersNearestPlayersCoordinatesGet']?.[localVarOperationServerIndex]?.url;
|
|
14762
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14763
|
+
},
|
|
14764
|
+
}
|
|
14765
|
+
};
|
|
14766
|
+
|
|
14767
|
+
/**
|
|
14768
|
+
* UsersApi - factory interface
|
|
14769
|
+
* @export
|
|
14770
|
+
*/
|
|
14771
|
+
export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
14772
|
+
const localVarFp = UsersApiFp(configuration)
|
|
14773
|
+
return {
|
|
14774
|
+
/**
|
|
14775
|
+
*
|
|
14776
|
+
* @summary Récupère les clubs proches de l’utilisateur connecté
|
|
14777
|
+
* @param {UsersApiApiUsersMeNearestClubsGetRequest} requestParameters Request parameters.
|
|
14778
|
+
* @param {*} [options] Override http request option.
|
|
14779
|
+
* @throws {RequiredError}
|
|
14780
|
+
*/
|
|
14781
|
+
apiUsersMeNearestClubsGet(requestParameters: UsersApiApiUsersMeNearestClubsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<Club>> {
|
|
14782
|
+
return localVarFp.apiUsersMeNearestClubsGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
14783
|
+
},
|
|
14784
|
+
/**
|
|
14785
|
+
*
|
|
14786
|
+
* @summary Récupère les utilisateurs proches de l’utilisateur connecté
|
|
14787
|
+
* @param {UsersApiApiUsersMeNearestPlayersGetRequest} requestParameters Request parameters.
|
|
14788
|
+
* @param {*} [options] Override http request option.
|
|
14789
|
+
* @throws {RequiredError}
|
|
14790
|
+
*/
|
|
14791
|
+
apiUsersMeNearestPlayersGet(requestParameters: UsersApiApiUsersMeNearestPlayersGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserResponse>> {
|
|
14792
|
+
return localVarFp.apiUsersMeNearestPlayersGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
14793
|
+
},
|
|
14794
|
+
/**
|
|
14795
|
+
*
|
|
14796
|
+
* @summary Récupère les clubs proches d’une position donnée
|
|
14797
|
+
* @param {UsersApiApiUsersNearestClubsCoordinatesGetRequest} requestParameters Request parameters.
|
|
14798
|
+
* @param {*} [options] Override http request option.
|
|
14799
|
+
* @throws {RequiredError}
|
|
14800
|
+
*/
|
|
14801
|
+
apiUsersNearestClubsCoordinatesGet(requestParameters: UsersApiApiUsersNearestClubsCoordinatesGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Club>> {
|
|
14802
|
+
return localVarFp.apiUsersNearestClubsCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
14803
|
+
},
|
|
14804
|
+
/**
|
|
14805
|
+
*
|
|
14806
|
+
* @summary Récupère les utilisateurs proches d’une position donnée
|
|
14807
|
+
* @param {UsersApiApiUsersNearestPlayersCoordinatesGetRequest} requestParameters Request parameters.
|
|
14808
|
+
* @param {*} [options] Override http request option.
|
|
14809
|
+
* @throws {RequiredError}
|
|
14810
|
+
*/
|
|
14811
|
+
apiUsersNearestPlayersCoordinatesGet(requestParameters: UsersApiApiUsersNearestPlayersCoordinatesGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserResponse>> {
|
|
14812
|
+
return localVarFp.apiUsersNearestPlayersCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
14813
|
+
},
|
|
14814
|
+
};
|
|
14815
|
+
};
|
|
14816
|
+
|
|
14817
|
+
/**
|
|
14818
|
+
* Request parameters for apiUsersMeNearestClubsGet operation in UsersApi.
|
|
14819
|
+
* @export
|
|
14820
|
+
* @interface UsersApiApiUsersMeNearestClubsGetRequest
|
|
14821
|
+
*/
|
|
14822
|
+
export interface UsersApiApiUsersMeNearestClubsGetRequest {
|
|
14823
|
+
/**
|
|
14824
|
+
* Rayon de recherche en kilomètres
|
|
14825
|
+
* @type {number}
|
|
14826
|
+
* @memberof UsersApiApiUsersMeNearestClubsGet
|
|
14827
|
+
*/
|
|
14828
|
+
readonly radiusInKm?: number
|
|
14829
|
+
|
|
14830
|
+
/**
|
|
14831
|
+
* Nombre maximum de résultats
|
|
14832
|
+
* @type {number}
|
|
14833
|
+
* @memberof UsersApiApiUsersMeNearestClubsGet
|
|
14834
|
+
*/
|
|
14835
|
+
readonly limit?: number
|
|
14836
|
+
}
|
|
14837
|
+
|
|
14838
|
+
/**
|
|
14839
|
+
* Request parameters for apiUsersMeNearestPlayersGet operation in UsersApi.
|
|
14840
|
+
* @export
|
|
14841
|
+
* @interface UsersApiApiUsersMeNearestPlayersGetRequest
|
|
14842
|
+
*/
|
|
14843
|
+
export interface UsersApiApiUsersMeNearestPlayersGetRequest {
|
|
14844
|
+
/**
|
|
14845
|
+
* Rayon de recherche en kilomètres
|
|
14846
|
+
* @type {number}
|
|
14847
|
+
* @memberof UsersApiApiUsersMeNearestPlayersGet
|
|
14848
|
+
*/
|
|
14849
|
+
readonly radiusInKm?: number
|
|
14850
|
+
|
|
14851
|
+
/**
|
|
14852
|
+
* Nombre maximum de résultats
|
|
14853
|
+
* @type {number}
|
|
14854
|
+
* @memberof UsersApiApiUsersMeNearestPlayersGet
|
|
14855
|
+
*/
|
|
14856
|
+
readonly limit?: number
|
|
14857
|
+
}
|
|
14858
|
+
|
|
14859
|
+
/**
|
|
14860
|
+
* Request parameters for apiUsersNearestClubsCoordinatesGet operation in UsersApi.
|
|
14861
|
+
* @export
|
|
14862
|
+
* @interface UsersApiApiUsersNearestClubsCoordinatesGetRequest
|
|
14863
|
+
*/
|
|
14864
|
+
export interface UsersApiApiUsersNearestClubsCoordinatesGetRequest {
|
|
14865
|
+
/**
|
|
14866
|
+
* Latitude de la position
|
|
14867
|
+
* @type {number}
|
|
14868
|
+
* @memberof UsersApiApiUsersNearestClubsCoordinatesGet
|
|
14869
|
+
*/
|
|
14870
|
+
readonly latitude: number
|
|
14871
|
+
|
|
14872
|
+
/**
|
|
14873
|
+
* Longitude de la position
|
|
14874
|
+
* @type {number}
|
|
14875
|
+
* @memberof UsersApiApiUsersNearestClubsCoordinatesGet
|
|
14876
|
+
*/
|
|
14877
|
+
readonly longitude: number
|
|
14878
|
+
|
|
14879
|
+
/**
|
|
14880
|
+
* Rayon de recherche en kilomètres
|
|
14881
|
+
* @type {number}
|
|
14882
|
+
* @memberof UsersApiApiUsersNearestClubsCoordinatesGet
|
|
14883
|
+
*/
|
|
14884
|
+
readonly radiusInKm?: number
|
|
14885
|
+
|
|
14886
|
+
/**
|
|
14887
|
+
* Nombre maximum de résultats
|
|
14888
|
+
* @type {number}
|
|
14889
|
+
* @memberof UsersApiApiUsersNearestClubsCoordinatesGet
|
|
14890
|
+
*/
|
|
14891
|
+
readonly limit?: number
|
|
14892
|
+
}
|
|
14893
|
+
|
|
14894
|
+
/**
|
|
14895
|
+
* Request parameters for apiUsersNearestPlayersCoordinatesGet operation in UsersApi.
|
|
14896
|
+
* @export
|
|
14897
|
+
* @interface UsersApiApiUsersNearestPlayersCoordinatesGetRequest
|
|
14898
|
+
*/
|
|
14899
|
+
export interface UsersApiApiUsersNearestPlayersCoordinatesGetRequest {
|
|
14900
|
+
/**
|
|
14901
|
+
* Latitude de la position
|
|
14902
|
+
* @type {number}
|
|
14903
|
+
* @memberof UsersApiApiUsersNearestPlayersCoordinatesGet
|
|
14904
|
+
*/
|
|
14905
|
+
readonly latitude: number
|
|
14906
|
+
|
|
14907
|
+
/**
|
|
14908
|
+
* Longitude de la position
|
|
14909
|
+
* @type {number}
|
|
14910
|
+
* @memberof UsersApiApiUsersNearestPlayersCoordinatesGet
|
|
14911
|
+
*/
|
|
14912
|
+
readonly longitude: number
|
|
14913
|
+
|
|
14914
|
+
/**
|
|
14915
|
+
* Rayon de recherche en kilomètres
|
|
14916
|
+
* @type {number}
|
|
14917
|
+
* @memberof UsersApiApiUsersNearestPlayersCoordinatesGet
|
|
14918
|
+
*/
|
|
14919
|
+
readonly radiusInKm?: number
|
|
14920
|
+
|
|
14921
|
+
/**
|
|
14922
|
+
* Nombre maximum de résultats
|
|
14923
|
+
* @type {number}
|
|
14924
|
+
* @memberof UsersApiApiUsersNearestPlayersCoordinatesGet
|
|
14925
|
+
*/
|
|
14926
|
+
readonly limit?: number
|
|
14927
|
+
}
|
|
14928
|
+
|
|
14929
|
+
/**
|
|
14930
|
+
* UsersApi - object-oriented interface
|
|
14931
|
+
* @export
|
|
14932
|
+
* @class UsersApi
|
|
14933
|
+
* @extends {BaseAPI}
|
|
14934
|
+
*/
|
|
14935
|
+
export class UsersApi extends BaseAPI {
|
|
14936
|
+
/**
|
|
14937
|
+
*
|
|
14938
|
+
* @summary Récupère les clubs proches de l’utilisateur connecté
|
|
14939
|
+
* @param {UsersApiApiUsersMeNearestClubsGetRequest} requestParameters Request parameters.
|
|
14940
|
+
* @param {*} [options] Override http request option.
|
|
14941
|
+
* @throws {RequiredError}
|
|
14942
|
+
* @memberof UsersApi
|
|
14943
|
+
*/
|
|
14944
|
+
public apiUsersMeNearestClubsGet(requestParameters: UsersApiApiUsersMeNearestClubsGetRequest = {}, options?: RawAxiosRequestConfig) {
|
|
14945
|
+
return UsersApiFp(this.configuration).apiUsersMeNearestClubsGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
14946
|
+
}
|
|
14947
|
+
|
|
14948
|
+
/**
|
|
14949
|
+
*
|
|
14950
|
+
* @summary Récupère les utilisateurs proches de l’utilisateur connecté
|
|
14951
|
+
* @param {UsersApiApiUsersMeNearestPlayersGetRequest} requestParameters Request parameters.
|
|
14952
|
+
* @param {*} [options] Override http request option.
|
|
14953
|
+
* @throws {RequiredError}
|
|
14954
|
+
* @memberof UsersApi
|
|
14955
|
+
*/
|
|
14956
|
+
public apiUsersMeNearestPlayersGet(requestParameters: UsersApiApiUsersMeNearestPlayersGetRequest = {}, options?: RawAxiosRequestConfig) {
|
|
14957
|
+
return UsersApiFp(this.configuration).apiUsersMeNearestPlayersGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
14958
|
+
}
|
|
14959
|
+
|
|
14960
|
+
/**
|
|
14961
|
+
*
|
|
14962
|
+
* @summary Récupère les clubs proches d’une position donnée
|
|
14963
|
+
* @param {UsersApiApiUsersNearestClubsCoordinatesGetRequest} requestParameters Request parameters.
|
|
14964
|
+
* @param {*} [options] Override http request option.
|
|
14965
|
+
* @throws {RequiredError}
|
|
14966
|
+
* @memberof UsersApi
|
|
14967
|
+
*/
|
|
14968
|
+
public apiUsersNearestClubsCoordinatesGet(requestParameters: UsersApiApiUsersNearestClubsCoordinatesGetRequest, options?: RawAxiosRequestConfig) {
|
|
14969
|
+
return UsersApiFp(this.configuration).apiUsersNearestClubsCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
14970
|
+
}
|
|
14971
|
+
|
|
14972
|
+
/**
|
|
14973
|
+
*
|
|
14974
|
+
* @summary Récupère les utilisateurs proches d’une position donnée
|
|
14975
|
+
* @param {UsersApiApiUsersNearestPlayersCoordinatesGetRequest} requestParameters Request parameters.
|
|
14976
|
+
* @param {*} [options] Override http request option.
|
|
14977
|
+
* @throws {RequiredError}
|
|
14978
|
+
* @memberof UsersApi
|
|
14979
|
+
*/
|
|
14980
|
+
public apiUsersNearestPlayersCoordinatesGet(requestParameters: UsersApiApiUsersNearestPlayersCoordinatesGetRequest, options?: RawAxiosRequestConfig) {
|
|
14981
|
+
return UsersApiFp(this.configuration).apiUsersNearestPlayersCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
14982
|
+
}
|
|
14983
|
+
}
|
|
14984
|
+
|
|
14985
|
+
|
|
14986
|
+
|