@tennac-booking/sdk 1.0.92 → 1.0.94
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 +248 -249
- package/README.md +3 -5
- package/api.ts +34 -145
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +168 -242
- package/dist/api.js +1 -59
- 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 +168 -242
- package/dist/esm/api.js +1 -59
- 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/BookingPlayerPaymentSummary.md +0 -2
- package/docs/BookingPriceBody.md +2 -2
- package/docs/BookingSummary.md +0 -2
- package/docs/CreateBookingRequest.md +2 -0
- package/docs/{UserClubMembershipsResponse.md → PlayerShare.md} +7 -5
- package/docs/PlayerWithPaymentMethod.md +2 -0
- package/docs/UsersApi.md +0 -46
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/UserClubMembership.md +0 -34
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.94
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -7999,33 +7999,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7999
7999
|
options: localVarRequestOptions,
|
|
8000
8000
|
};
|
|
8001
8001
|
}),
|
|
8002
|
-
/**
|
|
8003
|
-
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
8004
|
-
* @param {*} [options] Override http request option.
|
|
8005
|
-
* @throws {RequiredError}
|
|
8006
|
-
*/
|
|
8007
|
-
getMyClubMemberships: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
8008
|
-
const localVarPath = `/api/users/me/club-memberships`;
|
|
8009
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8010
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8011
|
-
let baseOptions;
|
|
8012
|
-
if (configuration) {
|
|
8013
|
-
baseOptions = configuration.baseOptions;
|
|
8014
|
-
}
|
|
8015
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8016
|
-
const localVarHeaderParameter = {};
|
|
8017
|
-
const localVarQueryParameter = {};
|
|
8018
|
-
// authentication bearerAuth required
|
|
8019
|
-
// http bearer authentication required
|
|
8020
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8021
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8022
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8023
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8024
|
-
return {
|
|
8025
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8026
|
-
options: localVarRequestOptions,
|
|
8027
|
-
};
|
|
8028
|
-
}),
|
|
8029
8002
|
/**
|
|
8030
8003
|
*
|
|
8031
8004
|
* @param {number} [radiusInKm]
|
|
@@ -8986,20 +8959,6 @@ const UsersApiFp = function (configuration) {
|
|
|
8986
8959
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8987
8960
|
});
|
|
8988
8961
|
},
|
|
8989
|
-
/**
|
|
8990
|
-
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
8991
|
-
* @param {*} [options] Override http request option.
|
|
8992
|
-
* @throws {RequiredError}
|
|
8993
|
-
*/
|
|
8994
|
-
getMyClubMemberships(options) {
|
|
8995
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8996
|
-
var _a, _b, _c;
|
|
8997
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubMemberships(options);
|
|
8998
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8999
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getMyClubMemberships']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9000
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9001
|
-
});
|
|
9002
|
-
},
|
|
9003
8962
|
/**
|
|
9004
8963
|
*
|
|
9005
8964
|
* @param {number} [radiusInKm]
|
|
@@ -9479,14 +9438,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9479
9438
|
getMe(options) {
|
|
9480
9439
|
return localVarFp.getMe(options).then((request) => request(axios, basePath));
|
|
9481
9440
|
},
|
|
9482
|
-
/**
|
|
9483
|
-
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
9484
|
-
* @param {*} [options] Override http request option.
|
|
9485
|
-
* @throws {RequiredError}
|
|
9486
|
-
*/
|
|
9487
|
-
getMyClubMemberships(options) {
|
|
9488
|
-
return localVarFp.getMyClubMemberships(options).then((request) => request(axios, basePath));
|
|
9489
|
-
},
|
|
9490
9441
|
/**
|
|
9491
9442
|
*
|
|
9492
9443
|
* @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
|
|
@@ -9815,15 +9766,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
9815
9766
|
getMe(options) {
|
|
9816
9767
|
return (0, exports.UsersApiFp)(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
|
|
9817
9768
|
}
|
|
9818
|
-
/**
|
|
9819
|
-
* Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
9820
|
-
* @param {*} [options] Override http request option.
|
|
9821
|
-
* @throws {RequiredError}
|
|
9822
|
-
* @memberof UsersApi
|
|
9823
|
-
*/
|
|
9824
|
-
getMyClubMemberships(options) {
|
|
9825
|
-
return (0, exports.UsersApiFp)(this.configuration).getMyClubMemberships(options).then((request) => request(this.axios, this.basePath));
|
|
9826
|
-
}
|
|
9827
9769
|
/**
|
|
9828
9770
|
*
|
|
9829
9771
|
* @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED