@tennac-booking/sdk 1.0.70 → 1.0.72
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 +239 -230
- package/README.md +18 -5
- package/api.ts +1187 -155
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1097 -274
- package/dist/api.js +413 -50
- 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 +1097 -274
- package/dist/esm/api.js +410 -47
- 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/BookingPriceBody.md +22 -0
- package/docs/BookingStatus.md +2 -0
- package/docs/BookingsApi.md +52 -0
- package/docs/BookingsStaffApi.md +1 -1
- package/docs/CheckInPlayersResponse.md +2 -10
- package/docs/ClubResponse.md +8 -0
- package/docs/ClubsApi.md +2 -2
- package/docs/CreateEventRequest.md +26 -0
- package/docs/CreateSportForClubRequest.md +6 -0
- package/docs/CreateSportRequest.md +8 -2
- package/docs/EventResponse.md +26 -0
- package/docs/EventsApi.md +131 -12
- package/docs/EventsManagerApi.md +59 -0
- package/docs/JoinEventRequest.md +22 -0
- package/docs/JoinEventResponse.md +22 -0
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/SportKey.md +14 -0
- package/docs/SportLevel.md +22 -0
- package/docs/SportResponse.md +10 -5
- package/docs/SportWithLevels.md +30 -0
- package/docs/SportsManagerApi.md +6 -3
- package/docs/SportsStaffApi.md +3 -3
- package/docs/SubscriberPrice.md +22 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/{GetSportsByClubById200Response.md → Team.md} +7 -5
- package/docs/UpdateEventRequest.md +54 -0
- package/docs/UpdateSportRequest.md +9 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/SportWithAnalytics.md +0 -36
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.72
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,9 +22,9 @@ 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.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = void 0;
|
|
25
|
+
exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = void 0;
|
|
27
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -43,6 +43,7 @@ exports.BookingHistoryPopulatedPerformedByTypeEnum = {
|
|
|
43
43
|
*/
|
|
44
44
|
exports.BookingStatus = {
|
|
45
45
|
Paid: 'paid',
|
|
46
|
+
Validated: 'validated',
|
|
46
47
|
Active: 'active',
|
|
47
48
|
Pending: 'pending',
|
|
48
49
|
ActivePaymentsTimeout: 'active_payments_timeout',
|
|
@@ -76,6 +77,25 @@ exports.CreateClubRoleRequestRoleEnum = {
|
|
|
76
77
|
Manager: 'manager',
|
|
77
78
|
Staff: 'staff'
|
|
78
79
|
};
|
|
80
|
+
exports.CreateEventRequestTypeEnum = {
|
|
81
|
+
Event: 'event',
|
|
82
|
+
Closure: 'closure'
|
|
83
|
+
};
|
|
84
|
+
exports.CreateEventRequestRecurringTypeEnum = {
|
|
85
|
+
Unique: 'unique',
|
|
86
|
+
Daily: 'daily',
|
|
87
|
+
Weekly: 'weekly',
|
|
88
|
+
Monthly: 'monthly'
|
|
89
|
+
};
|
|
90
|
+
exports.CreateEventRequestParticipationTypeEnum = {
|
|
91
|
+
Solo: 'solo',
|
|
92
|
+
Team: 'team'
|
|
93
|
+
};
|
|
94
|
+
exports.CreateEventRequestVisibilityTypeEnum = {
|
|
95
|
+
Public: 'public',
|
|
96
|
+
Private: 'private',
|
|
97
|
+
Invitation: 'invitation'
|
|
98
|
+
};
|
|
79
99
|
/**
|
|
80
100
|
*
|
|
81
101
|
* @export
|
|
@@ -87,6 +107,25 @@ exports.DiscountType = {
|
|
|
87
107
|
Percentage: 'percentage',
|
|
88
108
|
OffPeak: 'off_peak'
|
|
89
109
|
};
|
|
110
|
+
exports.EventResponseTypeEnum = {
|
|
111
|
+
Event: 'event',
|
|
112
|
+
Closure: 'closure'
|
|
113
|
+
};
|
|
114
|
+
exports.EventResponseRecurringTypeEnum = {
|
|
115
|
+
Unique: 'unique',
|
|
116
|
+
Daily: 'daily',
|
|
117
|
+
Weekly: 'weekly',
|
|
118
|
+
Monthly: 'monthly'
|
|
119
|
+
};
|
|
120
|
+
exports.EventResponseParticipationTypeEnum = {
|
|
121
|
+
Solo: 'solo',
|
|
122
|
+
Team: 'team'
|
|
123
|
+
};
|
|
124
|
+
exports.EventResponseVisibilityTypeEnum = {
|
|
125
|
+
Public: 'public',
|
|
126
|
+
Private: 'private',
|
|
127
|
+
Invitation: 'invitation'
|
|
128
|
+
};
|
|
90
129
|
/**
|
|
91
130
|
*
|
|
92
131
|
* @export
|
|
@@ -136,6 +175,17 @@ exports.PlayerCategoryId = {
|
|
|
136
175
|
exports.RegisterRequestBodyLocationTypeEnum = {
|
|
137
176
|
Point: 'Point'
|
|
138
177
|
};
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @export
|
|
181
|
+
* @enum {string}
|
|
182
|
+
*/
|
|
183
|
+
exports.SportKey = {
|
|
184
|
+
Padel: 'Padel',
|
|
185
|
+
Tennis: 'Tennis',
|
|
186
|
+
Pickleball: 'Pickleball',
|
|
187
|
+
Autres: 'Autres'
|
|
188
|
+
};
|
|
139
189
|
exports.StripeStripeDeletedProductObjectEnum = {
|
|
140
190
|
Product: 'product'
|
|
141
191
|
};
|
|
@@ -260,6 +310,25 @@ exports.UpdateClubRoleRequestRoleEnum = {
|
|
|
260
310
|
Manager: 'manager',
|
|
261
311
|
Staff: 'staff'
|
|
262
312
|
};
|
|
313
|
+
exports.UpdateEventRequestTypeEnum = {
|
|
314
|
+
Event: 'event',
|
|
315
|
+
Closure: 'closure'
|
|
316
|
+
};
|
|
317
|
+
exports.UpdateEventRequestRecurringTypeEnum = {
|
|
318
|
+
Unique: 'unique',
|
|
319
|
+
Daily: 'daily',
|
|
320
|
+
Weekly: 'weekly',
|
|
321
|
+
Monthly: 'monthly'
|
|
322
|
+
};
|
|
323
|
+
exports.UpdateEventRequestParticipationTypeEnum = {
|
|
324
|
+
Solo: 'solo',
|
|
325
|
+
Team: 'team'
|
|
326
|
+
};
|
|
327
|
+
exports.UpdateEventRequestVisibilityTypeEnum = {
|
|
328
|
+
Public: 'public',
|
|
329
|
+
Private: 'private',
|
|
330
|
+
Invitation: 'invitation'
|
|
331
|
+
};
|
|
263
332
|
exports.UserLocationSummaryTypeEnum = {
|
|
264
333
|
Point: 'Point'
|
|
265
334
|
};
|
|
@@ -300,6 +369,38 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
300
369
|
options: localVarRequestOptions,
|
|
301
370
|
};
|
|
302
371
|
}),
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
getBookingPrice: (bookingPriceBody_1, ...args_1) => __awaiter(this, [bookingPriceBody_1, ...args_1], void 0, function* (bookingPriceBody, options = {}) {
|
|
379
|
+
// verify required parameter 'bookingPriceBody' is not null or undefined
|
|
380
|
+
(0, common_1.assertParamExists)('getBookingPrice', 'bookingPriceBody', bookingPriceBody);
|
|
381
|
+
const localVarPath = `/api/bookings/booking-price`;
|
|
382
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
383
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
384
|
+
let baseOptions;
|
|
385
|
+
if (configuration) {
|
|
386
|
+
baseOptions = configuration.baseOptions;
|
|
387
|
+
}
|
|
388
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
389
|
+
const localVarHeaderParameter = {};
|
|
390
|
+
const localVarQueryParameter = {};
|
|
391
|
+
// authentication bearerAuth required
|
|
392
|
+
// http bearer authentication required
|
|
393
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
394
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
395
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
396
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
397
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
398
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bookingPriceBody, localVarRequestOptions, configuration);
|
|
399
|
+
return {
|
|
400
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
401
|
+
options: localVarRequestOptions,
|
|
402
|
+
};
|
|
403
|
+
}),
|
|
303
404
|
/**
|
|
304
405
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
305
406
|
* @param {number} [latitude]
|
|
@@ -389,6 +490,21 @@ const BookingsApiFp = function (configuration) {
|
|
|
389
490
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
390
491
|
});
|
|
391
492
|
},
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
496
|
+
* @param {*} [options] Override http request option.
|
|
497
|
+
* @throws {RequiredError}
|
|
498
|
+
*/
|
|
499
|
+
getBookingPrice(bookingPriceBody, options) {
|
|
500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
501
|
+
var _a, _b, _c;
|
|
502
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
|
|
503
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
504
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
505
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
506
|
+
});
|
|
507
|
+
},
|
|
392
508
|
/**
|
|
393
509
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
394
510
|
* @param {number} [latitude]
|
|
@@ -432,6 +548,15 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
432
548
|
getBookingHistory(requestParameters, options) {
|
|
433
549
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
434
550
|
},
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
554
|
+
* @param {*} [options] Override http request option.
|
|
555
|
+
* @throws {RequiredError}
|
|
556
|
+
*/
|
|
557
|
+
getBookingPrice(requestParameters, options) {
|
|
558
|
+
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
559
|
+
},
|
|
435
560
|
/**
|
|
436
561
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
437
562
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -461,6 +586,16 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
461
586
|
getBookingHistory(requestParameters, options) {
|
|
462
587
|
return (0, exports.BookingsApiFp)(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
463
588
|
}
|
|
589
|
+
/**
|
|
590
|
+
*
|
|
591
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
592
|
+
* @param {*} [options] Override http request option.
|
|
593
|
+
* @throws {RequiredError}
|
|
594
|
+
* @memberof BookingsApi
|
|
595
|
+
*/
|
|
596
|
+
getBookingPrice(requestParameters, options) {
|
|
597
|
+
return (0, exports.BookingsApiFp)(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
598
|
+
}
|
|
464
599
|
/**
|
|
465
600
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
466
601
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -654,7 +789,7 @@ exports.BookingsManagerApi = BookingsManagerApi;
|
|
|
654
789
|
const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
655
790
|
return {
|
|
656
791
|
/**
|
|
657
|
-
* Check-in des joueurs
|
|
792
|
+
* Check-in des joueurs only for club with payment features
|
|
658
793
|
* @param {string} bookingId
|
|
659
794
|
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
660
795
|
* @param {*} [options] Override http request option.
|
|
@@ -855,7 +990,7 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
855
990
|
const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
|
|
856
991
|
return {
|
|
857
992
|
/**
|
|
858
|
-
* Check-in des joueurs
|
|
993
|
+
* Check-in des joueurs only for club with payment features
|
|
859
994
|
* @param {string} bookingId
|
|
860
995
|
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
861
996
|
* @param {*} [options] Override http request option.
|
|
@@ -956,7 +1091,7 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
956
1091
|
const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
|
|
957
1092
|
return {
|
|
958
1093
|
/**
|
|
959
|
-
* Check-in des joueurs
|
|
1094
|
+
* Check-in des joueurs only for club with payment features
|
|
960
1095
|
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
961
1096
|
* @param {*} [options] Override http request option.
|
|
962
1097
|
* @throws {RequiredError}
|
|
@@ -1020,7 +1155,7 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
|
|
|
1020
1155
|
*/
|
|
1021
1156
|
class BookingsStaffApi extends base_1.BaseAPI {
|
|
1022
1157
|
/**
|
|
1023
|
-
* Check-in des joueurs
|
|
1158
|
+
* Check-in des joueurs only for club with payment features
|
|
1024
1159
|
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
1025
1160
|
* @param {*} [options] Override http request option.
|
|
1026
1161
|
* @throws {RequiredError}
|
|
@@ -5391,13 +5526,44 @@ exports.DefaultApi = DefaultApi;
|
|
|
5391
5526
|
*/
|
|
5392
5527
|
const EventsApiAxiosParamCreator = function (configuration) {
|
|
5393
5528
|
return {
|
|
5529
|
+
/**
|
|
5530
|
+
* Get a specific event by ID
|
|
5531
|
+
* @param {string} eventId
|
|
5532
|
+
* @param {*} [options] Override http request option.
|
|
5533
|
+
* @throws {RequiredError}
|
|
5534
|
+
*/
|
|
5535
|
+
getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
5536
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
5537
|
+
(0, common_1.assertParamExists)('getEventById', 'eventId', eventId);
|
|
5538
|
+
const localVarPath = `/api/events/{eventId}`
|
|
5539
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
5540
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5541
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5542
|
+
let baseOptions;
|
|
5543
|
+
if (configuration) {
|
|
5544
|
+
baseOptions = configuration.baseOptions;
|
|
5545
|
+
}
|
|
5546
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5547
|
+
const localVarHeaderParameter = {};
|
|
5548
|
+
const localVarQueryParameter = {};
|
|
5549
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5550
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5551
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5552
|
+
return {
|
|
5553
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5554
|
+
options: localVarRequestOptions,
|
|
5555
|
+
};
|
|
5556
|
+
}),
|
|
5394
5557
|
/**
|
|
5395
5558
|
* Get all published events for a club
|
|
5396
5559
|
* @param {string} [clubId]
|
|
5560
|
+
* @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
|
|
5561
|
+
* @param {GetPublishedEventsByClubIdTypeEnum} [type]
|
|
5562
|
+
* @param {string} [sportId]
|
|
5397
5563
|
* @param {*} [options] Override http request option.
|
|
5398
5564
|
* @throws {RequiredError}
|
|
5399
5565
|
*/
|
|
5400
|
-
getPublishedEventsByClubId: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
5566
|
+
getPublishedEventsByClubId: (clubId_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, visibilityType, type, sportId, options = {}) {
|
|
5401
5567
|
const localVarPath = `/api/events`;
|
|
5402
5568
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5403
5569
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5411,6 +5577,15 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
5411
5577
|
if (clubId !== undefined) {
|
|
5412
5578
|
localVarQueryParameter['clubId'] = clubId;
|
|
5413
5579
|
}
|
|
5580
|
+
if (visibilityType !== undefined) {
|
|
5581
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
5582
|
+
}
|
|
5583
|
+
if (type !== undefined) {
|
|
5584
|
+
localVarQueryParameter['type'] = type;
|
|
5585
|
+
}
|
|
5586
|
+
if (sportId !== undefined) {
|
|
5587
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
5588
|
+
}
|
|
5414
5589
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5415
5590
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5416
5591
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -5420,18 +5595,18 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
5420
5595
|
};
|
|
5421
5596
|
}),
|
|
5422
5597
|
/**
|
|
5423
|
-
*
|
|
5598
|
+
* Join an event (user)
|
|
5424
5599
|
* @param {string} eventId
|
|
5425
|
-
* @param {
|
|
5600
|
+
* @param {JoinEventRequest} joinEventRequest
|
|
5426
5601
|
* @param {*} [options] Override http request option.
|
|
5427
5602
|
* @throws {RequiredError}
|
|
5428
5603
|
*/
|
|
5429
|
-
|
|
5604
|
+
joinEvent: (eventId_1, joinEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, joinEventRequest_1, ...args_1], void 0, function* (eventId, joinEventRequest, options = {}) {
|
|
5430
5605
|
// verify required parameter 'eventId' is not null or undefined
|
|
5431
|
-
(0, common_1.assertParamExists)('
|
|
5432
|
-
// verify required parameter '
|
|
5433
|
-
(0, common_1.assertParamExists)('
|
|
5434
|
-
const localVarPath = `/api/events/{eventId}/
|
|
5606
|
+
(0, common_1.assertParamExists)('joinEvent', 'eventId', eventId);
|
|
5607
|
+
// verify required parameter 'joinEventRequest' is not null or undefined
|
|
5608
|
+
(0, common_1.assertParamExists)('joinEvent', 'joinEventRequest', joinEventRequest);
|
|
5609
|
+
const localVarPath = `/api/events/{eventId}/join`
|
|
5435
5610
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
5436
5611
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5437
5612
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5449,7 +5624,38 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
5449
5624
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5450
5625
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5451
5626
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5452
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
5627
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinEventRequest, localVarRequestOptions, configuration);
|
|
5628
|
+
return {
|
|
5629
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5630
|
+
options: localVarRequestOptions,
|
|
5631
|
+
};
|
|
5632
|
+
}),
|
|
5633
|
+
/**
|
|
5634
|
+
* Leave an event (user)
|
|
5635
|
+
* @param {string} eventId
|
|
5636
|
+
* @param {*} [options] Override http request option.
|
|
5637
|
+
* @throws {RequiredError}
|
|
5638
|
+
*/
|
|
5639
|
+
leaveEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
5640
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
5641
|
+
(0, common_1.assertParamExists)('leaveEvent', 'eventId', eventId);
|
|
5642
|
+
const localVarPath = `/api/events/{eventId}/leave`
|
|
5643
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
5644
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5645
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5646
|
+
let baseOptions;
|
|
5647
|
+
if (configuration) {
|
|
5648
|
+
baseOptions = configuration.baseOptions;
|
|
5649
|
+
}
|
|
5650
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5651
|
+
const localVarHeaderParameter = {};
|
|
5652
|
+
const localVarQueryParameter = {};
|
|
5653
|
+
// authentication bearerAuth required
|
|
5654
|
+
// http bearer authentication required
|
|
5655
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5656
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5657
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5658
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5453
5659
|
return {
|
|
5454
5660
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5455
5661
|
options: localVarRequestOptions,
|
|
@@ -5465,34 +5671,67 @@ exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
|
|
5465
5671
|
const EventsApiFp = function (configuration) {
|
|
5466
5672
|
const localVarAxiosParamCreator = (0, exports.EventsApiAxiosParamCreator)(configuration);
|
|
5467
5673
|
return {
|
|
5674
|
+
/**
|
|
5675
|
+
* Get a specific event by ID
|
|
5676
|
+
* @param {string} eventId
|
|
5677
|
+
* @param {*} [options] Override http request option.
|
|
5678
|
+
* @throws {RequiredError}
|
|
5679
|
+
*/
|
|
5680
|
+
getEventById(eventId, options) {
|
|
5681
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5682
|
+
var _a, _b, _c;
|
|
5683
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
|
|
5684
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5685
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getEventById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5686
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5687
|
+
});
|
|
5688
|
+
},
|
|
5468
5689
|
/**
|
|
5469
5690
|
* Get all published events for a club
|
|
5470
5691
|
* @param {string} [clubId]
|
|
5692
|
+
* @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
|
|
5693
|
+
* @param {GetPublishedEventsByClubIdTypeEnum} [type]
|
|
5694
|
+
* @param {string} [sportId]
|
|
5471
5695
|
* @param {*} [options] Override http request option.
|
|
5472
5696
|
* @throws {RequiredError}
|
|
5473
5697
|
*/
|
|
5474
|
-
getPublishedEventsByClubId(clubId, options) {
|
|
5698
|
+
getPublishedEventsByClubId(clubId, visibilityType, type, sportId, options) {
|
|
5475
5699
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5476
5700
|
var _a, _b, _c;
|
|
5477
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
|
|
5701
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, visibilityType, type, sportId, options);
|
|
5478
5702
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5479
5703
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getPublishedEventsByClubId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5480
5704
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5481
5705
|
});
|
|
5482
5706
|
},
|
|
5483
5707
|
/**
|
|
5484
|
-
*
|
|
5708
|
+
* Join an event (user)
|
|
5709
|
+
* @param {string} eventId
|
|
5710
|
+
* @param {JoinEventRequest} joinEventRequest
|
|
5711
|
+
* @param {*} [options] Override http request option.
|
|
5712
|
+
* @throws {RequiredError}
|
|
5713
|
+
*/
|
|
5714
|
+
joinEvent(eventId, joinEventRequest, options) {
|
|
5715
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5716
|
+
var _a, _b, _c;
|
|
5717
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinEvent(eventId, joinEventRequest, options);
|
|
5718
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5719
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.joinEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5720
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5721
|
+
});
|
|
5722
|
+
},
|
|
5723
|
+
/**
|
|
5724
|
+
* Leave an event (user)
|
|
5485
5725
|
* @param {string} eventId
|
|
5486
|
-
* @param {any} body
|
|
5487
5726
|
* @param {*} [options] Override http request option.
|
|
5488
5727
|
* @throws {RequiredError}
|
|
5489
5728
|
*/
|
|
5490
|
-
|
|
5729
|
+
leaveEvent(eventId, options) {
|
|
5491
5730
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5492
5731
|
var _a, _b, _c;
|
|
5493
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5732
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveEvent(eventId, options);
|
|
5494
5733
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5495
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.
|
|
5734
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.leaveEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5496
5735
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5497
5736
|
});
|
|
5498
5737
|
},
|
|
@@ -5506,6 +5745,15 @@ exports.EventsApiFp = EventsApiFp;
|
|
|
5506
5745
|
const EventsApiFactory = function (configuration, basePath, axios) {
|
|
5507
5746
|
const localVarFp = (0, exports.EventsApiFp)(configuration);
|
|
5508
5747
|
return {
|
|
5748
|
+
/**
|
|
5749
|
+
* Get a specific event by ID
|
|
5750
|
+
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
5751
|
+
* @param {*} [options] Override http request option.
|
|
5752
|
+
* @throws {RequiredError}
|
|
5753
|
+
*/
|
|
5754
|
+
getEventById(requestParameters, options) {
|
|
5755
|
+
return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
5756
|
+
},
|
|
5509
5757
|
/**
|
|
5510
5758
|
* Get all published events for a club
|
|
5511
5759
|
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
@@ -5513,16 +5761,25 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
5513
5761
|
* @throws {RequiredError}
|
|
5514
5762
|
*/
|
|
5515
5763
|
getPublishedEventsByClubId(requestParameters = {}, options) {
|
|
5516
|
-
return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
5764
|
+
return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
5517
5765
|
},
|
|
5518
5766
|
/**
|
|
5519
|
-
*
|
|
5520
|
-
* @param {
|
|
5767
|
+
* Join an event (user)
|
|
5768
|
+
* @param {EventsApiJoinEventRequest} requestParameters Request parameters.
|
|
5521
5769
|
* @param {*} [options] Override http request option.
|
|
5522
5770
|
* @throws {RequiredError}
|
|
5523
5771
|
*/
|
|
5524
|
-
|
|
5525
|
-
return localVarFp.
|
|
5772
|
+
joinEvent(requestParameters, options) {
|
|
5773
|
+
return localVarFp.joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(axios, basePath));
|
|
5774
|
+
},
|
|
5775
|
+
/**
|
|
5776
|
+
* Leave an event (user)
|
|
5777
|
+
* @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
|
|
5778
|
+
* @param {*} [options] Override http request option.
|
|
5779
|
+
* @throws {RequiredError}
|
|
5780
|
+
*/
|
|
5781
|
+
leaveEvent(requestParameters, options) {
|
|
5782
|
+
return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
5526
5783
|
},
|
|
5527
5784
|
};
|
|
5528
5785
|
};
|
|
@@ -5534,6 +5791,16 @@ exports.EventsApiFactory = EventsApiFactory;
|
|
|
5534
5791
|
* @extends {BaseAPI}
|
|
5535
5792
|
*/
|
|
5536
5793
|
class EventsApi extends base_1.BaseAPI {
|
|
5794
|
+
/**
|
|
5795
|
+
* Get a specific event by ID
|
|
5796
|
+
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
5797
|
+
* @param {*} [options] Override http request option.
|
|
5798
|
+
* @throws {RequiredError}
|
|
5799
|
+
* @memberof EventsApi
|
|
5800
|
+
*/
|
|
5801
|
+
getEventById(requestParameters, options) {
|
|
5802
|
+
return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
5803
|
+
}
|
|
5537
5804
|
/**
|
|
5538
5805
|
* Get all published events for a club
|
|
5539
5806
|
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
@@ -5542,20 +5809,45 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
5542
5809
|
* @memberof EventsApi
|
|
5543
5810
|
*/
|
|
5544
5811
|
getPublishedEventsByClubId(requestParameters = {}, options) {
|
|
5545
|
-
return (0, exports.EventsApiFp)(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
5812
|
+
return (0, exports.EventsApiFp)(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
5813
|
+
}
|
|
5814
|
+
/**
|
|
5815
|
+
* Join an event (user)
|
|
5816
|
+
* @param {EventsApiJoinEventRequest} requestParameters Request parameters.
|
|
5817
|
+
* @param {*} [options] Override http request option.
|
|
5818
|
+
* @throws {RequiredError}
|
|
5819
|
+
* @memberof EventsApi
|
|
5820
|
+
*/
|
|
5821
|
+
joinEvent(requestParameters, options) {
|
|
5822
|
+
return (0, exports.EventsApiFp)(this.configuration).joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5546
5823
|
}
|
|
5547
5824
|
/**
|
|
5548
|
-
*
|
|
5549
|
-
* @param {
|
|
5825
|
+
* Leave an event (user)
|
|
5826
|
+
* @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
|
|
5550
5827
|
* @param {*} [options] Override http request option.
|
|
5551
5828
|
* @throws {RequiredError}
|
|
5552
5829
|
* @memberof EventsApi
|
|
5553
5830
|
*/
|
|
5554
|
-
|
|
5555
|
-
return (0, exports.EventsApiFp)(this.configuration).
|
|
5831
|
+
leaveEvent(requestParameters, options) {
|
|
5832
|
+
return (0, exports.EventsApiFp)(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
5556
5833
|
}
|
|
5557
5834
|
}
|
|
5558
5835
|
exports.EventsApi = EventsApi;
|
|
5836
|
+
/**
|
|
5837
|
+
* @export
|
|
5838
|
+
*/
|
|
5839
|
+
exports.GetPublishedEventsByClubIdVisibilityTypeEnum = {
|
|
5840
|
+
Public: 'public',
|
|
5841
|
+
Private: 'private',
|
|
5842
|
+
Invitation: 'invitation'
|
|
5843
|
+
};
|
|
5844
|
+
/**
|
|
5845
|
+
* @export
|
|
5846
|
+
*/
|
|
5847
|
+
exports.GetPublishedEventsByClubIdTypeEnum = {
|
|
5848
|
+
Event: 'event',
|
|
5849
|
+
Closure: 'closure'
|
|
5850
|
+
};
|
|
5559
5851
|
/**
|
|
5560
5852
|
* EventsManagerApi - axios parameter creator
|
|
5561
5853
|
* @export
|
|
@@ -5687,6 +5979,42 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
5687
5979
|
options: localVarRequestOptions,
|
|
5688
5980
|
};
|
|
5689
5981
|
}),
|
|
5982
|
+
/**
|
|
5983
|
+
* Update an event (manager)
|
|
5984
|
+
* @param {string} eventId
|
|
5985
|
+
* @param {UpdateEventRequest} updateEventRequest
|
|
5986
|
+
* @param {*} [options] Override http request option.
|
|
5987
|
+
* @throws {RequiredError}
|
|
5988
|
+
*/
|
|
5989
|
+
updateEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
|
|
5990
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
5991
|
+
(0, common_1.assertParamExists)('updateEvent', 'eventId', eventId);
|
|
5992
|
+
// verify required parameter 'updateEventRequest' is not null or undefined
|
|
5993
|
+
(0, common_1.assertParamExists)('updateEvent', 'updateEventRequest', updateEventRequest);
|
|
5994
|
+
const localVarPath = `/api/events/manager/updateEvent/{eventId}`
|
|
5995
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
5996
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5997
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5998
|
+
let baseOptions;
|
|
5999
|
+
if (configuration) {
|
|
6000
|
+
baseOptions = configuration.baseOptions;
|
|
6001
|
+
}
|
|
6002
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6003
|
+
const localVarHeaderParameter = {};
|
|
6004
|
+
const localVarQueryParameter = {};
|
|
6005
|
+
// authentication bearerAuth required
|
|
6006
|
+
// http bearer authentication required
|
|
6007
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6008
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6009
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6010
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6011
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6012
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEventRequest, localVarRequestOptions, configuration);
|
|
6013
|
+
return {
|
|
6014
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6015
|
+
options: localVarRequestOptions,
|
|
6016
|
+
};
|
|
6017
|
+
}),
|
|
5690
6018
|
};
|
|
5691
6019
|
};
|
|
5692
6020
|
exports.EventsManagerApiAxiosParamCreator = EventsManagerApiAxiosParamCreator;
|
|
@@ -5757,6 +6085,22 @@ const EventsManagerApiFp = function (configuration) {
|
|
|
5757
6085
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5758
6086
|
});
|
|
5759
6087
|
},
|
|
6088
|
+
/**
|
|
6089
|
+
* Update an event (manager)
|
|
6090
|
+
* @param {string} eventId
|
|
6091
|
+
* @param {UpdateEventRequest} updateEventRequest
|
|
6092
|
+
* @param {*} [options] Override http request option.
|
|
6093
|
+
* @throws {RequiredError}
|
|
6094
|
+
*/
|
|
6095
|
+
updateEvent(eventId, updateEventRequest, options) {
|
|
6096
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6097
|
+
var _a, _b, _c;
|
|
6098
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEvent(eventId, updateEventRequest, options);
|
|
6099
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6100
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.updateEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6101
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6102
|
+
});
|
|
6103
|
+
},
|
|
5760
6104
|
};
|
|
5761
6105
|
};
|
|
5762
6106
|
exports.EventsManagerApiFp = EventsManagerApiFp;
|
|
@@ -5803,6 +6147,15 @@ const EventsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
5803
6147
|
unpublishEvent(requestParameters, options) {
|
|
5804
6148
|
return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
5805
6149
|
},
|
|
6150
|
+
/**
|
|
6151
|
+
* Update an event (manager)
|
|
6152
|
+
* @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
|
|
6153
|
+
* @param {*} [options] Override http request option.
|
|
6154
|
+
* @throws {RequiredError}
|
|
6155
|
+
*/
|
|
6156
|
+
updateEvent(requestParameters, options) {
|
|
6157
|
+
return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
6158
|
+
},
|
|
5806
6159
|
};
|
|
5807
6160
|
};
|
|
5808
6161
|
exports.EventsManagerApiFactory = EventsManagerApiFactory;
|
|
@@ -5853,6 +6206,16 @@ class EventsManagerApi extends base_1.BaseAPI {
|
|
|
5853
6206
|
unpublishEvent(requestParameters, options) {
|
|
5854
6207
|
return (0, exports.EventsManagerApiFp)(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
5855
6208
|
}
|
|
6209
|
+
/**
|
|
6210
|
+
* Update an event (manager)
|
|
6211
|
+
* @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
|
|
6212
|
+
* @param {*} [options] Override http request option.
|
|
6213
|
+
* @throws {RequiredError}
|
|
6214
|
+
* @memberof EventsManagerApi
|
|
6215
|
+
*/
|
|
6216
|
+
updateEvent(requestParameters, options) {
|
|
6217
|
+
return (0, exports.EventsManagerApiFp)(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6218
|
+
}
|
|
5856
6219
|
}
|
|
5857
6220
|
exports.EventsManagerApi = EventsManagerApi;
|
|
5858
6221
|
/**
|
|
@@ -5958,7 +6321,7 @@ exports.EventsStaffApi = EventsStaffApi;
|
|
|
5958
6321
|
const SportsManagerApiAxiosParamCreator = function (configuration) {
|
|
5959
6322
|
return {
|
|
5960
6323
|
/**
|
|
5961
|
-
* Crée un sport
|
|
6324
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
5962
6325
|
* @param {CreateSportRequest} createSportRequest
|
|
5963
6326
|
* @param {*} [options] Override http request option.
|
|
5964
6327
|
* @throws {RequiredError}
|
|
@@ -5990,7 +6353,7 @@ const SportsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
5990
6353
|
};
|
|
5991
6354
|
}),
|
|
5992
6355
|
/**
|
|
5993
|
-
* Supprime un sport
|
|
6356
|
+
* Supprime un sport (interdit si vérifié)
|
|
5994
6357
|
* @param {string} id
|
|
5995
6358
|
* @param {*} [options] Override http request option.
|
|
5996
6359
|
* @throws {RequiredError}
|
|
@@ -6021,7 +6384,7 @@ const SportsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
6021
6384
|
};
|
|
6022
6385
|
}),
|
|
6023
6386
|
/**
|
|
6024
|
-
* Met à jour un sport
|
|
6387
|
+
* Met à jour un sport (interdit si vérifié)
|
|
6025
6388
|
* @param {string} id
|
|
6026
6389
|
* @param {UpdateSportRequest} updateSportRequest
|
|
6027
6390
|
* @param {*} [options] Override http request option.
|
|
@@ -6067,7 +6430,7 @@ const SportsManagerApiFp = function (configuration) {
|
|
|
6067
6430
|
const localVarAxiosParamCreator = (0, exports.SportsManagerApiAxiosParamCreator)(configuration);
|
|
6068
6431
|
return {
|
|
6069
6432
|
/**
|
|
6070
|
-
* Crée un sport
|
|
6433
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
6071
6434
|
* @param {CreateSportRequest} createSportRequest
|
|
6072
6435
|
* @param {*} [options] Override http request option.
|
|
6073
6436
|
* @throws {RequiredError}
|
|
@@ -6082,7 +6445,7 @@ const SportsManagerApiFp = function (configuration) {
|
|
|
6082
6445
|
});
|
|
6083
6446
|
},
|
|
6084
6447
|
/**
|
|
6085
|
-
* Supprime un sport
|
|
6448
|
+
* Supprime un sport (interdit si vérifié)
|
|
6086
6449
|
* @param {string} id
|
|
6087
6450
|
* @param {*} [options] Override http request option.
|
|
6088
6451
|
* @throws {RequiredError}
|
|
@@ -6097,7 +6460,7 @@ const SportsManagerApiFp = function (configuration) {
|
|
|
6097
6460
|
});
|
|
6098
6461
|
},
|
|
6099
6462
|
/**
|
|
6100
|
-
* Met à jour un sport
|
|
6463
|
+
* Met à jour un sport (interdit si vérifié)
|
|
6101
6464
|
* @param {string} id
|
|
6102
6465
|
* @param {UpdateSportRequest} updateSportRequest
|
|
6103
6466
|
* @param {*} [options] Override http request option.
|
|
@@ -6123,7 +6486,7 @@ const SportsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
6123
6486
|
const localVarFp = (0, exports.SportsManagerApiFp)(configuration);
|
|
6124
6487
|
return {
|
|
6125
6488
|
/**
|
|
6126
|
-
* Crée un sport
|
|
6489
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
6127
6490
|
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
6128
6491
|
* @param {*} [options] Override http request option.
|
|
6129
6492
|
* @throws {RequiredError}
|
|
@@ -6132,7 +6495,7 @@ const SportsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
6132
6495
|
return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
|
|
6133
6496
|
},
|
|
6134
6497
|
/**
|
|
6135
|
-
* Supprime un sport
|
|
6498
|
+
* Supprime un sport (interdit si vérifié)
|
|
6136
6499
|
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
6137
6500
|
* @param {*} [options] Override http request option.
|
|
6138
6501
|
* @throws {RequiredError}
|
|
@@ -6141,7 +6504,7 @@ const SportsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
6141
6504
|
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6142
6505
|
},
|
|
6143
6506
|
/**
|
|
6144
|
-
* Met à jour un sport
|
|
6507
|
+
* Met à jour un sport (interdit si vérifié)
|
|
6145
6508
|
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6146
6509
|
* @param {*} [options] Override http request option.
|
|
6147
6510
|
* @throws {RequiredError}
|
|
@@ -6160,7 +6523,7 @@ exports.SportsManagerApiFactory = SportsManagerApiFactory;
|
|
|
6160
6523
|
*/
|
|
6161
6524
|
class SportsManagerApi extends base_1.BaseAPI {
|
|
6162
6525
|
/**
|
|
6163
|
-
* Crée un sport
|
|
6526
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
6164
6527
|
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
6165
6528
|
* @param {*} [options] Override http request option.
|
|
6166
6529
|
* @throws {RequiredError}
|
|
@@ -6170,7 +6533,7 @@ class SportsManagerApi extends base_1.BaseAPI {
|
|
|
6170
6533
|
return (0, exports.SportsManagerApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6171
6534
|
}
|
|
6172
6535
|
/**
|
|
6173
|
-
* Supprime un sport
|
|
6536
|
+
* Supprime un sport (interdit si vérifié)
|
|
6174
6537
|
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
6175
6538
|
* @param {*} [options] Override http request option.
|
|
6176
6539
|
* @throws {RequiredError}
|
|
@@ -6180,7 +6543,7 @@ class SportsManagerApi extends base_1.BaseAPI {
|
|
|
6180
6543
|
return (0, exports.SportsManagerApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6181
6544
|
}
|
|
6182
6545
|
/**
|
|
6183
|
-
* Met à jour un sport
|
|
6546
|
+
* Met à jour un sport (interdit si vérifié)
|
|
6184
6547
|
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6185
6548
|
* @param {*} [options] Override http request option.
|
|
6186
6549
|
* @throws {RequiredError}
|
|
@@ -6198,7 +6561,7 @@ exports.SportsManagerApi = SportsManagerApi;
|
|
|
6198
6561
|
const SportsStaffApiAxiosParamCreator = function (configuration) {
|
|
6199
6562
|
return {
|
|
6200
6563
|
/**
|
|
6201
|
-
* Récupère la liste des sports
|
|
6564
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6202
6565
|
* @param {*} [options] Override http request option.
|
|
6203
6566
|
* @throws {RequiredError}
|
|
6204
6567
|
*/
|
|
@@ -6235,7 +6598,7 @@ const SportsStaffApiFp = function (configuration) {
|
|
|
6235
6598
|
const localVarAxiosParamCreator = (0, exports.SportsStaffApiAxiosParamCreator)(configuration);
|
|
6236
6599
|
return {
|
|
6237
6600
|
/**
|
|
6238
|
-
* Récupère la liste des sports
|
|
6601
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6239
6602
|
* @param {*} [options] Override http request option.
|
|
6240
6603
|
* @throws {RequiredError}
|
|
6241
6604
|
*/
|
|
@@ -6259,7 +6622,7 @@ const SportsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6259
6622
|
const localVarFp = (0, exports.SportsStaffApiFp)(configuration);
|
|
6260
6623
|
return {
|
|
6261
6624
|
/**
|
|
6262
|
-
* Récupère la liste des sports
|
|
6625
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6263
6626
|
* @param {*} [options] Override http request option.
|
|
6264
6627
|
* @throws {RequiredError}
|
|
6265
6628
|
*/
|
|
@@ -6277,7 +6640,7 @@ exports.SportsStaffApiFactory = SportsStaffApiFactory;
|
|
|
6277
6640
|
*/
|
|
6278
6641
|
class SportsStaffApi extends base_1.BaseAPI {
|
|
6279
6642
|
/**
|
|
6280
|
-
* Récupère la liste des sports
|
|
6643
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6281
6644
|
* @param {*} [options] Override http request option.
|
|
6282
6645
|
* @throws {RequiredError}
|
|
6283
6646
|
* @memberof SportsStaffApi
|