@tennac-booking/sdk 1.0.71 → 1.0.73
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 +240 -236
- package/README.md +7 -2
- package/api.ts +324 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +368 -134
- package/dist/api.js +161 -2
- 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 +368 -134
- package/dist/esm/api.js +156 -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/BookingPriceBody.md +22 -0
- package/docs/BookingsApi.md +52 -0
- package/docs/ClubResponse.md +8 -0
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/SportsPublicApi.md +53 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/UserProfileResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.72
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
26
|
exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = void 0;
|
|
27
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = void 0;
|
|
27
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -369,6 +369,38 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
369
369
|
options: localVarRequestOptions,
|
|
370
370
|
};
|
|
371
371
|
}),
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
getBookingPrice: (bookingPriceBody_1, ...args_1) => __awaiter(this, [bookingPriceBody_1, ...args_1], void 0, function* (bookingPriceBody, options = {}) {
|
|
379
|
+
// verify required parameter 'bookingPriceBody' is not null or undefined
|
|
380
|
+
(0, common_1.assertParamExists)('getBookingPrice', 'bookingPriceBody', bookingPriceBody);
|
|
381
|
+
const localVarPath = `/api/bookings/booking-price`;
|
|
382
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
383
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
384
|
+
let baseOptions;
|
|
385
|
+
if (configuration) {
|
|
386
|
+
baseOptions = configuration.baseOptions;
|
|
387
|
+
}
|
|
388
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
389
|
+
const localVarHeaderParameter = {};
|
|
390
|
+
const localVarQueryParameter = {};
|
|
391
|
+
// authentication bearerAuth required
|
|
392
|
+
// http bearer authentication required
|
|
393
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
394
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
395
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
396
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
397
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
398
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bookingPriceBody, localVarRequestOptions, configuration);
|
|
399
|
+
return {
|
|
400
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
401
|
+
options: localVarRequestOptions,
|
|
402
|
+
};
|
|
403
|
+
}),
|
|
372
404
|
/**
|
|
373
405
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
374
406
|
* @param {number} [latitude]
|
|
@@ -458,6 +490,21 @@ const BookingsApiFp = function (configuration) {
|
|
|
458
490
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
459
491
|
});
|
|
460
492
|
},
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
496
|
+
* @param {*} [options] Override http request option.
|
|
497
|
+
* @throws {RequiredError}
|
|
498
|
+
*/
|
|
499
|
+
getBookingPrice(bookingPriceBody, options) {
|
|
500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
501
|
+
var _a, _b, _c;
|
|
502
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
|
|
503
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
504
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
505
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
506
|
+
});
|
|
507
|
+
},
|
|
461
508
|
/**
|
|
462
509
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
463
510
|
* @param {number} [latitude]
|
|
@@ -501,6 +548,15 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
501
548
|
getBookingHistory(requestParameters, options) {
|
|
502
549
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
503
550
|
},
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
554
|
+
* @param {*} [options] Override http request option.
|
|
555
|
+
* @throws {RequiredError}
|
|
556
|
+
*/
|
|
557
|
+
getBookingPrice(requestParameters, options) {
|
|
558
|
+
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
559
|
+
},
|
|
504
560
|
/**
|
|
505
561
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
506
562
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -530,6 +586,16 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
530
586
|
getBookingHistory(requestParameters, options) {
|
|
531
587
|
return (0, exports.BookingsApiFp)(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
532
588
|
}
|
|
589
|
+
/**
|
|
590
|
+
*
|
|
591
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
592
|
+
* @param {*} [options] Override http request option.
|
|
593
|
+
* @throws {RequiredError}
|
|
594
|
+
* @memberof BookingsApi
|
|
595
|
+
*/
|
|
596
|
+
getBookingPrice(requestParameters, options) {
|
|
597
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
598
|
+
}
|
|
533
599
|
/**
|
|
534
600
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
535
601
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -6488,6 +6554,99 @@ class SportsManagerApi extends base_1.BaseAPI {
|
|
|
6488
6554
|
}
|
|
6489
6555
|
}
|
|
6490
6556
|
exports.SportsManagerApi = SportsManagerApi;
|
|
6557
|
+
/**
|
|
6558
|
+
* SportsPublicApi - axios parameter creator
|
|
6559
|
+
* @export
|
|
6560
|
+
*/
|
|
6561
|
+
const SportsPublicApiAxiosParamCreator = function (configuration) {
|
|
6562
|
+
return {
|
|
6563
|
+
/**
|
|
6564
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6565
|
+
* @param {*} [options] Override http request option.
|
|
6566
|
+
* @throws {RequiredError}
|
|
6567
|
+
*/
|
|
6568
|
+
getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6569
|
+
const localVarPath = `/api/sports/verified`;
|
|
6570
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6571
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6572
|
+
let baseOptions;
|
|
6573
|
+
if (configuration) {
|
|
6574
|
+
baseOptions = configuration.baseOptions;
|
|
6575
|
+
}
|
|
6576
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6577
|
+
const localVarHeaderParameter = {};
|
|
6578
|
+
const localVarQueryParameter = {};
|
|
6579
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6580
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6581
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6582
|
+
return {
|
|
6583
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6584
|
+
options: localVarRequestOptions,
|
|
6585
|
+
};
|
|
6586
|
+
}),
|
|
6587
|
+
};
|
|
6588
|
+
};
|
|
6589
|
+
exports.SportsPublicApiAxiosParamCreator = SportsPublicApiAxiosParamCreator;
|
|
6590
|
+
/**
|
|
6591
|
+
* SportsPublicApi - functional programming interface
|
|
6592
|
+
* @export
|
|
6593
|
+
*/
|
|
6594
|
+
const SportsPublicApiFp = function (configuration) {
|
|
6595
|
+
const localVarAxiosParamCreator = (0, exports.SportsPublicApiAxiosParamCreator)(configuration);
|
|
6596
|
+
return {
|
|
6597
|
+
/**
|
|
6598
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6599
|
+
* @param {*} [options] Override http request option.
|
|
6600
|
+
* @throws {RequiredError}
|
|
6601
|
+
*/
|
|
6602
|
+
getVerifiedSports(options) {
|
|
6603
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6604
|
+
var _a, _b, _c;
|
|
6605
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
|
|
6606
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6607
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SportsPublicApi.getVerifiedSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6608
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6609
|
+
});
|
|
6610
|
+
},
|
|
6611
|
+
};
|
|
6612
|
+
};
|
|
6613
|
+
exports.SportsPublicApiFp = SportsPublicApiFp;
|
|
6614
|
+
/**
|
|
6615
|
+
* SportsPublicApi - factory interface
|
|
6616
|
+
* @export
|
|
6617
|
+
*/
|
|
6618
|
+
const SportsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6619
|
+
const localVarFp = (0, exports.SportsPublicApiFp)(configuration);
|
|
6620
|
+
return {
|
|
6621
|
+
/**
|
|
6622
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6623
|
+
* @param {*} [options] Override http request option.
|
|
6624
|
+
* @throws {RequiredError}
|
|
6625
|
+
*/
|
|
6626
|
+
getVerifiedSports(options) {
|
|
6627
|
+
return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
|
|
6628
|
+
},
|
|
6629
|
+
};
|
|
6630
|
+
};
|
|
6631
|
+
exports.SportsPublicApiFactory = SportsPublicApiFactory;
|
|
6632
|
+
/**
|
|
6633
|
+
* SportsPublicApi - object-oriented interface
|
|
6634
|
+
* @export
|
|
6635
|
+
* @class SportsPublicApi
|
|
6636
|
+
* @extends {BaseAPI}
|
|
6637
|
+
*/
|
|
6638
|
+
class SportsPublicApi extends base_1.BaseAPI {
|
|
6639
|
+
/**
|
|
6640
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6641
|
+
* @param {*} [options] Override http request option.
|
|
6642
|
+
* @throws {RequiredError}
|
|
6643
|
+
* @memberof SportsPublicApi
|
|
6644
|
+
*/
|
|
6645
|
+
getVerifiedSports(options) {
|
|
6646
|
+
return (0, exports.SportsPublicApiFp)(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
|
|
6647
|
+
}
|
|
6648
|
+
}
|
|
6649
|
+
exports.SportsPublicApi = SportsPublicApi;
|
|
6491
6650
|
/**
|
|
6492
6651
|
* SportsStaffApi - axios parameter creator
|
|
6493
6652
|
* @export
|
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