@tennac-booking/sdk 1.0.82 → 1.0.84
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 +13 -17
- package/README.md +16 -25
- package/api.ts +1054 -1457
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +831 -1086
- package/dist/api.js +189 -403
- 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 +831 -1086
- package/dist/esm/api.js +182 -400
- 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/BookingClubInfo.md +28 -0
- package/docs/{SetupPaymentMethodRequestBody.md → BookingCourtInfo.md} +7 -5
- package/docs/BookingInfo.md +2 -2
- package/docs/BookingPaymentStatus.md +24 -0
- package/docs/BookingPlayerPaymentSummary.md +34 -0
- package/docs/BookingPopulated.md +2 -0
- package/docs/{ConfirmPaymentMethodRequestBody.md → BookingPriceBody.md} +7 -5
- package/docs/BookingResponse.md +2 -0
- package/docs/BookingSlotInfo.md +30 -0
- package/docs/{AddPaymentMethodRequestBody.md → BookingSportInfo.md} +7 -5
- package/docs/BookingSummary.md +54 -2
- package/docs/BookingsApi.md +55 -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/InvoiceStatus.md +22 -0
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/{ConfirmPaymentMethodResponse.md → QuickReservationClubSport.md} +7 -7
- 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/UserBookingsResponse.md +28 -0
- package/docs/UserProfileResponse.md +4 -12
- package/docs/UsersApi.md +4 -160
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BookingDetailResponse.md +0 -46
- 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/PaymentMethodSetupResponse.md +0 -24
- package/docs/SetupPaymentMethodResponse.md +0 -24
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.75
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -134,6 +134,21 @@ export const Gender = {
|
|
|
134
134
|
export const IUserLocationTypeEnum = {
|
|
135
135
|
Point: 'Point'
|
|
136
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @export
|
|
140
|
+
* @enum {string}
|
|
141
|
+
*/
|
|
142
|
+
export const InvoiceStatus = {
|
|
143
|
+
SetupPending: 'setup_pending',
|
|
144
|
+
SetupSuccess: 'setup_success',
|
|
145
|
+
Pending: 'pending',
|
|
146
|
+
Paid: 'paid',
|
|
147
|
+
Failed: 'failed',
|
|
148
|
+
Authorized: 'authorized',
|
|
149
|
+
Canceled: 'canceled',
|
|
150
|
+
Expired: 'expired'
|
|
151
|
+
};
|
|
137
152
|
/**
|
|
138
153
|
*
|
|
139
154
|
* @export
|
|
@@ -364,6 +379,38 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
364
379
|
options: localVarRequestOptions,
|
|
365
380
|
};
|
|
366
381
|
}),
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
getBookingPrice: (bookingPriceBody_1, ...args_1) => __awaiter(this, [bookingPriceBody_1, ...args_1], void 0, function* (bookingPriceBody, options = {}) {
|
|
389
|
+
// verify required parameter 'bookingPriceBody' is not null or undefined
|
|
390
|
+
assertParamExists('getBookingPrice', 'bookingPriceBody', bookingPriceBody);
|
|
391
|
+
const localVarPath = `/api/bookings/booking-price`;
|
|
392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
393
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
394
|
+
let baseOptions;
|
|
395
|
+
if (configuration) {
|
|
396
|
+
baseOptions = configuration.baseOptions;
|
|
397
|
+
}
|
|
398
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
399
|
+
const localVarHeaderParameter = {};
|
|
400
|
+
const localVarQueryParameter = {};
|
|
401
|
+
// authentication bearerAuth required
|
|
402
|
+
// http bearer authentication required
|
|
403
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
404
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
405
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
406
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
407
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
408
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bookingPriceBody, localVarRequestOptions, configuration);
|
|
409
|
+
return {
|
|
410
|
+
url: toPathString(localVarUrlObj),
|
|
411
|
+
options: localVarRequestOptions,
|
|
412
|
+
};
|
|
413
|
+
}),
|
|
367
414
|
/**
|
|
368
415
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
369
416
|
* @param {number} [latitude]
|
|
@@ -374,12 +421,13 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
374
421
|
* @param {string} [startTime]
|
|
375
422
|
* @param {number} [priceMax]
|
|
376
423
|
* @param {string} [courtTypes]
|
|
424
|
+
* @param {string} [surfaceTypes]
|
|
377
425
|
* @param {number} [limitPerClub]
|
|
378
426
|
* @param {number} [maxClubs]
|
|
379
427
|
* @param {*} [options] Override http request option.
|
|
380
428
|
* @throws {RequiredError}
|
|
381
429
|
*/
|
|
382
|
-
getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options = {}) {
|
|
430
|
+
getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, surfaceTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, surfaceTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options = {}) {
|
|
383
431
|
const localVarPath = `/api/bookings/quick-reservations`;
|
|
384
432
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
385
433
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -414,8 +462,11 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
414
462
|
if (courtTypes !== undefined) {
|
|
415
463
|
localVarQueryParameter['courtTypes'] = courtTypes;
|
|
416
464
|
}
|
|
465
|
+
if (surfaceTypes !== undefined) {
|
|
466
|
+
localVarQueryParameter['surfaceTypes'] = surfaceTypes;
|
|
467
|
+
}
|
|
417
468
|
if (limitPerClub !== undefined) {
|
|
418
|
-
localVarQueryParameter['
|
|
469
|
+
localVarQueryParameter['_limitPerClub'] = limitPerClub;
|
|
419
470
|
}
|
|
420
471
|
if (maxClubs !== undefined) {
|
|
421
472
|
localVarQueryParameter['maxClubs'] = maxClubs;
|
|
@@ -452,6 +503,21 @@ export const BookingsApiFp = function (configuration) {
|
|
|
452
503
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
453
504
|
});
|
|
454
505
|
},
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
509
|
+
* @param {*} [options] Override http request option.
|
|
510
|
+
* @throws {RequiredError}
|
|
511
|
+
*/
|
|
512
|
+
getBookingPrice(bookingPriceBody, options) {
|
|
513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
514
|
+
var _a, _b, _c;
|
|
515
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
|
|
516
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
517
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
518
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
519
|
+
});
|
|
520
|
+
},
|
|
455
521
|
/**
|
|
456
522
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
457
523
|
* @param {number} [latitude]
|
|
@@ -462,15 +528,16 @@ export const BookingsApiFp = function (configuration) {
|
|
|
462
528
|
* @param {string} [startTime]
|
|
463
529
|
* @param {number} [priceMax]
|
|
464
530
|
* @param {string} [courtTypes]
|
|
531
|
+
* @param {string} [surfaceTypes]
|
|
465
532
|
* @param {number} [limitPerClub]
|
|
466
533
|
* @param {number} [maxClubs]
|
|
467
534
|
* @param {*} [options] Override http request option.
|
|
468
535
|
* @throws {RequiredError}
|
|
469
536
|
*/
|
|
470
|
-
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
|
|
537
|
+
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options) {
|
|
471
538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
472
539
|
var _a, _b, _c;
|
|
473
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
|
|
540
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
|
|
474
541
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
475
542
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getQuickReservationSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
476
543
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -494,6 +561,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
494
561
|
getBookingHistory(requestParameters, options) {
|
|
495
562
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
496
563
|
},
|
|
564
|
+
/**
|
|
565
|
+
*
|
|
566
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
567
|
+
* @param {*} [options] Override http request option.
|
|
568
|
+
* @throws {RequiredError}
|
|
569
|
+
*/
|
|
570
|
+
getBookingPrice(requestParameters, options) {
|
|
571
|
+
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
572
|
+
},
|
|
497
573
|
/**
|
|
498
574
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
499
575
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -501,7 +577,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
501
577
|
* @throws {RequiredError}
|
|
502
578
|
*/
|
|
503
579
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
504
|
-
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
|
|
580
|
+
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
|
|
505
581
|
},
|
|
506
582
|
};
|
|
507
583
|
};
|
|
@@ -522,6 +598,16 @@ export class BookingsApi extends BaseAPI {
|
|
|
522
598
|
getBookingHistory(requestParameters, options) {
|
|
523
599
|
return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
524
600
|
}
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
604
|
+
* @param {*} [options] Override http request option.
|
|
605
|
+
* @throws {RequiredError}
|
|
606
|
+
* @memberof BookingsApi
|
|
607
|
+
*/
|
|
608
|
+
getBookingPrice(requestParameters, options) {
|
|
609
|
+
return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
610
|
+
}
|
|
525
611
|
/**
|
|
526
612
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
527
613
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -530,7 +616,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
530
616
|
* @memberof BookingsApi
|
|
531
617
|
*/
|
|
532
618
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
533
|
-
return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
|
|
619
|
+
return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
|
|
534
620
|
}
|
|
535
621
|
}
|
|
536
622
|
/**
|
|
@@ -1485,99 +1571,6 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1485
1571
|
options: localVarRequestOptions,
|
|
1486
1572
|
};
|
|
1487
1573
|
}),
|
|
1488
|
-
/**
|
|
1489
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1490
|
-
* @param {string} playerId
|
|
1491
|
-
* @param {*} [options] Override http request option.
|
|
1492
|
-
* @throws {RequiredError}
|
|
1493
|
-
*/
|
|
1494
|
-
getClubPlayerBookingsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1495
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
1496
|
-
assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
|
|
1497
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
1498
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1499
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1500
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1501
|
-
let baseOptions;
|
|
1502
|
-
if (configuration) {
|
|
1503
|
-
baseOptions = configuration.baseOptions;
|
|
1504
|
-
}
|
|
1505
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1506
|
-
const localVarHeaderParameter = {};
|
|
1507
|
-
const localVarQueryParameter = {};
|
|
1508
|
-
// authentication bearerAuth required
|
|
1509
|
-
// http bearer authentication required
|
|
1510
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1511
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1512
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1513
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1514
|
-
return {
|
|
1515
|
-
url: toPathString(localVarUrlObj),
|
|
1516
|
-
options: localVarRequestOptions,
|
|
1517
|
-
};
|
|
1518
|
-
}),
|
|
1519
|
-
/**
|
|
1520
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1521
|
-
* @param {string} playerId
|
|
1522
|
-
* @param {*} [options] Override http request option.
|
|
1523
|
-
* @throws {RequiredError}
|
|
1524
|
-
*/
|
|
1525
|
-
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1526
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
1527
|
-
assertParamExists('getClubPlayerById', 'playerId', playerId);
|
|
1528
|
-
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
1529
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1530
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1531
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1532
|
-
let baseOptions;
|
|
1533
|
-
if (configuration) {
|
|
1534
|
-
baseOptions = configuration.baseOptions;
|
|
1535
|
-
}
|
|
1536
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1537
|
-
const localVarHeaderParameter = {};
|
|
1538
|
-
const localVarQueryParameter = {};
|
|
1539
|
-
// authentication bearerAuth required
|
|
1540
|
-
// http bearer authentication required
|
|
1541
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1542
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1543
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1544
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1545
|
-
return {
|
|
1546
|
-
url: toPathString(localVarUrlObj),
|
|
1547
|
-
options: localVarRequestOptions,
|
|
1548
|
-
};
|
|
1549
|
-
}),
|
|
1550
|
-
/**
|
|
1551
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
1552
|
-
* @param {string} playerId
|
|
1553
|
-
* @param {*} [options] Override http request option.
|
|
1554
|
-
* @throws {RequiredError}
|
|
1555
|
-
*/
|
|
1556
|
-
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1557
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
1558
|
-
assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
1559
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
1560
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1561
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1562
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1563
|
-
let baseOptions;
|
|
1564
|
-
if (configuration) {
|
|
1565
|
-
baseOptions = configuration.baseOptions;
|
|
1566
|
-
}
|
|
1567
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1568
|
-
const localVarHeaderParameter = {};
|
|
1569
|
-
const localVarQueryParameter = {};
|
|
1570
|
-
// authentication bearerAuth required
|
|
1571
|
-
// http bearer authentication required
|
|
1572
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1573
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1574
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1575
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1576
|
-
return {
|
|
1577
|
-
url: toPathString(localVarUrlObj),
|
|
1578
|
-
options: localVarRequestOptions,
|
|
1579
|
-
};
|
|
1580
|
-
}),
|
|
1581
1574
|
/**
|
|
1582
1575
|
* Récupère la liste des joueurs du club
|
|
1583
1576
|
* @param {*} [options] Override http request option.
|
|
@@ -1877,51 +1870,6 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
1877
1870
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1878
1871
|
});
|
|
1879
1872
|
},
|
|
1880
|
-
/**
|
|
1881
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1882
|
-
* @param {string} playerId
|
|
1883
|
-
* @param {*} [options] Override http request option.
|
|
1884
|
-
* @throws {RequiredError}
|
|
1885
|
-
*/
|
|
1886
|
-
getClubPlayerBookingsById(playerId, options) {
|
|
1887
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1888
|
-
var _a, _b, _c;
|
|
1889
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, 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 = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1892
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1893
|
-
});
|
|
1894
|
-
},
|
|
1895
|
-
/**
|
|
1896
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1897
|
-
* @param {string} playerId
|
|
1898
|
-
* @param {*} [options] Override http request option.
|
|
1899
|
-
* @throws {RequiredError}
|
|
1900
|
-
*/
|
|
1901
|
-
getClubPlayerById(playerId, options) {
|
|
1902
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1903
|
-
var _a, _b, _c;
|
|
1904
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
|
|
1905
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1906
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1907
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1908
|
-
});
|
|
1909
|
-
},
|
|
1910
|
-
/**
|
|
1911
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
1912
|
-
* @param {string} playerId
|
|
1913
|
-
* @param {*} [options] Override http request option.
|
|
1914
|
-
* @throws {RequiredError}
|
|
1915
|
-
*/
|
|
1916
|
-
getClubPlayerStatisticsById(playerId, options) {
|
|
1917
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1918
|
-
var _a, _b, _c;
|
|
1919
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
|
|
1920
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1921
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1922
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1923
|
-
});
|
|
1924
|
-
},
|
|
1925
1873
|
/**
|
|
1926
1874
|
* Récupère la liste des joueurs du club
|
|
1927
1875
|
* @param {*} [options] Override http request option.
|
|
@@ -2072,33 +2020,6 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
|
|
|
2072
2020
|
getAnalyticsBySport(requestParameters, options) {
|
|
2073
2021
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2074
2022
|
},
|
|
2075
|
-
/**
|
|
2076
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2077
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2078
|
-
* @param {*} [options] Override http request option.
|
|
2079
|
-
* @throws {RequiredError}
|
|
2080
|
-
*/
|
|
2081
|
-
getClubPlayerBookingsById(requestParameters, options) {
|
|
2082
|
-
return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2083
|
-
},
|
|
2084
|
-
/**
|
|
2085
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2086
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2087
|
-
* @param {*} [options] Override http request option.
|
|
2088
|
-
* @throws {RequiredError}
|
|
2089
|
-
*/
|
|
2090
|
-
getClubPlayerById(requestParameters, options) {
|
|
2091
|
-
return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2092
|
-
},
|
|
2093
|
-
/**
|
|
2094
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
2095
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2096
|
-
* @param {*} [options] Override http request option.
|
|
2097
|
-
* @throws {RequiredError}
|
|
2098
|
-
*/
|
|
2099
|
-
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2100
|
-
return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
|
|
2101
|
-
},
|
|
2102
2023
|
/**
|
|
2103
2024
|
* Récupère la liste des joueurs du club
|
|
2104
2025
|
* @param {*} [options] Override http request option.
|
|
@@ -2194,36 +2115,6 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
|
|
|
2194
2115
|
getAnalyticsBySport(requestParameters, options) {
|
|
2195
2116
|
return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2196
2117
|
}
|
|
2197
|
-
/**
|
|
2198
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2199
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
2200
|
-
* @param {*} [options] Override http request option.
|
|
2201
|
-
* @throws {RequiredError}
|
|
2202
|
-
* @memberof ClubAnalyticsStaffApi
|
|
2203
|
-
*/
|
|
2204
|
-
getClubPlayerBookingsById(requestParameters, options) {
|
|
2205
|
-
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2206
|
-
}
|
|
2207
|
-
/**
|
|
2208
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2209
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
|
|
2210
|
-
* @param {*} [options] Override http request option.
|
|
2211
|
-
* @throws {RequiredError}
|
|
2212
|
-
* @memberof ClubAnalyticsStaffApi
|
|
2213
|
-
*/
|
|
2214
|
-
getClubPlayerById(requestParameters, options) {
|
|
2215
|
-
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2216
|
-
}
|
|
2217
|
-
/**
|
|
2218
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
2219
|
-
* @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
|
|
2220
|
-
* @param {*} [options] Override http request option.
|
|
2221
|
-
* @throws {RequiredError}
|
|
2222
|
-
* @memberof ClubAnalyticsStaffApi
|
|
2223
|
-
*/
|
|
2224
|
-
getClubPlayerStatisticsById(requestParameters, options) {
|
|
2225
|
-
return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
|
|
2226
|
-
}
|
|
2227
2118
|
/**
|
|
2228
2119
|
* Récupère la liste des joueurs du club
|
|
2229
2120
|
* @param {*} [options] Override http request option.
|
|
@@ -6610,6 +6501,95 @@ export class SportsManagerApi extends BaseAPI {
|
|
|
6610
6501
|
return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6611
6502
|
}
|
|
6612
6503
|
}
|
|
6504
|
+
/**
|
|
6505
|
+
* SportsPublicApi - axios parameter creator
|
|
6506
|
+
* @export
|
|
6507
|
+
*/
|
|
6508
|
+
export const SportsPublicApiAxiosParamCreator = function (configuration) {
|
|
6509
|
+
return {
|
|
6510
|
+
/**
|
|
6511
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6512
|
+
* @param {*} [options] Override http request option.
|
|
6513
|
+
* @throws {RequiredError}
|
|
6514
|
+
*/
|
|
6515
|
+
getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6516
|
+
const localVarPath = `/api/sports/verified`;
|
|
6517
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6518
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6519
|
+
let baseOptions;
|
|
6520
|
+
if (configuration) {
|
|
6521
|
+
baseOptions = configuration.baseOptions;
|
|
6522
|
+
}
|
|
6523
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6524
|
+
const localVarHeaderParameter = {};
|
|
6525
|
+
const localVarQueryParameter = {};
|
|
6526
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6527
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6528
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6529
|
+
return {
|
|
6530
|
+
url: toPathString(localVarUrlObj),
|
|
6531
|
+
options: localVarRequestOptions,
|
|
6532
|
+
};
|
|
6533
|
+
}),
|
|
6534
|
+
};
|
|
6535
|
+
};
|
|
6536
|
+
/**
|
|
6537
|
+
* SportsPublicApi - functional programming interface
|
|
6538
|
+
* @export
|
|
6539
|
+
*/
|
|
6540
|
+
export const SportsPublicApiFp = function (configuration) {
|
|
6541
|
+
const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration);
|
|
6542
|
+
return {
|
|
6543
|
+
/**
|
|
6544
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6545
|
+
* @param {*} [options] Override http request option.
|
|
6546
|
+
* @throws {RequiredError}
|
|
6547
|
+
*/
|
|
6548
|
+
getVerifiedSports(options) {
|
|
6549
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6550
|
+
var _a, _b, _c;
|
|
6551
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
|
|
6552
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6553
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SportsPublicApi.getVerifiedSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6554
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6555
|
+
});
|
|
6556
|
+
},
|
|
6557
|
+
};
|
|
6558
|
+
};
|
|
6559
|
+
/**
|
|
6560
|
+
* SportsPublicApi - factory interface
|
|
6561
|
+
* @export
|
|
6562
|
+
*/
|
|
6563
|
+
export const SportsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6564
|
+
const localVarFp = SportsPublicApiFp(configuration);
|
|
6565
|
+
return {
|
|
6566
|
+
/**
|
|
6567
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6568
|
+
* @param {*} [options] Override http request option.
|
|
6569
|
+
* @throws {RequiredError}
|
|
6570
|
+
*/
|
|
6571
|
+
getVerifiedSports(options) {
|
|
6572
|
+
return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
|
|
6573
|
+
},
|
|
6574
|
+
};
|
|
6575
|
+
};
|
|
6576
|
+
/**
|
|
6577
|
+
* SportsPublicApi - object-oriented interface
|
|
6578
|
+
* @export
|
|
6579
|
+
* @class SportsPublicApi
|
|
6580
|
+
* @extends {BaseAPI}
|
|
6581
|
+
*/
|
|
6582
|
+
export class SportsPublicApi extends BaseAPI {
|
|
6583
|
+
/**
|
|
6584
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
6585
|
+
* @param {*} [options] Override http request option.
|
|
6586
|
+
* @throws {RequiredError}
|
|
6587
|
+
* @memberof SportsPublicApi
|
|
6588
|
+
*/
|
|
6589
|
+
getVerifiedSports(options) {
|
|
6590
|
+
return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
|
|
6591
|
+
}
|
|
6592
|
+
}
|
|
6613
6593
|
/**
|
|
6614
6594
|
* SportsStaffApi - axios parameter creator
|
|
6615
6595
|
* @export
|
|
@@ -7521,38 +7501,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7521
7501
|
options: localVarRequestOptions,
|
|
7522
7502
|
};
|
|
7523
7503
|
}),
|
|
7524
|
-
/**
|
|
7525
|
-
*
|
|
7526
|
-
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
7527
|
-
* @param {*} [options] Override http request option.
|
|
7528
|
-
* @throws {RequiredError}
|
|
7529
|
-
*/
|
|
7530
|
-
addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
|
|
7531
|
-
// verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
|
|
7532
|
-
assertParamExists('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
|
|
7533
|
-
const localVarPath = `/api/users/addPaymentMethodSetup`;
|
|
7534
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7535
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7536
|
-
let baseOptions;
|
|
7537
|
-
if (configuration) {
|
|
7538
|
-
baseOptions = configuration.baseOptions;
|
|
7539
|
-
}
|
|
7540
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7541
|
-
const localVarHeaderParameter = {};
|
|
7542
|
-
const localVarQueryParameter = {};
|
|
7543
|
-
// authentication bearerAuth required
|
|
7544
|
-
// http bearer authentication required
|
|
7545
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7546
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7547
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7548
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7549
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7550
|
-
localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
7551
|
-
return {
|
|
7552
|
-
url: toPathString(localVarUrlObj),
|
|
7553
|
-
options: localVarRequestOptions,
|
|
7554
|
-
};
|
|
7555
|
-
}),
|
|
7556
7504
|
/**
|
|
7557
7505
|
*
|
|
7558
7506
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -7585,38 +7533,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7585
7533
|
options: localVarRequestOptions,
|
|
7586
7534
|
};
|
|
7587
7535
|
}),
|
|
7588
|
-
/**
|
|
7589
|
-
*
|
|
7590
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
7591
|
-
* @param {*} [options] Override http request option.
|
|
7592
|
-
* @throws {RequiredError}
|
|
7593
|
-
*/
|
|
7594
|
-
confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
|
|
7595
|
-
// verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
|
|
7596
|
-
assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
|
|
7597
|
-
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
7598
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7599
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7600
|
-
let baseOptions;
|
|
7601
|
-
if (configuration) {
|
|
7602
|
-
baseOptions = configuration.baseOptions;
|
|
7603
|
-
}
|
|
7604
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7605
|
-
const localVarHeaderParameter = {};
|
|
7606
|
-
const localVarQueryParameter = {};
|
|
7607
|
-
// authentication bearerAuth required
|
|
7608
|
-
// http bearer authentication required
|
|
7609
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7610
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7611
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7612
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7613
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7614
|
-
localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
7615
|
-
return {
|
|
7616
|
-
url: toPathString(localVarUrlObj),
|
|
7617
|
-
options: localVarRequestOptions,
|
|
7618
|
-
};
|
|
7619
|
-
}),
|
|
7620
7536
|
/**
|
|
7621
7537
|
*
|
|
7622
7538
|
* @param {*} [options] Override http request option.
|
|
@@ -8386,38 +8302,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8386
8302
|
options: localVarRequestOptions,
|
|
8387
8303
|
};
|
|
8388
8304
|
}),
|
|
8389
|
-
/**
|
|
8390
|
-
*
|
|
8391
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
8392
|
-
* @param {*} [options] Override http request option.
|
|
8393
|
-
* @throws {RequiredError}
|
|
8394
|
-
*/
|
|
8395
|
-
setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
8396
|
-
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
8397
|
-
assertParamExists('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
8398
|
-
const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
|
|
8399
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8400
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8401
|
-
let baseOptions;
|
|
8402
|
-
if (configuration) {
|
|
8403
|
-
baseOptions = configuration.baseOptions;
|
|
8404
|
-
}
|
|
8405
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8406
|
-
const localVarHeaderParameter = {};
|
|
8407
|
-
const localVarQueryParameter = {};
|
|
8408
|
-
// authentication bearerAuth required
|
|
8409
|
-
// http bearer authentication required
|
|
8410
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8411
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8412
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8413
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8414
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8415
|
-
localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8416
|
-
return {
|
|
8417
|
-
url: toPathString(localVarUrlObj),
|
|
8418
|
-
options: localVarRequestOptions,
|
|
8419
|
-
};
|
|
8420
|
-
}),
|
|
8421
8305
|
/**
|
|
8422
8306
|
*
|
|
8423
8307
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -8687,21 +8571,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
8687
8571
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8688
8572
|
});
|
|
8689
8573
|
},
|
|
8690
|
-
/**
|
|
8691
|
-
*
|
|
8692
|
-
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
8693
|
-
* @param {*} [options] Override http request option.
|
|
8694
|
-
* @throws {RequiredError}
|
|
8695
|
-
*/
|
|
8696
|
-
addPaymentMethodSetup(addPaymentMethodRequestBody, options) {
|
|
8697
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8698
|
-
var _a, _b, _c;
|
|
8699
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
|
|
8700
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8701
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8702
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8703
|
-
});
|
|
8704
|
-
},
|
|
8705
8574
|
/**
|
|
8706
8575
|
*
|
|
8707
8576
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -8717,21 +8586,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
8717
8586
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8718
8587
|
});
|
|
8719
8588
|
},
|
|
8720
|
-
/**
|
|
8721
|
-
*
|
|
8722
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
8723
|
-
* @param {*} [options] Override http request option.
|
|
8724
|
-
* @throws {RequiredError}
|
|
8725
|
-
*/
|
|
8726
|
-
confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options) {
|
|
8727
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8728
|
-
var _a, _b, _c;
|
|
8729
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
|
|
8730
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8731
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8732
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8733
|
-
});
|
|
8734
|
-
},
|
|
8735
8589
|
/**
|
|
8736
8590
|
*
|
|
8737
8591
|
* @param {*} [options] Override http request option.
|
|
@@ -9102,21 +8956,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
9102
8956
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9103
8957
|
});
|
|
9104
8958
|
},
|
|
9105
|
-
/**
|
|
9106
|
-
*
|
|
9107
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
9108
|
-
* @param {*} [options] Override http request option.
|
|
9109
|
-
* @throws {RequiredError}
|
|
9110
|
-
*/
|
|
9111
|
-
setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
9112
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9113
|
-
var _a, _b, _c;
|
|
9114
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
9115
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9116
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9117
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9118
|
-
});
|
|
9119
|
-
},
|
|
9120
8959
|
/**
|
|
9121
8960
|
*
|
|
9122
8961
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9258,15 +9097,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9258
9097
|
addOrganization(requestParameters, options) {
|
|
9259
9098
|
return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
9260
9099
|
},
|
|
9261
|
-
/**
|
|
9262
|
-
*
|
|
9263
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9264
|
-
* @param {*} [options] Override http request option.
|
|
9265
|
-
* @throws {RequiredError}
|
|
9266
|
-
*/
|
|
9267
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
9268
|
-
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9269
|
-
},
|
|
9270
9100
|
/**
|
|
9271
9101
|
*
|
|
9272
9102
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9276,15 +9106,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9276
9106
|
changePassword(requestParameters, options) {
|
|
9277
9107
|
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
9278
9108
|
},
|
|
9279
|
-
/**
|
|
9280
|
-
*
|
|
9281
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9282
|
-
* @param {*} [options] Override http request option.
|
|
9283
|
-
* @throws {RequiredError}
|
|
9284
|
-
*/
|
|
9285
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
9286
|
-
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9287
|
-
},
|
|
9288
9109
|
/**
|
|
9289
9110
|
*
|
|
9290
9111
|
* @param {*} [options] Override http request option.
|
|
@@ -9493,15 +9314,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9493
9314
|
resetPassword(requestParameters, options) {
|
|
9494
9315
|
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
9495
9316
|
},
|
|
9496
|
-
/**
|
|
9497
|
-
*
|
|
9498
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
9499
|
-
* @param {*} [options] Override http request option.
|
|
9500
|
-
* @throws {RequiredError}
|
|
9501
|
-
*/
|
|
9502
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
9503
|
-
return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9504
|
-
},
|
|
9505
9317
|
/**
|
|
9506
9318
|
*
|
|
9507
9319
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -9604,16 +9416,6 @@ export class UsersApi extends BaseAPI {
|
|
|
9604
9416
|
addOrganization(requestParameters, options) {
|
|
9605
9417
|
return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9606
9418
|
}
|
|
9607
|
-
/**
|
|
9608
|
-
*
|
|
9609
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9610
|
-
* @param {*} [options] Override http request option.
|
|
9611
|
-
* @throws {RequiredError}
|
|
9612
|
-
* @memberof UsersApi
|
|
9613
|
-
*/
|
|
9614
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
9615
|
-
return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9616
|
-
}
|
|
9617
9419
|
/**
|
|
9618
9420
|
*
|
|
9619
9421
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9624,16 +9426,6 @@ export class UsersApi extends BaseAPI {
|
|
|
9624
9426
|
changePassword(requestParameters, options) {
|
|
9625
9427
|
return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9626
9428
|
}
|
|
9627
|
-
/**
|
|
9628
|
-
*
|
|
9629
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9630
|
-
* @param {*} [options] Override http request option.
|
|
9631
|
-
* @throws {RequiredError}
|
|
9632
|
-
* @memberof UsersApi
|
|
9633
|
-
*/
|
|
9634
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
9635
|
-
return UsersApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9636
|
-
}
|
|
9637
9429
|
/**
|
|
9638
9430
|
*
|
|
9639
9431
|
* @param {*} [options] Override http request option.
|
|
@@ -9866,16 +9658,6 @@ export class UsersApi extends BaseAPI {
|
|
|
9866
9658
|
resetPassword(requestParameters, options) {
|
|
9867
9659
|
return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9868
9660
|
}
|
|
9869
|
-
/**
|
|
9870
|
-
*
|
|
9871
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
9872
|
-
* @param {*} [options] Override http request option.
|
|
9873
|
-
* @throws {RequiredError}
|
|
9874
|
-
* @memberof UsersApi
|
|
9875
|
-
*/
|
|
9876
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
9877
|
-
return UsersApiFp(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9878
|
-
}
|
|
9879
9661
|
/**
|
|
9880
9662
|
*
|
|
9881
9663
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|