@tennac-booking/sdk 1.0.88 → 1.0.90
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 +16 -7
- package/README.md +19 -12
- package/api.ts +1053 -620
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +844 -443
- package/dist/api.js +296 -209
- 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 +844 -443
- package/dist/esm/api.js +284 -206
- 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/{ConfirmPaymentMethodRequestBody.md → BookingPriceBody.md} +7 -5
- package/docs/BookingPriceResponse.md +22 -0
- 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/ClubResponse.md +8 -0
- package/docs/ClubsApi.md +1 -1
- package/docs/CreateBookingRequest.md +4 -2
- package/docs/IUserAttributes.md +2 -12
- package/docs/InvoiceStatus.md +22 -0
- package/docs/MyClubInfosResponse.md +26 -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/SportsPublicApi.md +53 -0
- package/docs/StaffUserProfileResponse.md +2 -12
- package/docs/SubscribeRequestBody.md +2 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/UserApi.md +60 -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/PaymentMethodSetupResponse.md +0 -24
- package/docs/SetupPaymentMethodResponse.md +0 -24
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.89
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,9 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
25
|
+
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.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = void 0;
|
|
27
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.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 = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = void 0;
|
|
28
29
|
const axios_1 = require("axios");
|
|
29
30
|
// Some imports not used depending on template conditions
|
|
30
31
|
// @ts-ignore
|
|
@@ -139,6 +140,21 @@ exports.Gender = {
|
|
|
139
140
|
exports.IUserLocationTypeEnum = {
|
|
140
141
|
Point: 'Point'
|
|
141
142
|
};
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @export
|
|
146
|
+
* @enum {string}
|
|
147
|
+
*/
|
|
148
|
+
exports.InvoiceStatus = {
|
|
149
|
+
SetupPending: 'setup_pending',
|
|
150
|
+
SetupSuccess: 'setup_success',
|
|
151
|
+
Pending: 'pending',
|
|
152
|
+
Paid: 'paid',
|
|
153
|
+
Failed: 'failed',
|
|
154
|
+
Authorized: 'authorized',
|
|
155
|
+
Canceled: 'canceled',
|
|
156
|
+
Expired: 'expired'
|
|
157
|
+
};
|
|
142
158
|
/**
|
|
143
159
|
*
|
|
144
160
|
* @export
|
|
@@ -369,6 +385,38 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
369
385
|
options: localVarRequestOptions,
|
|
370
386
|
};
|
|
371
387
|
}),
|
|
388
|
+
/**
|
|
389
|
+
*
|
|
390
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
*/
|
|
394
|
+
getBookingPrice: (bookingPriceBody_1, ...args_1) => __awaiter(this, [bookingPriceBody_1, ...args_1], void 0, function* (bookingPriceBody, options = {}) {
|
|
395
|
+
// verify required parameter 'bookingPriceBody' is not null or undefined
|
|
396
|
+
(0, common_1.assertParamExists)('getBookingPrice', 'bookingPriceBody', bookingPriceBody);
|
|
397
|
+
const localVarPath = `/api/bookings/booking-price`;
|
|
398
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
399
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
400
|
+
let baseOptions;
|
|
401
|
+
if (configuration) {
|
|
402
|
+
baseOptions = configuration.baseOptions;
|
|
403
|
+
}
|
|
404
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
405
|
+
const localVarHeaderParameter = {};
|
|
406
|
+
const localVarQueryParameter = {};
|
|
407
|
+
// authentication bearerAuth required
|
|
408
|
+
// http bearer authentication required
|
|
409
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
410
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
411
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
412
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
413
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
414
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bookingPriceBody, localVarRequestOptions, configuration);
|
|
415
|
+
return {
|
|
416
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
417
|
+
options: localVarRequestOptions,
|
|
418
|
+
};
|
|
419
|
+
}),
|
|
372
420
|
/**
|
|
373
421
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
374
422
|
* @param {number} [latitude]
|
|
@@ -379,12 +427,13 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
379
427
|
* @param {string} [startTime]
|
|
380
428
|
* @param {number} [priceMax]
|
|
381
429
|
* @param {string} [courtTypes]
|
|
430
|
+
* @param {string} [surfaceTypes]
|
|
382
431
|
* @param {number} [limitPerClub]
|
|
383
432
|
* @param {number} [maxClubs]
|
|
384
433
|
* @param {*} [options] Override http request option.
|
|
385
434
|
* @throws {RequiredError}
|
|
386
435
|
*/
|
|
387
|
-
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 = {}) {
|
|
436
|
+
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 = {}) {
|
|
388
437
|
const localVarPath = `/api/bookings/quick-reservations`;
|
|
389
438
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
390
439
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -419,8 +468,11 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
419
468
|
if (courtTypes !== undefined) {
|
|
420
469
|
localVarQueryParameter['courtTypes'] = courtTypes;
|
|
421
470
|
}
|
|
471
|
+
if (surfaceTypes !== undefined) {
|
|
472
|
+
localVarQueryParameter['surfaceTypes'] = surfaceTypes;
|
|
473
|
+
}
|
|
422
474
|
if (limitPerClub !== undefined) {
|
|
423
|
-
localVarQueryParameter['
|
|
475
|
+
localVarQueryParameter['_limitPerClub'] = limitPerClub;
|
|
424
476
|
}
|
|
425
477
|
if (maxClubs !== undefined) {
|
|
426
478
|
localVarQueryParameter['maxClubs'] = maxClubs;
|
|
@@ -458,6 +510,21 @@ const BookingsApiFp = function (configuration) {
|
|
|
458
510
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
459
511
|
});
|
|
460
512
|
},
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
516
|
+
* @param {*} [options] Override http request option.
|
|
517
|
+
* @throws {RequiredError}
|
|
518
|
+
*/
|
|
519
|
+
getBookingPrice(bookingPriceBody, options) {
|
|
520
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
521
|
+
var _a, _b, _c;
|
|
522
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
|
|
523
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
524
|
+
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;
|
|
525
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
526
|
+
});
|
|
527
|
+
},
|
|
461
528
|
/**
|
|
462
529
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
463
530
|
* @param {number} [latitude]
|
|
@@ -468,15 +535,16 @@ const BookingsApiFp = function (configuration) {
|
|
|
468
535
|
* @param {string} [startTime]
|
|
469
536
|
* @param {number} [priceMax]
|
|
470
537
|
* @param {string} [courtTypes]
|
|
538
|
+
* @param {string} [surfaceTypes]
|
|
471
539
|
* @param {number} [limitPerClub]
|
|
472
540
|
* @param {number} [maxClubs]
|
|
473
541
|
* @param {*} [options] Override http request option.
|
|
474
542
|
* @throws {RequiredError}
|
|
475
543
|
*/
|
|
476
|
-
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
|
|
544
|
+
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options) {
|
|
477
545
|
return __awaiter(this, void 0, void 0, function* () {
|
|
478
546
|
var _a, _b, _c;
|
|
479
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
|
|
547
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
|
|
480
548
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
481
549
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getQuickReservationSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
482
550
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -501,6 +569,15 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
501
569
|
getBookingHistory(requestParameters, options) {
|
|
502
570
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
503
571
|
},
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
575
|
+
* @param {*} [options] Override http request option.
|
|
576
|
+
* @throws {RequiredError}
|
|
577
|
+
*/
|
|
578
|
+
getBookingPrice(requestParameters, options) {
|
|
579
|
+
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
580
|
+
},
|
|
504
581
|
/**
|
|
505
582
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
506
583
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -508,7 +585,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
508
585
|
* @throws {RequiredError}
|
|
509
586
|
*/
|
|
510
587
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
511
|
-
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));
|
|
588
|
+
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));
|
|
512
589
|
},
|
|
513
590
|
};
|
|
514
591
|
};
|
|
@@ -530,6 +607,16 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
530
607
|
getBookingHistory(requestParameters, options) {
|
|
531
608
|
return (0, exports.BookingsApiFp)(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
532
609
|
}
|
|
610
|
+
/**
|
|
611
|
+
*
|
|
612
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
* @memberof BookingsApi
|
|
616
|
+
*/
|
|
617
|
+
getBookingPrice(requestParameters, options) {
|
|
618
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
619
|
+
}
|
|
533
620
|
/**
|
|
534
621
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
535
622
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -538,7 +625,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
538
625
|
* @memberof BookingsApi
|
|
539
626
|
*/
|
|
540
627
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
541
|
-
return (0, exports.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));
|
|
628
|
+
return (0, exports.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));
|
|
542
629
|
}
|
|
543
630
|
}
|
|
544
631
|
exports.BookingsApi = BookingsApi;
|
|
@@ -3387,7 +3474,7 @@ exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
|
|
|
3387
3474
|
const ClubsApiAxiosParamCreator = function (configuration) {
|
|
3388
3475
|
return {
|
|
3389
3476
|
/**
|
|
3390
|
-
* Récupère la liste des clubs actifs
|
|
3477
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3391
3478
|
* @param {*} [options] Override http request option.
|
|
3392
3479
|
* @throws {RequiredError}
|
|
3393
3480
|
*/
|
|
@@ -3736,7 +3823,7 @@ const ClubsApiFp = function (configuration) {
|
|
|
3736
3823
|
const localVarAxiosParamCreator = (0, exports.ClubsApiAxiosParamCreator)(configuration);
|
|
3737
3824
|
return {
|
|
3738
3825
|
/**
|
|
3739
|
-
* Récupère la liste des clubs actifs
|
|
3826
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3740
3827
|
* @param {*} [options] Override http request option.
|
|
3741
3828
|
* @throws {RequiredError}
|
|
3742
3829
|
*/
|
|
@@ -3926,7 +4013,7 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
3926
4013
|
const localVarFp = (0, exports.ClubsApiFp)(configuration);
|
|
3927
4014
|
return {
|
|
3928
4015
|
/**
|
|
3929
|
-
* Récupère la liste des clubs actifs
|
|
4016
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3930
4017
|
* @param {*} [options] Override http request option.
|
|
3931
4018
|
* @throws {RequiredError}
|
|
3932
4019
|
*/
|
|
@@ -4040,7 +4127,7 @@ exports.ClubsApiFactory = ClubsApiFactory;
|
|
|
4040
4127
|
*/
|
|
4041
4128
|
class ClubsApi extends base_1.BaseAPI {
|
|
4042
4129
|
/**
|
|
4043
|
-
* Récupère la liste des clubs actifs
|
|
4130
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
4044
4131
|
* @param {*} [options] Override http request option.
|
|
4045
4132
|
* @throws {RequiredError}
|
|
4046
4133
|
* @memberof ClubsApi
|
|
@@ -7098,6 +7185,99 @@ class SportsManagerApi extends base_1.BaseAPI {
|
|
|
7098
7185
|
}
|
|
7099
7186
|
}
|
|
7100
7187
|
exports.SportsManagerApi = SportsManagerApi;
|
|
7188
|
+
/**
|
|
7189
|
+
* SportsPublicApi - axios parameter creator
|
|
7190
|
+
* @export
|
|
7191
|
+
*/
|
|
7192
|
+
const SportsPublicApiAxiosParamCreator = function (configuration) {
|
|
7193
|
+
return {
|
|
7194
|
+
/**
|
|
7195
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
7196
|
+
* @param {*} [options] Override http request option.
|
|
7197
|
+
* @throws {RequiredError}
|
|
7198
|
+
*/
|
|
7199
|
+
getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7200
|
+
const localVarPath = `/api/sports/verified`;
|
|
7201
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7202
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7203
|
+
let baseOptions;
|
|
7204
|
+
if (configuration) {
|
|
7205
|
+
baseOptions = configuration.baseOptions;
|
|
7206
|
+
}
|
|
7207
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7208
|
+
const localVarHeaderParameter = {};
|
|
7209
|
+
const localVarQueryParameter = {};
|
|
7210
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7211
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7212
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7213
|
+
return {
|
|
7214
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7215
|
+
options: localVarRequestOptions,
|
|
7216
|
+
};
|
|
7217
|
+
}),
|
|
7218
|
+
};
|
|
7219
|
+
};
|
|
7220
|
+
exports.SportsPublicApiAxiosParamCreator = SportsPublicApiAxiosParamCreator;
|
|
7221
|
+
/**
|
|
7222
|
+
* SportsPublicApi - functional programming interface
|
|
7223
|
+
* @export
|
|
7224
|
+
*/
|
|
7225
|
+
const SportsPublicApiFp = function (configuration) {
|
|
7226
|
+
const localVarAxiosParamCreator = (0, exports.SportsPublicApiAxiosParamCreator)(configuration);
|
|
7227
|
+
return {
|
|
7228
|
+
/**
|
|
7229
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
7230
|
+
* @param {*} [options] Override http request option.
|
|
7231
|
+
* @throws {RequiredError}
|
|
7232
|
+
*/
|
|
7233
|
+
getVerifiedSports(options) {
|
|
7234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7235
|
+
var _a, _b, _c;
|
|
7236
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
|
|
7237
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7238
|
+
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;
|
|
7239
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7240
|
+
});
|
|
7241
|
+
},
|
|
7242
|
+
};
|
|
7243
|
+
};
|
|
7244
|
+
exports.SportsPublicApiFp = SportsPublicApiFp;
|
|
7245
|
+
/**
|
|
7246
|
+
* SportsPublicApi - factory interface
|
|
7247
|
+
* @export
|
|
7248
|
+
*/
|
|
7249
|
+
const SportsPublicApiFactory = function (configuration, basePath, axios) {
|
|
7250
|
+
const localVarFp = (0, exports.SportsPublicApiFp)(configuration);
|
|
7251
|
+
return {
|
|
7252
|
+
/**
|
|
7253
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
7254
|
+
* @param {*} [options] Override http request option.
|
|
7255
|
+
* @throws {RequiredError}
|
|
7256
|
+
*/
|
|
7257
|
+
getVerifiedSports(options) {
|
|
7258
|
+
return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
|
|
7259
|
+
},
|
|
7260
|
+
};
|
|
7261
|
+
};
|
|
7262
|
+
exports.SportsPublicApiFactory = SportsPublicApiFactory;
|
|
7263
|
+
/**
|
|
7264
|
+
* SportsPublicApi - object-oriented interface
|
|
7265
|
+
* @export
|
|
7266
|
+
* @class SportsPublicApi
|
|
7267
|
+
* @extends {BaseAPI}
|
|
7268
|
+
*/
|
|
7269
|
+
class SportsPublicApi extends base_1.BaseAPI {
|
|
7270
|
+
/**
|
|
7271
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
7272
|
+
* @param {*} [options] Override http request option.
|
|
7273
|
+
* @throws {RequiredError}
|
|
7274
|
+
* @memberof SportsPublicApi
|
|
7275
|
+
*/
|
|
7276
|
+
getVerifiedSports(options) {
|
|
7277
|
+
return (0, exports.SportsPublicApiFp)(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
|
|
7278
|
+
}
|
|
7279
|
+
}
|
|
7280
|
+
exports.SportsPublicApi = SportsPublicApi;
|
|
7101
7281
|
/**
|
|
7102
7282
|
* SportsStaffApi - axios parameter creator
|
|
7103
7283
|
* @export
|
|
@@ -7928,53 +8108,126 @@ class SubscriptionsUserApi extends base_1.BaseAPI {
|
|
|
7928
8108
|
}
|
|
7929
8109
|
exports.SubscriptionsUserApi = SubscriptionsUserApi;
|
|
7930
8110
|
/**
|
|
7931
|
-
*
|
|
8111
|
+
* UserApi - axios parameter creator
|
|
7932
8112
|
* @export
|
|
7933
8113
|
*/
|
|
7934
|
-
const
|
|
8114
|
+
const UserApiAxiosParamCreator = function (configuration) {
|
|
7935
8115
|
return {
|
|
7936
8116
|
/**
|
|
7937
|
-
*
|
|
7938
|
-
* @param {
|
|
8117
|
+
* Récupère les informations du club de l\'utilisateur
|
|
8118
|
+
* @param {string} clubId
|
|
7939
8119
|
* @param {*} [options] Override http request option.
|
|
7940
8120
|
* @throws {RequiredError}
|
|
7941
8121
|
*/
|
|
7942
|
-
|
|
7943
|
-
// verify required parameter '
|
|
7944
|
-
(0, common_1.assertParamExists)('
|
|
7945
|
-
const localVarPath = `/api/users/me/
|
|
8122
|
+
getMyClubInfos: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
8123
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
8124
|
+
(0, common_1.assertParamExists)('getMyClubInfos', 'clubId', clubId);
|
|
8125
|
+
const localVarPath = `/api/users/me/club-infos`;
|
|
7946
8126
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7947
8127
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7948
8128
|
let baseOptions;
|
|
7949
8129
|
if (configuration) {
|
|
7950
8130
|
baseOptions = configuration.baseOptions;
|
|
7951
8131
|
}
|
|
7952
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
8132
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7953
8133
|
const localVarHeaderParameter = {};
|
|
7954
8134
|
const localVarQueryParameter = {};
|
|
7955
8135
|
// authentication bearerAuth required
|
|
7956
8136
|
// http bearer authentication required
|
|
7957
8137
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7958
|
-
|
|
8138
|
+
if (clubId !== undefined) {
|
|
8139
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
8140
|
+
}
|
|
7959
8141
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7960
8142
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7961
8143
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7962
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
7963
8144
|
return {
|
|
7964
8145
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7965
8146
|
options: localVarRequestOptions,
|
|
7966
8147
|
};
|
|
7967
8148
|
}),
|
|
8149
|
+
};
|
|
8150
|
+
};
|
|
8151
|
+
exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
8152
|
+
/**
|
|
8153
|
+
* UserApi - functional programming interface
|
|
8154
|
+
* @export
|
|
8155
|
+
*/
|
|
8156
|
+
const UserApiFp = function (configuration) {
|
|
8157
|
+
const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
|
|
8158
|
+
return {
|
|
8159
|
+
/**
|
|
8160
|
+
* Récupère les informations du club de l\'utilisateur
|
|
8161
|
+
* @param {string} clubId
|
|
8162
|
+
* @param {*} [options] Override http request option.
|
|
8163
|
+
* @throws {RequiredError}
|
|
8164
|
+
*/
|
|
8165
|
+
getMyClubInfos(clubId, options) {
|
|
8166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8167
|
+
var _a, _b, _c;
|
|
8168
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubInfos(clubId, options);
|
|
8169
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8170
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getMyClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8171
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8172
|
+
});
|
|
8173
|
+
},
|
|
8174
|
+
};
|
|
8175
|
+
};
|
|
8176
|
+
exports.UserApiFp = UserApiFp;
|
|
8177
|
+
/**
|
|
8178
|
+
* UserApi - factory interface
|
|
8179
|
+
* @export
|
|
8180
|
+
*/
|
|
8181
|
+
const UserApiFactory = function (configuration, basePath, axios) {
|
|
8182
|
+
const localVarFp = (0, exports.UserApiFp)(configuration);
|
|
8183
|
+
return {
|
|
8184
|
+
/**
|
|
8185
|
+
* Récupère les informations du club de l\'utilisateur
|
|
8186
|
+
* @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
|
|
8187
|
+
* @param {*} [options] Override http request option.
|
|
8188
|
+
* @throws {RequiredError}
|
|
8189
|
+
*/
|
|
8190
|
+
getMyClubInfos(requestParameters, options) {
|
|
8191
|
+
return localVarFp.getMyClubInfos(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
8192
|
+
},
|
|
8193
|
+
};
|
|
8194
|
+
};
|
|
8195
|
+
exports.UserApiFactory = UserApiFactory;
|
|
8196
|
+
/**
|
|
8197
|
+
* UserApi - object-oriented interface
|
|
8198
|
+
* @export
|
|
8199
|
+
* @class UserApi
|
|
8200
|
+
* @extends {BaseAPI}
|
|
8201
|
+
*/
|
|
8202
|
+
class UserApi extends base_1.BaseAPI {
|
|
8203
|
+
/**
|
|
8204
|
+
* Récupère les informations du club de l\'utilisateur
|
|
8205
|
+
* @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
|
|
8206
|
+
* @param {*} [options] Override http request option.
|
|
8207
|
+
* @throws {RequiredError}
|
|
8208
|
+
* @memberof UserApi
|
|
8209
|
+
*/
|
|
8210
|
+
getMyClubInfos(requestParameters, options) {
|
|
8211
|
+
return (0, exports.UserApiFp)(this.configuration).getMyClubInfos(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
8212
|
+
}
|
|
8213
|
+
}
|
|
8214
|
+
exports.UserApi = UserApi;
|
|
8215
|
+
/**
|
|
8216
|
+
* UsersApi - axios parameter creator
|
|
8217
|
+
* @export
|
|
8218
|
+
*/
|
|
8219
|
+
const UsersApiAxiosParamCreator = function (configuration) {
|
|
8220
|
+
return {
|
|
7968
8221
|
/**
|
|
7969
8222
|
*
|
|
7970
|
-
* @param {
|
|
8223
|
+
* @param {FavoriteClubRequestBody} favoriteClubRequestBody
|
|
7971
8224
|
* @param {*} [options] Override http request option.
|
|
7972
8225
|
* @throws {RequiredError}
|
|
7973
8226
|
*/
|
|
7974
|
-
|
|
7975
|
-
// verify required parameter '
|
|
7976
|
-
(0, common_1.assertParamExists)('
|
|
7977
|
-
const localVarPath = `/api/users/me/
|
|
8227
|
+
addFavoriteClub: (favoriteClubRequestBody_1, ...args_1) => __awaiter(this, [favoriteClubRequestBody_1, ...args_1], void 0, function* (favoriteClubRequestBody, options = {}) {
|
|
8228
|
+
// verify required parameter 'favoriteClubRequestBody' is not null or undefined
|
|
8229
|
+
(0, common_1.assertParamExists)('addFavoriteClub', 'favoriteClubRequestBody', favoriteClubRequestBody);
|
|
8230
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
7978
8231
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7979
8232
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7980
8233
|
let baseOptions;
|
|
@@ -7991,7 +8244,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7991
8244
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7992
8245
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7993
8246
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7994
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
8247
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
7995
8248
|
return {
|
|
7996
8249
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7997
8250
|
options: localVarRequestOptions,
|
|
@@ -7999,14 +8252,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7999
8252
|
}),
|
|
8000
8253
|
/**
|
|
8001
8254
|
*
|
|
8002
|
-
* @param {
|
|
8255
|
+
* @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
|
|
8003
8256
|
* @param {*} [options] Override http request option.
|
|
8004
8257
|
* @throws {RequiredError}
|
|
8005
8258
|
*/
|
|
8006
|
-
|
|
8007
|
-
// verify required parameter '
|
|
8008
|
-
(0, common_1.assertParamExists)('
|
|
8009
|
-
const localVarPath = `/api/users/me/
|
|
8259
|
+
addFavoritePlayer: (favoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [favoritePlayerRequestBody_1, ...args_1], void 0, function* (favoritePlayerRequestBody, options = {}) {
|
|
8260
|
+
// verify required parameter 'favoritePlayerRequestBody' is not null or undefined
|
|
8261
|
+
(0, common_1.assertParamExists)('addFavoritePlayer', 'favoritePlayerRequestBody', favoritePlayerRequestBody);
|
|
8262
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
8010
8263
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8011
8264
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8012
8265
|
let baseOptions;
|
|
@@ -8023,7 +8276,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8023
8276
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8024
8277
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8025
8278
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8026
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
8279
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
8027
8280
|
return {
|
|
8028
8281
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8029
8282
|
options: localVarRequestOptions,
|
|
@@ -8031,14 +8284,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8031
8284
|
}),
|
|
8032
8285
|
/**
|
|
8033
8286
|
*
|
|
8034
|
-
* @param {
|
|
8287
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
8035
8288
|
* @param {*} [options] Override http request option.
|
|
8036
8289
|
* @throws {RequiredError}
|
|
8037
8290
|
*/
|
|
8038
|
-
|
|
8039
|
-
// verify required parameter '
|
|
8040
|
-
(0, common_1.assertParamExists)('
|
|
8041
|
-
const localVarPath = `/api/users/
|
|
8291
|
+
addOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
|
|
8292
|
+
// verify required parameter 'addOrganizationRequest' is not null or undefined
|
|
8293
|
+
(0, common_1.assertParamExists)('addOrganization', 'addOrganizationRequest', addOrganizationRequest);
|
|
8294
|
+
const localVarPath = `/api/users/me/add-organization`;
|
|
8042
8295
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8043
8296
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8044
8297
|
let baseOptions;
|
|
@@ -8055,7 +8308,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8055
8308
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8056
8309
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8057
8310
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8058
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
8311
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
8059
8312
|
return {
|
|
8060
8313
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8061
8314
|
options: localVarRequestOptions,
|
|
@@ -8093,38 +8346,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8093
8346
|
options: localVarRequestOptions,
|
|
8094
8347
|
};
|
|
8095
8348
|
}),
|
|
8096
|
-
/**
|
|
8097
|
-
*
|
|
8098
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
8099
|
-
* @param {*} [options] Override http request option.
|
|
8100
|
-
* @throws {RequiredError}
|
|
8101
|
-
*/
|
|
8102
|
-
confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
|
|
8103
|
-
// verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
|
|
8104
|
-
(0, common_1.assertParamExists)('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
|
|
8105
|
-
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
8106
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8107
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8108
|
-
let baseOptions;
|
|
8109
|
-
if (configuration) {
|
|
8110
|
-
baseOptions = configuration.baseOptions;
|
|
8111
|
-
}
|
|
8112
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8113
|
-
const localVarHeaderParameter = {};
|
|
8114
|
-
const localVarQueryParameter = {};
|
|
8115
|
-
// authentication bearerAuth required
|
|
8116
|
-
// http bearer authentication required
|
|
8117
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8118
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8119
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8120
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8121
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8122
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8123
|
-
return {
|
|
8124
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8125
|
-
options: localVarRequestOptions,
|
|
8126
|
-
};
|
|
8127
|
-
}),
|
|
8128
8349
|
/**
|
|
8129
8350
|
*
|
|
8130
8351
|
* @param {*} [options] Override http request option.
|
|
@@ -8894,38 +9115,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8894
9115
|
options: localVarRequestOptions,
|
|
8895
9116
|
};
|
|
8896
9117
|
}),
|
|
8897
|
-
/**
|
|
8898
|
-
*
|
|
8899
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
8900
|
-
* @param {*} [options] Override http request option.
|
|
8901
|
-
* @throws {RequiredError}
|
|
8902
|
-
*/
|
|
8903
|
-
setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
8904
|
-
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
8905
|
-
(0, common_1.assertParamExists)('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
8906
|
-
const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
|
|
8907
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8908
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8909
|
-
let baseOptions;
|
|
8910
|
-
if (configuration) {
|
|
8911
|
-
baseOptions = configuration.baseOptions;
|
|
8912
|
-
}
|
|
8913
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8914
|
-
const localVarHeaderParameter = {};
|
|
8915
|
-
const localVarQueryParameter = {};
|
|
8916
|
-
// authentication bearerAuth required
|
|
8917
|
-
// http bearer authentication required
|
|
8918
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8919
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8920
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8921
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8922
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8923
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8924
|
-
return {
|
|
8925
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8926
|
-
options: localVarRequestOptions,
|
|
8927
|
-
};
|
|
8928
|
-
}),
|
|
8929
9118
|
/**
|
|
8930
9119
|
*
|
|
8931
9120
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9196,21 +9385,6 @@ const UsersApiFp = function (configuration) {
|
|
|
9196
9385
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9197
9386
|
});
|
|
9198
9387
|
},
|
|
9199
|
-
/**
|
|
9200
|
-
*
|
|
9201
|
-
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
9202
|
-
* @param {*} [options] Override http request option.
|
|
9203
|
-
* @throws {RequiredError}
|
|
9204
|
-
*/
|
|
9205
|
-
addPaymentMethodSetup(addPaymentMethodRequestBody, options) {
|
|
9206
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9207
|
-
var _a, _b, _c;
|
|
9208
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, 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.addPaymentMethodSetup']) === 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
9388
|
/**
|
|
9215
9389
|
*
|
|
9216
9390
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -9226,21 +9400,6 @@ const UsersApiFp = function (configuration) {
|
|
|
9226
9400
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9227
9401
|
});
|
|
9228
9402
|
},
|
|
9229
|
-
/**
|
|
9230
|
-
*
|
|
9231
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
9232
|
-
* @param {*} [options] Override http request option.
|
|
9233
|
-
* @throws {RequiredError}
|
|
9234
|
-
*/
|
|
9235
|
-
confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options) {
|
|
9236
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9237
|
-
var _a, _b, _c;
|
|
9238
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
|
|
9239
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9240
|
-
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;
|
|
9241
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9242
|
-
});
|
|
9243
|
-
},
|
|
9244
9403
|
/**
|
|
9245
9404
|
*
|
|
9246
9405
|
* @param {*} [options] Override http request option.
|
|
@@ -9611,21 +9770,6 @@ const UsersApiFp = function (configuration) {
|
|
|
9611
9770
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9612
9771
|
});
|
|
9613
9772
|
},
|
|
9614
|
-
/**
|
|
9615
|
-
*
|
|
9616
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
9617
|
-
* @param {*} [options] Override http request option.
|
|
9618
|
-
* @throws {RequiredError}
|
|
9619
|
-
*/
|
|
9620
|
-
setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
9621
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9622
|
-
var _a, _b, _c;
|
|
9623
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
9624
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9625
|
-
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;
|
|
9626
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9627
|
-
});
|
|
9628
|
-
},
|
|
9629
9773
|
/**
|
|
9630
9774
|
*
|
|
9631
9775
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9768,15 +9912,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9768
9912
|
addOrganization(requestParameters, options) {
|
|
9769
9913
|
return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
9770
9914
|
},
|
|
9771
|
-
/**
|
|
9772
|
-
*
|
|
9773
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9774
|
-
* @param {*} [options] Override http request option.
|
|
9775
|
-
* @throws {RequiredError}
|
|
9776
|
-
*/
|
|
9777
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
9778
|
-
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9779
|
-
},
|
|
9780
9915
|
/**
|
|
9781
9916
|
*
|
|
9782
9917
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9786,15 +9921,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9786
9921
|
changePassword(requestParameters, options) {
|
|
9787
9922
|
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
9788
9923
|
},
|
|
9789
|
-
/**
|
|
9790
|
-
*
|
|
9791
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9792
|
-
* @param {*} [options] Override http request option.
|
|
9793
|
-
* @throws {RequiredError}
|
|
9794
|
-
*/
|
|
9795
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
9796
|
-
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9797
|
-
},
|
|
9798
9924
|
/**
|
|
9799
9925
|
*
|
|
9800
9926
|
* @param {*} [options] Override http request option.
|
|
@@ -10003,15 +10129,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
10003
10129
|
resetPassword(requestParameters, options) {
|
|
10004
10130
|
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
10005
10131
|
},
|
|
10006
|
-
/**
|
|
10007
|
-
*
|
|
10008
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
10009
|
-
* @param {*} [options] Override http request option.
|
|
10010
|
-
* @throws {RequiredError}
|
|
10011
|
-
*/
|
|
10012
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
10013
|
-
return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
10014
|
-
},
|
|
10015
10132
|
/**
|
|
10016
10133
|
*
|
|
10017
10134
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -10115,16 +10232,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
10115
10232
|
addOrganization(requestParameters, options) {
|
|
10116
10233
|
return (0, exports.UsersApiFp)(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10117
10234
|
}
|
|
10118
|
-
/**
|
|
10119
|
-
*
|
|
10120
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
10121
|
-
* @param {*} [options] Override http request option.
|
|
10122
|
-
* @throws {RequiredError}
|
|
10123
|
-
* @memberof UsersApi
|
|
10124
|
-
*/
|
|
10125
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
10126
|
-
return (0, exports.UsersApiFp)(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10127
|
-
}
|
|
10128
10235
|
/**
|
|
10129
10236
|
*
|
|
10130
10237
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -10135,16 +10242,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
10135
10242
|
changePassword(requestParameters, options) {
|
|
10136
10243
|
return (0, exports.UsersApiFp)(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10137
10244
|
}
|
|
10138
|
-
/**
|
|
10139
|
-
*
|
|
10140
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
10141
|
-
* @param {*} [options] Override http request option.
|
|
10142
|
-
* @throws {RequiredError}
|
|
10143
|
-
* @memberof UsersApi
|
|
10144
|
-
*/
|
|
10145
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
10146
|
-
return (0, exports.UsersApiFp)(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10147
|
-
}
|
|
10148
10245
|
/**
|
|
10149
10246
|
*
|
|
10150
10247
|
* @param {*} [options] Override http request option.
|
|
@@ -10377,16 +10474,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
10377
10474
|
resetPassword(requestParameters, options) {
|
|
10378
10475
|
return (0, exports.UsersApiFp)(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10379
10476
|
}
|
|
10380
|
-
/**
|
|
10381
|
-
*
|
|
10382
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
10383
|
-
* @param {*} [options] Override http request option.
|
|
10384
|
-
* @throws {RequiredError}
|
|
10385
|
-
* @memberof UsersApi
|
|
10386
|
-
*/
|
|
10387
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
10388
|
-
return (0, exports.UsersApiFp)(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10389
|
-
}
|
|
10390
10477
|
/**
|
|
10391
10478
|
*
|
|
10392
10479
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|