@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/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.129
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -116,6 +116,18 @@ export const DiscountType = {
|
|
|
116
116
|
Percentage: 'percentage',
|
|
117
117
|
OffPeak: 'off_peak'
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
* @enum {string}
|
|
123
|
+
*/
|
|
124
|
+
export const EventBookingStatus = {
|
|
125
|
+
Pending: 'pending',
|
|
126
|
+
Active: 'active',
|
|
127
|
+
Paid: 'paid',
|
|
128
|
+
Cancelled: 'cancelled',
|
|
129
|
+
Expired: 'expired'
|
|
130
|
+
};
|
|
119
131
|
export const EventResponseTypeEnum = {
|
|
120
132
|
Event: 'event',
|
|
121
133
|
Closure: 'closure'
|
|
@@ -177,6 +189,31 @@ export const InvoiceStatus = {
|
|
|
177
189
|
Canceled: 'canceled',
|
|
178
190
|
Expired: 'expired'
|
|
179
191
|
};
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @export
|
|
195
|
+
* @enum {string}
|
|
196
|
+
*/
|
|
197
|
+
export const InvoiceStatusSETUPPENDING = {
|
|
198
|
+
SetupPending: 'setup_pending'
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @export
|
|
203
|
+
* @enum {string}
|
|
204
|
+
*/
|
|
205
|
+
export const InvoiceStatusSETUPSUCCESS = {
|
|
206
|
+
SetupSuccess: 'setup_success'
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @export
|
|
211
|
+
* @enum {string}
|
|
212
|
+
*/
|
|
213
|
+
export const ParticipationType = {
|
|
214
|
+
Solo: 'solo',
|
|
215
|
+
Team: 'team'
|
|
216
|
+
};
|
|
180
217
|
/**
|
|
181
218
|
*
|
|
182
219
|
* @export
|
|
@@ -212,6 +249,12 @@ export const PlayerCategoryId = {
|
|
|
212
249
|
MostActive: 'most-active',
|
|
213
250
|
Nearby: 'nearby'
|
|
214
251
|
};
|
|
252
|
+
export const RecurringDefinitionResponseRecurringTypeEnum = {
|
|
253
|
+
Daily: 'daily',
|
|
254
|
+
Weekly: 'weekly',
|
|
255
|
+
Monthly: 'monthly',
|
|
256
|
+
Unique: 'unique'
|
|
257
|
+
};
|
|
215
258
|
export const RegisterRequestBodyLocationTypeEnum = {
|
|
216
259
|
Point: 'Point'
|
|
217
260
|
};
|
|
@@ -387,9 +430,38 @@ export const UpdateEventRequestVisibilityTypeEnum = {
|
|
|
387
430
|
Private: 'private',
|
|
388
431
|
Invitation: 'invitation'
|
|
389
432
|
};
|
|
433
|
+
export const UpdateRecurringDefinitionRequestVisibilityTypeEnum = {
|
|
434
|
+
Public: 'public',
|
|
435
|
+
Private: 'private',
|
|
436
|
+
Invitation: 'invitation'
|
|
437
|
+
};
|
|
438
|
+
export const UpdateRecurringDefinitionRequestTypeEnum = {
|
|
439
|
+
Event: 'event',
|
|
440
|
+
Closure: 'closure'
|
|
441
|
+
};
|
|
442
|
+
export const UpdateRecurringDefinitionRequestParticipationTypeEnum = {
|
|
443
|
+
Solo: 'solo',
|
|
444
|
+
Team: 'team'
|
|
445
|
+
};
|
|
446
|
+
export const UpdateRecurringDefinitionRequestRecurringTypeEnum = {
|
|
447
|
+
Daily: 'daily',
|
|
448
|
+
Weekly: 'weekly',
|
|
449
|
+
Monthly: 'monthly',
|
|
450
|
+
Unique: 'unique'
|
|
451
|
+
};
|
|
390
452
|
export const UserLocationSummaryTypeEnum = {
|
|
391
453
|
Point: 'Point'
|
|
392
454
|
};
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @export
|
|
458
|
+
* @enum {string}
|
|
459
|
+
*/
|
|
460
|
+
export const VisibilityType = {
|
|
461
|
+
Public: 'public',
|
|
462
|
+
Private: 'private',
|
|
463
|
+
Invitation: 'invitation'
|
|
464
|
+
};
|
|
393
465
|
/**
|
|
394
466
|
* BookingsApi - axios parameter creator
|
|
395
467
|
* @export
|
|
@@ -844,17 +916,17 @@ export class BookingsManagerApi extends BaseAPI {
|
|
|
844
916
|
export const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
845
917
|
return {
|
|
846
918
|
/**
|
|
847
|
-
* Check-in
|
|
919
|
+
* Check-in des joueurs only for club with payment features
|
|
848
920
|
* @param {string} bookingId
|
|
849
|
-
* @param {
|
|
921
|
+
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
850
922
|
* @param {*} [options] Override http request option.
|
|
851
923
|
* @throws {RequiredError}
|
|
852
924
|
*/
|
|
853
|
-
|
|
925
|
+
checkInPlayers: (bookingId_1, checkInPlayersRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayersRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayersRequest, options = {}) {
|
|
854
926
|
// verify required parameter 'bookingId' is not null or undefined
|
|
855
|
-
assertParamExists('
|
|
856
|
-
// verify required parameter '
|
|
857
|
-
assertParamExists('
|
|
927
|
+
assertParamExists('checkInPlayers', 'bookingId', bookingId);
|
|
928
|
+
// verify required parameter 'checkInPlayersRequest' is not null or undefined
|
|
929
|
+
assertParamExists('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest);
|
|
858
930
|
const localVarPath = `/api/bookings/{bookingId}/check-in`
|
|
859
931
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
860
932
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -873,7 +945,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
873
945
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
874
946
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
875
947
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
876
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
948
|
+
localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration);
|
|
877
949
|
return {
|
|
878
950
|
url: toPathString(localVarUrlObj),
|
|
879
951
|
options: localVarRequestOptions,
|
|
@@ -1123,18 +1195,18 @@ export const BookingsStaffApiFp = function (configuration) {
|
|
|
1123
1195
|
const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
|
|
1124
1196
|
return {
|
|
1125
1197
|
/**
|
|
1126
|
-
* Check-in
|
|
1198
|
+
* Check-in des joueurs only for club with payment features
|
|
1127
1199
|
* @param {string} bookingId
|
|
1128
|
-
* @param {
|
|
1200
|
+
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
1129
1201
|
* @param {*} [options] Override http request option.
|
|
1130
1202
|
* @throws {RequiredError}
|
|
1131
1203
|
*/
|
|
1132
|
-
|
|
1204
|
+
checkInPlayers(bookingId, checkInPlayersRequest, options) {
|
|
1133
1205
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1134
1206
|
var _a, _b, _c;
|
|
1135
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1207
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
|
|
1136
1208
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1137
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.
|
|
1209
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.checkInPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1138
1210
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1139
1211
|
});
|
|
1140
1212
|
},
|
|
@@ -1257,13 +1329,13 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
|
|
|
1257
1329
|
const localVarFp = BookingsStaffApiFp(configuration);
|
|
1258
1330
|
return {
|
|
1259
1331
|
/**
|
|
1260
|
-
* Check-in
|
|
1261
|
-
* @param {
|
|
1332
|
+
* Check-in des joueurs only for club with payment features
|
|
1333
|
+
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
1262
1334
|
* @param {*} [options] Override http request option.
|
|
1263
1335
|
* @throws {RequiredError}
|
|
1264
1336
|
*/
|
|
1265
|
-
|
|
1266
|
-
return localVarFp.
|
|
1337
|
+
checkInPlayers(requestParameters, options) {
|
|
1338
|
+
return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
|
|
1267
1339
|
},
|
|
1268
1340
|
/**
|
|
1269
1341
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
@@ -1338,14 +1410,14 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
|
|
|
1338
1410
|
*/
|
|
1339
1411
|
export class BookingsStaffApi extends BaseAPI {
|
|
1340
1412
|
/**
|
|
1341
|
-
* Check-in
|
|
1342
|
-
* @param {
|
|
1413
|
+
* Check-in des joueurs only for club with payment features
|
|
1414
|
+
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
1343
1415
|
* @param {*} [options] Override http request option.
|
|
1344
1416
|
* @throws {RequiredError}
|
|
1345
1417
|
* @memberof BookingsStaffApi
|
|
1346
1418
|
*/
|
|
1347
|
-
|
|
1348
|
-
return BookingsStaffApiFp(this.configuration).
|
|
1419
|
+
checkInPlayers(requestParameters, options) {
|
|
1420
|
+
return BookingsStaffApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1349
1421
|
}
|
|
1350
1422
|
/**
|
|
1351
1423
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
@@ -6598,33 +6670,6 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6598
6670
|
options: localVarRequestOptions,
|
|
6599
6671
|
};
|
|
6600
6672
|
}),
|
|
6601
|
-
/**
|
|
6602
|
-
*
|
|
6603
|
-
* @param {*} [options] Override http request option.
|
|
6604
|
-
* @throws {RequiredError}
|
|
6605
|
-
*/
|
|
6606
|
-
getClubType: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6607
|
-
const localVarPath = `/api/clubs/clubType`;
|
|
6608
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6609
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6610
|
-
let baseOptions;
|
|
6611
|
-
if (configuration) {
|
|
6612
|
-
baseOptions = configuration.baseOptions;
|
|
6613
|
-
}
|
|
6614
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6615
|
-
const localVarHeaderParameter = {};
|
|
6616
|
-
const localVarQueryParameter = {};
|
|
6617
|
-
// authentication bearerAuth required
|
|
6618
|
-
// http bearer authentication required
|
|
6619
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6620
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6621
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6622
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6623
|
-
return {
|
|
6624
|
-
url: toPathString(localVarUrlObj),
|
|
6625
|
-
options: localVarRequestOptions,
|
|
6626
|
-
};
|
|
6627
|
-
}),
|
|
6628
6673
|
/**
|
|
6629
6674
|
* Récupère les terrains d\'un club
|
|
6630
6675
|
* @param {*} [options] Override http request option.
|
|
@@ -6869,20 +6914,6 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
6869
6914
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6870
6915
|
});
|
|
6871
6916
|
},
|
|
6872
|
-
/**
|
|
6873
|
-
*
|
|
6874
|
-
* @param {*} [options] Override http request option.
|
|
6875
|
-
* @throws {RequiredError}
|
|
6876
|
-
*/
|
|
6877
|
-
getClubType(options) {
|
|
6878
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6879
|
-
var _a, _b, _c;
|
|
6880
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubType(options);
|
|
6881
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6882
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getClubType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6883
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6884
|
-
});
|
|
6885
|
-
},
|
|
6886
6917
|
/**
|
|
6887
6918
|
* Récupère les terrains d\'un club
|
|
6888
6919
|
* @param {*} [options] Override http request option.
|
|
@@ -7007,14 +7038,6 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7007
7038
|
getClubRoles(options) {
|
|
7008
7039
|
return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
|
|
7009
7040
|
},
|
|
7010
|
-
/**
|
|
7011
|
-
*
|
|
7012
|
-
* @param {*} [options] Override http request option.
|
|
7013
|
-
* @throws {RequiredError}
|
|
7014
|
-
*/
|
|
7015
|
-
getClubType(options) {
|
|
7016
|
-
return localVarFp.getClubType(options).then((request) => request(axios, basePath));
|
|
7017
|
-
},
|
|
7018
7041
|
/**
|
|
7019
7042
|
* Récupère les terrains d\'un club
|
|
7020
7043
|
* @param {*} [options] Override http request option.
|
|
@@ -7114,15 +7137,6 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
7114
7137
|
getClubRoles(options) {
|
|
7115
7138
|
return ClubsStaffApiFp(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
7116
7139
|
}
|
|
7117
|
-
/**
|
|
7118
|
-
*
|
|
7119
|
-
* @param {*} [options] Override http request option.
|
|
7120
|
-
* @throws {RequiredError}
|
|
7121
|
-
* @memberof ClubsStaffApi
|
|
7122
|
-
*/
|
|
7123
|
-
getClubType(options) {
|
|
7124
|
-
return ClubsStaffApiFp(this.configuration).getClubType(options).then((request) => request(this.axios, this.basePath));
|
|
7125
|
-
}
|
|
7126
7140
|
/**
|
|
7127
7141
|
* Récupère les terrains d\'un club
|
|
7128
7142
|
* @param {*} [options] Override http request option.
|
|
@@ -7334,10 +7348,11 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
7334
7348
|
/**
|
|
7335
7349
|
* Get a specific event by ID
|
|
7336
7350
|
* @param {string} eventId
|
|
7351
|
+
* @param {string} [userId]
|
|
7337
7352
|
* @param {*} [options] Override http request option.
|
|
7338
7353
|
* @throws {RequiredError}
|
|
7339
7354
|
*/
|
|
7340
|
-
getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
7355
|
+
getEventById: (eventId_1, userId_1, ...args_1) => __awaiter(this, [eventId_1, userId_1, ...args_1], void 0, function* (eventId, userId, options = {}) {
|
|
7341
7356
|
// verify required parameter 'eventId' is not null or undefined
|
|
7342
7357
|
assertParamExists('getEventById', 'eventId', eventId);
|
|
7343
7358
|
const localVarPath = `/api/events/{eventId}`
|
|
@@ -7351,6 +7366,9 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
7351
7366
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7352
7367
|
const localVarHeaderParameter = {};
|
|
7353
7368
|
const localVarQueryParameter = {};
|
|
7369
|
+
if (userId !== undefined) {
|
|
7370
|
+
localVarQueryParameter['userId'] = userId;
|
|
7371
|
+
}
|
|
7354
7372
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7355
7373
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7356
7374
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7510,13 +7528,14 @@ export const EventsApiFp = function (configuration) {
|
|
|
7510
7528
|
/**
|
|
7511
7529
|
* Get a specific event by ID
|
|
7512
7530
|
* @param {string} eventId
|
|
7531
|
+
* @param {string} [userId]
|
|
7513
7532
|
* @param {*} [options] Override http request option.
|
|
7514
7533
|
* @throws {RequiredError}
|
|
7515
7534
|
*/
|
|
7516
|
-
getEventById(eventId, options) {
|
|
7535
|
+
getEventById(eventId, userId, options) {
|
|
7517
7536
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7518
7537
|
var _a, _b, _c;
|
|
7519
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
|
|
7538
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, userId, options);
|
|
7520
7539
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7521
7540
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getEventById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7522
7541
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7605,7 +7624,7 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
7605
7624
|
* @throws {RequiredError}
|
|
7606
7625
|
*/
|
|
7607
7626
|
getEventById(requestParameters, options) {
|
|
7608
|
-
return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
7627
|
+
return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
7609
7628
|
},
|
|
7610
7629
|
/**
|
|
7611
7630
|
* Get all published events for a club
|
|
@@ -7671,7 +7690,7 @@ export class EventsApi extends BaseAPI {
|
|
|
7671
7690
|
* @memberof EventsApi
|
|
7672
7691
|
*/
|
|
7673
7692
|
getEventById(requestParameters, options) {
|
|
7674
|
-
return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
7693
|
+
return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
7675
7694
|
}
|
|
7676
7695
|
/**
|
|
7677
7696
|
* Get all published events for a club
|
|
@@ -7820,6 +7839,37 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7820
7839
|
options: localVarRequestOptions,
|
|
7821
7840
|
};
|
|
7822
7841
|
}),
|
|
7842
|
+
/**
|
|
7843
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
7844
|
+
* @param {number} [days]
|
|
7845
|
+
* @param {*} [options] Override http request option.
|
|
7846
|
+
* @throws {RequiredError}
|
|
7847
|
+
*/
|
|
7848
|
+
getExpiringRecurringDefinitions: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
|
|
7849
|
+
const localVarPath = `/api/events/manager/recurring/expiring`;
|
|
7850
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7851
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7852
|
+
let baseOptions;
|
|
7853
|
+
if (configuration) {
|
|
7854
|
+
baseOptions = configuration.baseOptions;
|
|
7855
|
+
}
|
|
7856
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7857
|
+
const localVarHeaderParameter = {};
|
|
7858
|
+
const localVarQueryParameter = {};
|
|
7859
|
+
// authentication bearerAuth required
|
|
7860
|
+
// http bearer authentication required
|
|
7861
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7862
|
+
if (days !== undefined) {
|
|
7863
|
+
localVarQueryParameter['days'] = days;
|
|
7864
|
+
}
|
|
7865
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7866
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7867
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7868
|
+
return {
|
|
7869
|
+
url: toPathString(localVarUrlObj),
|
|
7870
|
+
options: localVarRequestOptions,
|
|
7871
|
+
};
|
|
7872
|
+
}),
|
|
7823
7873
|
/**
|
|
7824
7874
|
* Publish an event (manager)
|
|
7825
7875
|
* @param {string} eventId
|
|
@@ -7954,6 +8004,42 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7954
8004
|
options: localVarRequestOptions,
|
|
7955
8005
|
};
|
|
7956
8006
|
}),
|
|
8007
|
+
/**
|
|
8008
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8009
|
+
* @param {string} definitionId
|
|
8010
|
+
* @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
|
|
8011
|
+
* @param {*} [options] Override http request option.
|
|
8012
|
+
* @throws {RequiredError}
|
|
8013
|
+
*/
|
|
8014
|
+
updateRecurringDefinition: (definitionId_1, updateRecurringDefinitionRequest_1, ...args_1) => __awaiter(this, [definitionId_1, updateRecurringDefinitionRequest_1, ...args_1], void 0, function* (definitionId, updateRecurringDefinitionRequest, options = {}) {
|
|
8015
|
+
// verify required parameter 'definitionId' is not null or undefined
|
|
8016
|
+
assertParamExists('updateRecurringDefinition', 'definitionId', definitionId);
|
|
8017
|
+
// verify required parameter 'updateRecurringDefinitionRequest' is not null or undefined
|
|
8018
|
+
assertParamExists('updateRecurringDefinition', 'updateRecurringDefinitionRequest', updateRecurringDefinitionRequest);
|
|
8019
|
+
const localVarPath = `/api/events/manager/recurring/{definitionId}`
|
|
8020
|
+
.replace(`{${"definitionId"}}`, encodeURIComponent(String(definitionId)));
|
|
8021
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8022
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8023
|
+
let baseOptions;
|
|
8024
|
+
if (configuration) {
|
|
8025
|
+
baseOptions = configuration.baseOptions;
|
|
8026
|
+
}
|
|
8027
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8028
|
+
const localVarHeaderParameter = {};
|
|
8029
|
+
const localVarQueryParameter = {};
|
|
8030
|
+
// authentication bearerAuth required
|
|
8031
|
+
// http bearer authentication required
|
|
8032
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8033
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8034
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8035
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8036
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8037
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateRecurringDefinitionRequest, localVarRequestOptions, configuration);
|
|
8038
|
+
return {
|
|
8039
|
+
url: toPathString(localVarUrlObj),
|
|
8040
|
+
options: localVarRequestOptions,
|
|
8041
|
+
};
|
|
8042
|
+
}),
|
|
7957
8043
|
};
|
|
7958
8044
|
};
|
|
7959
8045
|
/**
|
|
@@ -8008,6 +8094,21 @@ export const EventsManagerApiFp = function (configuration) {
|
|
|
8008
8094
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8009
8095
|
});
|
|
8010
8096
|
},
|
|
8097
|
+
/**
|
|
8098
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8099
|
+
* @param {number} [days]
|
|
8100
|
+
* @param {*} [options] Override http request option.
|
|
8101
|
+
* @throws {RequiredError}
|
|
8102
|
+
*/
|
|
8103
|
+
getExpiringRecurringDefinitions(days, options) {
|
|
8104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8105
|
+
var _a, _b, _c;
|
|
8106
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getExpiringRecurringDefinitions(days, options);
|
|
8107
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8108
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.getExpiringRecurringDefinitions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8109
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8110
|
+
});
|
|
8111
|
+
},
|
|
8011
8112
|
/**
|
|
8012
8113
|
* Publish an event (manager)
|
|
8013
8114
|
* @param {string} eventId
|
|
@@ -8070,6 +8171,22 @@ export const EventsManagerApiFp = function (configuration) {
|
|
|
8070
8171
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8071
8172
|
});
|
|
8072
8173
|
},
|
|
8174
|
+
/**
|
|
8175
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8176
|
+
* @param {string} definitionId
|
|
8177
|
+
* @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
|
|
8178
|
+
* @param {*} [options] Override http request option.
|
|
8179
|
+
* @throws {RequiredError}
|
|
8180
|
+
*/
|
|
8181
|
+
updateRecurringDefinition(definitionId, updateRecurringDefinitionRequest, options) {
|
|
8182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8183
|
+
var _a, _b, _c;
|
|
8184
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRecurringDefinition(definitionId, updateRecurringDefinitionRequest, options);
|
|
8185
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8186
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.updateRecurringDefinition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8187
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8188
|
+
});
|
|
8189
|
+
},
|
|
8073
8190
|
};
|
|
8074
8191
|
};
|
|
8075
8192
|
/**
|
|
@@ -8106,6 +8223,15 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
8106
8223
|
deleteEvent(requestParameters, options) {
|
|
8107
8224
|
return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
8108
8225
|
},
|
|
8226
|
+
/**
|
|
8227
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8228
|
+
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
8229
|
+
* @param {*} [options] Override http request option.
|
|
8230
|
+
* @throws {RequiredError}
|
|
8231
|
+
*/
|
|
8232
|
+
getExpiringRecurringDefinitions(requestParameters = {}, options) {
|
|
8233
|
+
return localVarFp.getExpiringRecurringDefinitions(requestParameters.days, options).then((request) => request(axios, basePath));
|
|
8234
|
+
},
|
|
8109
8235
|
/**
|
|
8110
8236
|
* Publish an event (manager)
|
|
8111
8237
|
* @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
|
|
@@ -8142,6 +8268,15 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
8142
8268
|
updatePublishedEvent(requestParameters, options) {
|
|
8143
8269
|
return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
8144
8270
|
},
|
|
8271
|
+
/**
|
|
8272
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8273
|
+
* @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
|
|
8274
|
+
* @param {*} [options] Override http request option.
|
|
8275
|
+
* @throws {RequiredError}
|
|
8276
|
+
*/
|
|
8277
|
+
updateRecurringDefinition(requestParameters, options) {
|
|
8278
|
+
return localVarFp.updateRecurringDefinition(requestParameters.definitionId, requestParameters.updateRecurringDefinitionRequest, options).then((request) => request(axios, basePath));
|
|
8279
|
+
},
|
|
8145
8280
|
};
|
|
8146
8281
|
};
|
|
8147
8282
|
/**
|
|
@@ -8181,6 +8316,16 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
8181
8316
|
deleteEvent(requestParameters, options) {
|
|
8182
8317
|
return EventsManagerApiFp(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
8183
8318
|
}
|
|
8319
|
+
/**
|
|
8320
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
8321
|
+
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
8322
|
+
* @param {*} [options] Override http request option.
|
|
8323
|
+
* @throws {RequiredError}
|
|
8324
|
+
* @memberof EventsManagerApi
|
|
8325
|
+
*/
|
|
8326
|
+
getExpiringRecurringDefinitions(requestParameters = {}, options) {
|
|
8327
|
+
return EventsManagerApiFp(this.configuration).getExpiringRecurringDefinitions(requestParameters.days, options).then((request) => request(this.axios, this.basePath));
|
|
8328
|
+
}
|
|
8184
8329
|
/**
|
|
8185
8330
|
* Publish an event (manager)
|
|
8186
8331
|
* @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
|
|
@@ -8221,6 +8366,16 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
8221
8366
|
updatePublishedEvent(requestParameters, options) {
|
|
8222
8367
|
return EventsManagerApiFp(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8223
8368
|
}
|
|
8369
|
+
/**
|
|
8370
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
8371
|
+
* @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
|
|
8372
|
+
* @param {*} [options] Override http request option.
|
|
8373
|
+
* @throws {RequiredError}
|
|
8374
|
+
* @memberof EventsManagerApi
|
|
8375
|
+
*/
|
|
8376
|
+
updateRecurringDefinition(requestParameters, options) {
|
|
8377
|
+
return EventsManagerApiFp(this.configuration).updateRecurringDefinition(requestParameters.definitionId, requestParameters.updateRecurringDefinitionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8378
|
+
}
|
|
8224
8379
|
}
|
|
8225
8380
|
/**
|
|
8226
8381
|
* EventsStaffApi - axios parameter creator
|
|
@@ -9116,37 +9271,6 @@ export class SportsPublicApi extends BaseAPI {
|
|
|
9116
9271
|
*/
|
|
9117
9272
|
export const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
9118
9273
|
return {
|
|
9119
|
-
/**
|
|
9120
|
-
* Supprime (archive) un plan par productId (manager)
|
|
9121
|
-
* @param {string} productId
|
|
9122
|
-
* @param {*} [options] Override http request option.
|
|
9123
|
-
* @throws {RequiredError}
|
|
9124
|
-
*/
|
|
9125
|
-
archivePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
|
|
9126
|
-
// verify required parameter 'productId' is not null or undefined
|
|
9127
|
-
assertParamExists('archivePlan', 'productId', productId);
|
|
9128
|
-
const localVarPath = `/api/subscriptions/plans/{productId}/archive`
|
|
9129
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
9130
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9131
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9132
|
-
let baseOptions;
|
|
9133
|
-
if (configuration) {
|
|
9134
|
-
baseOptions = configuration.baseOptions;
|
|
9135
|
-
}
|
|
9136
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
9137
|
-
const localVarHeaderParameter = {};
|
|
9138
|
-
const localVarQueryParameter = {};
|
|
9139
|
-
// authentication bearerAuth required
|
|
9140
|
-
// http bearer authentication required
|
|
9141
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
9142
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9143
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9144
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9145
|
-
return {
|
|
9146
|
-
url: toPathString(localVarUrlObj),
|
|
9147
|
-
options: localVarRequestOptions,
|
|
9148
|
-
};
|
|
9149
|
-
}),
|
|
9150
9274
|
/**
|
|
9151
9275
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9152
9276
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -9180,7 +9304,7 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration)
|
|
|
9180
9304
|
};
|
|
9181
9305
|
}),
|
|
9182
9306
|
/**
|
|
9183
|
-
* Supprime un plan par productId (manager)
|
|
9307
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9184
9308
|
* @param {string} productId
|
|
9185
9309
|
* @param {*} [options] Override http request option.
|
|
9186
9310
|
* @throws {RequiredError}
|
|
@@ -9251,21 +9375,6 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration)
|
|
|
9251
9375
|
export const SubscriptionsManagerApiFp = function (configuration) {
|
|
9252
9376
|
const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration);
|
|
9253
9377
|
return {
|
|
9254
|
-
/**
|
|
9255
|
-
* Supprime (archive) un plan par productId (manager)
|
|
9256
|
-
* @param {string} productId
|
|
9257
|
-
* @param {*} [options] Override http request option.
|
|
9258
|
-
* @throws {RequiredError}
|
|
9259
|
-
*/
|
|
9260
|
-
archivePlan(productId, options) {
|
|
9261
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9262
|
-
var _a, _b, _c;
|
|
9263
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePlan(productId, options);
|
|
9264
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9265
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.archivePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9266
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9267
|
-
});
|
|
9268
|
-
},
|
|
9269
9378
|
/**
|
|
9270
9379
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9271
9380
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -9282,7 +9391,7 @@ export const SubscriptionsManagerApiFp = function (configuration) {
|
|
|
9282
9391
|
});
|
|
9283
9392
|
},
|
|
9284
9393
|
/**
|
|
9285
|
-
* Supprime un plan par productId (manager)
|
|
9394
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9286
9395
|
* @param {string} productId
|
|
9287
9396
|
* @param {*} [options] Override http request option.
|
|
9288
9397
|
* @throws {RequiredError}
|
|
@@ -9320,15 +9429,6 @@ export const SubscriptionsManagerApiFp = function (configuration) {
|
|
|
9320
9429
|
export const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
|
|
9321
9430
|
const localVarFp = SubscriptionsManagerApiFp(configuration);
|
|
9322
9431
|
return {
|
|
9323
|
-
/**
|
|
9324
|
-
* Supprime (archive) un plan par productId (manager)
|
|
9325
|
-
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
9326
|
-
* @param {*} [options] Override http request option.
|
|
9327
|
-
* @throws {RequiredError}
|
|
9328
|
-
*/
|
|
9329
|
-
archivePlan(requestParameters, options) {
|
|
9330
|
-
return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
9331
|
-
},
|
|
9332
9432
|
/**
|
|
9333
9433
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9334
9434
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -9339,7 +9439,7 @@ export const SubscriptionsManagerApiFactory = function (configuration, basePath,
|
|
|
9339
9439
|
return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
9340
9440
|
},
|
|
9341
9441
|
/**
|
|
9342
|
-
* Supprime un plan par productId (manager)
|
|
9442
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9343
9443
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
9344
9444
|
* @param {*} [options] Override http request option.
|
|
9345
9445
|
* @throws {RequiredError}
|
|
@@ -9365,16 +9465,6 @@ export const SubscriptionsManagerApiFactory = function (configuration, basePath,
|
|
|
9365
9465
|
* @extends {BaseAPI}
|
|
9366
9466
|
*/
|
|
9367
9467
|
export class SubscriptionsManagerApi extends BaseAPI {
|
|
9368
|
-
/**
|
|
9369
|
-
* Supprime (archive) un plan par productId (manager)
|
|
9370
|
-
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
9371
|
-
* @param {*} [options] Override http request option.
|
|
9372
|
-
* @throws {RequiredError}
|
|
9373
|
-
* @memberof SubscriptionsManagerApi
|
|
9374
|
-
*/
|
|
9375
|
-
archivePlan(requestParameters, options) {
|
|
9376
|
-
return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
9377
|
-
}
|
|
9378
9468
|
/**
|
|
9379
9469
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9380
9470
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -9386,7 +9476,7 @@ export class SubscriptionsManagerApi extends BaseAPI {
|
|
|
9386
9476
|
return SubscriptionsManagerApiFp(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9387
9477
|
}
|
|
9388
9478
|
/**
|
|
9389
|
-
* Supprime un plan par productId (manager)
|
|
9479
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9390
9480
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
9391
9481
|
* @param {*} [options] Override http request option.
|
|
9392
9482
|
* @throws {RequiredError}
|
|
@@ -10625,6 +10715,41 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
10625
10715
|
options: localVarRequestOptions,
|
|
10626
10716
|
};
|
|
10627
10717
|
}),
|
|
10718
|
+
/**
|
|
10719
|
+
*
|
|
10720
|
+
* @param {number} [limit]
|
|
10721
|
+
* @param {number} [skip]
|
|
10722
|
+
* @param {*} [options] Override http request option.
|
|
10723
|
+
* @throws {RequiredError}
|
|
10724
|
+
*/
|
|
10725
|
+
getUserEvents: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
10726
|
+
const localVarPath = `/api/users/me/events`;
|
|
10727
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10728
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10729
|
+
let baseOptions;
|
|
10730
|
+
if (configuration) {
|
|
10731
|
+
baseOptions = configuration.baseOptions;
|
|
10732
|
+
}
|
|
10733
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10734
|
+
const localVarHeaderParameter = {};
|
|
10735
|
+
const localVarQueryParameter = {};
|
|
10736
|
+
// authentication bearerAuth required
|
|
10737
|
+
// http bearer authentication required
|
|
10738
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10739
|
+
if (limit !== undefined) {
|
|
10740
|
+
localVarQueryParameter['limit'] = limit;
|
|
10741
|
+
}
|
|
10742
|
+
if (skip !== undefined) {
|
|
10743
|
+
localVarQueryParameter['skip'] = skip;
|
|
10744
|
+
}
|
|
10745
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10746
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10747
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10748
|
+
return {
|
|
10749
|
+
url: toPathString(localVarUrlObj),
|
|
10750
|
+
options: localVarRequestOptions,
|
|
10751
|
+
};
|
|
10752
|
+
}),
|
|
10628
10753
|
/**
|
|
10629
10754
|
*
|
|
10630
10755
|
* @param {string} id
|
|
@@ -11484,6 +11609,22 @@ export const UsersApiFp = function (configuration) {
|
|
|
11484
11609
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11485
11610
|
});
|
|
11486
11611
|
},
|
|
11612
|
+
/**
|
|
11613
|
+
*
|
|
11614
|
+
* @param {number} [limit]
|
|
11615
|
+
* @param {number} [skip]
|
|
11616
|
+
* @param {*} [options] Override http request option.
|
|
11617
|
+
* @throws {RequiredError}
|
|
11618
|
+
*/
|
|
11619
|
+
getUserEvents(limit, skip, options) {
|
|
11620
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11621
|
+
var _a, _b, _c;
|
|
11622
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserEvents(limit, skip, options);
|
|
11623
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11624
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11625
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11626
|
+
});
|
|
11627
|
+
},
|
|
11487
11628
|
/**
|
|
11488
11629
|
*
|
|
11489
11630
|
* @param {string} id
|
|
@@ -11925,6 +12066,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
11925
12066
|
getUserBookings(requestParameters = {}, options) {
|
|
11926
12067
|
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
11927
12068
|
},
|
|
12069
|
+
/**
|
|
12070
|
+
*
|
|
12071
|
+
* @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
|
|
12072
|
+
* @param {*} [options] Override http request option.
|
|
12073
|
+
* @throws {RequiredError}
|
|
12074
|
+
*/
|
|
12075
|
+
getUserEvents(requestParameters = {}, options) {
|
|
12076
|
+
return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
12077
|
+
},
|
|
11928
12078
|
/**
|
|
11929
12079
|
*
|
|
11930
12080
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -12267,6 +12417,16 @@ export class UsersApi extends BaseAPI {
|
|
|
12267
12417
|
getUserBookings(requestParameters = {}, options) {
|
|
12268
12418
|
return UsersApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
12269
12419
|
}
|
|
12420
|
+
/**
|
|
12421
|
+
*
|
|
12422
|
+
* @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
|
|
12423
|
+
* @param {*} [options] Override http request option.
|
|
12424
|
+
* @throws {RequiredError}
|
|
12425
|
+
* @memberof UsersApi
|
|
12426
|
+
*/
|
|
12427
|
+
getUserEvents(requestParameters = {}, options) {
|
|
12428
|
+
return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
12429
|
+
}
|
|
12270
12430
|
/**
|
|
12271
12431
|
*
|
|
12272
12432
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|