@tennac-booking/sdk 1.0.115 → 1.0.116
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 +305 -300
- package/README.md +10 -2
- package/api.ts +352 -21
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +273 -21
- package/dist/api.js +155 -25
- 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 +273 -21
- package/dist/esm/api.js +151 -21
- 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/ActiveClub.md +24 -0
- package/docs/ActiveClubListResponse.md +20 -0
- package/docs/AddClubMemberResponse.md +22 -0
- package/docs/AddFavoriteClubRequestBody.md +20 -0
- package/docs/AddFavoritePlayerRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupResponse.md +24 -0
- package/docs/AdminClubAnalyticsApi.md +249 -0
- package/docs/AdminClubSlotsApi.md +182 -0
- package/docs/AdminClubSubscriptionsApi.md +394 -0
- package/docs/AdminClubsApi.md +170 -0
- package/docs/ApiErrorResponse.md +22 -0
- package/docs/BlockSlotResponse.md +22 -0
- package/docs/Booking.md +32 -0
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +36 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
- package/docs/BookingPopulatedSlotId.md +26 -0
- package/docs/BookingPopulatedSlotIdCourtId.md +22 -0
- package/docs/BookingPopulatedUserId.md +24 -0
- package/docs/BookingsUserApi.md +1 -1
- package/docs/CancelBookingResponseBooking.md +30 -0
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +34 -0
- package/docs/ClientApi.md +49 -2
- package/docs/ClientFullOnboardingResponseClub.md +2 -0
- package/docs/ClientOnboardingRequestBody.md +2 -0
- package/docs/ClientSubscription.md +31 -0
- package/docs/ClientSubscriptionItem.md +25 -0
- package/docs/ClientSubscriptionsResponse.md +21 -0
- package/docs/Club.md +46 -0
- package/docs/ClubInfoResponse.md +48 -0
- package/docs/ClubListResponse.md +22 -0
- package/docs/ClubMember.md +34 -0
- package/docs/ClubMembersResponse.md +22 -0
- package/docs/ClubRole.md +30 -0
- package/docs/ClubRolesResponse.md +22 -0
- package/docs/ClubSettings.md +40 -0
- package/docs/ClubsApi.md +2 -2
- package/docs/ClubsResponse.md +22 -0
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
- package/docs/Court.md +32 -0
- package/docs/CourtsResponse.md +22 -0
- package/docs/CreateClubRoleRequestBody.md +24 -0
- package/docs/CreateClubSettingsRequest.md +28 -0
- package/docs/CreatePriceRequest.md +26 -0
- package/docs/DeleteClub200Response.md +20 -0
- package/docs/DeleteClubRole200Response.md +20 -0
- package/docs/DeleteClubSettingsRequest.md +20 -0
- package/docs/DeleteEvent200Response.md +20 -0
- package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
- package/docs/DeleteSlotsResponse.md +20 -0
- package/docs/DeleteSport200Response.md +20 -0
- package/docs/EstimateEventPrice200Response.md +26 -0
- package/docs/EstimateEventPriceRequest.md +22 -0
- package/docs/EstimateEventPriceRequestSharesInner.md +22 -0
- package/docs/Event.md +40 -0
- package/docs/EventBooking.md +32 -0
- package/docs/EventRegistrationRequest.md +22 -0
- package/docs/EventsApi.md +58 -0
- package/docs/FavoriteClubItem.md +26 -0
- package/docs/FavoriteClubResponse.md +22 -0
- package/docs/FavoritePlayerPublic.md +28 -0
- package/docs/FavoritePlayersIdsResponse.md +22 -0
- package/docs/FrequentlyPlayedWithItem.md +28 -0
- package/docs/FrequentlyVisitedClubItem.md +24 -0
- package/docs/GenerateSlotsResponse.md +20 -0
- package/docs/GetActiveClubs200Response.md +20 -0
- package/docs/GetClubInfos200Response.md +30 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +22 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/GetPublishedEventsByClubId200Response.md +20 -0
- package/docs/GetUserRolesResponse.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +26 -0
- package/docs/GetUserSubscriptionsResponse.md +22 -0
- package/docs/GoogleSignInRequestBody.md +20 -0
- package/docs/GoogleSignInResponse.md +24 -0
- package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
- package/docs/InitiateSubscriptionSessionResponse.md +22 -0
- package/docs/InvoicesResponse.md +22 -0
- package/docs/InvoicesResponseInvoicesInner.md +34 -0
- package/docs/InvoicesResponsePagination.md +26 -0
- package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +2 -0
- package/docs/LevelBySportsItem.md +22 -0
- package/docs/ManagerBookingsApi.md +125 -0
- package/docs/ManagerCancelBookingResponseBooking.md +30 -0
- package/docs/ManagerClubCourtsApi.md +108 -0
- package/docs/ManagerClubRolesApi.md +268 -0
- package/docs/ManagerClubSlotsApi.md +119 -0
- package/docs/ManagerClubSubscriptionsApi.md +387 -0
- package/docs/ManagerClubsApi.md +253 -0
- package/docs/ManagerEventResponse.md +22 -0
- package/docs/ManagerEventsApi.md +227 -0
- package/docs/ManagerSportsApi.md +174 -0
- package/docs/NoShowFeeResponseCaptureResultsInner.md +30 -0
- package/docs/NoShowFeeResponseCreatorChargeResult.md +26 -0
- package/docs/PriceResponse.md +32 -0
- package/docs/ProfileVisibilityResponse.md +20 -0
- package/docs/PublicClubUser.md +46 -0
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +28 -0
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +24 -0
- package/docs/PublicClubUserLevelBySportsInner.md +22 -0
- package/docs/RegisterForEvent201Response.md +20 -0
- package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
- package/docs/SetupPaymentMethodRequestBody.md +20 -0
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/Slot.md +24 -0
- package/docs/SlotException.md +26 -0
- package/docs/SlotResponse.md +34 -0
- package/docs/SlotsResponse.md +22 -0
- package/docs/Sport.md +24 -0
- package/docs/SportsResponse.md +22 -0
- package/docs/StaffClubAnalyticsApi.md +104 -0
- package/docs/StaffClubBookingsApi.md +52 -0
- package/docs/StaffClubsApi.md +100 -0
- package/docs/StaffEventResponse.md +20 -0
- package/docs/StaffEventsApi.md +54 -0
- package/docs/StaffProfileApi.md +54 -0
- package/docs/StripeStatus.md +16 -0
- package/docs/SubscribeToClubRequestBody.md +22 -0
- package/docs/SubscriptionPlan.md +36 -0
- package/docs/SubscriptionResponse.md +36 -0
- package/docs/UpdateClubRoleRequestBody.md +24 -0
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
- package/docs/UpdateCustomerResponseCustomer.md +28 -0
- package/docs/UpdateProfilePictureRequestBody.md +20 -0
- package/docs/UpdateProfileVisibilityRequestBody.md +20 -0
- package/docs/UpdateSubscriptionPlanRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanResponse.md +22 -0
- package/docs/UpdateUserCityRequestBody.md +20 -0
- package/docs/UpdateUserDescriptionRequestBody.md +20 -0
- package/docs/User.md +40 -0
- package/docs/UserAuthenticationApi.md +226 -0
- package/docs/UserBookingsApi.md +120 -0
- package/docs/UserCityResponse.md +20 -0
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +181 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +53 -0
- package/docs/UserDescriptionResponse.md +20 -0
- package/docs/UserFavoriteClubsResponse.md +20 -0
- package/docs/UserPaymentApi.md +176 -0
- package/docs/UserProfileApi.md +1201 -0
- package/docs/UserResponse.md +38 -0
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UsersResponse.md +22 -0
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.116
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = exports.AgendaPaymentStatus = void 0;
|
|
26
|
+
exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = void 0;
|
|
27
|
+
exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -69,6 +69,10 @@ exports.CaptureResultStatusEnum = {
|
|
|
69
69
|
Captured: 'captured',
|
|
70
70
|
Failed: 'failed'
|
|
71
71
|
};
|
|
72
|
+
exports.ClientOnboardingRequestBodyClubTypeEnum = {
|
|
73
|
+
Public: 'public',
|
|
74
|
+
School: 'school'
|
|
75
|
+
};
|
|
72
76
|
exports.ClubRoleResponseRoleEnum = {
|
|
73
77
|
Admin: 'admin',
|
|
74
78
|
Manager: 'manager',
|
|
@@ -1292,7 +1296,7 @@ const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
1292
1296
|
};
|
|
1293
1297
|
}),
|
|
1294
1298
|
/**
|
|
1295
|
-
* Créer une réservation
|
|
1299
|
+
* Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
1296
1300
|
* @param {CreateBookingRequest} createBookingRequest
|
|
1297
1301
|
* @param {*} [options] Override http request option.
|
|
1298
1302
|
* @throws {RequiredError}
|
|
@@ -1349,7 +1353,7 @@ const BookingsUserApiFp = function (configuration) {
|
|
|
1349
1353
|
});
|
|
1350
1354
|
},
|
|
1351
1355
|
/**
|
|
1352
|
-
* Créer une réservation
|
|
1356
|
+
* Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
1353
1357
|
* @param {CreateBookingRequest} createBookingRequest
|
|
1354
1358
|
* @param {*} [options] Override http request option.
|
|
1355
1359
|
* @throws {RequiredError}
|
|
@@ -1383,7 +1387,7 @@ const BookingsUserApiFactory = function (configuration, basePath, axios) {
|
|
|
1383
1387
|
return localVarFp.cancelBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
1384
1388
|
},
|
|
1385
1389
|
/**
|
|
1386
|
-
* Créer une réservation
|
|
1390
|
+
* Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
1387
1391
|
* @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
|
|
1388
1392
|
* @param {*} [options] Override http request option.
|
|
1389
1393
|
* @throws {RequiredError}
|
|
@@ -1412,7 +1416,7 @@ class BookingsUserApi extends base_1.BaseAPI {
|
|
|
1412
1416
|
return (0, exports.BookingsUserApiFp)(this.configuration).cancelBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
1413
1417
|
}
|
|
1414
1418
|
/**
|
|
1415
|
-
* Créer une réservation
|
|
1419
|
+
* Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
1416
1420
|
* @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
|
|
1417
1421
|
* @param {*} [options] Override http request option.
|
|
1418
1422
|
* @throws {RequiredError}
|
|
@@ -1430,7 +1434,7 @@ exports.BookingsUserApi = BookingsUserApi;
|
|
|
1430
1434
|
const ClientApiAxiosParamCreator = function (configuration) {
|
|
1431
1435
|
return {
|
|
1432
1436
|
/**
|
|
1433
|
-
* Enregistre un nouvel utilisateur client
|
|
1437
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1434
1438
|
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
1435
1439
|
* @param {*} [options] Override http request option.
|
|
1436
1440
|
* @throws {RequiredError}
|
|
@@ -1458,6 +1462,33 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1458
1462
|
options: localVarRequestOptions,
|
|
1459
1463
|
};
|
|
1460
1464
|
}),
|
|
1465
|
+
/**
|
|
1466
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1467
|
+
* @param {*} [options] Override http request option.
|
|
1468
|
+
* @throws {RequiredError}
|
|
1469
|
+
*/
|
|
1470
|
+
getClientSubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1471
|
+
const localVarPath = `/clients/subscriptions`;
|
|
1472
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1473
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1474
|
+
let baseOptions;
|
|
1475
|
+
if (configuration) {
|
|
1476
|
+
baseOptions = configuration.baseOptions;
|
|
1477
|
+
}
|
|
1478
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1479
|
+
const localVarHeaderParameter = {};
|
|
1480
|
+
const localVarQueryParameter = {};
|
|
1481
|
+
// authentication clientAuth required
|
|
1482
|
+
// http bearer authentication required
|
|
1483
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1484
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1485
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1486
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1487
|
+
return {
|
|
1488
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1489
|
+
options: localVarRequestOptions,
|
|
1490
|
+
};
|
|
1491
|
+
}),
|
|
1461
1492
|
/**
|
|
1462
1493
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1463
1494
|
* @param {*} [options] Override http request option.
|
|
@@ -1486,7 +1517,7 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1486
1517
|
};
|
|
1487
1518
|
}),
|
|
1488
1519
|
/**
|
|
1489
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1520
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1490
1521
|
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1491
1522
|
* @param {*} [options] Override http request option.
|
|
1492
1523
|
* @throws {RequiredError}
|
|
@@ -1528,7 +1559,7 @@ const ClientApiFp = function (configuration) {
|
|
|
1528
1559
|
const localVarAxiosParamCreator = (0, exports.ClientApiAxiosParamCreator)(configuration);
|
|
1529
1560
|
return {
|
|
1530
1561
|
/**
|
|
1531
|
-
* Enregistre un nouvel utilisateur client
|
|
1562
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1532
1563
|
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
1533
1564
|
* @param {*} [options] Override http request option.
|
|
1534
1565
|
* @throws {RequiredError}
|
|
@@ -1542,6 +1573,20 @@ const ClientApiFp = function (configuration) {
|
|
|
1542
1573
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1543
1574
|
});
|
|
1544
1575
|
},
|
|
1576
|
+
/**
|
|
1577
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1578
|
+
* @param {*} [options] Override http request option.
|
|
1579
|
+
* @throws {RequiredError}
|
|
1580
|
+
*/
|
|
1581
|
+
getClientSubscriptions(options) {
|
|
1582
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1583
|
+
var _a, _b, _c;
|
|
1584
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientSubscriptions(options);
|
|
1585
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1586
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.getClientSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1587
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1588
|
+
});
|
|
1589
|
+
},
|
|
1545
1590
|
/**
|
|
1546
1591
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1547
1592
|
* @param {*} [options] Override http request option.
|
|
@@ -1557,7 +1602,7 @@ const ClientApiFp = function (configuration) {
|
|
|
1557
1602
|
});
|
|
1558
1603
|
},
|
|
1559
1604
|
/**
|
|
1560
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1605
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1561
1606
|
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1562
1607
|
* @param {*} [options] Override http request option.
|
|
1563
1608
|
* @throws {RequiredError}
|
|
@@ -1582,7 +1627,7 @@ const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1582
1627
|
const localVarFp = (0, exports.ClientApiFp)(configuration);
|
|
1583
1628
|
return {
|
|
1584
1629
|
/**
|
|
1585
|
-
* Enregistre un nouvel utilisateur client
|
|
1630
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1586
1631
|
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
1587
1632
|
* @param {*} [options] Override http request option.
|
|
1588
1633
|
* @throws {RequiredError}
|
|
@@ -1590,6 +1635,14 @@ const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1590
1635
|
clientRegister(requestParameters, options) {
|
|
1591
1636
|
return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
|
|
1592
1637
|
},
|
|
1638
|
+
/**
|
|
1639
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1640
|
+
* @param {*} [options] Override http request option.
|
|
1641
|
+
* @throws {RequiredError}
|
|
1642
|
+
*/
|
|
1643
|
+
getClientSubscriptions(options) {
|
|
1644
|
+
return localVarFp.getClientSubscriptions(options).then((request) => request(axios, basePath));
|
|
1645
|
+
},
|
|
1593
1646
|
/**
|
|
1594
1647
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1595
1648
|
* @param {*} [options] Override http request option.
|
|
@@ -1599,7 +1652,7 @@ const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1599
1652
|
return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
|
|
1600
1653
|
},
|
|
1601
1654
|
/**
|
|
1602
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1655
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1603
1656
|
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1604
1657
|
* @param {*} [options] Override http request option.
|
|
1605
1658
|
* @throws {RequiredError}
|
|
@@ -1618,7 +1671,7 @@ exports.ClientApiFactory = ClientApiFactory;
|
|
|
1618
1671
|
*/
|
|
1619
1672
|
class ClientApi extends base_1.BaseAPI {
|
|
1620
1673
|
/**
|
|
1621
|
-
* Enregistre un nouvel utilisateur client
|
|
1674
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1622
1675
|
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
1623
1676
|
* @param {*} [options] Override http request option.
|
|
1624
1677
|
* @throws {RequiredError}
|
|
@@ -1627,6 +1680,15 @@ class ClientApi extends base_1.BaseAPI {
|
|
|
1627
1680
|
clientRegister(requestParameters, options) {
|
|
1628
1681
|
return (0, exports.ClientApiFp)(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1629
1682
|
}
|
|
1683
|
+
/**
|
|
1684
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1685
|
+
* @param {*} [options] Override http request option.
|
|
1686
|
+
* @throws {RequiredError}
|
|
1687
|
+
* @memberof ClientApi
|
|
1688
|
+
*/
|
|
1689
|
+
getClientSubscriptions(options) {
|
|
1690
|
+
return (0, exports.ClientApiFp)(this.configuration).getClientSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
1691
|
+
}
|
|
1630
1692
|
/**
|
|
1631
1693
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1632
1694
|
* @param {*} [options] Override http request option.
|
|
@@ -1637,7 +1699,7 @@ class ClientApi extends base_1.BaseAPI {
|
|
|
1637
1699
|
return (0, exports.ClientApiFp)(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
|
|
1638
1700
|
}
|
|
1639
1701
|
/**
|
|
1640
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1702
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1641
1703
|
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1642
1704
|
* @param {*} [options] Override http request option.
|
|
1643
1705
|
* @throws {RequiredError}
|
|
@@ -3890,7 +3952,7 @@ exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
|
|
|
3890
3952
|
const ClubsApiAxiosParamCreator = function (configuration) {
|
|
3891
3953
|
return {
|
|
3892
3954
|
/**
|
|
3893
|
-
* Récupère la liste des clubs actifs publics
|
|
3955
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3894
3956
|
* @param {*} [options] Override http request option.
|
|
3895
3957
|
* @throws {RequiredError}
|
|
3896
3958
|
*/
|
|
@@ -4145,7 +4207,7 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
4145
4207
|
};
|
|
4146
4208
|
}),
|
|
4147
4209
|
/**
|
|
4148
|
-
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
4210
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
4149
4211
|
* @param {*} [options] Override http request option.
|
|
4150
4212
|
* @throws {RequiredError}
|
|
4151
4213
|
*/
|
|
@@ -4295,7 +4357,7 @@ const ClubsApiFp = function (configuration) {
|
|
|
4295
4357
|
const localVarAxiosParamCreator = (0, exports.ClubsApiAxiosParamCreator)(configuration);
|
|
4296
4358
|
return {
|
|
4297
4359
|
/**
|
|
4298
|
-
* Récupère la liste des clubs actifs publics
|
|
4360
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
4299
4361
|
* @param {*} [options] Override http request option.
|
|
4300
4362
|
* @throws {RequiredError}
|
|
4301
4363
|
*/
|
|
@@ -4430,7 +4492,7 @@ const ClubsApiFp = function (configuration) {
|
|
|
4430
4492
|
});
|
|
4431
4493
|
},
|
|
4432
4494
|
/**
|
|
4433
|
-
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
4495
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
4434
4496
|
* @param {*} [options] Override http request option.
|
|
4435
4497
|
* @throws {RequiredError}
|
|
4436
4498
|
*/
|
|
@@ -4515,7 +4577,7 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
4515
4577
|
const localVarFp = (0, exports.ClubsApiFp)(configuration);
|
|
4516
4578
|
return {
|
|
4517
4579
|
/**
|
|
4518
|
-
* Récupère la liste des clubs actifs publics
|
|
4580
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
4519
4581
|
* @param {*} [options] Override http request option.
|
|
4520
4582
|
* @throws {RequiredError}
|
|
4521
4583
|
*/
|
|
@@ -4593,7 +4655,7 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
4593
4655
|
return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
4594
4656
|
},
|
|
4595
4657
|
/**
|
|
4596
|
-
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
4658
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
4597
4659
|
* @param {*} [options] Override http request option.
|
|
4598
4660
|
* @throws {RequiredError}
|
|
4599
4661
|
*/
|
|
@@ -4647,7 +4709,7 @@ exports.ClubsApiFactory = ClubsApiFactory;
|
|
|
4647
4709
|
*/
|
|
4648
4710
|
class ClubsApi extends base_1.BaseAPI {
|
|
4649
4711
|
/**
|
|
4650
|
-
* Récupère la liste des clubs actifs publics
|
|
4712
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
4651
4713
|
* @param {*} [options] Override http request option.
|
|
4652
4714
|
* @throws {RequiredError}
|
|
4653
4715
|
* @memberof ClubsApi
|
|
@@ -4734,7 +4796,7 @@ class ClubsApi extends base_1.BaseAPI {
|
|
|
4734
4796
|
return (0, exports.ClubsApiFp)(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4735
4797
|
}
|
|
4736
4798
|
/**
|
|
4737
|
-
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
4799
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
4738
4800
|
* @param {*} [options] Override http request option.
|
|
4739
4801
|
* @throws {RequiredError}
|
|
4740
4802
|
* @memberof ClubsApi
|
|
@@ -6975,6 +7037,39 @@ exports.DefaultApi = DefaultApi;
|
|
|
6975
7037
|
*/
|
|
6976
7038
|
const EventsApiAxiosParamCreator = function (configuration) {
|
|
6977
7039
|
return {
|
|
7040
|
+
/**
|
|
7041
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7042
|
+
* @param {string} eventId
|
|
7043
|
+
* @param {EstimateEventPriceRequest} estimateEventPriceRequest
|
|
7044
|
+
* @param {*} [options] Override http request option.
|
|
7045
|
+
* @throws {RequiredError}
|
|
7046
|
+
*/
|
|
7047
|
+
estimateEventPrice: (eventId_1, estimateEventPriceRequest_1, ...args_1) => __awaiter(this, [eventId_1, estimateEventPriceRequest_1, ...args_1], void 0, function* (eventId, estimateEventPriceRequest, options = {}) {
|
|
7048
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
7049
|
+
(0, common_1.assertParamExists)('estimateEventPrice', 'eventId', eventId);
|
|
7050
|
+
// verify required parameter 'estimateEventPriceRequest' is not null or undefined
|
|
7051
|
+
(0, common_1.assertParamExists)('estimateEventPrice', 'estimateEventPriceRequest', estimateEventPriceRequest);
|
|
7052
|
+
const localVarPath = `/api/events/{eventId}/estimate-price`
|
|
7053
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7054
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7055
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7056
|
+
let baseOptions;
|
|
7057
|
+
if (configuration) {
|
|
7058
|
+
baseOptions = configuration.baseOptions;
|
|
7059
|
+
}
|
|
7060
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7061
|
+
const localVarHeaderParameter = {};
|
|
7062
|
+
const localVarQueryParameter = {};
|
|
7063
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7064
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7065
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7066
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7067
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(estimateEventPriceRequest, localVarRequestOptions, configuration);
|
|
7068
|
+
return {
|
|
7069
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7070
|
+
options: localVarRequestOptions,
|
|
7071
|
+
};
|
|
7072
|
+
}),
|
|
6978
7073
|
/**
|
|
6979
7074
|
* Get a specific event by ID
|
|
6980
7075
|
* @param {string} eventId
|
|
@@ -7120,6 +7215,22 @@ exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
|
|
7120
7215
|
const EventsApiFp = function (configuration) {
|
|
7121
7216
|
const localVarAxiosParamCreator = (0, exports.EventsApiAxiosParamCreator)(configuration);
|
|
7122
7217
|
return {
|
|
7218
|
+
/**
|
|
7219
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7220
|
+
* @param {string} eventId
|
|
7221
|
+
* @param {EstimateEventPriceRequest} estimateEventPriceRequest
|
|
7222
|
+
* @param {*} [options] Override http request option.
|
|
7223
|
+
* @throws {RequiredError}
|
|
7224
|
+
*/
|
|
7225
|
+
estimateEventPrice(eventId, estimateEventPriceRequest, options) {
|
|
7226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7227
|
+
var _a, _b, _c;
|
|
7228
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateEventPrice(eventId, estimateEventPriceRequest, options);
|
|
7229
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7230
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.estimateEventPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7231
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7232
|
+
});
|
|
7233
|
+
},
|
|
7123
7234
|
/**
|
|
7124
7235
|
* Get a specific event by ID
|
|
7125
7236
|
* @param {string} eventId
|
|
@@ -7194,6 +7305,15 @@ exports.EventsApiFp = EventsApiFp;
|
|
|
7194
7305
|
const EventsApiFactory = function (configuration, basePath, axios) {
|
|
7195
7306
|
const localVarFp = (0, exports.EventsApiFp)(configuration);
|
|
7196
7307
|
return {
|
|
7308
|
+
/**
|
|
7309
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7310
|
+
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
7311
|
+
* @param {*} [options] Override http request option.
|
|
7312
|
+
* @throws {RequiredError}
|
|
7313
|
+
*/
|
|
7314
|
+
estimateEventPrice(requestParameters, options) {
|
|
7315
|
+
return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
|
|
7316
|
+
},
|
|
7197
7317
|
/**
|
|
7198
7318
|
* Get a specific event by ID
|
|
7199
7319
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -7240,6 +7360,16 @@ exports.EventsApiFactory = EventsApiFactory;
|
|
|
7240
7360
|
* @extends {BaseAPI}
|
|
7241
7361
|
*/
|
|
7242
7362
|
class EventsApi extends base_1.BaseAPI {
|
|
7363
|
+
/**
|
|
7364
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7365
|
+
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
7366
|
+
* @param {*} [options] Override http request option.
|
|
7367
|
+
* @throws {RequiredError}
|
|
7368
|
+
* @memberof EventsApi
|
|
7369
|
+
*/
|
|
7370
|
+
estimateEventPrice(requestParameters, options) {
|
|
7371
|
+
return (0, exports.EventsApiFp)(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7372
|
+
}
|
|
7243
7373
|
/**
|
|
7244
7374
|
* Get a specific event by ID
|
|
7245
7375
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED