@tennac-booking/sdk 1.0.155 → 1.0.157
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 +1 -0
- package/README.md +2 -1
- package/api.ts +145 -101
- package/dist/api.d.ts +97 -54
- package/dist/api.js +82 -79
- package/dist/esm/api.d.ts +97 -54
- package/dist/esm/api.js +78 -75
- package/docs/ClubsManagerApi.md +6 -5
- package/docs/CreateActualityRequest.md +30 -0
- package/docs/EventsStaffApi.md +0 -51
- package/docs/PublishEventResponse.md +0 -2
- package/docs/UsersApi.md +52 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -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 = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.VisibilityType = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CreateActualityRequestDiffusionModeEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = exports.AgendaPaymentStatus = void 0;
|
|
26
|
+
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.ClubCustomerStaffApi = exports.ClubCustomerStaffApiFactory = exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = exports.ClubCustomerMeApi = exports.ClubCustomerMeApiFactory = exports.ClubCustomerMeApiFp = exports.ClubCustomerMeApiAxiosParamCreator = 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.WeekdayKey = void 0;
|
|
27
|
+
exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = 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 = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = 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 = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -87,6 +87,11 @@ exports.CourtStatus = {
|
|
|
87
87
|
Available: 'available',
|
|
88
88
|
Unavailable: 'unavailable'
|
|
89
89
|
};
|
|
90
|
+
exports.CreateActualityRequestDiffusionModeEnum = {
|
|
91
|
+
Page: 'page',
|
|
92
|
+
Newsletter: 'newsletter',
|
|
93
|
+
Both: 'both'
|
|
94
|
+
};
|
|
90
95
|
exports.CreateClubRoleRequestRoleEnum = {
|
|
91
96
|
Admin: 'admin',
|
|
92
97
|
Manager: 'manager',
|
|
@@ -6720,13 +6725,13 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
6720
6725
|
}),
|
|
6721
6726
|
/**
|
|
6722
6727
|
*
|
|
6723
|
-
* @param {
|
|
6728
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
6724
6729
|
* @param {*} [options] Override http request option.
|
|
6725
6730
|
* @throws {RequiredError}
|
|
6726
6731
|
*/
|
|
6727
|
-
createActuality: (
|
|
6728
|
-
// verify required parameter '
|
|
6729
|
-
(0, common_1.assertParamExists)('createActuality', '
|
|
6732
|
+
createActuality: (createActualityRequest_1, ...args_1) => __awaiter(this, [createActualityRequest_1, ...args_1], void 0, function* (createActualityRequest, options = {}) {
|
|
6733
|
+
// verify required parameter 'createActualityRequest' is not null or undefined
|
|
6734
|
+
(0, common_1.assertParamExists)('createActuality', 'createActualityRequest', createActualityRequest);
|
|
6730
6735
|
const localVarPath = `/api/clubs/actualities`;
|
|
6731
6736
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6732
6737
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6744,7 +6749,7 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
6744
6749
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6745
6750
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6746
6751
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6747
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6752
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createActualityRequest, localVarRequestOptions, configuration);
|
|
6748
6753
|
return {
|
|
6749
6754
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6750
6755
|
options: localVarRequestOptions,
|
|
@@ -7376,14 +7381,14 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
7376
7381
|
},
|
|
7377
7382
|
/**
|
|
7378
7383
|
*
|
|
7379
|
-
* @param {
|
|
7384
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
7380
7385
|
* @param {*} [options] Override http request option.
|
|
7381
7386
|
* @throws {RequiredError}
|
|
7382
7387
|
*/
|
|
7383
|
-
createActuality(
|
|
7388
|
+
createActuality(createActualityRequest, options) {
|
|
7384
7389
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7385
7390
|
var _a, _b, _c;
|
|
7386
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createActuality(
|
|
7391
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createActuality(createActualityRequest, options);
|
|
7387
7392
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7388
7393
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.createActuality']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7389
7394
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7698,7 +7703,7 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
7698
7703
|
* @throws {RequiredError}
|
|
7699
7704
|
*/
|
|
7700
7705
|
createActuality(requestParameters, options) {
|
|
7701
|
-
return localVarFp.createActuality(requestParameters.
|
|
7706
|
+
return localVarFp.createActuality(requestParameters.createActualityRequest, options).then((request) => request(axios, basePath));
|
|
7702
7707
|
},
|
|
7703
7708
|
/**
|
|
7704
7709
|
* Crée un nouveau terrain pour un club
|
|
@@ -7899,7 +7904,7 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
7899
7904
|
* @memberof ClubsManagerApi
|
|
7900
7905
|
*/
|
|
7901
7906
|
createActuality(requestParameters, options) {
|
|
7902
|
-
return (0, exports.ClubsManagerApiFp)(this.configuration).createActuality(requestParameters.
|
|
7907
|
+
return (0, exports.ClubsManagerApiFp)(this.configuration).createActuality(requestParameters.createActualityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7903
7908
|
}
|
|
7904
7909
|
/**
|
|
7905
7910
|
* Crée un nouveau terrain pour un club
|
|
@@ -10467,37 +10472,6 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10467
10472
|
options: localVarRequestOptions,
|
|
10468
10473
|
};
|
|
10469
10474
|
}),
|
|
10470
|
-
/**
|
|
10471
|
-
*
|
|
10472
|
-
* @param {string} eventId
|
|
10473
|
-
* @param {*} [options] Override http request option.
|
|
10474
|
-
* @throws {RequiredError}
|
|
10475
|
-
*/
|
|
10476
|
-
getEventByIdStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
10477
|
-
// verify required parameter 'eventId' is not null or undefined
|
|
10478
|
-
(0, common_1.assertParamExists)('getEventByIdStaff', 'eventId', eventId);
|
|
10479
|
-
const localVarPath = `/api/events/staff/{eventId}`
|
|
10480
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
10481
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10482
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10483
|
-
let baseOptions;
|
|
10484
|
-
if (configuration) {
|
|
10485
|
-
baseOptions = configuration.baseOptions;
|
|
10486
|
-
}
|
|
10487
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10488
|
-
const localVarHeaderParameter = {};
|
|
10489
|
-
const localVarQueryParameter = {};
|
|
10490
|
-
// authentication bearerAuth required
|
|
10491
|
-
// http bearer authentication required
|
|
10492
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10493
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10494
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10495
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10496
|
-
return {
|
|
10497
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10498
|
-
options: localVarRequestOptions,
|
|
10499
|
-
};
|
|
10500
|
-
}),
|
|
10501
10475
|
/**
|
|
10502
10476
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10503
10477
|
* @param {*} [options] Override http request option.
|
|
@@ -10664,21 +10638,6 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
10664
10638
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10665
10639
|
});
|
|
10666
10640
|
},
|
|
10667
|
-
/**
|
|
10668
|
-
*
|
|
10669
|
-
* @param {string} eventId
|
|
10670
|
-
* @param {*} [options] Override http request option.
|
|
10671
|
-
* @throws {RequiredError}
|
|
10672
|
-
*/
|
|
10673
|
-
getEventByIdStaff(eventId, options) {
|
|
10674
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
10675
|
-
var _a, _b, _c;
|
|
10676
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdStaff(eventId, options);
|
|
10677
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10678
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getEventByIdStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10679
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10680
|
-
});
|
|
10681
|
-
},
|
|
10682
10641
|
/**
|
|
10683
10642
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10684
10643
|
* @param {*} [options] Override http request option.
|
|
@@ -10759,15 +10718,6 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
10759
10718
|
getDailyEvents(requestParameters = {}, options) {
|
|
10760
10719
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
10761
10720
|
},
|
|
10762
|
-
/**
|
|
10763
|
-
*
|
|
10764
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
10765
|
-
* @param {*} [options] Override http request option.
|
|
10766
|
-
* @throws {RequiredError}
|
|
10767
|
-
*/
|
|
10768
|
-
getEventByIdStaff(requestParameters, options) {
|
|
10769
|
-
return localVarFp.getEventByIdStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
10770
|
-
},
|
|
10771
10721
|
/**
|
|
10772
10722
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10773
10723
|
* @param {*} [options] Override http request option.
|
|
@@ -10824,16 +10774,6 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
10824
10774
|
getDailyEvents(requestParameters = {}, options) {
|
|
10825
10775
|
return (0, exports.EventsStaffApiFp)(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
10826
10776
|
}
|
|
10827
|
-
/**
|
|
10828
|
-
*
|
|
10829
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
10830
|
-
* @param {*} [options] Override http request option.
|
|
10831
|
-
* @throws {RequiredError}
|
|
10832
|
-
* @memberof EventsStaffApi
|
|
10833
|
-
*/
|
|
10834
|
-
getEventByIdStaff(requestParameters, options) {
|
|
10835
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).getEventByIdStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
10836
|
-
}
|
|
10837
10777
|
/**
|
|
10838
10778
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10839
10779
|
* @param {*} [options] Override http request option.
|
|
@@ -13044,6 +12984,35 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
13044
12984
|
options: localVarRequestOptions,
|
|
13045
12985
|
};
|
|
13046
12986
|
}),
|
|
12987
|
+
/**
|
|
12988
|
+
*
|
|
12989
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
12990
|
+
* @param {*} [options] Override http request option.
|
|
12991
|
+
* @throws {RequiredError}
|
|
12992
|
+
*/
|
|
12993
|
+
loginClubMember: (loginRequestBody_1, ...args_1) => __awaiter(this, [loginRequestBody_1, ...args_1], void 0, function* (loginRequestBody, options = {}) {
|
|
12994
|
+
// verify required parameter 'loginRequestBody' is not null or undefined
|
|
12995
|
+
(0, common_1.assertParamExists)('loginClubMember', 'loginRequestBody', loginRequestBody);
|
|
12996
|
+
const localVarPath = `/api/users/club-members/login`;
|
|
12997
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12998
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12999
|
+
let baseOptions;
|
|
13000
|
+
if (configuration) {
|
|
13001
|
+
baseOptions = configuration.baseOptions;
|
|
13002
|
+
}
|
|
13003
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13004
|
+
const localVarHeaderParameter = {};
|
|
13005
|
+
const localVarQueryParameter = {};
|
|
13006
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13007
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13008
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13009
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13010
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequestBody, localVarRequestOptions, configuration);
|
|
13011
|
+
return {
|
|
13012
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13013
|
+
options: localVarRequestOptions,
|
|
13014
|
+
};
|
|
13015
|
+
}),
|
|
13047
13016
|
/**
|
|
13048
13017
|
*
|
|
13049
13018
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -13847,6 +13816,21 @@ const UsersApiFp = function (configuration) {
|
|
|
13847
13816
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13848
13817
|
});
|
|
13849
13818
|
},
|
|
13819
|
+
/**
|
|
13820
|
+
*
|
|
13821
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
13822
|
+
* @param {*} [options] Override http request option.
|
|
13823
|
+
* @throws {RequiredError}
|
|
13824
|
+
*/
|
|
13825
|
+
loginClubMember(loginRequestBody, options) {
|
|
13826
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13827
|
+
var _a, _b, _c;
|
|
13828
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.loginClubMember(loginRequestBody, options);
|
|
13829
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13830
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.loginClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13831
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13832
|
+
});
|
|
13833
|
+
},
|
|
13850
13834
|
/**
|
|
13851
13835
|
*
|
|
13852
13836
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -14271,6 +14255,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14271
14255
|
login(requestParameters, options) {
|
|
14272
14256
|
return localVarFp.login(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
14273
14257
|
},
|
|
14258
|
+
/**
|
|
14259
|
+
*
|
|
14260
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
14261
|
+
* @param {*} [options] Override http request option.
|
|
14262
|
+
* @throws {RequiredError}
|
|
14263
|
+
*/
|
|
14264
|
+
loginClubMember(requestParameters, options) {
|
|
14265
|
+
return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
14266
|
+
},
|
|
14274
14267
|
/**
|
|
14275
14268
|
*
|
|
14276
14269
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -14627,6 +14620,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
14627
14620
|
login(requestParameters, options) {
|
|
14628
14621
|
return (0, exports.UsersApiFp)(this.configuration).login(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14629
14622
|
}
|
|
14623
|
+
/**
|
|
14624
|
+
*
|
|
14625
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
14626
|
+
* @param {*} [options] Override http request option.
|
|
14627
|
+
* @throws {RequiredError}
|
|
14628
|
+
* @memberof UsersApi
|
|
14629
|
+
*/
|
|
14630
|
+
loginClubMember(requestParameters, options) {
|
|
14631
|
+
return (0, exports.UsersApiFp)(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14632
|
+
}
|
|
14630
14633
|
/**
|
|
14631
14634
|
*
|
|
14632
14635
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -3755,6 +3755,55 @@ export declare const CourtStatus: {
|
|
|
3755
3755
|
readonly Unavailable: "unavailable";
|
|
3756
3756
|
};
|
|
3757
3757
|
export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
|
|
3758
|
+
/**
|
|
3759
|
+
*
|
|
3760
|
+
* @export
|
|
3761
|
+
* @interface CreateActualityRequest
|
|
3762
|
+
*/
|
|
3763
|
+
export interface CreateActualityRequest {
|
|
3764
|
+
/**
|
|
3765
|
+
*
|
|
3766
|
+
* @type {string}
|
|
3767
|
+
* @memberof CreateActualityRequest
|
|
3768
|
+
*/
|
|
3769
|
+
'diffusionMode'?: CreateActualityRequestDiffusionModeEnum;
|
|
3770
|
+
/**
|
|
3771
|
+
* Nom affiché du sport
|
|
3772
|
+
* @type {string}
|
|
3773
|
+
* @memberof CreateActualityRequest
|
|
3774
|
+
*/
|
|
3775
|
+
'title': string;
|
|
3776
|
+
/**
|
|
3777
|
+
* Description du sport
|
|
3778
|
+
* @type {string}
|
|
3779
|
+
* @memberof CreateActualityRequest
|
|
3780
|
+
*/
|
|
3781
|
+
'content': string;
|
|
3782
|
+
/**
|
|
3783
|
+
* Niveaux associés
|
|
3784
|
+
* @type {string}
|
|
3785
|
+
* @memberof CreateActualityRequest
|
|
3786
|
+
*/
|
|
3787
|
+
'imageUrl'?: string;
|
|
3788
|
+
/**
|
|
3789
|
+
* URLs de logos/images
|
|
3790
|
+
* @type {string}
|
|
3791
|
+
* @memberof CreateActualityRequest
|
|
3792
|
+
*/
|
|
3793
|
+
'externalLink'?: string;
|
|
3794
|
+
/**
|
|
3795
|
+
*
|
|
3796
|
+
* @type {boolean}
|
|
3797
|
+
* @memberof CreateActualityRequest
|
|
3798
|
+
*/
|
|
3799
|
+
'isPublished'?: boolean;
|
|
3800
|
+
}
|
|
3801
|
+
export declare const CreateActualityRequestDiffusionModeEnum: {
|
|
3802
|
+
readonly Page: "page";
|
|
3803
|
+
readonly Newsletter: "newsletter";
|
|
3804
|
+
readonly Both: "both";
|
|
3805
|
+
};
|
|
3806
|
+
export type CreateActualityRequestDiffusionModeEnum = typeof CreateActualityRequestDiffusionModeEnum[keyof typeof CreateActualityRequestDiffusionModeEnum];
|
|
3758
3807
|
/**
|
|
3759
3808
|
*
|
|
3760
3809
|
* @export
|
|
@@ -8367,12 +8416,6 @@ export interface PublishEventResponse {
|
|
|
8367
8416
|
* @memberof PublishEventResponse
|
|
8368
8417
|
*/
|
|
8369
8418
|
'needsToSetupPaymentMethod'?: boolean;
|
|
8370
|
-
/**
|
|
8371
|
-
*
|
|
8372
|
-
* @type {Array<EventBookingResponse>}
|
|
8373
|
-
* @memberof PublishEventResponse
|
|
8374
|
-
*/
|
|
8375
|
-
'eventBookings'?: Array<EventBookingResponse>;
|
|
8376
8419
|
}
|
|
8377
8420
|
/**
|
|
8378
8421
|
*
|
|
@@ -16108,11 +16151,11 @@ export declare const ClubsManagerApiAxiosParamCreator: (configuration?: Configur
|
|
|
16108
16151
|
archivePriceForSubscriptionPlan: (priceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16109
16152
|
/**
|
|
16110
16153
|
*
|
|
16111
|
-
* @param {
|
|
16154
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
16112
16155
|
* @param {*} [options] Override http request option.
|
|
16113
16156
|
* @throws {RequiredError}
|
|
16114
16157
|
*/
|
|
16115
|
-
createActuality: (
|
|
16158
|
+
createActuality: (createActualityRequest: CreateActualityRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16116
16159
|
/**
|
|
16117
16160
|
* Crée un nouveau terrain pour un club
|
|
16118
16161
|
* @param {CreateCourtRequest} createCourtRequest
|
|
@@ -16265,11 +16308,11 @@ export declare const ClubsManagerApiFp: (configuration?: Configuration) => {
|
|
|
16265
16308
|
archivePriceForSubscriptionPlan(priceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSubscriptionPlanForClub200Response>>;
|
|
16266
16309
|
/**
|
|
16267
16310
|
*
|
|
16268
|
-
* @param {
|
|
16311
|
+
* @param {CreateActualityRequest} createActualityRequest
|
|
16269
16312
|
* @param {*} [options] Override http request option.
|
|
16270
16313
|
* @throws {RequiredError}
|
|
16271
16314
|
*/
|
|
16272
|
-
createActuality(
|
|
16315
|
+
createActuality(createActualityRequest: CreateActualityRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActuality200Response>>;
|
|
16273
16316
|
/**
|
|
16274
16317
|
* Crée un nouveau terrain pour un club
|
|
16275
16318
|
* @param {CreateCourtRequest} createCourtRequest
|
|
@@ -16587,10 +16630,10 @@ export interface ClubsManagerApiArchivePriceForSubscriptionPlanRequest {
|
|
|
16587
16630
|
export interface ClubsManagerApiCreateActualityRequest {
|
|
16588
16631
|
/**
|
|
16589
16632
|
*
|
|
16590
|
-
* @type {
|
|
16633
|
+
* @type {CreateActualityRequest}
|
|
16591
16634
|
* @memberof ClubsManagerApiCreateActuality
|
|
16592
16635
|
*/
|
|
16593
|
-
readonly
|
|
16636
|
+
readonly createActualityRequest: CreateActualityRequest;
|
|
16594
16637
|
}
|
|
16595
16638
|
/**
|
|
16596
16639
|
* Request parameters for createCourtForClub operation in ClubsManagerApi.
|
|
@@ -18556,13 +18599,6 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
|
|
|
18556
18599
|
* @throws {RequiredError}
|
|
18557
18600
|
*/
|
|
18558
18601
|
getDailyEvents: (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18559
|
-
/**
|
|
18560
|
-
*
|
|
18561
|
-
* @param {string} eventId
|
|
18562
|
-
* @param {*} [options] Override http request option.
|
|
18563
|
-
* @throws {RequiredError}
|
|
18564
|
-
*/
|
|
18565
|
-
getEventByIdStaff: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18566
18602
|
/**
|
|
18567
18603
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
18568
18604
|
* @param {*} [options] Override http request option.
|
|
@@ -18616,13 +18652,6 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
|
|
|
18616
18652
|
* @throws {RequiredError}
|
|
18617
18653
|
*/
|
|
18618
18654
|
getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
|
|
18619
|
-
/**
|
|
18620
|
-
*
|
|
18621
|
-
* @param {string} eventId
|
|
18622
|
-
* @param {*} [options] Override http request option.
|
|
18623
|
-
* @throws {RequiredError}
|
|
18624
|
-
*/
|
|
18625
|
-
getEventByIdStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
|
|
18626
18655
|
/**
|
|
18627
18656
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
18628
18657
|
* @param {*} [options] Override http request option.
|
|
@@ -18671,13 +18700,6 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
|
|
|
18671
18700
|
* @throws {RequiredError}
|
|
18672
18701
|
*/
|
|
18673
18702
|
getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
|
|
18674
|
-
/**
|
|
18675
|
-
*
|
|
18676
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
18677
|
-
* @param {*} [options] Override http request option.
|
|
18678
|
-
* @throws {RequiredError}
|
|
18679
|
-
*/
|
|
18680
|
-
getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse>;
|
|
18681
18703
|
/**
|
|
18682
18704
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
18683
18705
|
* @param {*} [options] Override http request option.
|
|
@@ -18755,19 +18777,6 @@ export interface EventsStaffApiGetDailyEventsRequest {
|
|
|
18755
18777
|
*/
|
|
18756
18778
|
readonly sportId?: string;
|
|
18757
18779
|
}
|
|
18758
|
-
/**
|
|
18759
|
-
* Request parameters for getEventByIdStaff operation in EventsStaffApi.
|
|
18760
|
-
* @export
|
|
18761
|
-
* @interface EventsStaffApiGetEventByIdStaffRequest
|
|
18762
|
-
*/
|
|
18763
|
-
export interface EventsStaffApiGetEventByIdStaffRequest {
|
|
18764
|
-
/**
|
|
18765
|
-
*
|
|
18766
|
-
* @type {string}
|
|
18767
|
-
* @memberof EventsStaffApiGetEventByIdStaff
|
|
18768
|
-
*/
|
|
18769
|
-
readonly eventId: string;
|
|
18770
|
-
}
|
|
18771
18780
|
/**
|
|
18772
18781
|
* Request parameters for getMonthlyEvents operation in EventsStaffApi.
|
|
18773
18782
|
* @export
|
|
@@ -18865,14 +18874,6 @@ export declare class EventsStaffApi extends BaseAPI {
|
|
|
18865
18874
|
* @memberof EventsStaffApi
|
|
18866
18875
|
*/
|
|
18867
18876
|
getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
|
|
18868
|
-
/**
|
|
18869
|
-
*
|
|
18870
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
18871
|
-
* @param {*} [options] Override http request option.
|
|
18872
|
-
* @throws {RequiredError}
|
|
18873
|
-
* @memberof EventsStaffApi
|
|
18874
|
-
*/
|
|
18875
|
-
getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublishEventResponse, any, {}>>;
|
|
18876
18877
|
/**
|
|
18877
18878
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
18878
18879
|
* @param {*} [options] Override http request option.
|
|
@@ -20013,6 +20014,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
20013
20014
|
* @throws {RequiredError}
|
|
20014
20015
|
*/
|
|
20015
20016
|
login: (loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20017
|
+
/**
|
|
20018
|
+
*
|
|
20019
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
20020
|
+
* @param {*} [options] Override http request option.
|
|
20021
|
+
* @throws {RequiredError}
|
|
20022
|
+
*/
|
|
20023
|
+
loginClubMember: (loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20016
20024
|
/**
|
|
20017
20025
|
*
|
|
20018
20026
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -20296,6 +20304,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
20296
20304
|
* @throws {RequiredError}
|
|
20297
20305
|
*/
|
|
20298
20306
|
login(loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
20307
|
+
/**
|
|
20308
|
+
*
|
|
20309
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
20310
|
+
* @param {*} [options] Override http request option.
|
|
20311
|
+
* @throws {RequiredError}
|
|
20312
|
+
*/
|
|
20313
|
+
loginClubMember(loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
20299
20314
|
/**
|
|
20300
20315
|
*
|
|
20301
20316
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -20560,6 +20575,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
20560
20575
|
* @throws {RequiredError}
|
|
20561
20576
|
*/
|
|
20562
20577
|
login(requestParameters: UsersApiLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
|
|
20578
|
+
/**
|
|
20579
|
+
*
|
|
20580
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
20581
|
+
* @param {*} [options] Override http request option.
|
|
20582
|
+
* @throws {RequiredError}
|
|
20583
|
+
*/
|
|
20584
|
+
loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
|
|
20563
20585
|
/**
|
|
20564
20586
|
*
|
|
20565
20587
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -20961,6 +20983,19 @@ export interface UsersApiLoginRequest {
|
|
|
20961
20983
|
*/
|
|
20962
20984
|
readonly loginRequestBody: LoginRequestBody;
|
|
20963
20985
|
}
|
|
20986
|
+
/**
|
|
20987
|
+
* Request parameters for loginClubMember operation in UsersApi.
|
|
20988
|
+
* @export
|
|
20989
|
+
* @interface UsersApiLoginClubMemberRequest
|
|
20990
|
+
*/
|
|
20991
|
+
export interface UsersApiLoginClubMemberRequest {
|
|
20992
|
+
/**
|
|
20993
|
+
*
|
|
20994
|
+
* @type {LoginRequestBody}
|
|
20995
|
+
* @memberof UsersApiLoginClubMember
|
|
20996
|
+
*/
|
|
20997
|
+
readonly loginRequestBody: LoginRequestBody;
|
|
20998
|
+
}
|
|
20964
20999
|
/**
|
|
20965
21000
|
* Request parameters for refreshToken operation in UsersApi.
|
|
20966
21001
|
* @export
|
|
@@ -21326,6 +21361,14 @@ export declare class UsersApi extends BaseAPI {
|
|
|
21326
21361
|
* @memberof UsersApi
|
|
21327
21362
|
*/
|
|
21328
21363
|
login(requestParameters: UsersApiLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
|
|
21364
|
+
/**
|
|
21365
|
+
*
|
|
21366
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
21367
|
+
* @param {*} [options] Override http request option.
|
|
21368
|
+
* @throws {RequiredError}
|
|
21369
|
+
* @memberof UsersApi
|
|
21370
|
+
*/
|
|
21371
|
+
loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
|
|
21329
21372
|
/**
|
|
21330
21373
|
*
|
|
21331
21374
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|