@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/dist/esm/api.js
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).
|
|
@@ -75,6 +75,11 @@ export const CourtStatus = {
|
|
|
75
75
|
Maintenance: 'maintenance',
|
|
76
76
|
Inactive: 'inactive'
|
|
77
77
|
};
|
|
78
|
+
export const CourtWithNameResponseSurfaceEnum = {
|
|
79
|
+
Clay: 'clay',
|
|
80
|
+
Grass: 'grass',
|
|
81
|
+
Hard: 'hard'
|
|
82
|
+
};
|
|
78
83
|
export const CreatePriceRequestIntervalEnum = {
|
|
79
84
|
Day: 'day',
|
|
80
85
|
Week: 'week',
|
|
@@ -94,6 +99,9 @@ export const InvoicesResponseInvoicesInnerStatusEnum = {
|
|
|
94
99
|
Canceled: 'canceled',
|
|
95
100
|
Expired: 'expired'
|
|
96
101
|
};
|
|
102
|
+
export const LocationTypeEnum = {
|
|
103
|
+
Point: 'Point'
|
|
104
|
+
};
|
|
97
105
|
export const ManagerCancelBookingResponseBookingStatusEnum = {
|
|
98
106
|
Cancelled: 'cancelled'
|
|
99
107
|
};
|
|
@@ -3449,6 +3457,34 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
3449
3457
|
options: localVarRequestOptions,
|
|
3450
3458
|
};
|
|
3451
3459
|
}),
|
|
3460
|
+
/**
|
|
3461
|
+
*
|
|
3462
|
+
* @summary Récupère le pourcentage de joueurs par genre pour le club courant
|
|
3463
|
+
* @param {*} [options] Override http request option.
|
|
3464
|
+
* @throws {RequiredError}
|
|
3465
|
+
*/
|
|
3466
|
+
getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3467
|
+
const localVarPath = `/api/analytics/gender`;
|
|
3468
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3469
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3470
|
+
let baseOptions;
|
|
3471
|
+
if (configuration) {
|
|
3472
|
+
baseOptions = configuration.baseOptions;
|
|
3473
|
+
}
|
|
3474
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3475
|
+
const localVarHeaderParameter = {};
|
|
3476
|
+
const localVarQueryParameter = {};
|
|
3477
|
+
// authentication bearerAuth required
|
|
3478
|
+
// http bearer authentication required
|
|
3479
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3480
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3481
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3482
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3483
|
+
return {
|
|
3484
|
+
url: toPathString(localVarUrlObj),
|
|
3485
|
+
options: localVarRequestOptions,
|
|
3486
|
+
};
|
|
3487
|
+
}),
|
|
3452
3488
|
/**
|
|
3453
3489
|
*
|
|
3454
3490
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -3531,6 +3567,21 @@ export const StaffClubAnalyticsApiFp = function (configuration) {
|
|
|
3531
3567
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3532
3568
|
});
|
|
3533
3569
|
},
|
|
3570
|
+
/**
|
|
3571
|
+
*
|
|
3572
|
+
* @summary Récupère le pourcentage de joueurs par genre pour le club courant
|
|
3573
|
+
* @param {*} [options] Override http request option.
|
|
3574
|
+
* @throws {RequiredError}
|
|
3575
|
+
*/
|
|
3576
|
+
getGenderPercentage(options) {
|
|
3577
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3578
|
+
var _a, _b, _c;
|
|
3579
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGenderPercentage(options);
|
|
3580
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3581
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getGenderPercentage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3582
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3583
|
+
});
|
|
3584
|
+
},
|
|
3534
3585
|
/**
|
|
3535
3586
|
*
|
|
3536
3587
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -3580,6 +3631,15 @@ export const StaffClubAnalyticsApiFactory = function (configuration, basePath, a
|
|
|
3580
3631
|
getClubPlayers(options) {
|
|
3581
3632
|
return localVarFp.getClubPlayers(options).then((request) => request(axios, basePath));
|
|
3582
3633
|
},
|
|
3634
|
+
/**
|
|
3635
|
+
*
|
|
3636
|
+
* @summary Récupère le pourcentage de joueurs par genre pour le club courant
|
|
3637
|
+
* @param {*} [options] Override http request option.
|
|
3638
|
+
* @throws {RequiredError}
|
|
3639
|
+
*/
|
|
3640
|
+
getGenderPercentage(options) {
|
|
3641
|
+
return localVarFp.getGenderPercentage(options).then((request) => request(axios, basePath));
|
|
3642
|
+
},
|
|
3583
3643
|
/**
|
|
3584
3644
|
*
|
|
3585
3645
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -3618,6 +3678,16 @@ export class StaffClubAnalyticsApi extends BaseAPI {
|
|
|
3618
3678
|
getClubPlayers(options) {
|
|
3619
3679
|
return StaffClubAnalyticsApiFp(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
3620
3680
|
}
|
|
3681
|
+
/**
|
|
3682
|
+
*
|
|
3683
|
+
* @summary Récupère le pourcentage de joueurs par genre pour le club courant
|
|
3684
|
+
* @param {*} [options] Override http request option.
|
|
3685
|
+
* @throws {RequiredError}
|
|
3686
|
+
* @memberof StaffClubAnalyticsApi
|
|
3687
|
+
*/
|
|
3688
|
+
getGenderPercentage(options) {
|
|
3689
|
+
return StaffClubAnalyticsApiFp(this.configuration).getGenderPercentage(options).then((request) => request(this.axios, this.basePath));
|
|
3690
|
+
}
|
|
3621
3691
|
/**
|
|
3622
3692
|
*
|
|
3623
3693
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -7587,3 +7657,361 @@ export class UserSubscriptionsApi extends BaseAPI {
|
|
|
7587
7657
|
return UserSubscriptionsApiFp(this.configuration).resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
7588
7658
|
}
|
|
7589
7659
|
}
|
|
7660
|
+
/**
|
|
7661
|
+
* UsersApi - axios parameter creator
|
|
7662
|
+
* @export
|
|
7663
|
+
*/
|
|
7664
|
+
export const UsersApiAxiosParamCreator = function (configuration) {
|
|
7665
|
+
return {
|
|
7666
|
+
/**
|
|
7667
|
+
*
|
|
7668
|
+
* @summary Récupère les clubs proches de l’utilisateur connecté
|
|
7669
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
7670
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
7671
|
+
* @param {*} [options] Override http request option.
|
|
7672
|
+
* @throws {RequiredError}
|
|
7673
|
+
*/
|
|
7674
|
+
apiUsersMeNearestClubsGet: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
|
|
7675
|
+
const localVarPath = `/api/users/me/nearest-clubs/`;
|
|
7676
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7677
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7678
|
+
let baseOptions;
|
|
7679
|
+
if (configuration) {
|
|
7680
|
+
baseOptions = configuration.baseOptions;
|
|
7681
|
+
}
|
|
7682
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7683
|
+
const localVarHeaderParameter = {};
|
|
7684
|
+
const localVarQueryParameter = {};
|
|
7685
|
+
// authentication bearerAuth required
|
|
7686
|
+
// http bearer authentication required
|
|
7687
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7688
|
+
if (radiusInKm !== undefined) {
|
|
7689
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7690
|
+
}
|
|
7691
|
+
if (limit !== undefined) {
|
|
7692
|
+
localVarQueryParameter['limit'] = limit;
|
|
7693
|
+
}
|
|
7694
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7695
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7696
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7697
|
+
return {
|
|
7698
|
+
url: toPathString(localVarUrlObj),
|
|
7699
|
+
options: localVarRequestOptions,
|
|
7700
|
+
};
|
|
7701
|
+
}),
|
|
7702
|
+
/**
|
|
7703
|
+
*
|
|
7704
|
+
* @summary Récupère les utilisateurs proches de l’utilisateur connecté
|
|
7705
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
7706
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
7707
|
+
* @param {*} [options] Override http request option.
|
|
7708
|
+
* @throws {RequiredError}
|
|
7709
|
+
*/
|
|
7710
|
+
apiUsersMeNearestPlayersGet: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
|
|
7711
|
+
const localVarPath = `/api/users/me/nearest-players/`;
|
|
7712
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7713
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7714
|
+
let baseOptions;
|
|
7715
|
+
if (configuration) {
|
|
7716
|
+
baseOptions = configuration.baseOptions;
|
|
7717
|
+
}
|
|
7718
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7719
|
+
const localVarHeaderParameter = {};
|
|
7720
|
+
const localVarQueryParameter = {};
|
|
7721
|
+
// authentication bearerAuth required
|
|
7722
|
+
// http bearer authentication required
|
|
7723
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7724
|
+
if (radiusInKm !== undefined) {
|
|
7725
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7726
|
+
}
|
|
7727
|
+
if (limit !== undefined) {
|
|
7728
|
+
localVarQueryParameter['limit'] = limit;
|
|
7729
|
+
}
|
|
7730
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7731
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7732
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7733
|
+
return {
|
|
7734
|
+
url: toPathString(localVarUrlObj),
|
|
7735
|
+
options: localVarRequestOptions,
|
|
7736
|
+
};
|
|
7737
|
+
}),
|
|
7738
|
+
/**
|
|
7739
|
+
*
|
|
7740
|
+
* @summary Récupère les clubs proches d’une position donnée
|
|
7741
|
+
* @param {number} latitude Latitude de la position
|
|
7742
|
+
* @param {number} longitude Longitude de la position
|
|
7743
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
7744
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
7745
|
+
* @param {*} [options] Override http request option.
|
|
7746
|
+
* @throws {RequiredError}
|
|
7747
|
+
*/
|
|
7748
|
+
apiUsersNearestClubsCoordinatesGet: (latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, limit, options = {}) {
|
|
7749
|
+
// verify required parameter 'latitude' is not null or undefined
|
|
7750
|
+
assertParamExists('apiUsersNearestClubsCoordinatesGet', 'latitude', latitude);
|
|
7751
|
+
// verify required parameter 'longitude' is not null or undefined
|
|
7752
|
+
assertParamExists('apiUsersNearestClubsCoordinatesGet', 'longitude', longitude);
|
|
7753
|
+
const localVarPath = `/api/users/nearest-clubs/coordinates`;
|
|
7754
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7755
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7756
|
+
let baseOptions;
|
|
7757
|
+
if (configuration) {
|
|
7758
|
+
baseOptions = configuration.baseOptions;
|
|
7759
|
+
}
|
|
7760
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7761
|
+
const localVarHeaderParameter = {};
|
|
7762
|
+
const localVarQueryParameter = {};
|
|
7763
|
+
// authentication bearerAuth required
|
|
7764
|
+
// http bearer authentication required
|
|
7765
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7766
|
+
if (latitude !== undefined) {
|
|
7767
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
7768
|
+
}
|
|
7769
|
+
if (longitude !== undefined) {
|
|
7770
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
7771
|
+
}
|
|
7772
|
+
if (radiusInKm !== undefined) {
|
|
7773
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7774
|
+
}
|
|
7775
|
+
if (limit !== undefined) {
|
|
7776
|
+
localVarQueryParameter['limit'] = limit;
|
|
7777
|
+
}
|
|
7778
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7779
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7780
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7781
|
+
return {
|
|
7782
|
+
url: toPathString(localVarUrlObj),
|
|
7783
|
+
options: localVarRequestOptions,
|
|
7784
|
+
};
|
|
7785
|
+
}),
|
|
7786
|
+
/**
|
|
7787
|
+
*
|
|
7788
|
+
* @summary Récupère les utilisateurs proches d’une position donnée
|
|
7789
|
+
* @param {number} latitude Latitude de la position
|
|
7790
|
+
* @param {number} longitude Longitude de la position
|
|
7791
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
7792
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
7793
|
+
* @param {*} [options] Override http request option.
|
|
7794
|
+
* @throws {RequiredError}
|
|
7795
|
+
*/
|
|
7796
|
+
apiUsersNearestPlayersCoordinatesGet: (latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, limit, options = {}) {
|
|
7797
|
+
// verify required parameter 'latitude' is not null or undefined
|
|
7798
|
+
assertParamExists('apiUsersNearestPlayersCoordinatesGet', 'latitude', latitude);
|
|
7799
|
+
// verify required parameter 'longitude' is not null or undefined
|
|
7800
|
+
assertParamExists('apiUsersNearestPlayersCoordinatesGet', 'longitude', longitude);
|
|
7801
|
+
const localVarPath = `/api/users/nearest-players/coordinates`;
|
|
7802
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7803
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7804
|
+
let baseOptions;
|
|
7805
|
+
if (configuration) {
|
|
7806
|
+
baseOptions = configuration.baseOptions;
|
|
7807
|
+
}
|
|
7808
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7809
|
+
const localVarHeaderParameter = {};
|
|
7810
|
+
const localVarQueryParameter = {};
|
|
7811
|
+
// authentication bearerAuth required
|
|
7812
|
+
// http bearer authentication required
|
|
7813
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7814
|
+
if (latitude !== undefined) {
|
|
7815
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
7816
|
+
}
|
|
7817
|
+
if (longitude !== undefined) {
|
|
7818
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
7819
|
+
}
|
|
7820
|
+
if (radiusInKm !== undefined) {
|
|
7821
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7822
|
+
}
|
|
7823
|
+
if (limit !== undefined) {
|
|
7824
|
+
localVarQueryParameter['limit'] = limit;
|
|
7825
|
+
}
|
|
7826
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7827
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7828
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7829
|
+
return {
|
|
7830
|
+
url: toPathString(localVarUrlObj),
|
|
7831
|
+
options: localVarRequestOptions,
|
|
7832
|
+
};
|
|
7833
|
+
}),
|
|
7834
|
+
};
|
|
7835
|
+
};
|
|
7836
|
+
/**
|
|
7837
|
+
* UsersApi - functional programming interface
|
|
7838
|
+
* @export
|
|
7839
|
+
*/
|
|
7840
|
+
export const UsersApiFp = function (configuration) {
|
|
7841
|
+
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration);
|
|
7842
|
+
return {
|
|
7843
|
+
/**
|
|
7844
|
+
*
|
|
7845
|
+
* @summary Récupère les clubs proches de l’utilisateur connecté
|
|
7846
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
7847
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
7848
|
+
* @param {*} [options] Override http request option.
|
|
7849
|
+
* @throws {RequiredError}
|
|
7850
|
+
*/
|
|
7851
|
+
apiUsersMeNearestClubsGet(radiusInKm, limit, options) {
|
|
7852
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7853
|
+
var _a, _b, _c;
|
|
7854
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersMeNearestClubsGet(radiusInKm, limit, options);
|
|
7855
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7856
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.apiUsersMeNearestClubsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7857
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7858
|
+
});
|
|
7859
|
+
},
|
|
7860
|
+
/**
|
|
7861
|
+
*
|
|
7862
|
+
* @summary Récupère les utilisateurs proches de l’utilisateur connecté
|
|
7863
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
7864
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
7865
|
+
* @param {*} [options] Override http request option.
|
|
7866
|
+
* @throws {RequiredError}
|
|
7867
|
+
*/
|
|
7868
|
+
apiUsersMeNearestPlayersGet(radiusInKm, limit, options) {
|
|
7869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7870
|
+
var _a, _b, _c;
|
|
7871
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersMeNearestPlayersGet(radiusInKm, limit, options);
|
|
7872
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7873
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.apiUsersMeNearestPlayersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7874
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7875
|
+
});
|
|
7876
|
+
},
|
|
7877
|
+
/**
|
|
7878
|
+
*
|
|
7879
|
+
* @summary Récupère les clubs proches d’une position donnée
|
|
7880
|
+
* @param {number} latitude Latitude de la position
|
|
7881
|
+
* @param {number} longitude Longitude de la position
|
|
7882
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
7883
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
7884
|
+
* @param {*} [options] Override http request option.
|
|
7885
|
+
* @throws {RequiredError}
|
|
7886
|
+
*/
|
|
7887
|
+
apiUsersNearestClubsCoordinatesGet(latitude, longitude, radiusInKm, limit, options) {
|
|
7888
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7889
|
+
var _a, _b, _c;
|
|
7890
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersNearestClubsCoordinatesGet(latitude, longitude, radiusInKm, limit, options);
|
|
7891
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7892
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.apiUsersNearestClubsCoordinatesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7893
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7894
|
+
});
|
|
7895
|
+
},
|
|
7896
|
+
/**
|
|
7897
|
+
*
|
|
7898
|
+
* @summary Récupère les utilisateurs proches d’une position donnée
|
|
7899
|
+
* @param {number} latitude Latitude de la position
|
|
7900
|
+
* @param {number} longitude Longitude de la position
|
|
7901
|
+
* @param {number} [radiusInKm] Rayon de recherche en kilomètres
|
|
7902
|
+
* @param {number} [limit] Nombre maximum de résultats
|
|
7903
|
+
* @param {*} [options] Override http request option.
|
|
7904
|
+
* @throws {RequiredError}
|
|
7905
|
+
*/
|
|
7906
|
+
apiUsersNearestPlayersCoordinatesGet(latitude, longitude, radiusInKm, limit, options) {
|
|
7907
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7908
|
+
var _a, _b, _c;
|
|
7909
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersNearestPlayersCoordinatesGet(latitude, longitude, radiusInKm, limit, options);
|
|
7910
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7911
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.apiUsersNearestPlayersCoordinatesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7912
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7913
|
+
});
|
|
7914
|
+
},
|
|
7915
|
+
};
|
|
7916
|
+
};
|
|
7917
|
+
/**
|
|
7918
|
+
* UsersApi - factory interface
|
|
7919
|
+
* @export
|
|
7920
|
+
*/
|
|
7921
|
+
export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
7922
|
+
const localVarFp = UsersApiFp(configuration);
|
|
7923
|
+
return {
|
|
7924
|
+
/**
|
|
7925
|
+
*
|
|
7926
|
+
* @summary Récupère les clubs proches de l’utilisateur connecté
|
|
7927
|
+
* @param {UsersApiApiUsersMeNearestClubsGetRequest} requestParameters Request parameters.
|
|
7928
|
+
* @param {*} [options] Override http request option.
|
|
7929
|
+
* @throws {RequiredError}
|
|
7930
|
+
*/
|
|
7931
|
+
apiUsersMeNearestClubsGet(requestParameters = {}, options) {
|
|
7932
|
+
return localVarFp.apiUsersMeNearestClubsGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
7933
|
+
},
|
|
7934
|
+
/**
|
|
7935
|
+
*
|
|
7936
|
+
* @summary Récupère les utilisateurs proches de l’utilisateur connecté
|
|
7937
|
+
* @param {UsersApiApiUsersMeNearestPlayersGetRequest} requestParameters Request parameters.
|
|
7938
|
+
* @param {*} [options] Override http request option.
|
|
7939
|
+
* @throws {RequiredError}
|
|
7940
|
+
*/
|
|
7941
|
+
apiUsersMeNearestPlayersGet(requestParameters = {}, options) {
|
|
7942
|
+
return localVarFp.apiUsersMeNearestPlayersGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
7943
|
+
},
|
|
7944
|
+
/**
|
|
7945
|
+
*
|
|
7946
|
+
* @summary Récupère les clubs proches d’une position donnée
|
|
7947
|
+
* @param {UsersApiApiUsersNearestClubsCoordinatesGetRequest} requestParameters Request parameters.
|
|
7948
|
+
* @param {*} [options] Override http request option.
|
|
7949
|
+
* @throws {RequiredError}
|
|
7950
|
+
*/
|
|
7951
|
+
apiUsersNearestClubsCoordinatesGet(requestParameters, options) {
|
|
7952
|
+
return localVarFp.apiUsersNearestClubsCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
7953
|
+
},
|
|
7954
|
+
/**
|
|
7955
|
+
*
|
|
7956
|
+
* @summary Récupère les utilisateurs proches d’une position donnée
|
|
7957
|
+
* @param {UsersApiApiUsersNearestPlayersCoordinatesGetRequest} requestParameters Request parameters.
|
|
7958
|
+
* @param {*} [options] Override http request option.
|
|
7959
|
+
* @throws {RequiredError}
|
|
7960
|
+
*/
|
|
7961
|
+
apiUsersNearestPlayersCoordinatesGet(requestParameters, options) {
|
|
7962
|
+
return localVarFp.apiUsersNearestPlayersCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
7963
|
+
},
|
|
7964
|
+
};
|
|
7965
|
+
};
|
|
7966
|
+
/**
|
|
7967
|
+
* UsersApi - object-oriented interface
|
|
7968
|
+
* @export
|
|
7969
|
+
* @class UsersApi
|
|
7970
|
+
* @extends {BaseAPI}
|
|
7971
|
+
*/
|
|
7972
|
+
export class UsersApi extends BaseAPI {
|
|
7973
|
+
/**
|
|
7974
|
+
*
|
|
7975
|
+
* @summary Récupère les clubs proches de l’utilisateur connecté
|
|
7976
|
+
* @param {UsersApiApiUsersMeNearestClubsGetRequest} requestParameters Request parameters.
|
|
7977
|
+
* @param {*} [options] Override http request option.
|
|
7978
|
+
* @throws {RequiredError}
|
|
7979
|
+
* @memberof UsersApi
|
|
7980
|
+
*/
|
|
7981
|
+
apiUsersMeNearestClubsGet(requestParameters = {}, options) {
|
|
7982
|
+
return UsersApiFp(this.configuration).apiUsersMeNearestClubsGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
7983
|
+
}
|
|
7984
|
+
/**
|
|
7985
|
+
*
|
|
7986
|
+
* @summary Récupère les utilisateurs proches de l’utilisateur connecté
|
|
7987
|
+
* @param {UsersApiApiUsersMeNearestPlayersGetRequest} requestParameters Request parameters.
|
|
7988
|
+
* @param {*} [options] Override http request option.
|
|
7989
|
+
* @throws {RequiredError}
|
|
7990
|
+
* @memberof UsersApi
|
|
7991
|
+
*/
|
|
7992
|
+
apiUsersMeNearestPlayersGet(requestParameters = {}, options) {
|
|
7993
|
+
return UsersApiFp(this.configuration).apiUsersMeNearestPlayersGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
7994
|
+
}
|
|
7995
|
+
/**
|
|
7996
|
+
*
|
|
7997
|
+
* @summary Récupère les clubs proches d’une position donnée
|
|
7998
|
+
* @param {UsersApiApiUsersNearestClubsCoordinatesGetRequest} requestParameters Request parameters.
|
|
7999
|
+
* @param {*} [options] Override http request option.
|
|
8000
|
+
* @throws {RequiredError}
|
|
8001
|
+
* @memberof UsersApi
|
|
8002
|
+
*/
|
|
8003
|
+
apiUsersNearestClubsCoordinatesGet(requestParameters, options) {
|
|
8004
|
+
return UsersApiFp(this.configuration).apiUsersNearestClubsCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
8005
|
+
}
|
|
8006
|
+
/**
|
|
8007
|
+
*
|
|
8008
|
+
* @summary Récupère les utilisateurs proches d’une position donnée
|
|
8009
|
+
* @param {UsersApiApiUsersNearestPlayersCoordinatesGetRequest} requestParameters Request parameters.
|
|
8010
|
+
* @param {*} [options] Override http request option.
|
|
8011
|
+
* @throws {RequiredError}
|
|
8012
|
+
* @memberof UsersApi
|
|
8013
|
+
*/
|
|
8014
|
+
apiUsersNearestPlayersCoordinatesGet(requestParameters, options) {
|
|
8015
|
+
return UsersApiFp(this.configuration).apiUsersNearestPlayersCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
8016
|
+
}
|
|
8017
|
+
}
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.35
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
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).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.35
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
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).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.35
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.35
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
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).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.35
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pandook API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.35
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/ActiveClub.md
CHANGED
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**picture** | **string** | | [optional] [default to undefined]
|
|
9
10
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**
|
|
11
|
+
**location** | [**Location**](Location.md) | | [optional] [default to undefined]
|
|
11
12
|
**paymentFeature** | **boolean** | | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
@@ -17,8 +18,9 @@ import { ActiveClub } from '@tennac-booking/sdk';
|
|
|
17
18
|
|
|
18
19
|
const instance: ActiveClub = {
|
|
19
20
|
_id,
|
|
21
|
+
picture,
|
|
20
22
|
name,
|
|
21
|
-
|
|
23
|
+
location,
|
|
22
24
|
paymentFeature,
|
|
23
25
|
};
|
|
24
26
|
```
|
package/docs/BookingPopulated.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**status** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**userId** | [**BookingPopulatedUserId**](BookingPopulatedUserId.md) | | [optional] [default to undefined]
|
|
11
11
|
**slotId** | [**BookingPopulatedSlotId**](BookingPopulatedSlotId.md) | | [optional] [default to undefined]
|
|
12
|
+
**playersCount** | **number** | | [optional] [default to undefined]
|
|
12
13
|
**paymentByPlayersStatus** | [**Array<BookingPopulatedPaymentByPlayersStatusInner>**](BookingPopulatedPaymentByPlayersStatusInner.md) | | [optional] [default to undefined]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -21,6 +22,7 @@ const instance: BookingPopulated = {
|
|
|
21
22
|
status,
|
|
22
23
|
userId,
|
|
23
24
|
slotId,
|
|
25
|
+
playersCount,
|
|
24
26
|
paymentByPlayersStatus,
|
|
25
27
|
};
|
|
26
28
|
```
|
package/docs/Club.md
CHANGED
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**name** | **string** | | [default to undefined]
|
|
10
|
-
**
|
|
10
|
+
**location** | [**Location**](Location.md) | | [optional] [default to undefined]
|
|
11
11
|
**city** | **string** | | [default to undefined]
|
|
12
12
|
**zipCode** | **string** | | [default to undefined]
|
|
13
13
|
**country** | **string** | | [default to undefined]
|
|
@@ -28,7 +28,7 @@ import { Club } from '@tennac-booking/sdk';
|
|
|
28
28
|
const instance: Club = {
|
|
29
29
|
id,
|
|
30
30
|
name,
|
|
31
|
-
|
|
31
|
+
location,
|
|
32
32
|
city,
|
|
33
33
|
zipCode,
|
|
34
34
|
country,
|
|
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**sportId** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**sportName** | **string** | | [optional] [default to undefined]
|
|
18
18
|
**clubId** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**surface** | **string** | Type de surface | [optional] [default to undefined]
|
|
19
20
|
**isIndoor** | **boolean** | Indique si le terrain est en intérieur ou extérieur | [optional] [default to undefined]
|
|
20
21
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
21
22
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
@@ -37,6 +38,7 @@ const instance: CourtWithNameResponse = {
|
|
|
37
38
|
sportId,
|
|
38
39
|
sportName,
|
|
39
40
|
clubId,
|
|
41
|
+
surface,
|
|
40
42
|
isIndoor,
|
|
41
43
|
createdAt,
|
|
42
44
|
updatedAt,
|