@tennac-booking/sdk 1.0.128 → 1.0.129
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 +346 -334
- package/README.md +24 -11
- package/api.ts +1018 -413
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +858 -345
- package/dist/api.js +317 -157
- 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 +858 -345
- package/dist/esm/api.js +313 -153
- 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/BookingsStaffApi.md +10 -10
- package/docs/{PlanPriceInput.md → CheckInPlayersRequest.md} +5 -7
- package/docs/{CheckInPlayerResponse.md → CheckInPlayersResponse.md} +5 -5
- package/docs/ClubPlayerSubscriptionSummary.md +3 -3
- package/docs/ClubsStaffApi.md +0 -47
- package/docs/CreatePlan201Response.md +0 -2
- package/docs/CreateSubscriptionPlanRequest.md +2 -2
- package/docs/CreateSubscriptionPlanRequestDiscount.md +0 -2
- package/docs/DeleteSubscriptionPlanResponse.md +0 -2
- package/docs/EventBookingDetailSummary.md +40 -0
- package/docs/EventBookingResponse.md +36 -0
- package/docs/EventBookingResponsePlayersInner.md +28 -0
- package/docs/{CheckInPlayerRequest.md → EventBookingResponsePlayersInnerInvoiceStatus.md} +3 -5
- package/docs/{GetClubType200Response.md → EventBookingResponseSetupStatus.md} +3 -5
- package/docs/EventBookingStatus.md +16 -0
- package/docs/EventsApi.md +4 -1
- package/docs/EventsManagerApi.md +110 -0
- package/docs/InvoiceStatusSETUPPENDING.md +8 -0
- package/docs/InvoiceStatusSETUPSUCCESS.md +8 -0
- package/docs/MonthlyTurnoverResponse.md +1 -0
- package/docs/OffPeakRule.md +0 -2
- package/docs/ParticipationType.md +10 -0
- package/docs/PublicSubscriptionPlanResponse.md +1 -5
- package/docs/PublishEventResponse.md +4 -0
- package/docs/RecurringDefinitionResponse.md +34 -0
- package/docs/SendSubscriptionInvitationRequest.md +0 -2
- package/docs/SubscriptionPlanResponse.md +1 -7
- package/docs/SubscriptionsManagerApi.md +1 -55
- package/docs/UpdateRecurringDefinition200Response.md +20 -0
- package/docs/UpdateRecurringDefinitionRequest.md +56 -0
- package/docs/UserEventParticipation.md +22 -0
- package/docs/UserEventSummary.md +44 -0
- package/docs/UserEventsResponse.md +28 -0
- package/docs/UsersApi.md +54 -0
- package/docs/VisibilityType.md +12 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/PlanPrice.md +0 -26
- package/docs/SubscriptionPlanDiscountResponse.md +0 -34
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.129
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = void 0;
|
|
25
|
+
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.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = exports.AgendaPaymentStatus = void 0;
|
|
26
|
+
exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.VisibilityType = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.SurfaceType = void 0;
|
|
27
|
+
exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -122,6 +122,18 @@ exports.DiscountType = {
|
|
|
122
122
|
Percentage: 'percentage',
|
|
123
123
|
OffPeak: 'off_peak'
|
|
124
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @export
|
|
128
|
+
* @enum {string}
|
|
129
|
+
*/
|
|
130
|
+
exports.EventBookingStatus = {
|
|
131
|
+
Pending: 'pending',
|
|
132
|
+
Active: 'active',
|
|
133
|
+
Paid: 'paid',
|
|
134
|
+
Cancelled: 'cancelled',
|
|
135
|
+
Expired: 'expired'
|
|
136
|
+
};
|
|
125
137
|
exports.EventResponseTypeEnum = {
|
|
126
138
|
Event: 'event',
|
|
127
139
|
Closure: 'closure'
|
|
@@ -183,6 +195,31 @@ exports.InvoiceStatus = {
|
|
|
183
195
|
Canceled: 'canceled',
|
|
184
196
|
Expired: 'expired'
|
|
185
197
|
};
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @export
|
|
201
|
+
* @enum {string}
|
|
202
|
+
*/
|
|
203
|
+
exports.InvoiceStatusSETUPPENDING = {
|
|
204
|
+
SetupPending: 'setup_pending'
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @export
|
|
209
|
+
* @enum {string}
|
|
210
|
+
*/
|
|
211
|
+
exports.InvoiceStatusSETUPSUCCESS = {
|
|
212
|
+
SetupSuccess: 'setup_success'
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @export
|
|
217
|
+
* @enum {string}
|
|
218
|
+
*/
|
|
219
|
+
exports.ParticipationType = {
|
|
220
|
+
Solo: 'solo',
|
|
221
|
+
Team: 'team'
|
|
222
|
+
};
|
|
186
223
|
/**
|
|
187
224
|
*
|
|
188
225
|
* @export
|
|
@@ -218,6 +255,12 @@ exports.PlayerCategoryId = {
|
|
|
218
255
|
MostActive: 'most-active',
|
|
219
256
|
Nearby: 'nearby'
|
|
220
257
|
};
|
|
258
|
+
exports.RecurringDefinitionResponseRecurringTypeEnum = {
|
|
259
|
+
Daily: 'daily',
|
|
260
|
+
Weekly: 'weekly',
|
|
261
|
+
Monthly: 'monthly',
|
|
262
|
+
Unique: 'unique'
|
|
263
|
+
};
|
|
221
264
|
exports.RegisterRequestBodyLocationTypeEnum = {
|
|
222
265
|
Point: 'Point'
|
|
223
266
|
};
|
|
@@ -393,9 +436,38 @@ exports.UpdateEventRequestVisibilityTypeEnum = {
|
|
|
393
436
|
Private: 'private',
|
|
394
437
|
Invitation: 'invitation'
|
|
395
438
|
};
|
|
439
|
+
exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = {
|
|
440
|
+
Public: 'public',
|
|
441
|
+
Private: 'private',
|
|
442
|
+
Invitation: 'invitation'
|
|
443
|
+
};
|
|
444
|
+
exports.UpdateRecurringDefinitionRequestTypeEnum = {
|
|
445
|
+
Event: 'event',
|
|
446
|
+
Closure: 'closure'
|
|
447
|
+
};
|
|
448
|
+
exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = {
|
|
449
|
+
Solo: 'solo',
|
|
450
|
+
Team: 'team'
|
|
451
|
+
};
|
|
452
|
+
exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = {
|
|
453
|
+
Daily: 'daily',
|
|
454
|
+
Weekly: 'weekly',
|
|
455
|
+
Monthly: 'monthly',
|
|
456
|
+
Unique: 'unique'
|
|
457
|
+
};
|
|
396
458
|
exports.UserLocationSummaryTypeEnum = {
|
|
397
459
|
Point: 'Point'
|
|
398
460
|
};
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @export
|
|
464
|
+
* @enum {string}
|
|
465
|
+
*/
|
|
466
|
+
exports.VisibilityType = {
|
|
467
|
+
Public: 'public',
|
|
468
|
+
Private: 'private',
|
|
469
|
+
Invitation: 'invitation'
|
|
470
|
+
};
|
|
399
471
|
/**
|
|
400
472
|
* BookingsApi - axios parameter creator
|
|
401
473
|
* @export
|
|
@@ -858,17 +930,17 @@ exports.BookingsManagerApi = BookingsManagerApi;
|
|
|
858
930
|
const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
859
931
|
return {
|
|
860
932
|
/**
|
|
861
|
-
* Check-in
|
|
933
|
+
* Check-in des joueurs only for club with payment features
|
|
862
934
|
* @param {string} bookingId
|
|
863
|
-
* @param {
|
|
935
|
+
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
864
936
|
* @param {*} [options] Override http request option.
|
|
865
937
|
* @throws {RequiredError}
|
|
866
938
|
*/
|
|
867
|
-
|
|
939
|
+
checkInPlayers: (bookingId_1, checkInPlayersRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayersRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayersRequest, options = {}) {
|
|
868
940
|
// verify required parameter 'bookingId' is not null or undefined
|
|
869
|
-
(0, common_1.assertParamExists)('
|
|
870
|
-
// verify required parameter '
|
|
871
|
-
(0, common_1.assertParamExists)('
|
|
941
|
+
(0, common_1.assertParamExists)('checkInPlayers', 'bookingId', bookingId);
|
|
942
|
+
// verify required parameter 'checkInPlayersRequest' is not null or undefined
|
|
943
|
+
(0, common_1.assertParamExists)('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest);
|
|
872
944
|
const localVarPath = `/api/bookings/{bookingId}/check-in`
|
|
873
945
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
874
946
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -887,7 +959,7 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
887
959
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
888
960
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
889
961
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
890
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
962
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayersRequest, localVarRequestOptions, configuration);
|
|
891
963
|
return {
|
|
892
964
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
893
965
|
options: localVarRequestOptions,
|
|
@@ -1138,18 +1210,18 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1138
1210
|
const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
|
|
1139
1211
|
return {
|
|
1140
1212
|
/**
|
|
1141
|
-
* Check-in
|
|
1213
|
+
* Check-in des joueurs only for club with payment features
|
|
1142
1214
|
* @param {string} bookingId
|
|
1143
|
-
* @param {
|
|
1215
|
+
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
1144
1216
|
* @param {*} [options] Override http request option.
|
|
1145
1217
|
* @throws {RequiredError}
|
|
1146
1218
|
*/
|
|
1147
|
-
|
|
1219
|
+
checkInPlayers(bookingId, checkInPlayersRequest, options) {
|
|
1148
1220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1149
1221
|
var _a, _b, _c;
|
|
1150
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1222
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
|
|
1151
1223
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1152
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.
|
|
1224
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.checkInPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1153
1225
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1154
1226
|
});
|
|
1155
1227
|
},
|
|
@@ -1273,13 +1345,13 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
1273
1345
|
const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
|
|
1274
1346
|
return {
|
|
1275
1347
|
/**
|
|
1276
|
-
* Check-in
|
|
1277
|
-
* @param {
|
|
1348
|
+
* Check-in des joueurs only for club with payment features
|
|
1349
|
+
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
1278
1350
|
* @param {*} [options] Override http request option.
|
|
1279
1351
|
* @throws {RequiredError}
|
|
1280
1352
|
*/
|
|
1281
|
-
|
|
1282
|
-
return localVarFp.
|
|
1353
|
+
checkInPlayers(requestParameters, options) {
|
|
1354
|
+
return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
|
|
1283
1355
|
},
|
|
1284
1356
|
/**
|
|
1285
1357
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
@@ -1355,14 +1427,14 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
|
|
|
1355
1427
|
*/
|
|
1356
1428
|
class BookingsStaffApi extends base_1.BaseAPI {
|
|
1357
1429
|
/**
|
|
1358
|
-
* Check-in
|
|
1359
|
-
* @param {
|
|
1430
|
+
* Check-in des joueurs only for club with payment features
|
|
1431
|
+
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
1360
1432
|
* @param {*} [options] Override http request option.
|
|
1361
1433
|
* @throws {RequiredError}
|
|
1362
1434
|
* @memberof BookingsStaffApi
|
|
1363
1435
|
*/
|
|
1364
|
-
|
|
1365
|
-
return (0, exports.BookingsStaffApiFp)(this.configuration).
|
|
1436
|
+
checkInPlayers(requestParameters, options) {
|
|
1437
|
+
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1366
1438
|
}
|
|
1367
1439
|
/**
|
|
1368
1440
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
@@ -6656,33 +6728,6 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6656
6728
|
options: localVarRequestOptions,
|
|
6657
6729
|
};
|
|
6658
6730
|
}),
|
|
6659
|
-
/**
|
|
6660
|
-
*
|
|
6661
|
-
* @param {*} [options] Override http request option.
|
|
6662
|
-
* @throws {RequiredError}
|
|
6663
|
-
*/
|
|
6664
|
-
getClubType: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6665
|
-
const localVarPath = `/api/clubs/clubType`;
|
|
6666
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6667
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6668
|
-
let baseOptions;
|
|
6669
|
-
if (configuration) {
|
|
6670
|
-
baseOptions = configuration.baseOptions;
|
|
6671
|
-
}
|
|
6672
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6673
|
-
const localVarHeaderParameter = {};
|
|
6674
|
-
const localVarQueryParameter = {};
|
|
6675
|
-
// authentication bearerAuth required
|
|
6676
|
-
// http bearer authentication required
|
|
6677
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6678
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6679
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6680
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6681
|
-
return {
|
|
6682
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6683
|
-
options: localVarRequestOptions,
|
|
6684
|
-
};
|
|
6685
|
-
}),
|
|
6686
6731
|
/**
|
|
6687
6732
|
* Récupère les terrains d\'un club
|
|
6688
6733
|
* @param {*} [options] Override http request option.
|
|
@@ -6928,20 +6973,6 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
6928
6973
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6929
6974
|
});
|
|
6930
6975
|
},
|
|
6931
|
-
/**
|
|
6932
|
-
*
|
|
6933
|
-
* @param {*} [options] Override http request option.
|
|
6934
|
-
* @throws {RequiredError}
|
|
6935
|
-
*/
|
|
6936
|
-
getClubType(options) {
|
|
6937
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6938
|
-
var _a, _b, _c;
|
|
6939
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubType(options);
|
|
6940
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6941
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.getClubType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6942
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6943
|
-
});
|
|
6944
|
-
},
|
|
6945
6976
|
/**
|
|
6946
6977
|
* Récupère les terrains d\'un club
|
|
6947
6978
|
* @param {*} [options] Override http request option.
|
|
@@ -7067,14 +7098,6 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7067
7098
|
getClubRoles(options) {
|
|
7068
7099
|
return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
|
|
7069
7100
|
},
|
|
7070
|
-
/**
|
|
7071
|
-
*
|
|
7072
|
-
* @param {*} [options] Override http request option.
|
|
7073
|
-
* @throws {RequiredError}
|
|
7074
|
-
*/
|
|
7075
|
-
getClubType(options) {
|
|
7076
|
-
return localVarFp.getClubType(options).then((request) => request(axios, basePath));
|
|
7077
|
-
},
|
|
7078
7101
|
/**
|
|
7079
7102
|
* Récupère les terrains d\'un club
|
|
7080
7103
|
* @param {*} [options] Override http request option.
|
|
@@ -7175,15 +7198,6 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
7175
7198
|
getClubRoles(options) {
|
|
7176
7199
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
7177
7200
|
}
|
|
7178
|
-
/**
|
|
7179
|
-
*
|
|
7180
|
-
* @param {*} [options] Override http request option.
|
|
7181
|
-
* @throws {RequiredError}
|
|
7182
|
-
* @memberof ClubsStaffApi
|
|
7183
|
-
*/
|
|
7184
|
-
getClubType(options) {
|
|
7185
|
-
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubType(options).then((request) => request(this.axios, this.basePath));
|
|
7186
|
-
}
|
|
7187
7201
|
/**
|
|
7188
7202
|
* Récupère les terrains d\'un club
|
|
7189
7203
|
* @param {*} [options] Override http request option.
|
|
@@ -7400,10 +7414,11 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
7400
7414
|
/**
|
|
7401
7415
|
* Get a specific event by ID
|
|
7402
7416
|
* @param {string} eventId
|
|
7417
|
+
* @param {string} [userId]
|
|
7403
7418
|
* @param {*} [options] Override http request option.
|
|
7404
7419
|
* @throws {RequiredError}
|
|
7405
7420
|
*/
|
|
7406
|
-
getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
7421
|
+
getEventById: (eventId_1, userId_1, ...args_1) => __awaiter(this, [eventId_1, userId_1, ...args_1], void 0, function* (eventId, userId, options = {}) {
|
|
7407
7422
|
// verify required parameter 'eventId' is not null or undefined
|
|
7408
7423
|
(0, common_1.assertParamExists)('getEventById', 'eventId', eventId);
|
|
7409
7424
|
const localVarPath = `/api/events/{eventId}`
|
|
@@ -7417,6 +7432,9 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
7417
7432
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7418
7433
|
const localVarHeaderParameter = {};
|
|
7419
7434
|
const localVarQueryParameter = {};
|
|
7435
|
+
if (userId !== undefined) {
|
|
7436
|
+
localVarQueryParameter['userId'] = userId;
|
|
7437
|
+
}
|
|
7420
7438
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7421
7439
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7422
7440
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7577,13 +7595,14 @@ const EventsApiFp = function (configuration) {
|
|
|
7577
7595
|
/**
|
|
7578
7596
|
* Get a specific event by ID
|
|
7579
7597
|
* @param {string} eventId
|
|
7598
|
+
* @param {string} [userId]
|
|
7580
7599
|
* @param {*} [options] Override http request option.
|
|
7581
7600
|
* @throws {RequiredError}
|
|
7582
7601
|
*/
|
|
7583
|
-
getEventById(eventId, options) {
|
|
7602
|
+
getEventById(eventId, userId, options) {
|
|
7584
7603
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7585
7604
|
var _a, _b, _c;
|
|
7586
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
|
|
7605
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, userId, options);
|
|
7587
7606
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7588
7607
|
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;
|
|
7589
7608
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7673,7 +7692,7 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
7673
7692
|
* @throws {RequiredError}
|
|
7674
7693
|
*/
|
|
7675
7694
|
getEventById(requestParameters, options) {
|
|
7676
|
-
return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
7695
|
+
return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
7677
7696
|
},
|
|
7678
7697
|
/**
|
|
7679
7698
|
* Get all published events for a club
|
|
@@ -7740,7 +7759,7 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
7740
7759
|
* @memberof EventsApi
|
|
7741
7760
|
*/
|
|
7742
7761
|
getEventById(requestParameters, options) {
|
|
7743
|
-
return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
7762
|
+
return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
7744
7763
|
}
|
|
7745
7764
|
/**
|
|
7746
7765
|
* Get all published events for a club
|
|
@@ -7890,6 +7909,37 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7890
7909
|
options: localVarRequestOptions,
|
|
7891
7910
|
};
|
|
7892
7911
|
}),
|
|
7912
|
+
/**
|
|
7913
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
7914
|
+
* @param {number} [days]
|
|
7915
|
+
* @param {*} [options] Override http request option.
|
|
7916
|
+
* @throws {RequiredError}
|
|
7917
|
+
*/
|
|
7918
|
+
getExpiringRecurringDefinitions: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
|
|
7919
|
+
const localVarPath = `/api/events/manager/recurring/expiring`;
|
|
7920
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7921
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7922
|
+
let baseOptions;
|
|
7923
|
+
if (configuration) {
|
|
7924
|
+
baseOptions = configuration.baseOptions;
|
|
7925
|
+
}
|
|
7926
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7927
|
+
const localVarHeaderParameter = {};
|
|
7928
|
+
const localVarQueryParameter = {};
|
|
7929
|
+
// authentication bearerAuth required
|
|
7930
|
+
// http bearer authentication required
|
|
7931
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7932
|
+
if (days !== undefined) {
|
|
7933
|
+
localVarQueryParameter['days'] = days;
|
|
7934
|
+
}
|
|
7935
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7936
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7937
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7938
|
+
return {
|
|
7939
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7940
|
+
options: localVarRequestOptions,
|
|
7941
|
+
};
|
|
7942
|
+
}),
|
|
7893
7943
|
/**
|
|
7894
7944
|
* Publish an event (manager)
|
|
7895
7945
|
* @param {string} eventId
|
|
@@ -8024,6 +8074,42 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
8024
8074
|
options: localVarRequestOptions,
|
|
8025
8075
|
};
|
|
8026
8076
|
}),
|
|
8077
|
+
/**
|
|
8078
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8079
|
+
* @param {string} definitionId
|
|
8080
|
+
* @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
|
|
8081
|
+
* @param {*} [options] Override http request option.
|
|
8082
|
+
* @throws {RequiredError}
|
|
8083
|
+
*/
|
|
8084
|
+
updateRecurringDefinition: (definitionId_1, updateRecurringDefinitionRequest_1, ...args_1) => __awaiter(this, [definitionId_1, updateRecurringDefinitionRequest_1, ...args_1], void 0, function* (definitionId, updateRecurringDefinitionRequest, options = {}) {
|
|
8085
|
+
// verify required parameter 'definitionId' is not null or undefined
|
|
8086
|
+
(0, common_1.assertParamExists)('updateRecurringDefinition', 'definitionId', definitionId);
|
|
8087
|
+
// verify required parameter 'updateRecurringDefinitionRequest' is not null or undefined
|
|
8088
|
+
(0, common_1.assertParamExists)('updateRecurringDefinition', 'updateRecurringDefinitionRequest', updateRecurringDefinitionRequest);
|
|
8089
|
+
const localVarPath = `/api/events/manager/recurring/{definitionId}`
|
|
8090
|
+
.replace(`{${"definitionId"}}`, encodeURIComponent(String(definitionId)));
|
|
8091
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8092
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8093
|
+
let baseOptions;
|
|
8094
|
+
if (configuration) {
|
|
8095
|
+
baseOptions = configuration.baseOptions;
|
|
8096
|
+
}
|
|
8097
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8098
|
+
const localVarHeaderParameter = {};
|
|
8099
|
+
const localVarQueryParameter = {};
|
|
8100
|
+
// authentication bearerAuth required
|
|
8101
|
+
// http bearer authentication required
|
|
8102
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8103
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8104
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8106
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8107
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateRecurringDefinitionRequest, localVarRequestOptions, configuration);
|
|
8108
|
+
return {
|
|
8109
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8110
|
+
options: localVarRequestOptions,
|
|
8111
|
+
};
|
|
8112
|
+
}),
|
|
8027
8113
|
};
|
|
8028
8114
|
};
|
|
8029
8115
|
exports.EventsManagerApiAxiosParamCreator = EventsManagerApiAxiosParamCreator;
|
|
@@ -8079,6 +8165,21 @@ const EventsManagerApiFp = function (configuration) {
|
|
|
8079
8165
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8080
8166
|
});
|
|
8081
8167
|
},
|
|
8168
|
+
/**
|
|
8169
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8170
|
+
* @param {number} [days]
|
|
8171
|
+
* @param {*} [options] Override http request option.
|
|
8172
|
+
* @throws {RequiredError}
|
|
8173
|
+
*/
|
|
8174
|
+
getExpiringRecurringDefinitions(days, options) {
|
|
8175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8176
|
+
var _a, _b, _c;
|
|
8177
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getExpiringRecurringDefinitions(days, options);
|
|
8178
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8179
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.getExpiringRecurringDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8180
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8181
|
+
});
|
|
8182
|
+
},
|
|
8082
8183
|
/**
|
|
8083
8184
|
* Publish an event (manager)
|
|
8084
8185
|
* @param {string} eventId
|
|
@@ -8141,6 +8242,22 @@ const EventsManagerApiFp = function (configuration) {
|
|
|
8141
8242
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8142
8243
|
});
|
|
8143
8244
|
},
|
|
8245
|
+
/**
|
|
8246
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8247
|
+
* @param {string} definitionId
|
|
8248
|
+
* @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
|
|
8249
|
+
* @param {*} [options] Override http request option.
|
|
8250
|
+
* @throws {RequiredError}
|
|
8251
|
+
*/
|
|
8252
|
+
updateRecurringDefinition(definitionId, updateRecurringDefinitionRequest, options) {
|
|
8253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8254
|
+
var _a, _b, _c;
|
|
8255
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRecurringDefinition(definitionId, updateRecurringDefinitionRequest, options);
|
|
8256
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8257
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.updateRecurringDefinition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8258
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8259
|
+
});
|
|
8260
|
+
},
|
|
8144
8261
|
};
|
|
8145
8262
|
};
|
|
8146
8263
|
exports.EventsManagerApiFp = EventsManagerApiFp;
|
|
@@ -8178,6 +8295,15 @@ const EventsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
8178
8295
|
deleteEvent(requestParameters, options) {
|
|
8179
8296
|
return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
8180
8297
|
},
|
|
8298
|
+
/**
|
|
8299
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8300
|
+
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
8301
|
+
* @param {*} [options] Override http request option.
|
|
8302
|
+
* @throws {RequiredError}
|
|
8303
|
+
*/
|
|
8304
|
+
getExpiringRecurringDefinitions(requestParameters = {}, options) {
|
|
8305
|
+
return localVarFp.getExpiringRecurringDefinitions(requestParameters.days, options).then((request) => request(axios, basePath));
|
|
8306
|
+
},
|
|
8181
8307
|
/**
|
|
8182
8308
|
* Publish an event (manager)
|
|
8183
8309
|
* @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
|
|
@@ -8214,6 +8340,15 @@ const EventsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
8214
8340
|
updatePublishedEvent(requestParameters, options) {
|
|
8215
8341
|
return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
8216
8342
|
},
|
|
8343
|
+
/**
|
|
8344
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8345
|
+
* @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
|
|
8346
|
+
* @param {*} [options] Override http request option.
|
|
8347
|
+
* @throws {RequiredError}
|
|
8348
|
+
*/
|
|
8349
|
+
updateRecurringDefinition(requestParameters, options) {
|
|
8350
|
+
return localVarFp.updateRecurringDefinition(requestParameters.definitionId, requestParameters.updateRecurringDefinitionRequest, options).then((request) => request(axios, basePath));
|
|
8351
|
+
},
|
|
8217
8352
|
};
|
|
8218
8353
|
};
|
|
8219
8354
|
exports.EventsManagerApiFactory = EventsManagerApiFactory;
|
|
@@ -8254,6 +8389,16 @@ class EventsManagerApi extends base_1.BaseAPI {
|
|
|
8254
8389
|
deleteEvent(requestParameters, options) {
|
|
8255
8390
|
return (0, exports.EventsManagerApiFp)(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
8256
8391
|
}
|
|
8392
|
+
/**
|
|
8393
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8394
|
+
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
8395
|
+
* @param {*} [options] Override http request option.
|
|
8396
|
+
* @throws {RequiredError}
|
|
8397
|
+
* @memberof EventsManagerApi
|
|
8398
|
+
*/
|
|
8399
|
+
getExpiringRecurringDefinitions(requestParameters = {}, options) {
|
|
8400
|
+
return (0, exports.EventsManagerApiFp)(this.configuration).getExpiringRecurringDefinitions(requestParameters.days, options).then((request) => request(this.axios, this.basePath));
|
|
8401
|
+
}
|
|
8257
8402
|
/**
|
|
8258
8403
|
* Publish an event (manager)
|
|
8259
8404
|
* @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
|
|
@@ -8294,6 +8439,16 @@ class EventsManagerApi extends base_1.BaseAPI {
|
|
|
8294
8439
|
updatePublishedEvent(requestParameters, options) {
|
|
8295
8440
|
return (0, exports.EventsManagerApiFp)(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8296
8441
|
}
|
|
8442
|
+
/**
|
|
8443
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8444
|
+
* @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
|
|
8445
|
+
* @param {*} [options] Override http request option.
|
|
8446
|
+
* @throws {RequiredError}
|
|
8447
|
+
* @memberof EventsManagerApi
|
|
8448
|
+
*/
|
|
8449
|
+
updateRecurringDefinition(requestParameters, options) {
|
|
8450
|
+
return (0, exports.EventsManagerApiFp)(this.configuration).updateRecurringDefinition(requestParameters.definitionId, requestParameters.updateRecurringDefinitionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8451
|
+
}
|
|
8297
8452
|
}
|
|
8298
8453
|
exports.EventsManagerApi = EventsManagerApi;
|
|
8299
8454
|
/**
|
|
@@ -9206,37 +9361,6 @@ exports.SportsPublicApi = SportsPublicApi;
|
|
|
9206
9361
|
*/
|
|
9207
9362
|
const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
9208
9363
|
return {
|
|
9209
|
-
/**
|
|
9210
|
-
* Supprime (archive) un plan par productId (manager)
|
|
9211
|
-
* @param {string} productId
|
|
9212
|
-
* @param {*} [options] Override http request option.
|
|
9213
|
-
* @throws {RequiredError}
|
|
9214
|
-
*/
|
|
9215
|
-
archivePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
|
|
9216
|
-
// verify required parameter 'productId' is not null or undefined
|
|
9217
|
-
(0, common_1.assertParamExists)('archivePlan', 'productId', productId);
|
|
9218
|
-
const localVarPath = `/api/subscriptions/plans/{productId}/archive`
|
|
9219
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
9220
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9221
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9222
|
-
let baseOptions;
|
|
9223
|
-
if (configuration) {
|
|
9224
|
-
baseOptions = configuration.baseOptions;
|
|
9225
|
-
}
|
|
9226
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
9227
|
-
const localVarHeaderParameter = {};
|
|
9228
|
-
const localVarQueryParameter = {};
|
|
9229
|
-
// authentication bearerAuth required
|
|
9230
|
-
// http bearer authentication required
|
|
9231
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9232
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9233
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9234
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9235
|
-
return {
|
|
9236
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9237
|
-
options: localVarRequestOptions,
|
|
9238
|
-
};
|
|
9239
|
-
}),
|
|
9240
9364
|
/**
|
|
9241
9365
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9242
9366
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -9270,7 +9394,7 @@ const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
9270
9394
|
};
|
|
9271
9395
|
}),
|
|
9272
9396
|
/**
|
|
9273
|
-
* Supprime un plan par productId (manager)
|
|
9397
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9274
9398
|
* @param {string} productId
|
|
9275
9399
|
* @param {*} [options] Override http request option.
|
|
9276
9400
|
* @throws {RequiredError}
|
|
@@ -9342,21 +9466,6 @@ exports.SubscriptionsManagerApiAxiosParamCreator = SubscriptionsManagerApiAxiosP
|
|
|
9342
9466
|
const SubscriptionsManagerApiFp = function (configuration) {
|
|
9343
9467
|
const localVarAxiosParamCreator = (0, exports.SubscriptionsManagerApiAxiosParamCreator)(configuration);
|
|
9344
9468
|
return {
|
|
9345
|
-
/**
|
|
9346
|
-
* Supprime (archive) un plan par productId (manager)
|
|
9347
|
-
* @param {string} productId
|
|
9348
|
-
* @param {*} [options] Override http request option.
|
|
9349
|
-
* @throws {RequiredError}
|
|
9350
|
-
*/
|
|
9351
|
-
archivePlan(productId, options) {
|
|
9352
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9353
|
-
var _a, _b, _c;
|
|
9354
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePlan(productId, options);
|
|
9355
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9356
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsManagerApi.archivePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9357
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9358
|
-
});
|
|
9359
|
-
},
|
|
9360
9469
|
/**
|
|
9361
9470
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9362
9471
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -9373,7 +9482,7 @@ const SubscriptionsManagerApiFp = function (configuration) {
|
|
|
9373
9482
|
});
|
|
9374
9483
|
},
|
|
9375
9484
|
/**
|
|
9376
|
-
* Supprime un plan par productId (manager)
|
|
9485
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9377
9486
|
* @param {string} productId
|
|
9378
9487
|
* @param {*} [options] Override http request option.
|
|
9379
9488
|
* @throws {RequiredError}
|
|
@@ -9412,15 +9521,6 @@ exports.SubscriptionsManagerApiFp = SubscriptionsManagerApiFp;
|
|
|
9412
9521
|
const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
|
|
9413
9522
|
const localVarFp = (0, exports.SubscriptionsManagerApiFp)(configuration);
|
|
9414
9523
|
return {
|
|
9415
|
-
/**
|
|
9416
|
-
* Supprime (archive) un plan par productId (manager)
|
|
9417
|
-
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
9418
|
-
* @param {*} [options] Override http request option.
|
|
9419
|
-
* @throws {RequiredError}
|
|
9420
|
-
*/
|
|
9421
|
-
archivePlan(requestParameters, options) {
|
|
9422
|
-
return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
9423
|
-
},
|
|
9424
9524
|
/**
|
|
9425
9525
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9426
9526
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -9431,7 +9531,7 @@ const SubscriptionsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
9431
9531
|
return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
9432
9532
|
},
|
|
9433
9533
|
/**
|
|
9434
|
-
* Supprime un plan par productId (manager)
|
|
9534
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9435
9535
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
9436
9536
|
* @param {*} [options] Override http request option.
|
|
9437
9537
|
* @throws {RequiredError}
|
|
@@ -9458,16 +9558,6 @@ exports.SubscriptionsManagerApiFactory = SubscriptionsManagerApiFactory;
|
|
|
9458
9558
|
* @extends {BaseAPI}
|
|
9459
9559
|
*/
|
|
9460
9560
|
class SubscriptionsManagerApi extends base_1.BaseAPI {
|
|
9461
|
-
/**
|
|
9462
|
-
* Supprime (archive) un plan par productId (manager)
|
|
9463
|
-
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
9464
|
-
* @param {*} [options] Override http request option.
|
|
9465
|
-
* @throws {RequiredError}
|
|
9466
|
-
* @memberof SubscriptionsManagerApi
|
|
9467
|
-
*/
|
|
9468
|
-
archivePlan(requestParameters, options) {
|
|
9469
|
-
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
9470
|
-
}
|
|
9471
9561
|
/**
|
|
9472
9562
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9473
9563
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -9479,7 +9569,7 @@ class SubscriptionsManagerApi extends base_1.BaseAPI {
|
|
|
9479
9569
|
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9480
9570
|
}
|
|
9481
9571
|
/**
|
|
9482
|
-
* Supprime un plan par productId (manager)
|
|
9572
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9483
9573
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
9484
9574
|
* @param {*} [options] Override http request option.
|
|
9485
9575
|
* @throws {RequiredError}
|
|
@@ -10735,6 +10825,41 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
10735
10825
|
options: localVarRequestOptions,
|
|
10736
10826
|
};
|
|
10737
10827
|
}),
|
|
10828
|
+
/**
|
|
10829
|
+
*
|
|
10830
|
+
* @param {number} [limit]
|
|
10831
|
+
* @param {number} [skip]
|
|
10832
|
+
* @param {*} [options] Override http request option.
|
|
10833
|
+
* @throws {RequiredError}
|
|
10834
|
+
*/
|
|
10835
|
+
getUserEvents: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
10836
|
+
const localVarPath = `/api/users/me/events`;
|
|
10837
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10838
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10839
|
+
let baseOptions;
|
|
10840
|
+
if (configuration) {
|
|
10841
|
+
baseOptions = configuration.baseOptions;
|
|
10842
|
+
}
|
|
10843
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10844
|
+
const localVarHeaderParameter = {};
|
|
10845
|
+
const localVarQueryParameter = {};
|
|
10846
|
+
// authentication bearerAuth required
|
|
10847
|
+
// http bearer authentication required
|
|
10848
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10849
|
+
if (limit !== undefined) {
|
|
10850
|
+
localVarQueryParameter['limit'] = limit;
|
|
10851
|
+
}
|
|
10852
|
+
if (skip !== undefined) {
|
|
10853
|
+
localVarQueryParameter['skip'] = skip;
|
|
10854
|
+
}
|
|
10855
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10856
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10857
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10858
|
+
return {
|
|
10859
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10860
|
+
options: localVarRequestOptions,
|
|
10861
|
+
};
|
|
10862
|
+
}),
|
|
10738
10863
|
/**
|
|
10739
10864
|
*
|
|
10740
10865
|
* @param {string} id
|
|
@@ -11595,6 +11720,22 @@ const UsersApiFp = function (configuration) {
|
|
|
11595
11720
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11596
11721
|
});
|
|
11597
11722
|
},
|
|
11723
|
+
/**
|
|
11724
|
+
*
|
|
11725
|
+
* @param {number} [limit]
|
|
11726
|
+
* @param {number} [skip]
|
|
11727
|
+
* @param {*} [options] Override http request option.
|
|
11728
|
+
* @throws {RequiredError}
|
|
11729
|
+
*/
|
|
11730
|
+
getUserEvents(limit, skip, options) {
|
|
11731
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11732
|
+
var _a, _b, _c;
|
|
11733
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserEvents(limit, skip, options);
|
|
11734
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11735
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11736
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11737
|
+
});
|
|
11738
|
+
},
|
|
11598
11739
|
/**
|
|
11599
11740
|
*
|
|
11600
11741
|
* @param {string} id
|
|
@@ -12037,6 +12178,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
12037
12178
|
getUserBookings(requestParameters = {}, options) {
|
|
12038
12179
|
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
12039
12180
|
},
|
|
12181
|
+
/**
|
|
12182
|
+
*
|
|
12183
|
+
* @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
|
|
12184
|
+
* @param {*} [options] Override http request option.
|
|
12185
|
+
* @throws {RequiredError}
|
|
12186
|
+
*/
|
|
12187
|
+
getUserEvents(requestParameters = {}, options) {
|
|
12188
|
+
return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
12189
|
+
},
|
|
12040
12190
|
/**
|
|
12041
12191
|
*
|
|
12042
12192
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -12380,6 +12530,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
12380
12530
|
getUserBookings(requestParameters = {}, options) {
|
|
12381
12531
|
return (0, exports.UsersApiFp)(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
12382
12532
|
}
|
|
12533
|
+
/**
|
|
12534
|
+
*
|
|
12535
|
+
* @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
|
|
12536
|
+
* @param {*} [options] Override http request option.
|
|
12537
|
+
* @throws {RequiredError}
|
|
12538
|
+
* @memberof UsersApi
|
|
12539
|
+
*/
|
|
12540
|
+
getUserEvents(requestParameters = {}, options) {
|
|
12541
|
+
return (0, exports.UsersApiFp)(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
12542
|
+
}
|
|
12383
12543
|
/**
|
|
12384
12544
|
*
|
|
12385
12545
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|