@tennac-booking/sdk 1.0.76 → 1.0.79
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 +6 -16
- package/README.md +6 -22
- package/api.ts +504 -1246
- package/dist/api.d.ts +319 -898
- package/dist/api.js +161 -395
- package/dist/esm/api.d.ts +319 -898
- package/dist/esm/api.js +156 -394
- package/docs/BookingInfo.md +2 -2
- package/docs/BookingPopulated.md +2 -0
- package/docs/{AddPaymentMethodRequestBody.md → BookingPriceBody.md} +7 -5
- package/docs/BookingResponse.md +2 -0
- package/docs/BookingsApi.md +52 -0
- package/docs/ClubAnalyticsStaffApi.md +0 -167
- package/docs/ClubResponse.md +8 -0
- package/docs/ClubSettingsResponse.md +0 -2
- package/docs/CreateBookingRequest.md +2 -2
- package/docs/CreateEventRequest.md +0 -2
- package/docs/IUserAttributes.md +2 -12
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/{SetupPaymentMethodRequestBody.md → QuickReservationClubSport.md} +7 -5
- package/docs/QuickReservationClubSummary.md +4 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/SportsPublicApi.md +53 -0
- package/docs/StaffUserProfileResponse.md +2 -12
- package/docs/SubscribeRequestBody.md +2 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/UserProfileResponse.md +4 -12
- package/docs/UsersApi.md +0 -156
- package/package.json +1 -1
- package/docs/ClubPlayerBookingItem.md +0 -36
- package/docs/ClubPlayerBookingsResponse.md +0 -22
- package/docs/ClubPlayerDetailResponse.md +0 -46
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponse.md +0 -42
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
- package/docs/ClubPlayerSubscriptionSummary.md +0 -28
- package/docs/ConfirmPaymentMethodRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodResponse.md +0 -22
- package/docs/PaymentMethodSetupResponse.md +0 -24
- package/docs/SetupPaymentMethodResponse.md +0 -24
package/dist/api.js
CHANGED
|
@@ -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]
|
|
@@ -420,7 +452,7 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
420
452
|
localVarQueryParameter['courtTypes'] = courtTypes;
|
|
421
453
|
}
|
|
422
454
|
if (limitPerClub !== undefined) {
|
|
423
|
-
localVarQueryParameter['
|
|
455
|
+
localVarQueryParameter['_limitPerClub'] = limitPerClub;
|
|
424
456
|
}
|
|
425
457
|
if (maxClubs !== undefined) {
|
|
426
458
|
localVarQueryParameter['maxClubs'] = maxClubs;
|
|
@@ -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.
|
|
@@ -1510,99 +1576,6 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1510
1576
|
options: localVarRequestOptions,
|
|
1511
1577
|
};
|
|
1512
1578
|
}),
|
|
1513
|
-
/**
|
|
1514
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1515
|
-
* @param {string} playerId
|
|
1516
|
-
* @param {*} [options] Override http request option.
|
|
1517
|
-
* @throws {RequiredError}
|
|
1518
|
-
*/
|
|
1519
|
-
getClubPlayerBookingsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1520
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
1521
|
-
(0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
|
|
1522
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
1523
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1524
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1525
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1526
|
-
let baseOptions;
|
|
1527
|
-
if (configuration) {
|
|
1528
|
-
baseOptions = configuration.baseOptions;
|
|
1529
|
-
}
|
|
1530
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1531
|
-
const localVarHeaderParameter = {};
|
|
1532
|
-
const localVarQueryParameter = {};
|
|
1533
|
-
// authentication bearerAuth required
|
|
1534
|
-
// http bearer authentication required
|
|
1535
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1536
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1537
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1538
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1539
|
-
return {
|
|
1540
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1541
|
-
options: localVarRequestOptions,
|
|
1542
|
-
};
|
|
1543
|
-
}),
|
|
1544
|
-
/**
|
|
1545
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1546
|
-
* @param {string} playerId
|
|
1547
|
-
* @param {*} [options] Override http request option.
|
|
1548
|
-
* @throws {RequiredError}
|
|
1549
|
-
*/
|
|
1550
|
-
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1551
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
1552
|
-
(0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
|
|
1553
|
-
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
1554
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1555
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1556
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1557
|
-
let baseOptions;
|
|
1558
|
-
if (configuration) {
|
|
1559
|
-
baseOptions = configuration.baseOptions;
|
|
1560
|
-
}
|
|
1561
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1562
|
-
const localVarHeaderParameter = {};
|
|
1563
|
-
const localVarQueryParameter = {};
|
|
1564
|
-
// authentication bearerAuth required
|
|
1565
|
-
// http bearer authentication required
|
|
1566
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1567
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1568
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1569
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1570
|
-
return {
|
|
1571
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1572
|
-
options: localVarRequestOptions,
|
|
1573
|
-
};
|
|
1574
|
-
}),
|
|
1575
|
-
/**
|
|
1576
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
1577
|
-
* @param {string} playerId
|
|
1578
|
-
* @param {*} [options] Override http request option.
|
|
1579
|
-
* @throws {RequiredError}
|
|
1580
|
-
*/
|
|
1581
|
-
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1582
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
1583
|
-
(0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
1584
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
1585
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1586
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1587
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1588
|
-
let baseOptions;
|
|
1589
|
-
if (configuration) {
|
|
1590
|
-
baseOptions = configuration.baseOptions;
|
|
1591
|
-
}
|
|
1592
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1593
|
-
const localVarHeaderParameter = {};
|
|
1594
|
-
const localVarQueryParameter = {};
|
|
1595
|
-
// authentication bearerAuth required
|
|
1596
|
-
// http bearer authentication required
|
|
1597
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1598
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1599
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1600
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1601
|
-
return {
|
|
1602
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1603
|
-
options: localVarRequestOptions,
|
|
1604
|
-
};
|
|
1605
|
-
}),
|
|
1606
1579
|
/**
|
|
1607
1580
|
* Récupère la liste des joueurs du club
|
|
1608
1581
|
* @param {*} [options] Override http request option.
|
|
@@ -1903,51 +1876,6 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
1903
1876
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1904
1877
|
});
|
|
1905
1878
|
},
|
|
1906
|
-
/**
|
|
1907
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1908
|
-
* @param {string} playerId
|
|
1909
|
-
* @param {*} [options] Override http request option.
|
|
1910
|
-
* @throws {RequiredError}
|
|
1911
|
-
*/
|
|
1912
|
-
getClubPlayerBookingsById(playerId, options) {
|
|
1913
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1914
|
-
var _a, _b, _c;
|
|
1915
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, options);
|
|
1916
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1917
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1918
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1919
|
-
});
|
|
1920
|
-
},
|
|
1921
|
-
/**
|
|
1922
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1923
|
-
* @param {string} playerId
|
|
1924
|
-
* @param {*} [options] Override http request option.
|
|
1925
|
-
* @throws {RequiredError}
|
|
1926
|
-
*/
|
|
1927
|
-
getClubPlayerById(playerId, options) {
|
|
1928
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1929
|
-
var _a, _b, _c;
|
|
1930
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
|
|
1931
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1932
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1933
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1934
|
-
});
|
|
1935
|
-
},
|
|
1936
|
-
/**
|
|
1937
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
1938
|
-
* @param {string} playerId
|
|
1939
|
-
* @param {*} [options] Override http request option.
|
|
1940
|
-
* @throws {RequiredError}
|
|
1941
|
-
*/
|
|
1942
|
-
getClubPlayerStatisticsById(playerId, options) {
|
|
1943
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1944
|
-
var _a, _b, _c;
|
|
1945
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
|
|
1946
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1947
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1948
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1949
|
-
});
|
|
1950
|
-
},
|
|
1951
1879
|
/**
|
|
1952
1880
|
* Récupère la liste des joueurs du club
|
|
1953
1881
|
* @param {*} [options] Override http request option.
|
|
@@ -2099,33 +2027,6 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2099
2027
|
getAnalyticsBySport(requestParameters, options) {
|
|
2100
2028
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2101
2029
|
},
|
|
2102
|
-
/**
|
|
2103
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2104
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2105
|
-
* @param {*} [options] Override http request option.
|
|
2106
|
-
* @throws {RequiredError}
|
|
2107
|
-
*/
|
|
2108
|
-
getClubPlayerBookingsById(requestParameters, options) {
|
|
2109
|
-
return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2110
|
-
},
|
|
2111
|
-
/**
|
|
2112
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2113
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2114
|
-
* @param {*} [options] Override http request option.
|
|
2115
|
-
* @throws {RequiredError}
|
|
2116
|
-
*/
|
|
2117
|
-
getClubPlayerById(requestParameters, options) {
|
|
2118
|
-
return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2119
|
-
},
|
|
2120
|
-
/**
|
|
2121
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
2122
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2123
|
-
* @param {*} [options] Override http request option.
|
|
2124
|
-
* @throws {RequiredError}
|
|
2125
|
-
*/
|
|
2126
|
-
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2127
|
-
return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2128
|
-
},
|
|
2129
2030
|
/**
|
|
2130
2031
|
* Récupère la liste des joueurs du club
|
|
2131
2032
|
* @param {*} [options] Override http request option.
|
|
@@ -2222,36 +2123,6 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2222
2123
|
getAnalyticsBySport(requestParameters, options) {
|
|
2223
2124
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2224
2125
|
}
|
|
2225
|
-
/**
|
|
2226
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2227
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2228
|
-
* @param {*} [options] Override http request option.
|
|
2229
|
-
* @throws {RequiredError}
|
|
2230
|
-
* @memberof ClubAnalyticsStaffApi
|
|
2231
|
-
*/
|
|
2232
|
-
getClubPlayerBookingsById(requestParameters, options) {
|
|
2233
|
-
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2234
|
-
}
|
|
2235
|
-
/**
|
|
2236
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2237
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2238
|
-
* @param {*} [options] Override http request option.
|
|
2239
|
-
* @throws {RequiredError}
|
|
2240
|
-
* @memberof ClubAnalyticsStaffApi
|
|
2241
|
-
*/
|
|
2242
|
-
getClubPlayerById(requestParameters, options) {
|
|
2243
|
-
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2244
|
-
}
|
|
2245
|
-
/**
|
|
2246
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
2247
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2248
|
-
* @param {*} [options] Override http request option.
|
|
2249
|
-
* @throws {RequiredError}
|
|
2250
|
-
* @memberof ClubAnalyticsStaffApi
|
|
2251
|
-
*/
|
|
2252
|
-
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2253
|
-
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2254
|
-
}
|
|
2255
2126
|
/**
|
|
2256
2127
|
* Récupère la liste des joueurs du club
|
|
2257
2128
|
* @param {*} [options] Override http request option.
|
|
@@ -6683,6 +6554,99 @@ class SportsManagerApi extends base_1.BaseAPI {
|
|
|
6683
6554
|
}
|
|
6684
6555
|
}
|
|
6685
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;
|
|
6686
6650
|
/**
|
|
6687
6651
|
* SportsStaffApi - axios parameter creator
|
|
6688
6652
|
* @export
|
|
@@ -7614,38 +7578,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7614
7578
|
options: localVarRequestOptions,
|
|
7615
7579
|
};
|
|
7616
7580
|
}),
|
|
7617
|
-
/**
|
|
7618
|
-
*
|
|
7619
|
-
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
7620
|
-
* @param {*} [options] Override http request option.
|
|
7621
|
-
* @throws {RequiredError}
|
|
7622
|
-
*/
|
|
7623
|
-
addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
|
|
7624
|
-
// verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
|
|
7625
|
-
(0, common_1.assertParamExists)('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
|
|
7626
|
-
const localVarPath = `/api/users/addPaymentMethodSetup`;
|
|
7627
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7628
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7629
|
-
let baseOptions;
|
|
7630
|
-
if (configuration) {
|
|
7631
|
-
baseOptions = configuration.baseOptions;
|
|
7632
|
-
}
|
|
7633
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7634
|
-
const localVarHeaderParameter = {};
|
|
7635
|
-
const localVarQueryParameter = {};
|
|
7636
|
-
// authentication bearerAuth required
|
|
7637
|
-
// http bearer authentication required
|
|
7638
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7639
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7640
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7641
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7642
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7643
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
7644
|
-
return {
|
|
7645
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7646
|
-
options: localVarRequestOptions,
|
|
7647
|
-
};
|
|
7648
|
-
}),
|
|
7649
7581
|
/**
|
|
7650
7582
|
*
|
|
7651
7583
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -7678,38 +7610,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7678
7610
|
options: localVarRequestOptions,
|
|
7679
7611
|
};
|
|
7680
7612
|
}),
|
|
7681
|
-
/**
|
|
7682
|
-
*
|
|
7683
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
7684
|
-
* @param {*} [options] Override http request option.
|
|
7685
|
-
* @throws {RequiredError}
|
|
7686
|
-
*/
|
|
7687
|
-
confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
|
|
7688
|
-
// verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
|
|
7689
|
-
(0, common_1.assertParamExists)('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
|
|
7690
|
-
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
7691
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7692
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7693
|
-
let baseOptions;
|
|
7694
|
-
if (configuration) {
|
|
7695
|
-
baseOptions = configuration.baseOptions;
|
|
7696
|
-
}
|
|
7697
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7698
|
-
const localVarHeaderParameter = {};
|
|
7699
|
-
const localVarQueryParameter = {};
|
|
7700
|
-
// authentication bearerAuth required
|
|
7701
|
-
// http bearer authentication required
|
|
7702
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7703
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7704
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7705
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7706
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7707
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
7708
|
-
return {
|
|
7709
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7710
|
-
options: localVarRequestOptions,
|
|
7711
|
-
};
|
|
7712
|
-
}),
|
|
7713
7613
|
/**
|
|
7714
7614
|
*
|
|
7715
7615
|
* @param {*} [options] Override http request option.
|
|
@@ -8479,38 +8379,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8479
8379
|
options: localVarRequestOptions,
|
|
8480
8380
|
};
|
|
8481
8381
|
}),
|
|
8482
|
-
/**
|
|
8483
|
-
*
|
|
8484
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
8485
|
-
* @param {*} [options] Override http request option.
|
|
8486
|
-
* @throws {RequiredError}
|
|
8487
|
-
*/
|
|
8488
|
-
setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
8489
|
-
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
8490
|
-
(0, common_1.assertParamExists)('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
8491
|
-
const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
|
|
8492
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8493
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8494
|
-
let baseOptions;
|
|
8495
|
-
if (configuration) {
|
|
8496
|
-
baseOptions = configuration.baseOptions;
|
|
8497
|
-
}
|
|
8498
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8499
|
-
const localVarHeaderParameter = {};
|
|
8500
|
-
const localVarQueryParameter = {};
|
|
8501
|
-
// authentication bearerAuth required
|
|
8502
|
-
// http bearer authentication required
|
|
8503
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8504
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8505
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8506
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8507
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8508
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8509
|
-
return {
|
|
8510
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8511
|
-
options: localVarRequestOptions,
|
|
8512
|
-
};
|
|
8513
|
-
}),
|
|
8514
8382
|
/**
|
|
8515
8383
|
*
|
|
8516
8384
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -8781,21 +8649,6 @@ const UsersApiFp = function (configuration) {
|
|
|
8781
8649
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8782
8650
|
});
|
|
8783
8651
|
},
|
|
8784
|
-
/**
|
|
8785
|
-
*
|
|
8786
|
-
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
8787
|
-
* @param {*} [options] Override http request option.
|
|
8788
|
-
* @throws {RequiredError}
|
|
8789
|
-
*/
|
|
8790
|
-
addPaymentMethodSetup(addPaymentMethodRequestBody, options) {
|
|
8791
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8792
|
-
var _a, _b, _c;
|
|
8793
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
|
|
8794
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8795
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8796
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8797
|
-
});
|
|
8798
|
-
},
|
|
8799
8652
|
/**
|
|
8800
8653
|
*
|
|
8801
8654
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -8811,21 +8664,6 @@ const UsersApiFp = function (configuration) {
|
|
|
8811
8664
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8812
8665
|
});
|
|
8813
8666
|
},
|
|
8814
|
-
/**
|
|
8815
|
-
*
|
|
8816
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
8817
|
-
* @param {*} [options] Override http request option.
|
|
8818
|
-
* @throws {RequiredError}
|
|
8819
|
-
*/
|
|
8820
|
-
confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options) {
|
|
8821
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8822
|
-
var _a, _b, _c;
|
|
8823
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
|
|
8824
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8825
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8826
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8827
|
-
});
|
|
8828
|
-
},
|
|
8829
8667
|
/**
|
|
8830
8668
|
*
|
|
8831
8669
|
* @param {*} [options] Override http request option.
|
|
@@ -9196,21 +9034,6 @@ const UsersApiFp = function (configuration) {
|
|
|
9196
9034
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9197
9035
|
});
|
|
9198
9036
|
},
|
|
9199
|
-
/**
|
|
9200
|
-
*
|
|
9201
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
9202
|
-
* @param {*} [options] Override http request option.
|
|
9203
|
-
* @throws {RequiredError}
|
|
9204
|
-
*/
|
|
9205
|
-
setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
9206
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9207
|
-
var _a, _b, _c;
|
|
9208
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
9209
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9210
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9211
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9212
|
-
});
|
|
9213
|
-
},
|
|
9214
9037
|
/**
|
|
9215
9038
|
*
|
|
9216
9039
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9353,15 +9176,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9353
9176
|
addOrganization(requestParameters, options) {
|
|
9354
9177
|
return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
9355
9178
|
},
|
|
9356
|
-
/**
|
|
9357
|
-
*
|
|
9358
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9359
|
-
* @param {*} [options] Override http request option.
|
|
9360
|
-
* @throws {RequiredError}
|
|
9361
|
-
*/
|
|
9362
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
9363
|
-
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9364
|
-
},
|
|
9365
9179
|
/**
|
|
9366
9180
|
*
|
|
9367
9181
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9371,15 +9185,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9371
9185
|
changePassword(requestParameters, options) {
|
|
9372
9186
|
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
9373
9187
|
},
|
|
9374
|
-
/**
|
|
9375
|
-
*
|
|
9376
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9377
|
-
* @param {*} [options] Override http request option.
|
|
9378
|
-
* @throws {RequiredError}
|
|
9379
|
-
*/
|
|
9380
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
9381
|
-
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9382
|
-
},
|
|
9383
9188
|
/**
|
|
9384
9189
|
*
|
|
9385
9190
|
* @param {*} [options] Override http request option.
|
|
@@ -9588,15 +9393,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9588
9393
|
resetPassword(requestParameters, options) {
|
|
9589
9394
|
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
9590
9395
|
},
|
|
9591
|
-
/**
|
|
9592
|
-
*
|
|
9593
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
9594
|
-
* @param {*} [options] Override http request option.
|
|
9595
|
-
* @throws {RequiredError}
|
|
9596
|
-
*/
|
|
9597
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
9598
|
-
return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9599
|
-
},
|
|
9600
9396
|
/**
|
|
9601
9397
|
*
|
|
9602
9398
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -9700,16 +9496,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
9700
9496
|
addOrganization(requestParameters, options) {
|
|
9701
9497
|
return (0, exports.UsersApiFp)(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9702
9498
|
}
|
|
9703
|
-
/**
|
|
9704
|
-
*
|
|
9705
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9706
|
-
* @param {*} [options] Override http request option.
|
|
9707
|
-
* @throws {RequiredError}
|
|
9708
|
-
* @memberof UsersApi
|
|
9709
|
-
*/
|
|
9710
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
9711
|
-
return (0, exports.UsersApiFp)(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9712
|
-
}
|
|
9713
9499
|
/**
|
|
9714
9500
|
*
|
|
9715
9501
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9720,16 +9506,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
9720
9506
|
changePassword(requestParameters, options) {
|
|
9721
9507
|
return (0, exports.UsersApiFp)(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9722
9508
|
}
|
|
9723
|
-
/**
|
|
9724
|
-
*
|
|
9725
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9726
|
-
* @param {*} [options] Override http request option.
|
|
9727
|
-
* @throws {RequiredError}
|
|
9728
|
-
* @memberof UsersApi
|
|
9729
|
-
*/
|
|
9730
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
9731
|
-
return (0, exports.UsersApiFp)(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9732
|
-
}
|
|
9733
9509
|
/**
|
|
9734
9510
|
*
|
|
9735
9511
|
* @param {*} [options] Override http request option.
|
|
@@ -9962,16 +9738,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
9962
9738
|
resetPassword(requestParameters, options) {
|
|
9963
9739
|
return (0, exports.UsersApiFp)(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9964
9740
|
}
|
|
9965
|
-
/**
|
|
9966
|
-
*
|
|
9967
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
9968
|
-
* @param {*} [options] Override http request option.
|
|
9969
|
-
* @throws {RequiredError}
|
|
9970
|
-
* @memberof UsersApi
|
|
9971
|
-
*/
|
|
9972
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
9973
|
-
return (0, exports.UsersApiFp)(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9974
|
-
}
|
|
9975
9741
|
/**
|
|
9976
9742
|
*
|
|
9977
9743
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|