@tennac-booking/sdk 1.0.106 → 1.0.108
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 +284 -291
- package/README.md +7 -20
- package/api.ts +161 -908
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +128 -593
- package/dist/api.js +75 -537
- 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 +128 -593
- package/dist/esm/api.js +67 -525
- 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/ClientApi.md +59 -4
- package/docs/{ClientAccountOnboardingResponse.md → ClientFullOnboardingResponse.md} +7 -11
- package/docs/ClientFullOnboardingResponseClub.md +24 -0
- package/docs/ClientRegister201Response.md +26 -0
- package/docs/{ClientRegisterRequestBody.md → ClientRegisterRequest.md} +7 -7
- package/docs/ClubEvent.md +8 -2
- package/docs/ClubPageResponse.md +8 -2
- package/docs/PaymentMethod.md +4 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ActiveSubscriptionResponse.md +0 -22
- package/docs/ClientAccountOnboardingRequest.md +0 -29
- package/docs/ClientAccountResponse.md +0 -44
- package/docs/ClientAccountsApi.md +0 -408
- package/docs/ClientMeResponse.md +0 -28
- package/docs/ClientOnboardingResponse.md +0 -27
- package/docs/ClientRegisterResponse.md +0 -22
- package/docs/ClientSubscriptionResponse.md +0 -34
- package/docs/GetSubscriptionsHistory200Response.md +0 -22
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.108
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = 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.InvoiceStatus = 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.
|
|
26
|
-
exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = 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.
|
|
27
|
-
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.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 = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi =
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi =
|
|
25
|
+
exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = 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.InvoiceStatus = 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
|
+
exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = 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.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = 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 = exports.BookingsApiFactory = exports.BookingsApiFp = void 0;
|
|
27
|
+
exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = 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.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 = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -59,14 +59,6 @@ exports.CaptureResultStatusEnum = {
|
|
|
59
59
|
Captured: 'captured',
|
|
60
60
|
Failed: 'failed'
|
|
61
61
|
};
|
|
62
|
-
exports.ClientAccountOnboardingRequestBusinessTypeEnum = {
|
|
63
|
-
Individual: 'individual',
|
|
64
|
-
Company: 'company'
|
|
65
|
-
};
|
|
66
|
-
exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = {
|
|
67
|
-
Basic: 'basic',
|
|
68
|
-
PlatformWithConnect: 'platform_with_connect'
|
|
69
|
-
};
|
|
70
62
|
exports.ClubRoleResponseRoleEnum = {
|
|
71
63
|
Admin: 'admin',
|
|
72
64
|
Manager: 'manager',
|
|
@@ -171,6 +163,8 @@ exports.InvoiceStatus = {
|
|
|
171
163
|
exports.PaymentMethod = {
|
|
172
164
|
Online: 'online',
|
|
173
165
|
Onsite: 'onsite',
|
|
166
|
+
OnsiteCard: 'onsite_card',
|
|
167
|
+
OnsiteCash: 'onsite_cash',
|
|
174
168
|
Free: 'free'
|
|
175
169
|
};
|
|
176
170
|
/**
|
|
@@ -1426,42 +1420,15 @@ exports.BookingsUserApi = BookingsUserApi;
|
|
|
1426
1420
|
const ClientApiAxiosParamCreator = function (configuration) {
|
|
1427
1421
|
return {
|
|
1428
1422
|
/**
|
|
1429
|
-
*
|
|
1423
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1424
|
+
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
1430
1425
|
* @param {*} [options] Override http request option.
|
|
1431
1426
|
* @throws {RequiredError}
|
|
1432
1427
|
*/
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
const
|
|
1437
|
-
let baseOptions;
|
|
1438
|
-
if (configuration) {
|
|
1439
|
-
baseOptions = configuration.baseOptions;
|
|
1440
|
-
}
|
|
1441
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1442
|
-
const localVarHeaderParameter = {};
|
|
1443
|
-
const localVarQueryParameter = {};
|
|
1444
|
-
// authentication bearerAuth required
|
|
1445
|
-
// http bearer authentication required
|
|
1446
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1447
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1448
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1449
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1450
|
-
return {
|
|
1451
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1452
|
-
options: localVarRequestOptions,
|
|
1453
|
-
};
|
|
1454
|
-
}),
|
|
1455
|
-
/**
|
|
1456
|
-
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1457
|
-
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1458
|
-
* @param {*} [options] Override http request option.
|
|
1459
|
-
* @throws {RequiredError}
|
|
1460
|
-
*/
|
|
1461
|
-
onboardClub: (clientOnboardingRequestBody_1, ...args_1) => __awaiter(this, [clientOnboardingRequestBody_1, ...args_1], void 0, function* (clientOnboardingRequestBody, options = {}) {
|
|
1462
|
-
// verify required parameter 'clientOnboardingRequestBody' is not null or undefined
|
|
1463
|
-
(0, common_1.assertParamExists)('onboardClub', 'clientOnboardingRequestBody', clientOnboardingRequestBody);
|
|
1464
|
-
const localVarPath = `/clients/onboarding`;
|
|
1428
|
+
clientRegister: (clientRegisterRequest_1, ...args_1) => __awaiter(this, [clientRegisterRequest_1, ...args_1], void 0, function* (clientRegisterRequest, options = {}) {
|
|
1429
|
+
// verify required parameter 'clientRegisterRequest' is not null or undefined
|
|
1430
|
+
(0, common_1.assertParamExists)('clientRegister', 'clientRegisterRequest', clientRegisterRequest);
|
|
1431
|
+
const localVarPath = `/clients/register`;
|
|
1465
1432
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1466
1433
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1467
1434
|
let baseOptions;
|
|
@@ -1475,261 +1442,19 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1475
1442
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1476
1443
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1477
1444
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1478
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1445
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientRegisterRequest, localVarRequestOptions, configuration);
|
|
1479
1446
|
return {
|
|
1480
1447
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1481
1448
|
options: localVarRequestOptions,
|
|
1482
1449
|
};
|
|
1483
1450
|
}),
|
|
1484
|
-
};
|
|
1485
|
-
};
|
|
1486
|
-
exports.ClientApiAxiosParamCreator = ClientApiAxiosParamCreator;
|
|
1487
|
-
/**
|
|
1488
|
-
* ClientApi - functional programming interface
|
|
1489
|
-
* @export
|
|
1490
|
-
*/
|
|
1491
|
-
const ClientApiFp = function (configuration) {
|
|
1492
|
-
const localVarAxiosParamCreator = (0, exports.ClientApiAxiosParamCreator)(configuration);
|
|
1493
|
-
return {
|
|
1494
1451
|
/**
|
|
1495
1452
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1496
1453
|
* @param {*} [options] Override http request option.
|
|
1497
1454
|
* @throws {RequiredError}
|
|
1498
1455
|
*/
|
|
1499
|
-
getManagedClubs(options) {
|
|
1500
|
-
|
|
1501
|
-
var _a, _b, _c;
|
|
1502
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getManagedClubs(options);
|
|
1503
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1504
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.getManagedClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1505
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1506
|
-
});
|
|
1507
|
-
},
|
|
1508
|
-
/**
|
|
1509
|
-
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1510
|
-
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1511
|
-
* @param {*} [options] Override http request option.
|
|
1512
|
-
* @throws {RequiredError}
|
|
1513
|
-
*/
|
|
1514
|
-
onboardClub(clientOnboardingRequestBody, options) {
|
|
1515
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1516
|
-
var _a, _b, _c;
|
|
1517
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
|
|
1518
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1519
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.onboardClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1520
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1521
|
-
});
|
|
1522
|
-
},
|
|
1523
|
-
};
|
|
1524
|
-
};
|
|
1525
|
-
exports.ClientApiFp = ClientApiFp;
|
|
1526
|
-
/**
|
|
1527
|
-
* ClientApi - factory interface
|
|
1528
|
-
* @export
|
|
1529
|
-
*/
|
|
1530
|
-
const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1531
|
-
const localVarFp = (0, exports.ClientApiFp)(configuration);
|
|
1532
|
-
return {
|
|
1533
|
-
/**
|
|
1534
|
-
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1535
|
-
* @param {*} [options] Override http request option.
|
|
1536
|
-
* @throws {RequiredError}
|
|
1537
|
-
*/
|
|
1538
|
-
getManagedClubs(options) {
|
|
1539
|
-
return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
|
|
1540
|
-
},
|
|
1541
|
-
/**
|
|
1542
|
-
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1543
|
-
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1544
|
-
* @param {*} [options] Override http request option.
|
|
1545
|
-
* @throws {RequiredError}
|
|
1546
|
-
*/
|
|
1547
|
-
onboardClub(requestParameters, options) {
|
|
1548
|
-
return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
|
|
1549
|
-
},
|
|
1550
|
-
};
|
|
1551
|
-
};
|
|
1552
|
-
exports.ClientApiFactory = ClientApiFactory;
|
|
1553
|
-
/**
|
|
1554
|
-
* ClientApi - object-oriented interface
|
|
1555
|
-
* @export
|
|
1556
|
-
* @class ClientApi
|
|
1557
|
-
* @extends {BaseAPI}
|
|
1558
|
-
*/
|
|
1559
|
-
class ClientApi extends base_1.BaseAPI {
|
|
1560
|
-
/**
|
|
1561
|
-
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1562
|
-
* @param {*} [options] Override http request option.
|
|
1563
|
-
* @throws {RequiredError}
|
|
1564
|
-
* @memberof ClientApi
|
|
1565
|
-
*/
|
|
1566
|
-
getManagedClubs(options) {
|
|
1567
|
-
return (0, exports.ClientApiFp)(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
|
|
1568
|
-
}
|
|
1569
|
-
/**
|
|
1570
|
-
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1571
|
-
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1572
|
-
* @param {*} [options] Override http request option.
|
|
1573
|
-
* @throws {RequiredError}
|
|
1574
|
-
* @memberof ClientApi
|
|
1575
|
-
*/
|
|
1576
|
-
onboardClub(requestParameters, options) {
|
|
1577
|
-
return (0, exports.ClientApiFp)(this.configuration).onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
exports.ClientApi = ClientApi;
|
|
1581
|
-
/**
|
|
1582
|
-
* ClientAccountsApi - axios parameter creator
|
|
1583
|
-
* @export
|
|
1584
|
-
*/
|
|
1585
|
-
const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
1586
|
-
return {
|
|
1587
|
-
/**
|
|
1588
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1589
|
-
* @param {*} [options] Override http request option.
|
|
1590
|
-
* @throws {RequiredError}
|
|
1591
|
-
*/
|
|
1592
|
-
clientAuthMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1593
|
-
const localVarPath = `/client-accounts/client-auth/me`;
|
|
1594
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1595
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1596
|
-
let baseOptions;
|
|
1597
|
-
if (configuration) {
|
|
1598
|
-
baseOptions = configuration.baseOptions;
|
|
1599
|
-
}
|
|
1600
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1601
|
-
const localVarHeaderParameter = {};
|
|
1602
|
-
const localVarQueryParameter = {};
|
|
1603
|
-
// authentication clientAuth required
|
|
1604
|
-
// http bearer authentication required
|
|
1605
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1606
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1607
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1608
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1609
|
-
return {
|
|
1610
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1611
|
-
options: localVarRequestOptions,
|
|
1612
|
-
};
|
|
1613
|
-
}),
|
|
1614
|
-
/**
|
|
1615
|
-
* Récupère le compte client par son ID
|
|
1616
|
-
* @param {string} accountId L\'ID du compte client
|
|
1617
|
-
* @param {*} [options] Override http request option.
|
|
1618
|
-
* @throws {RequiredError}
|
|
1619
|
-
*/
|
|
1620
|
-
getClientAccountById: (accountId_1, ...args_1) => __awaiter(this, [accountId_1, ...args_1], void 0, function* (accountId, options = {}) {
|
|
1621
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
1622
|
-
(0, common_1.assertParamExists)('getClientAccountById', 'accountId', accountId);
|
|
1623
|
-
const localVarPath = `/client-accounts/{accountId}`
|
|
1624
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
1625
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1626
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1627
|
-
let baseOptions;
|
|
1628
|
-
if (configuration) {
|
|
1629
|
-
baseOptions = configuration.baseOptions;
|
|
1630
|
-
}
|
|
1631
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1632
|
-
const localVarHeaderParameter = {};
|
|
1633
|
-
const localVarQueryParameter = {};
|
|
1634
|
-
// authentication bearerAuth required
|
|
1635
|
-
// http bearer authentication required
|
|
1636
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1637
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1638
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1639
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1640
|
-
return {
|
|
1641
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1642
|
-
options: localVarRequestOptions,
|
|
1643
|
-
};
|
|
1644
|
-
}),
|
|
1645
|
-
/**
|
|
1646
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
1647
|
-
* @param {*} [options] Override http request option.
|
|
1648
|
-
* @throws {RequiredError}
|
|
1649
|
-
*/
|
|
1650
|
-
getMyActiveSubscription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1651
|
-
const localVarPath = `/client-accounts/me/subscription`;
|
|
1652
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1653
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1654
|
-
let baseOptions;
|
|
1655
|
-
if (configuration) {
|
|
1656
|
-
baseOptions = configuration.baseOptions;
|
|
1657
|
-
}
|
|
1658
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1659
|
-
const localVarHeaderParameter = {};
|
|
1660
|
-
const localVarQueryParameter = {};
|
|
1661
|
-
// authentication bearerAuth required
|
|
1662
|
-
// http bearer authentication required
|
|
1663
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1664
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1665
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1666
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1667
|
-
return {
|
|
1668
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1669
|
-
options: localVarRequestOptions,
|
|
1670
|
-
};
|
|
1671
|
-
}),
|
|
1672
|
-
/**
|
|
1673
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
1674
|
-
* @param {*} [options] Override http request option.
|
|
1675
|
-
* @throws {RequiredError}
|
|
1676
|
-
*/
|
|
1677
|
-
getMyClientAccount: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1678
|
-
const localVarPath = `/client-accounts/me`;
|
|
1679
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1680
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1681
|
-
let baseOptions;
|
|
1682
|
-
if (configuration) {
|
|
1683
|
-
baseOptions = configuration.baseOptions;
|
|
1684
|
-
}
|
|
1685
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1686
|
-
const localVarHeaderParameter = {};
|
|
1687
|
-
const localVarQueryParameter = {};
|
|
1688
|
-
// authentication bearerAuth required
|
|
1689
|
-
// http bearer authentication required
|
|
1690
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1691
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1692
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1693
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1694
|
-
return {
|
|
1695
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1696
|
-
options: localVarRequestOptions,
|
|
1697
|
-
};
|
|
1698
|
-
}),
|
|
1699
|
-
/**
|
|
1700
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1701
|
-
* @param {*} [options] Override http request option.
|
|
1702
|
-
* @throws {RequiredError}
|
|
1703
|
-
*/
|
|
1704
|
-
getSubscriptionsHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1705
|
-
const localVarPath = `/client-accounts/me/subscriptions-history`;
|
|
1706
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1707
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1708
|
-
let baseOptions;
|
|
1709
|
-
if (configuration) {
|
|
1710
|
-
baseOptions = configuration.baseOptions;
|
|
1711
|
-
}
|
|
1712
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1713
|
-
const localVarHeaderParameter = {};
|
|
1714
|
-
const localVarQueryParameter = {};
|
|
1715
|
-
// authentication bearerAuth required
|
|
1716
|
-
// http bearer authentication required
|
|
1717
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1718
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1719
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1720
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1721
|
-
return {
|
|
1722
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1723
|
-
options: localVarRequestOptions,
|
|
1724
|
-
};
|
|
1725
|
-
}),
|
|
1726
|
-
/**
|
|
1727
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1728
|
-
* @param {*} [options] Override http request option.
|
|
1729
|
-
* @throws {RequiredError}
|
|
1730
|
-
*/
|
|
1731
|
-
listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1732
|
-
const localVarPath = `/client-accounts/plans/available-prices`;
|
|
1456
|
+
getManagedClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1457
|
+
const localVarPath = `/clients/managed-clubs`;
|
|
1733
1458
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1734
1459
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1735
1460
|
let baseOptions;
|
|
@@ -1751,15 +1476,15 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1751
1476
|
};
|
|
1752
1477
|
}),
|
|
1753
1478
|
/**
|
|
1754
|
-
*
|
|
1755
|
-
* @param {
|
|
1479
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1480
|
+
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1756
1481
|
* @param {*} [options] Override http request option.
|
|
1757
1482
|
* @throws {RequiredError}
|
|
1758
1483
|
*/
|
|
1759
|
-
|
|
1760
|
-
// verify required parameter '
|
|
1761
|
-
(0, common_1.assertParamExists)('
|
|
1762
|
-
const localVarPath = `/
|
|
1484
|
+
onboardClub: (clientOnboardingRequestBody_1, ...args_1) => __awaiter(this, [clientOnboardingRequestBody_1, ...args_1], void 0, function* (clientOnboardingRequestBody, options = {}) {
|
|
1485
|
+
// verify required parameter 'clientOnboardingRequestBody' is not null or undefined
|
|
1486
|
+
(0, common_1.assertParamExists)('onboardClub', 'clientOnboardingRequestBody', clientOnboardingRequestBody);
|
|
1487
|
+
const localVarPath = `/clients/onboarding`;
|
|
1763
1488
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1764
1489
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1765
1490
|
let baseOptions;
|
|
@@ -1776,36 +1501,7 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1776
1501
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1777
1502
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1778
1503
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1779
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1780
|
-
return {
|
|
1781
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1782
|
-
options: localVarRequestOptions,
|
|
1783
|
-
};
|
|
1784
|
-
}),
|
|
1785
|
-
/**
|
|
1786
|
-
* Route d\'inscription d\'un utilisateur client (publique)
|
|
1787
|
-
* @param {ClientRegisterRequestBody} clientRegisterRequestBody
|
|
1788
|
-
* @param {*} [options] Override http request option.
|
|
1789
|
-
* @throws {RequiredError}
|
|
1790
|
-
*/
|
|
1791
|
-
registerClientUser: (clientRegisterRequestBody_1, ...args_1) => __awaiter(this, [clientRegisterRequestBody_1, ...args_1], void 0, function* (clientRegisterRequestBody, options = {}) {
|
|
1792
|
-
// verify required parameter 'clientRegisterRequestBody' is not null or undefined
|
|
1793
|
-
(0, common_1.assertParamExists)('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody);
|
|
1794
|
-
const localVarPath = `/client-accounts/register-client-user`;
|
|
1795
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1796
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1797
|
-
let baseOptions;
|
|
1798
|
-
if (configuration) {
|
|
1799
|
-
baseOptions = configuration.baseOptions;
|
|
1800
|
-
}
|
|
1801
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1802
|
-
const localVarHeaderParameter = {};
|
|
1803
|
-
const localVarQueryParameter = {};
|
|
1804
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1805
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1806
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1807
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1808
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientRegisterRequestBody, localVarRequestOptions, configuration);
|
|
1504
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientOnboardingRequestBody, localVarRequestOptions, configuration);
|
|
1809
1505
|
return {
|
|
1810
1506
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1811
1507
|
options: localVarRequestOptions,
|
|
@@ -1813,293 +1509,135 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1813
1509
|
}),
|
|
1814
1510
|
};
|
|
1815
1511
|
};
|
|
1816
|
-
exports.
|
|
1512
|
+
exports.ClientApiAxiosParamCreator = ClientApiAxiosParamCreator;
|
|
1817
1513
|
/**
|
|
1818
|
-
*
|
|
1514
|
+
* ClientApi - functional programming interface
|
|
1819
1515
|
* @export
|
|
1820
1516
|
*/
|
|
1821
|
-
const
|
|
1822
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
1517
|
+
const ClientApiFp = function (configuration) {
|
|
1518
|
+
const localVarAxiosParamCreator = (0, exports.ClientApiAxiosParamCreator)(configuration);
|
|
1823
1519
|
return {
|
|
1824
1520
|
/**
|
|
1825
|
-
*
|
|
1826
|
-
* @param {
|
|
1827
|
-
* @throws {RequiredError}
|
|
1828
|
-
*/
|
|
1829
|
-
clientAuthMe(options) {
|
|
1830
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1831
|
-
var _a, _b, _c;
|
|
1832
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.clientAuthMe(options);
|
|
1833
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1834
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.clientAuthMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1835
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1836
|
-
});
|
|
1837
|
-
},
|
|
1838
|
-
/**
|
|
1839
|
-
* Récupère le compte client par son ID
|
|
1840
|
-
* @param {string} accountId L\'ID du compte client
|
|
1841
|
-
* @param {*} [options] Override http request option.
|
|
1842
|
-
* @throws {RequiredError}
|
|
1843
|
-
*/
|
|
1844
|
-
getClientAccountById(accountId, options) {
|
|
1845
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1846
|
-
var _a, _b, _c;
|
|
1847
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientAccountById(accountId, options);
|
|
1848
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1849
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getClientAccountById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1850
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1851
|
-
});
|
|
1852
|
-
},
|
|
1853
|
-
/**
|
|
1854
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
1521
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1522
|
+
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
1855
1523
|
* @param {*} [options] Override http request option.
|
|
1856
1524
|
* @throws {RequiredError}
|
|
1857
1525
|
*/
|
|
1858
|
-
|
|
1526
|
+
clientRegister(clientRegisterRequest, options) {
|
|
1859
1527
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1860
1528
|
var _a, _b, _c;
|
|
1861
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1529
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.clientRegister(clientRegisterRequest, options);
|
|
1862
1530
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1863
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1531
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.clientRegister']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1864
1532
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1865
1533
|
});
|
|
1866
1534
|
},
|
|
1867
1535
|
/**
|
|
1868
|
-
* Récupère
|
|
1869
|
-
* @param {*} [options] Override http request option.
|
|
1870
|
-
* @throws {RequiredError}
|
|
1871
|
-
*/
|
|
1872
|
-
getMyClientAccount(options) {
|
|
1873
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1874
|
-
var _a, _b, _c;
|
|
1875
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClientAccount(options);
|
|
1876
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1877
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getMyClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1878
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1879
|
-
});
|
|
1880
|
-
},
|
|
1881
|
-
/**
|
|
1882
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1883
|
-
* @param {*} [options] Override http request option.
|
|
1884
|
-
* @throws {RequiredError}
|
|
1885
|
-
*/
|
|
1886
|
-
getSubscriptionsHistory(options) {
|
|
1887
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1888
|
-
var _a, _b, _c;
|
|
1889
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionsHistory(options);
|
|
1890
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1891
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getSubscriptionsHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1892
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1893
|
-
});
|
|
1894
|
-
},
|
|
1895
|
-
/**
|
|
1896
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1897
|
-
* @param {*} [options] Override http request option.
|
|
1898
|
-
* @throws {RequiredError}
|
|
1899
|
-
*/
|
|
1900
|
-
listAvailablePrices(options) {
|
|
1901
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1902
|
-
var _a, _b, _c;
|
|
1903
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailablePrices(options);
|
|
1904
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1905
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.listAvailablePrices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1906
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1907
|
-
});
|
|
1908
|
-
},
|
|
1909
|
-
/**
|
|
1910
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
1911
|
-
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
1536
|
+
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1912
1537
|
* @param {*} [options] Override http request option.
|
|
1913
1538
|
* @throws {RequiredError}
|
|
1914
1539
|
*/
|
|
1915
|
-
|
|
1540
|
+
getManagedClubs(options) {
|
|
1916
1541
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1917
1542
|
var _a, _b, _c;
|
|
1918
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1543
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getManagedClubs(options);
|
|
1919
1544
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1920
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1545
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.getManagedClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1921
1546
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1922
1547
|
});
|
|
1923
1548
|
},
|
|
1924
1549
|
/**
|
|
1925
|
-
*
|
|
1926
|
-
* @param {
|
|
1550
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1551
|
+
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1927
1552
|
* @param {*} [options] Override http request option.
|
|
1928
1553
|
* @throws {RequiredError}
|
|
1929
1554
|
*/
|
|
1930
|
-
|
|
1555
|
+
onboardClub(clientOnboardingRequestBody, options) {
|
|
1931
1556
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1932
1557
|
var _a, _b, _c;
|
|
1933
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1558
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
|
|
1934
1559
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1935
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1560
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.onboardClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1936
1561
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1937
1562
|
});
|
|
1938
1563
|
},
|
|
1939
1564
|
};
|
|
1940
1565
|
};
|
|
1941
|
-
exports.
|
|
1566
|
+
exports.ClientApiFp = ClientApiFp;
|
|
1942
1567
|
/**
|
|
1943
|
-
*
|
|
1568
|
+
* ClientApi - factory interface
|
|
1944
1569
|
* @export
|
|
1945
1570
|
*/
|
|
1946
|
-
const
|
|
1947
|
-
const localVarFp = (0, exports.
|
|
1571
|
+
const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1572
|
+
const localVarFp = (0, exports.ClientApiFp)(configuration);
|
|
1948
1573
|
return {
|
|
1949
1574
|
/**
|
|
1950
|
-
*
|
|
1951
|
-
* @param {
|
|
1952
|
-
* @throws {RequiredError}
|
|
1953
|
-
*/
|
|
1954
|
-
clientAuthMe(options) {
|
|
1955
|
-
return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
|
|
1956
|
-
},
|
|
1957
|
-
/**
|
|
1958
|
-
* Récupère le compte client par son ID
|
|
1959
|
-
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
1960
|
-
* @param {*} [options] Override http request option.
|
|
1961
|
-
* @throws {RequiredError}
|
|
1962
|
-
*/
|
|
1963
|
-
getClientAccountById(requestParameters, options) {
|
|
1964
|
-
return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
|
|
1965
|
-
},
|
|
1966
|
-
/**
|
|
1967
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
1968
|
-
* @param {*} [options] Override http request option.
|
|
1969
|
-
* @throws {RequiredError}
|
|
1970
|
-
*/
|
|
1971
|
-
getMyActiveSubscription(options) {
|
|
1972
|
-
return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
|
|
1973
|
-
},
|
|
1974
|
-
/**
|
|
1975
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
1976
|
-
* @param {*} [options] Override http request option.
|
|
1977
|
-
* @throws {RequiredError}
|
|
1978
|
-
*/
|
|
1979
|
-
getMyClientAccount(options) {
|
|
1980
|
-
return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
|
|
1981
|
-
},
|
|
1982
|
-
/**
|
|
1983
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1984
|
-
* @param {*} [options] Override http request option.
|
|
1985
|
-
* @throws {RequiredError}
|
|
1986
|
-
*/
|
|
1987
|
-
getSubscriptionsHistory(options) {
|
|
1988
|
-
return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
|
|
1989
|
-
},
|
|
1990
|
-
/**
|
|
1991
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1575
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1576
|
+
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
1992
1577
|
* @param {*} [options] Override http request option.
|
|
1993
1578
|
* @throws {RequiredError}
|
|
1994
1579
|
*/
|
|
1995
|
-
|
|
1996
|
-
return localVarFp.
|
|
1580
|
+
clientRegister(requestParameters, options) {
|
|
1581
|
+
return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
|
|
1997
1582
|
},
|
|
1998
1583
|
/**
|
|
1999
|
-
*
|
|
2000
|
-
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
1584
|
+
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
2001
1585
|
* @param {*} [options] Override http request option.
|
|
2002
1586
|
* @throws {RequiredError}
|
|
2003
1587
|
*/
|
|
2004
|
-
|
|
2005
|
-
return localVarFp.
|
|
1588
|
+
getManagedClubs(options) {
|
|
1589
|
+
return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
|
|
2006
1590
|
},
|
|
2007
1591
|
/**
|
|
2008
|
-
*
|
|
2009
|
-
* @param {
|
|
1592
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1593
|
+
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
2010
1594
|
* @param {*} [options] Override http request option.
|
|
2011
1595
|
* @throws {RequiredError}
|
|
2012
1596
|
*/
|
|
2013
|
-
|
|
2014
|
-
return localVarFp.
|
|
1597
|
+
onboardClub(requestParameters, options) {
|
|
1598
|
+
return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
|
|
2015
1599
|
},
|
|
2016
1600
|
};
|
|
2017
1601
|
};
|
|
2018
|
-
exports.
|
|
1602
|
+
exports.ClientApiFactory = ClientApiFactory;
|
|
2019
1603
|
/**
|
|
2020
|
-
*
|
|
1604
|
+
* ClientApi - object-oriented interface
|
|
2021
1605
|
* @export
|
|
2022
|
-
* @class
|
|
1606
|
+
* @class ClientApi
|
|
2023
1607
|
* @extends {BaseAPI}
|
|
2024
1608
|
*/
|
|
2025
|
-
class
|
|
2026
|
-
/**
|
|
2027
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
2028
|
-
* @param {*} [options] Override http request option.
|
|
2029
|
-
* @throws {RequiredError}
|
|
2030
|
-
* @memberof ClientAccountsApi
|
|
2031
|
-
*/
|
|
2032
|
-
clientAuthMe(options) {
|
|
2033
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
|
|
2034
|
-
}
|
|
2035
|
-
/**
|
|
2036
|
-
* Récupère le compte client par son ID
|
|
2037
|
-
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
2038
|
-
* @param {*} [options] Override http request option.
|
|
2039
|
-
* @throws {RequiredError}
|
|
2040
|
-
* @memberof ClientAccountsApi
|
|
2041
|
-
*/
|
|
2042
|
-
getClientAccountById(requestParameters, options) {
|
|
2043
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
|
|
2044
|
-
}
|
|
2045
|
-
/**
|
|
2046
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
2047
|
-
* @param {*} [options] Override http request option.
|
|
2048
|
-
* @throws {RequiredError}
|
|
2049
|
-
* @memberof ClientAccountsApi
|
|
2050
|
-
*/
|
|
2051
|
-
getMyActiveSubscription(options) {
|
|
2052
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
|
|
2053
|
-
}
|
|
2054
|
-
/**
|
|
2055
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
2056
|
-
* @param {*} [options] Override http request option.
|
|
2057
|
-
* @throws {RequiredError}
|
|
2058
|
-
* @memberof ClientAccountsApi
|
|
2059
|
-
*/
|
|
2060
|
-
getMyClientAccount(options) {
|
|
2061
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
|
|
2062
|
-
}
|
|
2063
|
-
/**
|
|
2064
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
2065
|
-
* @param {*} [options] Override http request option.
|
|
2066
|
-
* @throws {RequiredError}
|
|
2067
|
-
* @memberof ClientAccountsApi
|
|
2068
|
-
*/
|
|
2069
|
-
getSubscriptionsHistory(options) {
|
|
2070
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
|
|
2071
|
-
}
|
|
1609
|
+
class ClientApi extends base_1.BaseAPI {
|
|
2072
1610
|
/**
|
|
2073
|
-
*
|
|
1611
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1612
|
+
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
2074
1613
|
* @param {*} [options] Override http request option.
|
|
2075
1614
|
* @throws {RequiredError}
|
|
2076
|
-
* @memberof
|
|
1615
|
+
* @memberof ClientApi
|
|
2077
1616
|
*/
|
|
2078
|
-
|
|
2079
|
-
return (0, exports.
|
|
1617
|
+
clientRegister(requestParameters, options) {
|
|
1618
|
+
return (0, exports.ClientApiFp)(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2080
1619
|
}
|
|
2081
1620
|
/**
|
|
2082
|
-
*
|
|
2083
|
-
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
1621
|
+
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
2084
1622
|
* @param {*} [options] Override http request option.
|
|
2085
1623
|
* @throws {RequiredError}
|
|
2086
|
-
* @memberof
|
|
1624
|
+
* @memberof ClientApi
|
|
2087
1625
|
*/
|
|
2088
|
-
|
|
2089
|
-
return (0, exports.
|
|
1626
|
+
getManagedClubs(options) {
|
|
1627
|
+
return (0, exports.ClientApiFp)(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2090
1628
|
}
|
|
2091
1629
|
/**
|
|
2092
|
-
*
|
|
2093
|
-
* @param {
|
|
1630
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1631
|
+
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
2094
1632
|
* @param {*} [options] Override http request option.
|
|
2095
1633
|
* @throws {RequiredError}
|
|
2096
|
-
* @memberof
|
|
1634
|
+
* @memberof ClientApi
|
|
2097
1635
|
*/
|
|
2098
|
-
|
|
2099
|
-
return (0, exports.
|
|
1636
|
+
onboardClub(requestParameters, options) {
|
|
1637
|
+
return (0, exports.ClientApiFp)(this.configuration).onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2100
1638
|
}
|
|
2101
1639
|
}
|
|
2102
|
-
exports.
|
|
1640
|
+
exports.ClientApi = ClientApi;
|
|
2103
1641
|
/**
|
|
2104
1642
|
* ClubAnalyticsApi - axios parameter creator
|
|
2105
1643
|
* @export
|