@tennac-booking/sdk 1.0.70 → 1.0.71
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 +236 -230
- package/README.md +14 -5
- package/api.ts +957 -145
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +909 -263
- package/dist/api.js +347 -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 +909 -263
- package/dist/esm/api.js +344 -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/BookingStatus.md +2 -0
- package/docs/BookingsStaffApi.md +1 -1
- package/docs/CheckInPlayersResponse.md +2 -10
- 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/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/{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.71
|
|
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
|
};
|
|
@@ -654,7 +723,7 @@ exports.BookingsManagerApi = BookingsManagerApi;
|
|
|
654
723
|
const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
655
724
|
return {
|
|
656
725
|
/**
|
|
657
|
-
* Check-in des joueurs
|
|
726
|
+
* Check-in des joueurs only for club with payment features
|
|
658
727
|
* @param {string} bookingId
|
|
659
728
|
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
660
729
|
* @param {*} [options] Override http request option.
|
|
@@ -855,7 +924,7 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
855
924
|
const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
|
|
856
925
|
return {
|
|
857
926
|
/**
|
|
858
|
-
* Check-in des joueurs
|
|
927
|
+
* Check-in des joueurs only for club with payment features
|
|
859
928
|
* @param {string} bookingId
|
|
860
929
|
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
861
930
|
* @param {*} [options] Override http request option.
|
|
@@ -956,7 +1025,7 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
956
1025
|
const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
|
|
957
1026
|
return {
|
|
958
1027
|
/**
|
|
959
|
-
* Check-in des joueurs
|
|
1028
|
+
* Check-in des joueurs only for club with payment features
|
|
960
1029
|
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
961
1030
|
* @param {*} [options] Override http request option.
|
|
962
1031
|
* @throws {RequiredError}
|
|
@@ -1020,7 +1089,7 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
|
|
|
1020
1089
|
*/
|
|
1021
1090
|
class BookingsStaffApi extends base_1.BaseAPI {
|
|
1022
1091
|
/**
|
|
1023
|
-
* Check-in des joueurs
|
|
1092
|
+
* Check-in des joueurs only for club with payment features
|
|
1024
1093
|
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
1025
1094
|
* @param {*} [options] Override http request option.
|
|
1026
1095
|
* @throws {RequiredError}
|
|
@@ -5391,13 +5460,44 @@ exports.DefaultApi = DefaultApi;
|
|
|
5391
5460
|
*/
|
|
5392
5461
|
const EventsApiAxiosParamCreator = function (configuration) {
|
|
5393
5462
|
return {
|
|
5463
|
+
/**
|
|
5464
|
+
* Get a specific event by ID
|
|
5465
|
+
* @param {string} eventId
|
|
5466
|
+
* @param {*} [options] Override http request option.
|
|
5467
|
+
* @throws {RequiredError}
|
|
5468
|
+
*/
|
|
5469
|
+
getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
5470
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
5471
|
+
(0, common_1.assertParamExists)('getEventById', 'eventId', eventId);
|
|
5472
|
+
const localVarPath = `/api/events/{eventId}`
|
|
5473
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
5474
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5475
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5476
|
+
let baseOptions;
|
|
5477
|
+
if (configuration) {
|
|
5478
|
+
baseOptions = configuration.baseOptions;
|
|
5479
|
+
}
|
|
5480
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5481
|
+
const localVarHeaderParameter = {};
|
|
5482
|
+
const localVarQueryParameter = {};
|
|
5483
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5484
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5485
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5486
|
+
return {
|
|
5487
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5488
|
+
options: localVarRequestOptions,
|
|
5489
|
+
};
|
|
5490
|
+
}),
|
|
5394
5491
|
/**
|
|
5395
5492
|
* Get all published events for a club
|
|
5396
5493
|
* @param {string} [clubId]
|
|
5494
|
+
* @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
|
|
5495
|
+
* @param {GetPublishedEventsByClubIdTypeEnum} [type]
|
|
5496
|
+
* @param {string} [sportId]
|
|
5397
5497
|
* @param {*} [options] Override http request option.
|
|
5398
5498
|
* @throws {RequiredError}
|
|
5399
5499
|
*/
|
|
5400
|
-
getPublishedEventsByClubId: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
5500
|
+
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
5501
|
const localVarPath = `/api/events`;
|
|
5402
5502
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5403
5503
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5411,6 +5511,15 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
5411
5511
|
if (clubId !== undefined) {
|
|
5412
5512
|
localVarQueryParameter['clubId'] = clubId;
|
|
5413
5513
|
}
|
|
5514
|
+
if (visibilityType !== undefined) {
|
|
5515
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
5516
|
+
}
|
|
5517
|
+
if (type !== undefined) {
|
|
5518
|
+
localVarQueryParameter['type'] = type;
|
|
5519
|
+
}
|
|
5520
|
+
if (sportId !== undefined) {
|
|
5521
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
5522
|
+
}
|
|
5414
5523
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5415
5524
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5416
5525
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -5420,18 +5529,18 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
5420
5529
|
};
|
|
5421
5530
|
}),
|
|
5422
5531
|
/**
|
|
5423
|
-
*
|
|
5532
|
+
* Join an event (user)
|
|
5424
5533
|
* @param {string} eventId
|
|
5425
|
-
* @param {
|
|
5534
|
+
* @param {JoinEventRequest} joinEventRequest
|
|
5426
5535
|
* @param {*} [options] Override http request option.
|
|
5427
5536
|
* @throws {RequiredError}
|
|
5428
5537
|
*/
|
|
5429
|
-
|
|
5538
|
+
joinEvent: (eventId_1, joinEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, joinEventRequest_1, ...args_1], void 0, function* (eventId, joinEventRequest, options = {}) {
|
|
5430
5539
|
// 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}/
|
|
5540
|
+
(0, common_1.assertParamExists)('joinEvent', 'eventId', eventId);
|
|
5541
|
+
// verify required parameter 'joinEventRequest' is not null or undefined
|
|
5542
|
+
(0, common_1.assertParamExists)('joinEvent', 'joinEventRequest', joinEventRequest);
|
|
5543
|
+
const localVarPath = `/api/events/{eventId}/join`
|
|
5435
5544
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
5436
5545
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5437
5546
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5449,7 +5558,38 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
5449
5558
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5450
5559
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5451
5560
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5452
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
5561
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinEventRequest, localVarRequestOptions, configuration);
|
|
5562
|
+
return {
|
|
5563
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5564
|
+
options: localVarRequestOptions,
|
|
5565
|
+
};
|
|
5566
|
+
}),
|
|
5567
|
+
/**
|
|
5568
|
+
* Leave an event (user)
|
|
5569
|
+
* @param {string} eventId
|
|
5570
|
+
* @param {*} [options] Override http request option.
|
|
5571
|
+
* @throws {RequiredError}
|
|
5572
|
+
*/
|
|
5573
|
+
leaveEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
5574
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
5575
|
+
(0, common_1.assertParamExists)('leaveEvent', 'eventId', eventId);
|
|
5576
|
+
const localVarPath = `/api/events/{eventId}/leave`
|
|
5577
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
5578
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5579
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5580
|
+
let baseOptions;
|
|
5581
|
+
if (configuration) {
|
|
5582
|
+
baseOptions = configuration.baseOptions;
|
|
5583
|
+
}
|
|
5584
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5585
|
+
const localVarHeaderParameter = {};
|
|
5586
|
+
const localVarQueryParameter = {};
|
|
5587
|
+
// authentication bearerAuth required
|
|
5588
|
+
// http bearer authentication required
|
|
5589
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5590
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5591
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5592
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5453
5593
|
return {
|
|
5454
5594
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5455
5595
|
options: localVarRequestOptions,
|
|
@@ -5465,34 +5605,67 @@ exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
|
|
5465
5605
|
const EventsApiFp = function (configuration) {
|
|
5466
5606
|
const localVarAxiosParamCreator = (0, exports.EventsApiAxiosParamCreator)(configuration);
|
|
5467
5607
|
return {
|
|
5608
|
+
/**
|
|
5609
|
+
* Get a specific event by ID
|
|
5610
|
+
* @param {string} eventId
|
|
5611
|
+
* @param {*} [options] Override http request option.
|
|
5612
|
+
* @throws {RequiredError}
|
|
5613
|
+
*/
|
|
5614
|
+
getEventById(eventId, options) {
|
|
5615
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5616
|
+
var _a, _b, _c;
|
|
5617
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
|
|
5618
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5619
|
+
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;
|
|
5620
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5621
|
+
});
|
|
5622
|
+
},
|
|
5468
5623
|
/**
|
|
5469
5624
|
* Get all published events for a club
|
|
5470
5625
|
* @param {string} [clubId]
|
|
5626
|
+
* @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
|
|
5627
|
+
* @param {GetPublishedEventsByClubIdTypeEnum} [type]
|
|
5628
|
+
* @param {string} [sportId]
|
|
5471
5629
|
* @param {*} [options] Override http request option.
|
|
5472
5630
|
* @throws {RequiredError}
|
|
5473
5631
|
*/
|
|
5474
|
-
getPublishedEventsByClubId(clubId, options) {
|
|
5632
|
+
getPublishedEventsByClubId(clubId, visibilityType, type, sportId, options) {
|
|
5475
5633
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5476
5634
|
var _a, _b, _c;
|
|
5477
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
|
|
5635
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, visibilityType, type, sportId, options);
|
|
5478
5636
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5479
5637
|
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
5638
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5481
5639
|
});
|
|
5482
5640
|
},
|
|
5483
5641
|
/**
|
|
5484
|
-
*
|
|
5642
|
+
* Join an event (user)
|
|
5485
5643
|
* @param {string} eventId
|
|
5486
|
-
* @param {
|
|
5644
|
+
* @param {JoinEventRequest} joinEventRequest
|
|
5487
5645
|
* @param {*} [options] Override http request option.
|
|
5488
5646
|
* @throws {RequiredError}
|
|
5489
5647
|
*/
|
|
5490
|
-
|
|
5648
|
+
joinEvent(eventId, joinEventRequest, options) {
|
|
5491
5649
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5492
5650
|
var _a, _b, _c;
|
|
5493
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5651
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinEvent(eventId, joinEventRequest, options);
|
|
5494
5652
|
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.
|
|
5653
|
+
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;
|
|
5654
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5655
|
+
});
|
|
5656
|
+
},
|
|
5657
|
+
/**
|
|
5658
|
+
* Leave an event (user)
|
|
5659
|
+
* @param {string} eventId
|
|
5660
|
+
* @param {*} [options] Override http request option.
|
|
5661
|
+
* @throws {RequiredError}
|
|
5662
|
+
*/
|
|
5663
|
+
leaveEvent(eventId, options) {
|
|
5664
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5665
|
+
var _a, _b, _c;
|
|
5666
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveEvent(eventId, options);
|
|
5667
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5668
|
+
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
5669
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5497
5670
|
});
|
|
5498
5671
|
},
|
|
@@ -5506,6 +5679,15 @@ exports.EventsApiFp = EventsApiFp;
|
|
|
5506
5679
|
const EventsApiFactory = function (configuration, basePath, axios) {
|
|
5507
5680
|
const localVarFp = (0, exports.EventsApiFp)(configuration);
|
|
5508
5681
|
return {
|
|
5682
|
+
/**
|
|
5683
|
+
* Get a specific event by ID
|
|
5684
|
+
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
5685
|
+
* @param {*} [options] Override http request option.
|
|
5686
|
+
* @throws {RequiredError}
|
|
5687
|
+
*/
|
|
5688
|
+
getEventById(requestParameters, options) {
|
|
5689
|
+
return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
5690
|
+
},
|
|
5509
5691
|
/**
|
|
5510
5692
|
* Get all published events for a club
|
|
5511
5693
|
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
@@ -5513,16 +5695,25 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
5513
5695
|
* @throws {RequiredError}
|
|
5514
5696
|
*/
|
|
5515
5697
|
getPublishedEventsByClubId(requestParameters = {}, options) {
|
|
5516
|
-
return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
5698
|
+
return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
5517
5699
|
},
|
|
5518
5700
|
/**
|
|
5519
|
-
*
|
|
5520
|
-
* @param {
|
|
5701
|
+
* Join an event (user)
|
|
5702
|
+
* @param {EventsApiJoinEventRequest} requestParameters Request parameters.
|
|
5521
5703
|
* @param {*} [options] Override http request option.
|
|
5522
5704
|
* @throws {RequiredError}
|
|
5523
5705
|
*/
|
|
5524
|
-
|
|
5525
|
-
return localVarFp.
|
|
5706
|
+
joinEvent(requestParameters, options) {
|
|
5707
|
+
return localVarFp.joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(axios, basePath));
|
|
5708
|
+
},
|
|
5709
|
+
/**
|
|
5710
|
+
* Leave an event (user)
|
|
5711
|
+
* @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
|
|
5712
|
+
* @param {*} [options] Override http request option.
|
|
5713
|
+
* @throws {RequiredError}
|
|
5714
|
+
*/
|
|
5715
|
+
leaveEvent(requestParameters, options) {
|
|
5716
|
+
return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
5526
5717
|
},
|
|
5527
5718
|
};
|
|
5528
5719
|
};
|
|
@@ -5534,6 +5725,16 @@ exports.EventsApiFactory = EventsApiFactory;
|
|
|
5534
5725
|
* @extends {BaseAPI}
|
|
5535
5726
|
*/
|
|
5536
5727
|
class EventsApi extends base_1.BaseAPI {
|
|
5728
|
+
/**
|
|
5729
|
+
* Get a specific event by ID
|
|
5730
|
+
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
5731
|
+
* @param {*} [options] Override http request option.
|
|
5732
|
+
* @throws {RequiredError}
|
|
5733
|
+
* @memberof EventsApi
|
|
5734
|
+
*/
|
|
5735
|
+
getEventById(requestParameters, options) {
|
|
5736
|
+
return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
5737
|
+
}
|
|
5537
5738
|
/**
|
|
5538
5739
|
* Get all published events for a club
|
|
5539
5740
|
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
@@ -5542,20 +5743,45 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
5542
5743
|
* @memberof EventsApi
|
|
5543
5744
|
*/
|
|
5544
5745
|
getPublishedEventsByClubId(requestParameters = {}, options) {
|
|
5545
|
-
return (0, exports.EventsApiFp)(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
5746
|
+
return (0, exports.EventsApiFp)(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
5747
|
+
}
|
|
5748
|
+
/**
|
|
5749
|
+
* Join an event (user)
|
|
5750
|
+
* @param {EventsApiJoinEventRequest} requestParameters Request parameters.
|
|
5751
|
+
* @param {*} [options] Override http request option.
|
|
5752
|
+
* @throws {RequiredError}
|
|
5753
|
+
* @memberof EventsApi
|
|
5754
|
+
*/
|
|
5755
|
+
joinEvent(requestParameters, options) {
|
|
5756
|
+
return (0, exports.EventsApiFp)(this.configuration).joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5546
5757
|
}
|
|
5547
5758
|
/**
|
|
5548
|
-
*
|
|
5549
|
-
* @param {
|
|
5759
|
+
* Leave an event (user)
|
|
5760
|
+
* @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
|
|
5550
5761
|
* @param {*} [options] Override http request option.
|
|
5551
5762
|
* @throws {RequiredError}
|
|
5552
5763
|
* @memberof EventsApi
|
|
5553
5764
|
*/
|
|
5554
|
-
|
|
5555
|
-
return (0, exports.EventsApiFp)(this.configuration).
|
|
5765
|
+
leaveEvent(requestParameters, options) {
|
|
5766
|
+
return (0, exports.EventsApiFp)(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
5556
5767
|
}
|
|
5557
5768
|
}
|
|
5558
5769
|
exports.EventsApi = EventsApi;
|
|
5770
|
+
/**
|
|
5771
|
+
* @export
|
|
5772
|
+
*/
|
|
5773
|
+
exports.GetPublishedEventsByClubIdVisibilityTypeEnum = {
|
|
5774
|
+
Public: 'public',
|
|
5775
|
+
Private: 'private',
|
|
5776
|
+
Invitation: 'invitation'
|
|
5777
|
+
};
|
|
5778
|
+
/**
|
|
5779
|
+
* @export
|
|
5780
|
+
*/
|
|
5781
|
+
exports.GetPublishedEventsByClubIdTypeEnum = {
|
|
5782
|
+
Event: 'event',
|
|
5783
|
+
Closure: 'closure'
|
|
5784
|
+
};
|
|
5559
5785
|
/**
|
|
5560
5786
|
* EventsManagerApi - axios parameter creator
|
|
5561
5787
|
* @export
|
|
@@ -5687,6 +5913,42 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
5687
5913
|
options: localVarRequestOptions,
|
|
5688
5914
|
};
|
|
5689
5915
|
}),
|
|
5916
|
+
/**
|
|
5917
|
+
* Update an event (manager)
|
|
5918
|
+
* @param {string} eventId
|
|
5919
|
+
* @param {UpdateEventRequest} updateEventRequest
|
|
5920
|
+
* @param {*} [options] Override http request option.
|
|
5921
|
+
* @throws {RequiredError}
|
|
5922
|
+
*/
|
|
5923
|
+
updateEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
|
|
5924
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
5925
|
+
(0, common_1.assertParamExists)('updateEvent', 'eventId', eventId);
|
|
5926
|
+
// verify required parameter 'updateEventRequest' is not null or undefined
|
|
5927
|
+
(0, common_1.assertParamExists)('updateEvent', 'updateEventRequest', updateEventRequest);
|
|
5928
|
+
const localVarPath = `/api/events/manager/updateEvent/{eventId}`
|
|
5929
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
5930
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5931
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5932
|
+
let baseOptions;
|
|
5933
|
+
if (configuration) {
|
|
5934
|
+
baseOptions = configuration.baseOptions;
|
|
5935
|
+
}
|
|
5936
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
5937
|
+
const localVarHeaderParameter = {};
|
|
5938
|
+
const localVarQueryParameter = {};
|
|
5939
|
+
// authentication bearerAuth required
|
|
5940
|
+
// http bearer authentication required
|
|
5941
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5942
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5943
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5944
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5945
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5946
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEventRequest, localVarRequestOptions, configuration);
|
|
5947
|
+
return {
|
|
5948
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5949
|
+
options: localVarRequestOptions,
|
|
5950
|
+
};
|
|
5951
|
+
}),
|
|
5690
5952
|
};
|
|
5691
5953
|
};
|
|
5692
5954
|
exports.EventsManagerApiAxiosParamCreator = EventsManagerApiAxiosParamCreator;
|
|
@@ -5757,6 +6019,22 @@ const EventsManagerApiFp = function (configuration) {
|
|
|
5757
6019
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5758
6020
|
});
|
|
5759
6021
|
},
|
|
6022
|
+
/**
|
|
6023
|
+
* Update an event (manager)
|
|
6024
|
+
* @param {string} eventId
|
|
6025
|
+
* @param {UpdateEventRequest} updateEventRequest
|
|
6026
|
+
* @param {*} [options] Override http request option.
|
|
6027
|
+
* @throws {RequiredError}
|
|
6028
|
+
*/
|
|
6029
|
+
updateEvent(eventId, updateEventRequest, options) {
|
|
6030
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6031
|
+
var _a, _b, _c;
|
|
6032
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEvent(eventId, updateEventRequest, options);
|
|
6033
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6034
|
+
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;
|
|
6035
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6036
|
+
});
|
|
6037
|
+
},
|
|
5760
6038
|
};
|
|
5761
6039
|
};
|
|
5762
6040
|
exports.EventsManagerApiFp = EventsManagerApiFp;
|
|
@@ -5803,6 +6081,15 @@ const EventsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
5803
6081
|
unpublishEvent(requestParameters, options) {
|
|
5804
6082
|
return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
5805
6083
|
},
|
|
6084
|
+
/**
|
|
6085
|
+
* Update an event (manager)
|
|
6086
|
+
* @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
|
|
6087
|
+
* @param {*} [options] Override http request option.
|
|
6088
|
+
* @throws {RequiredError}
|
|
6089
|
+
*/
|
|
6090
|
+
updateEvent(requestParameters, options) {
|
|
6091
|
+
return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
6092
|
+
},
|
|
5806
6093
|
};
|
|
5807
6094
|
};
|
|
5808
6095
|
exports.EventsManagerApiFactory = EventsManagerApiFactory;
|
|
@@ -5853,6 +6140,16 @@ class EventsManagerApi extends base_1.BaseAPI {
|
|
|
5853
6140
|
unpublishEvent(requestParameters, options) {
|
|
5854
6141
|
return (0, exports.EventsManagerApiFp)(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
5855
6142
|
}
|
|
6143
|
+
/**
|
|
6144
|
+
* Update an event (manager)
|
|
6145
|
+
* @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
|
|
6146
|
+
* @param {*} [options] Override http request option.
|
|
6147
|
+
* @throws {RequiredError}
|
|
6148
|
+
* @memberof EventsManagerApi
|
|
6149
|
+
*/
|
|
6150
|
+
updateEvent(requestParameters, options) {
|
|
6151
|
+
return (0, exports.EventsManagerApiFp)(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6152
|
+
}
|
|
5856
6153
|
}
|
|
5857
6154
|
exports.EventsManagerApi = EventsManagerApi;
|
|
5858
6155
|
/**
|
|
@@ -5958,7 +6255,7 @@ exports.EventsStaffApi = EventsStaffApi;
|
|
|
5958
6255
|
const SportsManagerApiAxiosParamCreator = function (configuration) {
|
|
5959
6256
|
return {
|
|
5960
6257
|
/**
|
|
5961
|
-
* Crée un sport
|
|
6258
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
5962
6259
|
* @param {CreateSportRequest} createSportRequest
|
|
5963
6260
|
* @param {*} [options] Override http request option.
|
|
5964
6261
|
* @throws {RequiredError}
|
|
@@ -5990,7 +6287,7 @@ const SportsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
5990
6287
|
};
|
|
5991
6288
|
}),
|
|
5992
6289
|
/**
|
|
5993
|
-
* Supprime un sport
|
|
6290
|
+
* Supprime un sport (interdit si vérifié)
|
|
5994
6291
|
* @param {string} id
|
|
5995
6292
|
* @param {*} [options] Override http request option.
|
|
5996
6293
|
* @throws {RequiredError}
|
|
@@ -6021,7 +6318,7 @@ const SportsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
6021
6318
|
};
|
|
6022
6319
|
}),
|
|
6023
6320
|
/**
|
|
6024
|
-
* Met à jour un sport
|
|
6321
|
+
* Met à jour un sport (interdit si vérifié)
|
|
6025
6322
|
* @param {string} id
|
|
6026
6323
|
* @param {UpdateSportRequest} updateSportRequest
|
|
6027
6324
|
* @param {*} [options] Override http request option.
|
|
@@ -6067,7 +6364,7 @@ const SportsManagerApiFp = function (configuration) {
|
|
|
6067
6364
|
const localVarAxiosParamCreator = (0, exports.SportsManagerApiAxiosParamCreator)(configuration);
|
|
6068
6365
|
return {
|
|
6069
6366
|
/**
|
|
6070
|
-
* Crée un sport
|
|
6367
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
6071
6368
|
* @param {CreateSportRequest} createSportRequest
|
|
6072
6369
|
* @param {*} [options] Override http request option.
|
|
6073
6370
|
* @throws {RequiredError}
|
|
@@ -6082,7 +6379,7 @@ const SportsManagerApiFp = function (configuration) {
|
|
|
6082
6379
|
});
|
|
6083
6380
|
},
|
|
6084
6381
|
/**
|
|
6085
|
-
* Supprime un sport
|
|
6382
|
+
* Supprime un sport (interdit si vérifié)
|
|
6086
6383
|
* @param {string} id
|
|
6087
6384
|
* @param {*} [options] Override http request option.
|
|
6088
6385
|
* @throws {RequiredError}
|
|
@@ -6097,7 +6394,7 @@ const SportsManagerApiFp = function (configuration) {
|
|
|
6097
6394
|
});
|
|
6098
6395
|
},
|
|
6099
6396
|
/**
|
|
6100
|
-
* Met à jour un sport
|
|
6397
|
+
* Met à jour un sport (interdit si vérifié)
|
|
6101
6398
|
* @param {string} id
|
|
6102
6399
|
* @param {UpdateSportRequest} updateSportRequest
|
|
6103
6400
|
* @param {*} [options] Override http request option.
|
|
@@ -6123,7 +6420,7 @@ const SportsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
6123
6420
|
const localVarFp = (0, exports.SportsManagerApiFp)(configuration);
|
|
6124
6421
|
return {
|
|
6125
6422
|
/**
|
|
6126
|
-
* Crée un sport
|
|
6423
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
6127
6424
|
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
6128
6425
|
* @param {*} [options] Override http request option.
|
|
6129
6426
|
* @throws {RequiredError}
|
|
@@ -6132,7 +6429,7 @@ const SportsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
6132
6429
|
return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
|
|
6133
6430
|
},
|
|
6134
6431
|
/**
|
|
6135
|
-
* Supprime un sport
|
|
6432
|
+
* Supprime un sport (interdit si vérifié)
|
|
6136
6433
|
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
6137
6434
|
* @param {*} [options] Override http request option.
|
|
6138
6435
|
* @throws {RequiredError}
|
|
@@ -6141,7 +6438,7 @@ const SportsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
6141
6438
|
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6142
6439
|
},
|
|
6143
6440
|
/**
|
|
6144
|
-
* Met à jour un sport
|
|
6441
|
+
* Met à jour un sport (interdit si vérifié)
|
|
6145
6442
|
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6146
6443
|
* @param {*} [options] Override http request option.
|
|
6147
6444
|
* @throws {RequiredError}
|
|
@@ -6160,7 +6457,7 @@ exports.SportsManagerApiFactory = SportsManagerApiFactory;
|
|
|
6160
6457
|
*/
|
|
6161
6458
|
class SportsManagerApi extends base_1.BaseAPI {
|
|
6162
6459
|
/**
|
|
6163
|
-
* Crée un sport
|
|
6460
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
6164
6461
|
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
6165
6462
|
* @param {*} [options] Override http request option.
|
|
6166
6463
|
* @throws {RequiredError}
|
|
@@ -6170,7 +6467,7 @@ class SportsManagerApi extends base_1.BaseAPI {
|
|
|
6170
6467
|
return (0, exports.SportsManagerApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6171
6468
|
}
|
|
6172
6469
|
/**
|
|
6173
|
-
* Supprime un sport
|
|
6470
|
+
* Supprime un sport (interdit si vérifié)
|
|
6174
6471
|
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
6175
6472
|
* @param {*} [options] Override http request option.
|
|
6176
6473
|
* @throws {RequiredError}
|
|
@@ -6180,7 +6477,7 @@ class SportsManagerApi extends base_1.BaseAPI {
|
|
|
6180
6477
|
return (0, exports.SportsManagerApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6181
6478
|
}
|
|
6182
6479
|
/**
|
|
6183
|
-
* Met à jour un sport
|
|
6480
|
+
* Met à jour un sport (interdit si vérifié)
|
|
6184
6481
|
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
6185
6482
|
* @param {*} [options] Override http request option.
|
|
6186
6483
|
* @throws {RequiredError}
|
|
@@ -6198,7 +6495,7 @@ exports.SportsManagerApi = SportsManagerApi;
|
|
|
6198
6495
|
const SportsStaffApiAxiosParamCreator = function (configuration) {
|
|
6199
6496
|
return {
|
|
6200
6497
|
/**
|
|
6201
|
-
* Récupère la liste des sports
|
|
6498
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6202
6499
|
* @param {*} [options] Override http request option.
|
|
6203
6500
|
* @throws {RequiredError}
|
|
6204
6501
|
*/
|
|
@@ -6235,7 +6532,7 @@ const SportsStaffApiFp = function (configuration) {
|
|
|
6235
6532
|
const localVarAxiosParamCreator = (0, exports.SportsStaffApiAxiosParamCreator)(configuration);
|
|
6236
6533
|
return {
|
|
6237
6534
|
/**
|
|
6238
|
-
* Récupère la liste des sports
|
|
6535
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6239
6536
|
* @param {*} [options] Override http request option.
|
|
6240
6537
|
* @throws {RequiredError}
|
|
6241
6538
|
*/
|
|
@@ -6259,7 +6556,7 @@ const SportsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6259
6556
|
const localVarFp = (0, exports.SportsStaffApiFp)(configuration);
|
|
6260
6557
|
return {
|
|
6261
6558
|
/**
|
|
6262
|
-
* Récupère la liste des sports
|
|
6559
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6263
6560
|
* @param {*} [options] Override http request option.
|
|
6264
6561
|
* @throws {RequiredError}
|
|
6265
6562
|
*/
|
|
@@ -6277,7 +6574,7 @@ exports.SportsStaffApiFactory = SportsStaffApiFactory;
|
|
|
6277
6574
|
*/
|
|
6278
6575
|
class SportsStaffApi extends base_1.BaseAPI {
|
|
6279
6576
|
/**
|
|
6280
|
-
* Récupère la liste des sports
|
|
6577
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
6281
6578
|
* @param {*} [options] Override http request option.
|
|
6282
6579
|
* @throws {RequiredError}
|
|
6283
6580
|
* @memberof SportsStaffApi
|