@tennac-booking/sdk 1.0.31 → 1.0.33
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 +4 -12
- package/README.md +10 -28
- package/api.ts +526 -2323
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +333 -1368
- package/dist/api.js +286 -1555
- 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 +333 -1368
- package/dist/esm/api.js +283 -1536
- 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/ClubMember.md +3 -13
- package/docs/{DeleteSlotsResponse.md → CourtDeleteResponse.md} +3 -3
- package/docs/{ClubsResponse.md → GetClubPlayers200Response.md} +5 -5
- package/docs/LoginResponse.md +2 -0
- package/docs/ManagerClubCourtsApi.md +112 -0
- package/docs/ManagerSportsApi.md +0 -55
- package/docs/StaffClubAnalyticsApi.md +45 -0
- package/docs/StaffClubsApi.md +47 -0
- package/docs/UpdateCourtRequest.md +38 -0
- package/docs/UserStaffResponse.md +30 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AdminClubAnalyticsApi.md +0 -249
- package/docs/AdminClubSlotsApi.md +0 -182
- package/docs/AdminClubSubscriptionsApi.md +0 -394
- package/docs/AdminClubsApi.md +0 -170
- package/docs/CreateClubRequest.md +0 -40
- package/docs/CreateClubSettingsRequest.md +0 -28
- package/docs/DeleteClub200Response.md +0 -20
- package/docs/DeleteClubSettingsRequest.md +0 -20
- package/docs/GenerateSlotsResponse.md +0 -20
- package/docs/UsersResponse.md +0 -22
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pandook API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.33
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi =
|
|
25
|
+
exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.UpdateCourtRequestSurfaceEnum = exports.UpdateCourtRequestStatusEnum = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.EventBookingStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.ClubMemberRoleEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
|
|
26
|
+
exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffEventsApi = exports.StaffEventsApiFactory = exports.StaffEventsApiFp = exports.StaffEventsApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerEventsApi = exports.ManagerEventsApiFactory = exports.ManagerEventsApiFp = exports.ManagerEventsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = void 0;
|
|
27
|
+
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -56,6 +56,11 @@ exports.BookingStatus = {
|
|
|
56
56
|
exports.CancelBookingResponseBookingStatusEnum = {
|
|
57
57
|
Cancelled: 'cancelled'
|
|
58
58
|
};
|
|
59
|
+
exports.ClubMemberRoleEnum = {
|
|
60
|
+
Admin: 'admin',
|
|
61
|
+
Manager: 'manager',
|
|
62
|
+
Staff: 'staff'
|
|
63
|
+
};
|
|
59
64
|
exports.CourtResponseStatusEnum = {
|
|
60
65
|
Available: 'available',
|
|
61
66
|
Unavailable: 'unavailable'
|
|
@@ -135,1487 +140,15 @@ exports.SubscriptionResponseStatusEnum = {
|
|
|
135
140
|
Trialing: 'trialing',
|
|
136
141
|
Unpaid: 'unpaid'
|
|
137
142
|
};
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
* @param {string} id ID du club
|
|
148
|
-
* @param {string} date Date (YYYY-MM-DD)
|
|
149
|
-
* @param {*} [options] Override http request option.
|
|
150
|
-
* @throws {RequiredError}
|
|
151
|
-
*/
|
|
152
|
-
getDailyTurnOverAdmin: (id_1, date_1, ...args_1) => __awaiter(this, [id_1, date_1, ...args_1], void 0, function* (id, date, options = {}) {
|
|
153
|
-
// verify required parameter 'id' is not null or undefined
|
|
154
|
-
(0, common_1.assertParamExists)('getDailyTurnOverAdmin', 'id', id);
|
|
155
|
-
// verify required parameter 'date' is not null or undefined
|
|
156
|
-
(0, common_1.assertParamExists)('getDailyTurnOverAdmin', 'date', date);
|
|
157
|
-
const localVarPath = `/api/clubs/{id}/turnover/daily`
|
|
158
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
159
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
160
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
161
|
-
let baseOptions;
|
|
162
|
-
if (configuration) {
|
|
163
|
-
baseOptions = configuration.baseOptions;
|
|
164
|
-
}
|
|
165
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
166
|
-
const localVarHeaderParameter = {};
|
|
167
|
-
const localVarQueryParameter = {};
|
|
168
|
-
// authentication bearerAuth required
|
|
169
|
-
// http bearer authentication required
|
|
170
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
171
|
-
if (date !== undefined) {
|
|
172
|
-
localVarQueryParameter['date'] = (date instanceof Date) ?
|
|
173
|
-
date.toISOString().substring(0, 10) :
|
|
174
|
-
date;
|
|
175
|
-
}
|
|
176
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
177
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
178
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
179
|
-
return {
|
|
180
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
181
|
-
options: localVarRequestOptions,
|
|
182
|
-
};
|
|
183
|
-
}),
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
187
|
-
* @param {string} id ID du club
|
|
188
|
-
* @param {number} [page]
|
|
189
|
-
* @param {number} [limit]
|
|
190
|
-
* @param {GetInvoicesAdminStatusEnum} [status]
|
|
191
|
-
* @param {string} [startDate]
|
|
192
|
-
* @param {string} [endDate]
|
|
193
|
-
* @param {*} [options] Override http request option.
|
|
194
|
-
* @throws {RequiredError}
|
|
195
|
-
*/
|
|
196
|
-
getInvoicesAdmin: (id_1, page_1, limit_1, status_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [id_1, page_1, limit_1, status_1, startDate_1, endDate_1, ...args_1], void 0, function* (id, page, limit, status, startDate, endDate, options = {}) {
|
|
197
|
-
// verify required parameter 'id' is not null or undefined
|
|
198
|
-
(0, common_1.assertParamExists)('getInvoicesAdmin', 'id', id);
|
|
199
|
-
const localVarPath = `/api/clubs/{id}/invoices`
|
|
200
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
201
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
203
|
-
let baseOptions;
|
|
204
|
-
if (configuration) {
|
|
205
|
-
baseOptions = configuration.baseOptions;
|
|
206
|
-
}
|
|
207
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
208
|
-
const localVarHeaderParameter = {};
|
|
209
|
-
const localVarQueryParameter = {};
|
|
210
|
-
// authentication bearerAuth required
|
|
211
|
-
// http bearer authentication required
|
|
212
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
213
|
-
if (page !== undefined) {
|
|
214
|
-
localVarQueryParameter['page'] = page;
|
|
215
|
-
}
|
|
216
|
-
if (limit !== undefined) {
|
|
217
|
-
localVarQueryParameter['limit'] = limit;
|
|
218
|
-
}
|
|
219
|
-
if (status !== undefined) {
|
|
220
|
-
localVarQueryParameter['status'] = status;
|
|
221
|
-
}
|
|
222
|
-
if (startDate !== undefined) {
|
|
223
|
-
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
224
|
-
startDate.toISOString() :
|
|
225
|
-
startDate;
|
|
226
|
-
}
|
|
227
|
-
if (endDate !== undefined) {
|
|
228
|
-
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
229
|
-
endDate.toISOString() :
|
|
230
|
-
endDate;
|
|
231
|
-
}
|
|
232
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
233
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
234
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
235
|
-
return {
|
|
236
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
237
|
-
options: localVarRequestOptions,
|
|
238
|
-
};
|
|
239
|
-
}),
|
|
240
|
-
/**
|
|
241
|
-
*
|
|
242
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
243
|
-
* @param {string} id ID du club
|
|
244
|
-
* @param {number} year Année
|
|
245
|
-
* @param {number} month Mois (1-12)
|
|
246
|
-
* @param {*} [options] Override http request option.
|
|
247
|
-
* @throws {RequiredError}
|
|
248
|
-
*/
|
|
249
|
-
getMonthlyTurnOverAdmin: (id_1, year_1, month_1, ...args_1) => __awaiter(this, [id_1, year_1, month_1, ...args_1], void 0, function* (id, year, month, options = {}) {
|
|
250
|
-
// verify required parameter 'id' is not null or undefined
|
|
251
|
-
(0, common_1.assertParamExists)('getMonthlyTurnOverAdmin', 'id', id);
|
|
252
|
-
// verify required parameter 'year' is not null or undefined
|
|
253
|
-
(0, common_1.assertParamExists)('getMonthlyTurnOverAdmin', 'year', year);
|
|
254
|
-
// verify required parameter 'month' is not null or undefined
|
|
255
|
-
(0, common_1.assertParamExists)('getMonthlyTurnOverAdmin', 'month', month);
|
|
256
|
-
const localVarPath = `/api/clubs/{id}/turnover/monthly`
|
|
257
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
258
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
259
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
260
|
-
let baseOptions;
|
|
261
|
-
if (configuration) {
|
|
262
|
-
baseOptions = configuration.baseOptions;
|
|
263
|
-
}
|
|
264
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
265
|
-
const localVarHeaderParameter = {};
|
|
266
|
-
const localVarQueryParameter = {};
|
|
267
|
-
// authentication bearerAuth required
|
|
268
|
-
// http bearer authentication required
|
|
269
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
270
|
-
if (year !== undefined) {
|
|
271
|
-
localVarQueryParameter['year'] = year;
|
|
272
|
-
}
|
|
273
|
-
if (month !== undefined) {
|
|
274
|
-
localVarQueryParameter['month'] = month;
|
|
275
|
-
}
|
|
276
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
277
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
278
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
279
|
-
return {
|
|
280
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
281
|
-
options: localVarRequestOptions,
|
|
282
|
-
};
|
|
283
|
-
}),
|
|
284
|
-
/**
|
|
285
|
-
*
|
|
286
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
287
|
-
* @param {string} id ID du club
|
|
288
|
-
* @param {number} year Année
|
|
289
|
-
* @param {*} [options] Override http request option.
|
|
290
|
-
* @throws {RequiredError}
|
|
291
|
-
*/
|
|
292
|
-
getYearlyTurnOverAdmin: (id_1, year_1, ...args_1) => __awaiter(this, [id_1, year_1, ...args_1], void 0, function* (id, year, options = {}) {
|
|
293
|
-
// verify required parameter 'id' is not null or undefined
|
|
294
|
-
(0, common_1.assertParamExists)('getYearlyTurnOverAdmin', 'id', id);
|
|
295
|
-
// verify required parameter 'year' is not null or undefined
|
|
296
|
-
(0, common_1.assertParamExists)('getYearlyTurnOverAdmin', 'year', year);
|
|
297
|
-
const localVarPath = `/api/clubs/{id}/turnover/yearly`
|
|
298
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
299
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
300
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
301
|
-
let baseOptions;
|
|
302
|
-
if (configuration) {
|
|
303
|
-
baseOptions = configuration.baseOptions;
|
|
304
|
-
}
|
|
305
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
306
|
-
const localVarHeaderParameter = {};
|
|
307
|
-
const localVarQueryParameter = {};
|
|
308
|
-
// authentication bearerAuth required
|
|
309
|
-
// http bearer authentication required
|
|
310
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
311
|
-
if (year !== undefined) {
|
|
312
|
-
localVarQueryParameter['year'] = year;
|
|
313
|
-
}
|
|
314
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
315
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
316
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
317
|
-
return {
|
|
318
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
319
|
-
options: localVarRequestOptions,
|
|
320
|
-
};
|
|
321
|
-
}),
|
|
322
|
-
};
|
|
323
|
-
};
|
|
324
|
-
exports.AdminClubAnalyticsApiAxiosParamCreator = AdminClubAnalyticsApiAxiosParamCreator;
|
|
325
|
-
/**
|
|
326
|
-
* AdminClubAnalyticsApi - functional programming interface
|
|
327
|
-
* @export
|
|
328
|
-
*/
|
|
329
|
-
const AdminClubAnalyticsApiFp = function (configuration) {
|
|
330
|
-
const localVarAxiosParamCreator = (0, exports.AdminClubAnalyticsApiAxiosParamCreator)(configuration);
|
|
331
|
-
return {
|
|
332
|
-
/**
|
|
333
|
-
*
|
|
334
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
335
|
-
* @param {string} id ID du club
|
|
336
|
-
* @param {string} date Date (YYYY-MM-DD)
|
|
337
|
-
* @param {*} [options] Override http request option.
|
|
338
|
-
* @throws {RequiredError}
|
|
339
|
-
*/
|
|
340
|
-
getDailyTurnOverAdmin(id, date, options) {
|
|
341
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
342
|
-
var _a, _b, _c;
|
|
343
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOverAdmin(id, date, options);
|
|
344
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
345
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubAnalyticsApi.getDailyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
346
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
347
|
-
});
|
|
348
|
-
},
|
|
349
|
-
/**
|
|
350
|
-
*
|
|
351
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
352
|
-
* @param {string} id ID du club
|
|
353
|
-
* @param {number} [page]
|
|
354
|
-
* @param {number} [limit]
|
|
355
|
-
* @param {GetInvoicesAdminStatusEnum} [status]
|
|
356
|
-
* @param {string} [startDate]
|
|
357
|
-
* @param {string} [endDate]
|
|
358
|
-
* @param {*} [options] Override http request option.
|
|
359
|
-
* @throws {RequiredError}
|
|
360
|
-
*/
|
|
361
|
-
getInvoicesAdmin(id, page, limit, status, startDate, endDate, options) {
|
|
362
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
363
|
-
var _a, _b, _c;
|
|
364
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoicesAdmin(id, page, limit, status, startDate, endDate, options);
|
|
365
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
366
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubAnalyticsApi.getInvoicesAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
367
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
368
|
-
});
|
|
369
|
-
},
|
|
370
|
-
/**
|
|
371
|
-
*
|
|
372
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
373
|
-
* @param {string} id ID du club
|
|
374
|
-
* @param {number} year Année
|
|
375
|
-
* @param {number} month Mois (1-12)
|
|
376
|
-
* @param {*} [options] Override http request option.
|
|
377
|
-
* @throws {RequiredError}
|
|
378
|
-
*/
|
|
379
|
-
getMonthlyTurnOverAdmin(id, year, month, options) {
|
|
380
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
-
var _a, _b, _c;
|
|
382
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOverAdmin(id, year, month, options);
|
|
383
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
384
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubAnalyticsApi.getMonthlyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
385
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
386
|
-
});
|
|
387
|
-
},
|
|
388
|
-
/**
|
|
389
|
-
*
|
|
390
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
391
|
-
* @param {string} id ID du club
|
|
392
|
-
* @param {number} year Année
|
|
393
|
-
* @param {*} [options] Override http request option.
|
|
394
|
-
* @throws {RequiredError}
|
|
395
|
-
*/
|
|
396
|
-
getYearlyTurnOverAdmin(id, year, options) {
|
|
397
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
398
|
-
var _a, _b, _c;
|
|
399
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOverAdmin(id, year, options);
|
|
400
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
401
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubAnalyticsApi.getYearlyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
402
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
403
|
-
});
|
|
404
|
-
},
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
exports.AdminClubAnalyticsApiFp = AdminClubAnalyticsApiFp;
|
|
408
|
-
/**
|
|
409
|
-
* AdminClubAnalyticsApi - factory interface
|
|
410
|
-
* @export
|
|
411
|
-
*/
|
|
412
|
-
const AdminClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
413
|
-
const localVarFp = (0, exports.AdminClubAnalyticsApiFp)(configuration);
|
|
414
|
-
return {
|
|
415
|
-
/**
|
|
416
|
-
*
|
|
417
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
418
|
-
* @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
|
|
419
|
-
* @param {*} [options] Override http request option.
|
|
420
|
-
* @throws {RequiredError}
|
|
421
|
-
*/
|
|
422
|
-
getDailyTurnOverAdmin(requestParameters, options) {
|
|
423
|
-
return localVarFp.getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
|
|
424
|
-
},
|
|
425
|
-
/**
|
|
426
|
-
*
|
|
427
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
428
|
-
* @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
|
|
429
|
-
* @param {*} [options] Override http request option.
|
|
430
|
-
* @throws {RequiredError}
|
|
431
|
-
*/
|
|
432
|
-
getInvoicesAdmin(requestParameters, options) {
|
|
433
|
-
return localVarFp.getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
434
|
-
},
|
|
435
|
-
/**
|
|
436
|
-
*
|
|
437
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
438
|
-
* @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
439
|
-
* @param {*} [options] Override http request option.
|
|
440
|
-
* @throws {RequiredError}
|
|
441
|
-
*/
|
|
442
|
-
getMonthlyTurnOverAdmin(requestParameters, options) {
|
|
443
|
-
return localVarFp.getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
|
|
444
|
-
},
|
|
445
|
-
/**
|
|
446
|
-
*
|
|
447
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
448
|
-
* @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
449
|
-
* @param {*} [options] Override http request option.
|
|
450
|
-
* @throws {RequiredError}
|
|
451
|
-
*/
|
|
452
|
-
getYearlyTurnOverAdmin(requestParameters, options) {
|
|
453
|
-
return localVarFp.getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
|
|
454
|
-
},
|
|
455
|
-
};
|
|
456
|
-
};
|
|
457
|
-
exports.AdminClubAnalyticsApiFactory = AdminClubAnalyticsApiFactory;
|
|
458
|
-
/**
|
|
459
|
-
* AdminClubAnalyticsApi - object-oriented interface
|
|
460
|
-
* @export
|
|
461
|
-
* @class AdminClubAnalyticsApi
|
|
462
|
-
* @extends {BaseAPI}
|
|
463
|
-
*/
|
|
464
|
-
class AdminClubAnalyticsApi extends base_1.BaseAPI {
|
|
465
|
-
/**
|
|
466
|
-
*
|
|
467
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
468
|
-
* @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
|
|
469
|
-
* @param {*} [options] Override http request option.
|
|
470
|
-
* @throws {RequiredError}
|
|
471
|
-
* @memberof AdminClubAnalyticsApi
|
|
472
|
-
*/
|
|
473
|
-
getDailyTurnOverAdmin(requestParameters, options) {
|
|
474
|
-
return (0, exports.AdminClubAnalyticsApiFp)(this.configuration).getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
475
|
-
}
|
|
476
|
-
/**
|
|
477
|
-
*
|
|
478
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
479
|
-
* @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
|
|
480
|
-
* @param {*} [options] Override http request option.
|
|
481
|
-
* @throws {RequiredError}
|
|
482
|
-
* @memberof AdminClubAnalyticsApi
|
|
483
|
-
*/
|
|
484
|
-
getInvoicesAdmin(requestParameters, options) {
|
|
485
|
-
return (0, exports.AdminClubAnalyticsApiFp)(this.configuration).getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
*
|
|
489
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
490
|
-
* @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
491
|
-
* @param {*} [options] Override http request option.
|
|
492
|
-
* @throws {RequiredError}
|
|
493
|
-
* @memberof AdminClubAnalyticsApi
|
|
494
|
-
*/
|
|
495
|
-
getMonthlyTurnOverAdmin(requestParameters, options) {
|
|
496
|
-
return (0, exports.AdminClubAnalyticsApiFp)(this.configuration).getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
|
|
497
|
-
}
|
|
498
|
-
/**
|
|
499
|
-
*
|
|
500
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
501
|
-
* @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
502
|
-
* @param {*} [options] Override http request option.
|
|
503
|
-
* @throws {RequiredError}
|
|
504
|
-
* @memberof AdminClubAnalyticsApi
|
|
505
|
-
*/
|
|
506
|
-
getYearlyTurnOverAdmin(requestParameters, options) {
|
|
507
|
-
return (0, exports.AdminClubAnalyticsApiFp)(this.configuration).getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
exports.AdminClubAnalyticsApi = AdminClubAnalyticsApi;
|
|
511
|
-
/**
|
|
512
|
-
* @export
|
|
513
|
-
*/
|
|
514
|
-
exports.GetInvoicesAdminStatusEnum = {
|
|
515
|
-
Pending: 'pending',
|
|
516
|
-
Paid: 'paid',
|
|
517
|
-
Failed: 'failed',
|
|
518
|
-
Authorized: 'authorized',
|
|
519
|
-
Canceled: 'canceled',
|
|
520
|
-
Expired: 'expired'
|
|
521
|
-
};
|
|
522
|
-
/**
|
|
523
|
-
* AdminClubSlotsApi - axios parameter creator
|
|
524
|
-
* @export
|
|
525
|
-
*/
|
|
526
|
-
const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
527
|
-
return {
|
|
528
|
-
/**
|
|
529
|
-
*
|
|
530
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
531
|
-
* @param {string} id ID du club
|
|
532
|
-
* @param {string} start Date de début (format ISO)
|
|
533
|
-
* @param {string} end Date de fin (format ISO)
|
|
534
|
-
* @param {*} [options] Override http request option.
|
|
535
|
-
* @throws {RequiredError}
|
|
536
|
-
*/
|
|
537
|
-
deleteSlotsByClubInRangeByID: (id_1, start_1, end_1, ...args_1) => __awaiter(this, [id_1, start_1, end_1, ...args_1], void 0, function* (id, start, end, options = {}) {
|
|
538
|
-
// verify required parameter 'id' is not null or undefined
|
|
539
|
-
(0, common_1.assertParamExists)('deleteSlotsByClubInRangeByID', 'id', id);
|
|
540
|
-
// verify required parameter 'start' is not null or undefined
|
|
541
|
-
(0, common_1.assertParamExists)('deleteSlotsByClubInRangeByID', 'start', start);
|
|
542
|
-
// verify required parameter 'end' is not null or undefined
|
|
543
|
-
(0, common_1.assertParamExists)('deleteSlotsByClubInRangeByID', 'end', end);
|
|
544
|
-
const localVarPath = `/api/clubs/{id}/slots`
|
|
545
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
546
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
547
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
548
|
-
let baseOptions;
|
|
549
|
-
if (configuration) {
|
|
550
|
-
baseOptions = configuration.baseOptions;
|
|
551
|
-
}
|
|
552
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
553
|
-
const localVarHeaderParameter = {};
|
|
554
|
-
const localVarQueryParameter = {};
|
|
555
|
-
// authentication bearerAuth required
|
|
556
|
-
// http bearer authentication required
|
|
557
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
558
|
-
if (start !== undefined) {
|
|
559
|
-
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
560
|
-
start.toISOString() :
|
|
561
|
-
start;
|
|
562
|
-
}
|
|
563
|
-
if (end !== undefined) {
|
|
564
|
-
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
565
|
-
end.toISOString() :
|
|
566
|
-
end;
|
|
567
|
-
}
|
|
568
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
569
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
570
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
571
|
-
return {
|
|
572
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
573
|
-
options: localVarRequestOptions,
|
|
574
|
-
};
|
|
575
|
-
}),
|
|
576
|
-
/**
|
|
577
|
-
*
|
|
578
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
579
|
-
* @param {string} id ID du club
|
|
580
|
-
* @param {*} [options] Override http request option.
|
|
581
|
-
* @throws {RequiredError}
|
|
582
|
-
*/
|
|
583
|
-
generateSlotsForNextThreeWeeks: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
584
|
-
// verify required parameter 'id' is not null or undefined
|
|
585
|
-
(0, common_1.assertParamExists)('generateSlotsForNextThreeWeeks', 'id', id);
|
|
586
|
-
const localVarPath = `/api/clubs/{id}/generate-slots`
|
|
587
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
588
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
589
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
590
|
-
let baseOptions;
|
|
591
|
-
if (configuration) {
|
|
592
|
-
baseOptions = configuration.baseOptions;
|
|
593
|
-
}
|
|
594
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
595
|
-
const localVarHeaderParameter = {};
|
|
596
|
-
const localVarQueryParameter = {};
|
|
597
|
-
// authentication bearerAuth required
|
|
598
|
-
// http bearer authentication required
|
|
599
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
600
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
601
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
602
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
603
|
-
return {
|
|
604
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
605
|
-
options: localVarRequestOptions,
|
|
606
|
-
};
|
|
607
|
-
}),
|
|
608
|
-
/**
|
|
609
|
-
*
|
|
610
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
611
|
-
* @param {string} id ID du club
|
|
612
|
-
* @param {string} [start] Date de début (format ISO)
|
|
613
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
614
|
-
* @param {*} [options] Override http request option.
|
|
615
|
-
* @throws {RequiredError}
|
|
616
|
-
*/
|
|
617
|
-
getSlotsByClubAdmin: (id_1, start_1, end_1, ...args_1) => __awaiter(this, [id_1, start_1, end_1, ...args_1], void 0, function* (id, start, end, options = {}) {
|
|
618
|
-
// verify required parameter 'id' is not null or undefined
|
|
619
|
-
(0, common_1.assertParamExists)('getSlotsByClubAdmin', 'id', id);
|
|
620
|
-
const localVarPath = `/api/clubs/{id}/slots`
|
|
621
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
622
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
623
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
624
|
-
let baseOptions;
|
|
625
|
-
if (configuration) {
|
|
626
|
-
baseOptions = configuration.baseOptions;
|
|
627
|
-
}
|
|
628
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
629
|
-
const localVarHeaderParameter = {};
|
|
630
|
-
const localVarQueryParameter = {};
|
|
631
|
-
// authentication bearerAuth required
|
|
632
|
-
// http bearer authentication required
|
|
633
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
634
|
-
if (start !== undefined) {
|
|
635
|
-
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
636
|
-
start.toISOString() :
|
|
637
|
-
start;
|
|
638
|
-
}
|
|
639
|
-
if (end !== undefined) {
|
|
640
|
-
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
641
|
-
end.toISOString() :
|
|
642
|
-
end;
|
|
643
|
-
}
|
|
644
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
645
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
646
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
647
|
-
return {
|
|
648
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
649
|
-
options: localVarRequestOptions,
|
|
650
|
-
};
|
|
651
|
-
}),
|
|
652
|
-
};
|
|
653
|
-
};
|
|
654
|
-
exports.AdminClubSlotsApiAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator;
|
|
655
|
-
/**
|
|
656
|
-
* AdminClubSlotsApi - functional programming interface
|
|
657
|
-
* @export
|
|
658
|
-
*/
|
|
659
|
-
const AdminClubSlotsApiFp = function (configuration) {
|
|
660
|
-
const localVarAxiosParamCreator = (0, exports.AdminClubSlotsApiAxiosParamCreator)(configuration);
|
|
661
|
-
return {
|
|
662
|
-
/**
|
|
663
|
-
*
|
|
664
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
665
|
-
* @param {string} id ID du club
|
|
666
|
-
* @param {string} start Date de début (format ISO)
|
|
667
|
-
* @param {string} end Date de fin (format ISO)
|
|
668
|
-
* @param {*} [options] Override http request option.
|
|
669
|
-
* @throws {RequiredError}
|
|
670
|
-
*/
|
|
671
|
-
deleteSlotsByClubInRangeByID(id, start, end, options) {
|
|
672
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
673
|
-
var _a, _b, _c;
|
|
674
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRangeByID(id, start, end, options);
|
|
675
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
676
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSlotsApi.deleteSlotsByClubInRangeByID']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
677
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
678
|
-
});
|
|
679
|
-
},
|
|
680
|
-
/**
|
|
681
|
-
*
|
|
682
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
683
|
-
* @param {string} id ID du club
|
|
684
|
-
* @param {*} [options] Override http request option.
|
|
685
|
-
* @throws {RequiredError}
|
|
686
|
-
*/
|
|
687
|
-
generateSlotsForNextThreeWeeks(id, options) {
|
|
688
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
689
|
-
var _a, _b, _c;
|
|
690
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
|
|
691
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
692
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
693
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
694
|
-
});
|
|
695
|
-
},
|
|
696
|
-
/**
|
|
697
|
-
*
|
|
698
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
699
|
-
* @param {string} id ID du club
|
|
700
|
-
* @param {string} [start] Date de début (format ISO)
|
|
701
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
702
|
-
* @param {*} [options] Override http request option.
|
|
703
|
-
* @throws {RequiredError}
|
|
704
|
-
*/
|
|
705
|
-
getSlotsByClubAdmin(id, start, end, options) {
|
|
706
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
707
|
-
var _a, _b, _c;
|
|
708
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClubAdmin(id, start, end, options);
|
|
709
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
710
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSlotsApi.getSlotsByClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
711
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
712
|
-
});
|
|
713
|
-
},
|
|
714
|
-
};
|
|
715
|
-
};
|
|
716
|
-
exports.AdminClubSlotsApiFp = AdminClubSlotsApiFp;
|
|
717
|
-
/**
|
|
718
|
-
* AdminClubSlotsApi - factory interface
|
|
719
|
-
* @export
|
|
720
|
-
*/
|
|
721
|
-
const AdminClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
722
|
-
const localVarFp = (0, exports.AdminClubSlotsApiFp)(configuration);
|
|
723
|
-
return {
|
|
724
|
-
/**
|
|
725
|
-
*
|
|
726
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
727
|
-
* @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
|
|
728
|
-
* @param {*} [options] Override http request option.
|
|
729
|
-
* @throws {RequiredError}
|
|
730
|
-
*/
|
|
731
|
-
deleteSlotsByClubInRangeByID(requestParameters, options) {
|
|
732
|
-
return localVarFp.deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
733
|
-
},
|
|
734
|
-
/**
|
|
735
|
-
*
|
|
736
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
737
|
-
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
738
|
-
* @param {*} [options] Override http request option.
|
|
739
|
-
* @throws {RequiredError}
|
|
740
|
-
*/
|
|
741
|
-
generateSlotsForNextThreeWeeks(requestParameters, options) {
|
|
742
|
-
return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
743
|
-
},
|
|
744
|
-
/**
|
|
745
|
-
*
|
|
746
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
747
|
-
* @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
|
|
748
|
-
* @param {*} [options] Override http request option.
|
|
749
|
-
* @throws {RequiredError}
|
|
750
|
-
*/
|
|
751
|
-
getSlotsByClubAdmin(requestParameters, options) {
|
|
752
|
-
return localVarFp.getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
753
|
-
},
|
|
754
|
-
};
|
|
755
|
-
};
|
|
756
|
-
exports.AdminClubSlotsApiFactory = AdminClubSlotsApiFactory;
|
|
757
|
-
/**
|
|
758
|
-
* AdminClubSlotsApi - object-oriented interface
|
|
759
|
-
* @export
|
|
760
|
-
* @class AdminClubSlotsApi
|
|
761
|
-
* @extends {BaseAPI}
|
|
762
|
-
*/
|
|
763
|
-
class AdminClubSlotsApi extends base_1.BaseAPI {
|
|
764
|
-
/**
|
|
765
|
-
*
|
|
766
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
767
|
-
* @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
|
|
768
|
-
* @param {*} [options] Override http request option.
|
|
769
|
-
* @throws {RequiredError}
|
|
770
|
-
* @memberof AdminClubSlotsApi
|
|
771
|
-
*/
|
|
772
|
-
deleteSlotsByClubInRangeByID(requestParameters, options) {
|
|
773
|
-
return (0, exports.AdminClubSlotsApiFp)(this.configuration).deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
774
|
-
}
|
|
775
|
-
/**
|
|
776
|
-
*
|
|
777
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
778
|
-
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
779
|
-
* @param {*} [options] Override http request option.
|
|
780
|
-
* @throws {RequiredError}
|
|
781
|
-
* @memberof AdminClubSlotsApi
|
|
782
|
-
*/
|
|
783
|
-
generateSlotsForNextThreeWeeks(requestParameters, options) {
|
|
784
|
-
return (0, exports.AdminClubSlotsApiFp)(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
785
|
-
}
|
|
786
|
-
/**
|
|
787
|
-
*
|
|
788
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
789
|
-
* @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
|
|
790
|
-
* @param {*} [options] Override http request option.
|
|
791
|
-
* @throws {RequiredError}
|
|
792
|
-
* @memberof AdminClubSlotsApi
|
|
793
|
-
*/
|
|
794
|
-
getSlotsByClubAdmin(requestParameters, options) {
|
|
795
|
-
return (0, exports.AdminClubSlotsApiFp)(this.configuration).getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
exports.AdminClubSlotsApi = AdminClubSlotsApi;
|
|
799
|
-
/**
|
|
800
|
-
* AdminClubSubscriptionsApi - axios parameter creator
|
|
801
|
-
* @export
|
|
802
|
-
*/
|
|
803
|
-
const AdminClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
804
|
-
return {
|
|
805
|
-
/**
|
|
806
|
-
*
|
|
807
|
-
* @summary Archiver un prix (Admin)
|
|
808
|
-
* @param {string} id
|
|
809
|
-
* @param {string} priceId
|
|
810
|
-
* @param {*} [options] Override http request option.
|
|
811
|
-
* @throws {RequiredError}
|
|
812
|
-
*/
|
|
813
|
-
archivePriceForSubscriptionPlanAdmin: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
|
|
814
|
-
// verify required parameter 'id' is not null or undefined
|
|
815
|
-
(0, common_1.assertParamExists)('archivePriceForSubscriptionPlanAdmin', 'id', id);
|
|
816
|
-
// verify required parameter 'priceId' is not null or undefined
|
|
817
|
-
(0, common_1.assertParamExists)('archivePriceForSubscriptionPlanAdmin', 'priceId', priceId);
|
|
818
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/archive-price`
|
|
819
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
820
|
-
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
821
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
822
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
823
|
-
let baseOptions;
|
|
824
|
-
if (configuration) {
|
|
825
|
-
baseOptions = configuration.baseOptions;
|
|
826
|
-
}
|
|
827
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
828
|
-
const localVarHeaderParameter = {};
|
|
829
|
-
const localVarQueryParameter = {};
|
|
830
|
-
// authentication bearerAuth required
|
|
831
|
-
// http bearer authentication required
|
|
832
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
833
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
834
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
835
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
836
|
-
return {
|
|
837
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
838
|
-
options: localVarRequestOptions,
|
|
839
|
-
};
|
|
840
|
-
}),
|
|
841
|
-
/**
|
|
842
|
-
*
|
|
843
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
844
|
-
* @param {string} id
|
|
845
|
-
* @param {string} productId
|
|
846
|
-
* @param {CreatePriceRequest} createPriceRequest
|
|
847
|
-
* @param {*} [options] Override http request option.
|
|
848
|
-
* @throws {RequiredError}
|
|
849
|
-
*/
|
|
850
|
-
createPriceForSubscriptionPlanAdmin: (id_1, productId_1, createPriceRequest_1, ...args_1) => __awaiter(this, [id_1, productId_1, createPriceRequest_1, ...args_1], void 0, function* (id, productId, createPriceRequest, options = {}) {
|
|
851
|
-
// verify required parameter 'id' is not null or undefined
|
|
852
|
-
(0, common_1.assertParamExists)('createPriceForSubscriptionPlanAdmin', 'id', id);
|
|
853
|
-
// verify required parameter 'productId' is not null or undefined
|
|
854
|
-
(0, common_1.assertParamExists)('createPriceForSubscriptionPlanAdmin', 'productId', productId);
|
|
855
|
-
// verify required parameter 'createPriceRequest' is not null or undefined
|
|
856
|
-
(0, common_1.assertParamExists)('createPriceForSubscriptionPlanAdmin', 'createPriceRequest', createPriceRequest);
|
|
857
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/prices`
|
|
858
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
859
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
860
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
861
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
862
|
-
let baseOptions;
|
|
863
|
-
if (configuration) {
|
|
864
|
-
baseOptions = configuration.baseOptions;
|
|
865
|
-
}
|
|
866
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
867
|
-
const localVarHeaderParameter = {};
|
|
868
|
-
const localVarQueryParameter = {};
|
|
869
|
-
// authentication bearerAuth required
|
|
870
|
-
// http bearer authentication required
|
|
871
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
872
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
873
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
874
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
875
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
876
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPriceRequest, localVarRequestOptions, configuration);
|
|
877
|
-
return {
|
|
878
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
879
|
-
options: localVarRequestOptions,
|
|
880
|
-
};
|
|
881
|
-
}),
|
|
882
|
-
/**
|
|
883
|
-
*
|
|
884
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
885
|
-
* @param {string} id
|
|
886
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
887
|
-
* @param {*} [options] Override http request option.
|
|
888
|
-
* @throws {RequiredError}
|
|
889
|
-
*/
|
|
890
|
-
createSubscriptionPlanForClubAdmin: (id_1, createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [id_1, createSubscriptionPlanRequest_1, ...args_1], void 0, function* (id, createSubscriptionPlanRequest, options = {}) {
|
|
891
|
-
// verify required parameter 'id' is not null or undefined
|
|
892
|
-
(0, common_1.assertParamExists)('createSubscriptionPlanForClubAdmin', 'id', id);
|
|
893
|
-
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
894
|
-
(0, common_1.assertParamExists)('createSubscriptionPlanForClubAdmin', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
|
|
895
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans`
|
|
896
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
897
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
898
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
899
|
-
let baseOptions;
|
|
900
|
-
if (configuration) {
|
|
901
|
-
baseOptions = configuration.baseOptions;
|
|
902
|
-
}
|
|
903
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
904
|
-
const localVarHeaderParameter = {};
|
|
905
|
-
const localVarQueryParameter = {};
|
|
906
|
-
// authentication bearerAuth required
|
|
907
|
-
// http bearer authentication required
|
|
908
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
909
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
910
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
911
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
912
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
913
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
914
|
-
return {
|
|
915
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
916
|
-
options: localVarRequestOptions,
|
|
917
|
-
};
|
|
918
|
-
}),
|
|
919
|
-
/**
|
|
920
|
-
*
|
|
921
|
-
* @summary Supprimer un plan (Admin)
|
|
922
|
-
* @param {string} id
|
|
923
|
-
* @param {string} productId
|
|
924
|
-
* @param {*} [options] Override http request option.
|
|
925
|
-
* @throws {RequiredError}
|
|
926
|
-
*/
|
|
927
|
-
deleteSubscriptionPlanForClubAdmin: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
|
|
928
|
-
// verify required parameter 'id' is not null or undefined
|
|
929
|
-
(0, common_1.assertParamExists)('deleteSubscriptionPlanForClubAdmin', 'id', id);
|
|
930
|
-
// verify required parameter 'productId' is not null or undefined
|
|
931
|
-
(0, common_1.assertParamExists)('deleteSubscriptionPlanForClubAdmin', 'productId', productId);
|
|
932
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}`
|
|
933
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
934
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
935
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
936
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
937
|
-
let baseOptions;
|
|
938
|
-
if (configuration) {
|
|
939
|
-
baseOptions = configuration.baseOptions;
|
|
940
|
-
}
|
|
941
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
942
|
-
const localVarHeaderParameter = {};
|
|
943
|
-
const localVarQueryParameter = {};
|
|
944
|
-
// authentication bearerAuth required
|
|
945
|
-
// http bearer authentication required
|
|
946
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
947
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
948
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
949
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
950
|
-
return {
|
|
951
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
952
|
-
options: localVarRequestOptions,
|
|
953
|
-
};
|
|
954
|
-
}),
|
|
955
|
-
/**
|
|
956
|
-
*
|
|
957
|
-
* @summary Réactiver un plan (Admin)
|
|
958
|
-
* @param {string} id
|
|
959
|
-
* @param {string} productId
|
|
960
|
-
* @param {*} [options] Override http request option.
|
|
961
|
-
* @throws {RequiredError}
|
|
962
|
-
*/
|
|
963
|
-
restoreSubscriptionPlanForClubAdmin: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
|
|
964
|
-
// verify required parameter 'id' is not null or undefined
|
|
965
|
-
(0, common_1.assertParamExists)('restoreSubscriptionPlanForClubAdmin', 'id', id);
|
|
966
|
-
// verify required parameter 'productId' is not null or undefined
|
|
967
|
-
(0, common_1.assertParamExists)('restoreSubscriptionPlanForClubAdmin', 'productId', productId);
|
|
968
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/restore`
|
|
969
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
970
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
971
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
972
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
973
|
-
let baseOptions;
|
|
974
|
-
if (configuration) {
|
|
975
|
-
baseOptions = configuration.baseOptions;
|
|
976
|
-
}
|
|
977
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
978
|
-
const localVarHeaderParameter = {};
|
|
979
|
-
const localVarQueryParameter = {};
|
|
980
|
-
// authentication bearerAuth required
|
|
981
|
-
// http bearer authentication required
|
|
982
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
983
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
984
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
985
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
986
|
-
return {
|
|
987
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
988
|
-
options: localVarRequestOptions,
|
|
989
|
-
};
|
|
990
|
-
}),
|
|
991
|
-
/**
|
|
992
|
-
*
|
|
993
|
-
* @summary Réactiver un prix (Admin)
|
|
994
|
-
* @param {string} id
|
|
995
|
-
* @param {string} priceId
|
|
996
|
-
* @param {*} [options] Override http request option.
|
|
997
|
-
* @throws {RequiredError}
|
|
998
|
-
*/
|
|
999
|
-
restoreSubscriptionPriceForClubAdmin: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
|
|
1000
|
-
// verify required parameter 'id' is not null or undefined
|
|
1001
|
-
(0, common_1.assertParamExists)('restoreSubscriptionPriceForClubAdmin', 'id', id);
|
|
1002
|
-
// verify required parameter 'priceId' is not null or undefined
|
|
1003
|
-
(0, common_1.assertParamExists)('restoreSubscriptionPriceForClubAdmin', 'priceId', priceId);
|
|
1004
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/restore-price`
|
|
1005
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
1006
|
-
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
1007
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1008
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1009
|
-
let baseOptions;
|
|
1010
|
-
if (configuration) {
|
|
1011
|
-
baseOptions = configuration.baseOptions;
|
|
1012
|
-
}
|
|
1013
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1014
|
-
const localVarHeaderParameter = {};
|
|
1015
|
-
const localVarQueryParameter = {};
|
|
1016
|
-
// authentication bearerAuth required
|
|
1017
|
-
// http bearer authentication required
|
|
1018
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1019
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1020
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1021
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1022
|
-
return {
|
|
1023
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1024
|
-
options: localVarRequestOptions,
|
|
1025
|
-
};
|
|
1026
|
-
}),
|
|
1027
|
-
/**
|
|
1028
|
-
*
|
|
1029
|
-
* @summary Mettre à jour un plan (Admin)
|
|
1030
|
-
* @param {string} id
|
|
1031
|
-
* @param {string} priceId
|
|
1032
|
-
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
1033
|
-
* @param {*} [options] Override http request option.
|
|
1034
|
-
* @throws {RequiredError}
|
|
1035
|
-
*/
|
|
1036
|
-
updateSubscriptionPlanForClubAdmin: (id_1, priceId_1, updateSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [id_1, priceId_1, updateSubscriptionPlanRequest_1, ...args_1], void 0, function* (id, priceId, updateSubscriptionPlanRequest, options = {}) {
|
|
1037
|
-
// verify required parameter 'id' is not null or undefined
|
|
1038
|
-
(0, common_1.assertParamExists)('updateSubscriptionPlanForClubAdmin', 'id', id);
|
|
1039
|
-
// verify required parameter 'priceId' is not null or undefined
|
|
1040
|
-
(0, common_1.assertParamExists)('updateSubscriptionPlanForClubAdmin', 'priceId', priceId);
|
|
1041
|
-
// verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
|
|
1042
|
-
(0, common_1.assertParamExists)('updateSubscriptionPlanForClubAdmin', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
|
|
1043
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}`
|
|
1044
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
1045
|
-
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
1046
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1047
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1048
|
-
let baseOptions;
|
|
1049
|
-
if (configuration) {
|
|
1050
|
-
baseOptions = configuration.baseOptions;
|
|
1051
|
-
}
|
|
1052
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1053
|
-
const localVarHeaderParameter = {};
|
|
1054
|
-
const localVarQueryParameter = {};
|
|
1055
|
-
// authentication bearerAuth required
|
|
1056
|
-
// http bearer authentication required
|
|
1057
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1058
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1059
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1060
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1061
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1062
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
1063
|
-
return {
|
|
1064
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1065
|
-
options: localVarRequestOptions,
|
|
1066
|
-
};
|
|
1067
|
-
}),
|
|
1068
|
-
};
|
|
1069
|
-
};
|
|
1070
|
-
exports.AdminClubSubscriptionsApiAxiosParamCreator = AdminClubSubscriptionsApiAxiosParamCreator;
|
|
1071
|
-
/**
|
|
1072
|
-
* AdminClubSubscriptionsApi - functional programming interface
|
|
1073
|
-
* @export
|
|
1074
|
-
*/
|
|
1075
|
-
const AdminClubSubscriptionsApiFp = function (configuration) {
|
|
1076
|
-
const localVarAxiosParamCreator = (0, exports.AdminClubSubscriptionsApiAxiosParamCreator)(configuration);
|
|
1077
|
-
return {
|
|
1078
|
-
/**
|
|
1079
|
-
*
|
|
1080
|
-
* @summary Archiver un prix (Admin)
|
|
1081
|
-
* @param {string} id
|
|
1082
|
-
* @param {string} priceId
|
|
1083
|
-
* @param {*} [options] Override http request option.
|
|
1084
|
-
* @throws {RequiredError}
|
|
1085
|
-
*/
|
|
1086
|
-
archivePriceForSubscriptionPlanAdmin(id, priceId, options) {
|
|
1087
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1088
|
-
var _a, _b, _c;
|
|
1089
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlanAdmin(id, priceId, options);
|
|
1090
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1091
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.archivePriceForSubscriptionPlanAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1092
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1093
|
-
});
|
|
1094
|
-
},
|
|
1095
|
-
/**
|
|
1096
|
-
*
|
|
1097
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
1098
|
-
* @param {string} id
|
|
1099
|
-
* @param {string} productId
|
|
1100
|
-
* @param {CreatePriceRequest} createPriceRequest
|
|
1101
|
-
* @param {*} [options] Override http request option.
|
|
1102
|
-
* @throws {RequiredError}
|
|
1103
|
-
*/
|
|
1104
|
-
createPriceForSubscriptionPlanAdmin(id, productId, createPriceRequest, options) {
|
|
1105
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1106
|
-
var _a, _b, _c;
|
|
1107
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlanAdmin(id, productId, createPriceRequest, options);
|
|
1108
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1109
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.createPriceForSubscriptionPlanAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1110
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1111
|
-
});
|
|
1112
|
-
},
|
|
1113
|
-
/**
|
|
1114
|
-
*
|
|
1115
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
1116
|
-
* @param {string} id
|
|
1117
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
1118
|
-
* @param {*} [options] Override http request option.
|
|
1119
|
-
* @throws {RequiredError}
|
|
1120
|
-
*/
|
|
1121
|
-
createSubscriptionPlanForClubAdmin(id, createSubscriptionPlanRequest, options) {
|
|
1122
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1123
|
-
var _a, _b, _c;
|
|
1124
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClubAdmin(id, createSubscriptionPlanRequest, options);
|
|
1125
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1126
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.createSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1127
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1128
|
-
});
|
|
1129
|
-
},
|
|
1130
|
-
/**
|
|
1131
|
-
*
|
|
1132
|
-
* @summary Supprimer un plan (Admin)
|
|
1133
|
-
* @param {string} id
|
|
1134
|
-
* @param {string} productId
|
|
1135
|
-
* @param {*} [options] Override http request option.
|
|
1136
|
-
* @throws {RequiredError}
|
|
1137
|
-
*/
|
|
1138
|
-
deleteSubscriptionPlanForClubAdmin(id, productId, options) {
|
|
1139
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1140
|
-
var _a, _b, _c;
|
|
1141
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClubAdmin(id, productId, options);
|
|
1142
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1143
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.deleteSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1144
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1145
|
-
});
|
|
1146
|
-
},
|
|
1147
|
-
/**
|
|
1148
|
-
*
|
|
1149
|
-
* @summary Réactiver un plan (Admin)
|
|
1150
|
-
* @param {string} id
|
|
1151
|
-
* @param {string} productId
|
|
1152
|
-
* @param {*} [options] Override http request option.
|
|
1153
|
-
* @throws {RequiredError}
|
|
1154
|
-
*/
|
|
1155
|
-
restoreSubscriptionPlanForClubAdmin(id, productId, options) {
|
|
1156
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1157
|
-
var _a, _b, _c;
|
|
1158
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClubAdmin(id, productId, options);
|
|
1159
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1160
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1161
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1162
|
-
});
|
|
1163
|
-
},
|
|
1164
|
-
/**
|
|
1165
|
-
*
|
|
1166
|
-
* @summary Réactiver un prix (Admin)
|
|
1167
|
-
* @param {string} id
|
|
1168
|
-
* @param {string} priceId
|
|
1169
|
-
* @param {*} [options] Override http request option.
|
|
1170
|
-
* @throws {RequiredError}
|
|
1171
|
-
*/
|
|
1172
|
-
restoreSubscriptionPriceForClubAdmin(id, priceId, options) {
|
|
1173
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1174
|
-
var _a, _b, _c;
|
|
1175
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClubAdmin(id, priceId, options);
|
|
1176
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1177
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPriceForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1178
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1179
|
-
});
|
|
1180
|
-
},
|
|
1181
|
-
/**
|
|
1182
|
-
*
|
|
1183
|
-
* @summary Mettre à jour un plan (Admin)
|
|
1184
|
-
* @param {string} id
|
|
1185
|
-
* @param {string} priceId
|
|
1186
|
-
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
1187
|
-
* @param {*} [options] Override http request option.
|
|
1188
|
-
* @throws {RequiredError}
|
|
1189
|
-
*/
|
|
1190
|
-
updateSubscriptionPlanForClubAdmin(id, priceId, updateSubscriptionPlanRequest, options) {
|
|
1191
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1192
|
-
var _a, _b, _c;
|
|
1193
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClubAdmin(id, priceId, updateSubscriptionPlanRequest, options);
|
|
1194
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1195
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.updateSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1196
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1197
|
-
});
|
|
1198
|
-
},
|
|
1199
|
-
};
|
|
1200
|
-
};
|
|
1201
|
-
exports.AdminClubSubscriptionsApiFp = AdminClubSubscriptionsApiFp;
|
|
1202
|
-
/**
|
|
1203
|
-
* AdminClubSubscriptionsApi - factory interface
|
|
1204
|
-
* @export
|
|
1205
|
-
*/
|
|
1206
|
-
const AdminClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
1207
|
-
const localVarFp = (0, exports.AdminClubSubscriptionsApiFp)(configuration);
|
|
1208
|
-
return {
|
|
1209
|
-
/**
|
|
1210
|
-
*
|
|
1211
|
-
* @summary Archiver un prix (Admin)
|
|
1212
|
-
* @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
1213
|
-
* @param {*} [options] Override http request option.
|
|
1214
|
-
* @throws {RequiredError}
|
|
1215
|
-
*/
|
|
1216
|
-
archivePriceForSubscriptionPlanAdmin(requestParameters, options) {
|
|
1217
|
-
return localVarFp.archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
|
|
1218
|
-
},
|
|
1219
|
-
/**
|
|
1220
|
-
*
|
|
1221
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
1222
|
-
* @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
1223
|
-
* @param {*} [options] Override http request option.
|
|
1224
|
-
* @throws {RequiredError}
|
|
1225
|
-
*/
|
|
1226
|
-
createPriceForSubscriptionPlanAdmin(requestParameters, options) {
|
|
1227
|
-
return localVarFp.createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
|
|
1228
|
-
},
|
|
1229
|
-
/**
|
|
1230
|
-
*
|
|
1231
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
1232
|
-
* @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1233
|
-
* @param {*} [options] Override http request option.
|
|
1234
|
-
* @throws {RequiredError}
|
|
1235
|
-
*/
|
|
1236
|
-
createSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1237
|
-
return localVarFp.createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
1238
|
-
},
|
|
1239
|
-
/**
|
|
1240
|
-
*
|
|
1241
|
-
* @summary Supprimer un plan (Admin)
|
|
1242
|
-
* @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1243
|
-
* @param {*} [options] Override http request option.
|
|
1244
|
-
* @throws {RequiredError}
|
|
1245
|
-
*/
|
|
1246
|
-
deleteSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1247
|
-
return localVarFp.deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
1248
|
-
},
|
|
1249
|
-
/**
|
|
1250
|
-
*
|
|
1251
|
-
* @summary Réactiver un plan (Admin)
|
|
1252
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1253
|
-
* @param {*} [options] Override http request option.
|
|
1254
|
-
* @throws {RequiredError}
|
|
1255
|
-
*/
|
|
1256
|
-
restoreSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1257
|
-
return localVarFp.restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
1258
|
-
},
|
|
1259
|
-
/**
|
|
1260
|
-
*
|
|
1261
|
-
* @summary Réactiver un prix (Admin)
|
|
1262
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
|
|
1263
|
-
* @param {*} [options] Override http request option.
|
|
1264
|
-
* @throws {RequiredError}
|
|
1265
|
-
*/
|
|
1266
|
-
restoreSubscriptionPriceForClubAdmin(requestParameters, options) {
|
|
1267
|
-
return localVarFp.restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
|
|
1268
|
-
},
|
|
1269
|
-
/**
|
|
1270
|
-
*
|
|
1271
|
-
* @summary Mettre à jour un plan (Admin)
|
|
1272
|
-
* @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1273
|
-
* @param {*} [options] Override http request option.
|
|
1274
|
-
* @throws {RequiredError}
|
|
1275
|
-
*/
|
|
1276
|
-
updateSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1277
|
-
return localVarFp.updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
1278
|
-
},
|
|
1279
|
-
};
|
|
1280
|
-
};
|
|
1281
|
-
exports.AdminClubSubscriptionsApiFactory = AdminClubSubscriptionsApiFactory;
|
|
1282
|
-
/**
|
|
1283
|
-
* AdminClubSubscriptionsApi - object-oriented interface
|
|
1284
|
-
* @export
|
|
1285
|
-
* @class AdminClubSubscriptionsApi
|
|
1286
|
-
* @extends {BaseAPI}
|
|
1287
|
-
*/
|
|
1288
|
-
class AdminClubSubscriptionsApi extends base_1.BaseAPI {
|
|
1289
|
-
/**
|
|
1290
|
-
*
|
|
1291
|
-
* @summary Archiver un prix (Admin)
|
|
1292
|
-
* @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
1293
|
-
* @param {*} [options] Override http request option.
|
|
1294
|
-
* @throws {RequiredError}
|
|
1295
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1296
|
-
*/
|
|
1297
|
-
archivePriceForSubscriptionPlanAdmin(requestParameters, options) {
|
|
1298
|
-
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1299
|
-
}
|
|
1300
|
-
/**
|
|
1301
|
-
*
|
|
1302
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
1303
|
-
* @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
1304
|
-
* @param {*} [options] Override http request option.
|
|
1305
|
-
* @throws {RequiredError}
|
|
1306
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1307
|
-
*/
|
|
1308
|
-
createPriceForSubscriptionPlanAdmin(requestParameters, options) {
|
|
1309
|
-
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1310
|
-
}
|
|
1311
|
-
/**
|
|
1312
|
-
*
|
|
1313
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
1314
|
-
* @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1315
|
-
* @param {*} [options] Override http request option.
|
|
1316
|
-
* @throws {RequiredError}
|
|
1317
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1318
|
-
*/
|
|
1319
|
-
createSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1320
|
-
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1321
|
-
}
|
|
1322
|
-
/**
|
|
1323
|
-
*
|
|
1324
|
-
* @summary Supprimer un plan (Admin)
|
|
1325
|
-
* @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1326
|
-
* @param {*} [options] Override http request option.
|
|
1327
|
-
* @throws {RequiredError}
|
|
1328
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1329
|
-
*/
|
|
1330
|
-
deleteSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1331
|
-
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1332
|
-
}
|
|
1333
|
-
/**
|
|
1334
|
-
*
|
|
1335
|
-
* @summary Réactiver un plan (Admin)
|
|
1336
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1337
|
-
* @param {*} [options] Override http request option.
|
|
1338
|
-
* @throws {RequiredError}
|
|
1339
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1340
|
-
*/
|
|
1341
|
-
restoreSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1342
|
-
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1343
|
-
}
|
|
1344
|
-
/**
|
|
1345
|
-
*
|
|
1346
|
-
* @summary Réactiver un prix (Admin)
|
|
1347
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
|
|
1348
|
-
* @param {*} [options] Override http request option.
|
|
1349
|
-
* @throws {RequiredError}
|
|
1350
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1351
|
-
*/
|
|
1352
|
-
restoreSubscriptionPriceForClubAdmin(requestParameters, options) {
|
|
1353
|
-
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1354
|
-
}
|
|
1355
|
-
/**
|
|
1356
|
-
*
|
|
1357
|
-
* @summary Mettre à jour un plan (Admin)
|
|
1358
|
-
* @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1359
|
-
* @param {*} [options] Override http request option.
|
|
1360
|
-
* @throws {RequiredError}
|
|
1361
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1362
|
-
*/
|
|
1363
|
-
updateSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1364
|
-
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1365
|
-
}
|
|
1366
|
-
}
|
|
1367
|
-
exports.AdminClubSubscriptionsApi = AdminClubSubscriptionsApi;
|
|
1368
|
-
/**
|
|
1369
|
-
* AdminClubsApi - axios parameter creator
|
|
1370
|
-
* @export
|
|
1371
|
-
*/
|
|
1372
|
-
const AdminClubsApiAxiosParamCreator = function (configuration) {
|
|
1373
|
-
return {
|
|
1374
|
-
/**
|
|
1375
|
-
*
|
|
1376
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
1377
|
-
* @param {string} id ID du club
|
|
1378
|
-
* @param {*} [options] Override http request option.
|
|
1379
|
-
* @throws {RequiredError}
|
|
1380
|
-
*/
|
|
1381
|
-
deleteClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1382
|
-
// verify required parameter 'id' is not null or undefined
|
|
1383
|
-
(0, common_1.assertParamExists)('deleteClub', 'id', id);
|
|
1384
|
-
const localVarPath = `/api/clubs/{id}`
|
|
1385
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1386
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1387
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1388
|
-
let baseOptions;
|
|
1389
|
-
if (configuration) {
|
|
1390
|
-
baseOptions = configuration.baseOptions;
|
|
1391
|
-
}
|
|
1392
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1393
|
-
const localVarHeaderParameter = {};
|
|
1394
|
-
const localVarQueryParameter = {};
|
|
1395
|
-
// authentication bearerAuth required
|
|
1396
|
-
// http bearer authentication required
|
|
1397
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1398
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1399
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1400
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1401
|
-
return {
|
|
1402
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1403
|
-
options: localVarRequestOptions,
|
|
1404
|
-
};
|
|
1405
|
-
}),
|
|
1406
|
-
/**
|
|
1407
|
-
*
|
|
1408
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
1409
|
-
* @param {string} id
|
|
1410
|
-
* @param {*} [options] Override http request option.
|
|
1411
|
-
* @throws {RequiredError}
|
|
1412
|
-
*/
|
|
1413
|
-
getClubInfosAdmin: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1414
|
-
// verify required parameter 'id' is not null or undefined
|
|
1415
|
-
(0, common_1.assertParamExists)('getClubInfosAdmin', 'id', id);
|
|
1416
|
-
const localVarPath = `/api/clubs/{id}/infos`
|
|
1417
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1418
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1419
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1420
|
-
let baseOptions;
|
|
1421
|
-
if (configuration) {
|
|
1422
|
-
baseOptions = configuration.baseOptions;
|
|
1423
|
-
}
|
|
1424
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1425
|
-
const localVarHeaderParameter = {};
|
|
1426
|
-
const localVarQueryParameter = {};
|
|
1427
|
-
// authentication bearerAuth required
|
|
1428
|
-
// http bearer authentication required
|
|
1429
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1430
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1431
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1432
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1433
|
-
return {
|
|
1434
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1435
|
-
options: localVarRequestOptions,
|
|
1436
|
-
};
|
|
1437
|
-
}),
|
|
1438
|
-
/**
|
|
1439
|
-
*
|
|
1440
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
1441
|
-
* @param {string} id
|
|
1442
|
-
* @param {object} body
|
|
1443
|
-
* @param {*} [options] Override http request option.
|
|
1444
|
-
* @throws {RequiredError}
|
|
1445
|
-
*/
|
|
1446
|
-
updateClubInfosAdmin: (id_1, body_1, ...args_1) => __awaiter(this, [id_1, body_1, ...args_1], void 0, function* (id, body, options = {}) {
|
|
1447
|
-
// verify required parameter 'id' is not null or undefined
|
|
1448
|
-
(0, common_1.assertParamExists)('updateClubInfosAdmin', 'id', id);
|
|
1449
|
-
// verify required parameter 'body' is not null or undefined
|
|
1450
|
-
(0, common_1.assertParamExists)('updateClubInfosAdmin', 'body', body);
|
|
1451
|
-
const localVarPath = `/api/clubs/{id}/infos`
|
|
1452
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1453
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1454
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1455
|
-
let baseOptions;
|
|
1456
|
-
if (configuration) {
|
|
1457
|
-
baseOptions = configuration.baseOptions;
|
|
1458
|
-
}
|
|
1459
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1460
|
-
const localVarHeaderParameter = {};
|
|
1461
|
-
const localVarQueryParameter = {};
|
|
1462
|
-
// authentication bearerAuth required
|
|
1463
|
-
// http bearer authentication required
|
|
1464
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1465
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1466
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1467
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1468
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1469
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1470
|
-
return {
|
|
1471
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1472
|
-
options: localVarRequestOptions,
|
|
1473
|
-
};
|
|
1474
|
-
}),
|
|
1475
|
-
};
|
|
1476
|
-
};
|
|
1477
|
-
exports.AdminClubsApiAxiosParamCreator = AdminClubsApiAxiosParamCreator;
|
|
1478
|
-
/**
|
|
1479
|
-
* AdminClubsApi - functional programming interface
|
|
1480
|
-
* @export
|
|
1481
|
-
*/
|
|
1482
|
-
const AdminClubsApiFp = function (configuration) {
|
|
1483
|
-
const localVarAxiosParamCreator = (0, exports.AdminClubsApiAxiosParamCreator)(configuration);
|
|
1484
|
-
return {
|
|
1485
|
-
/**
|
|
1486
|
-
*
|
|
1487
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
1488
|
-
* @param {string} id ID du club
|
|
1489
|
-
* @param {*} [options] Override http request option.
|
|
1490
|
-
* @throws {RequiredError}
|
|
1491
|
-
*/
|
|
1492
|
-
deleteClub(id, options) {
|
|
1493
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1494
|
-
var _a, _b, _c;
|
|
1495
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClub(id, options);
|
|
1496
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1497
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.deleteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1498
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1499
|
-
});
|
|
1500
|
-
},
|
|
1501
|
-
/**
|
|
1502
|
-
*
|
|
1503
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
1504
|
-
* @param {string} id
|
|
1505
|
-
* @param {*} [options] Override http request option.
|
|
1506
|
-
* @throws {RequiredError}
|
|
1507
|
-
*/
|
|
1508
|
-
getClubInfosAdmin(id, options) {
|
|
1509
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1510
|
-
var _a, _b, _c;
|
|
1511
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfosAdmin(id, options);
|
|
1512
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1513
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.getClubInfosAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1514
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1515
|
-
});
|
|
1516
|
-
},
|
|
1517
|
-
/**
|
|
1518
|
-
*
|
|
1519
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
1520
|
-
* @param {string} id
|
|
1521
|
-
* @param {object} body
|
|
1522
|
-
* @param {*} [options] Override http request option.
|
|
1523
|
-
* @throws {RequiredError}
|
|
1524
|
-
*/
|
|
1525
|
-
updateClubInfosAdmin(id, body, options) {
|
|
1526
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1527
|
-
var _a, _b, _c;
|
|
1528
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubInfosAdmin(id, body, options);
|
|
1529
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1530
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.updateClubInfosAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1531
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1532
|
-
});
|
|
1533
|
-
},
|
|
1534
|
-
};
|
|
1535
|
-
};
|
|
1536
|
-
exports.AdminClubsApiFp = AdminClubsApiFp;
|
|
1537
|
-
/**
|
|
1538
|
-
* AdminClubsApi - factory interface
|
|
1539
|
-
* @export
|
|
1540
|
-
*/
|
|
1541
|
-
const AdminClubsApiFactory = function (configuration, basePath, axios) {
|
|
1542
|
-
const localVarFp = (0, exports.AdminClubsApiFp)(configuration);
|
|
1543
|
-
return {
|
|
1544
|
-
/**
|
|
1545
|
-
*
|
|
1546
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
1547
|
-
* @param {AdminClubsApiDeleteClubRequest} requestParameters Request parameters.
|
|
1548
|
-
* @param {*} [options] Override http request option.
|
|
1549
|
-
* @throws {RequiredError}
|
|
1550
|
-
*/
|
|
1551
|
-
deleteClub(requestParameters, options) {
|
|
1552
|
-
return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1553
|
-
},
|
|
1554
|
-
/**
|
|
1555
|
-
*
|
|
1556
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
1557
|
-
* @param {AdminClubsApiGetClubInfosAdminRequest} requestParameters Request parameters.
|
|
1558
|
-
* @param {*} [options] Override http request option.
|
|
1559
|
-
* @throws {RequiredError}
|
|
1560
|
-
*/
|
|
1561
|
-
getClubInfosAdmin(requestParameters, options) {
|
|
1562
|
-
return localVarFp.getClubInfosAdmin(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1563
|
-
},
|
|
1564
|
-
/**
|
|
1565
|
-
*
|
|
1566
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
1567
|
-
* @param {AdminClubsApiUpdateClubInfosAdminRequest} requestParameters Request parameters.
|
|
1568
|
-
* @param {*} [options] Override http request option.
|
|
1569
|
-
* @throws {RequiredError}
|
|
1570
|
-
*/
|
|
1571
|
-
updateClubInfosAdmin(requestParameters, options) {
|
|
1572
|
-
return localVarFp.updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1573
|
-
},
|
|
1574
|
-
};
|
|
1575
|
-
};
|
|
1576
|
-
exports.AdminClubsApiFactory = AdminClubsApiFactory;
|
|
1577
|
-
/**
|
|
1578
|
-
* AdminClubsApi - object-oriented interface
|
|
1579
|
-
* @export
|
|
1580
|
-
* @class AdminClubsApi
|
|
1581
|
-
* @extends {BaseAPI}
|
|
1582
|
-
*/
|
|
1583
|
-
class AdminClubsApi extends base_1.BaseAPI {
|
|
1584
|
-
/**
|
|
1585
|
-
*
|
|
1586
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
1587
|
-
* @param {AdminClubsApiDeleteClubRequest} requestParameters Request parameters.
|
|
1588
|
-
* @param {*} [options] Override http request option.
|
|
1589
|
-
* @throws {RequiredError}
|
|
1590
|
-
* @memberof AdminClubsApi
|
|
1591
|
-
*/
|
|
1592
|
-
deleteClub(requestParameters, options) {
|
|
1593
|
-
return (0, exports.AdminClubsApiFp)(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1594
|
-
}
|
|
1595
|
-
/**
|
|
1596
|
-
*
|
|
1597
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
1598
|
-
* @param {AdminClubsApiGetClubInfosAdminRequest} requestParameters Request parameters.
|
|
1599
|
-
* @param {*} [options] Override http request option.
|
|
1600
|
-
* @throws {RequiredError}
|
|
1601
|
-
* @memberof AdminClubsApi
|
|
1602
|
-
*/
|
|
1603
|
-
getClubInfosAdmin(requestParameters, options) {
|
|
1604
|
-
return (0, exports.AdminClubsApiFp)(this.configuration).getClubInfosAdmin(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1605
|
-
}
|
|
1606
|
-
/**
|
|
1607
|
-
*
|
|
1608
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
1609
|
-
* @param {AdminClubsApiUpdateClubInfosAdminRequest} requestParameters Request parameters.
|
|
1610
|
-
* @param {*} [options] Override http request option.
|
|
1611
|
-
* @throws {RequiredError}
|
|
1612
|
-
* @memberof AdminClubsApi
|
|
1613
|
-
*/
|
|
1614
|
-
updateClubInfosAdmin(requestParameters, options) {
|
|
1615
|
-
return (0, exports.AdminClubsApiFp)(this.configuration).updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
exports.AdminClubsApi = AdminClubsApi;
|
|
143
|
+
exports.UpdateCourtRequestStatusEnum = {
|
|
144
|
+
Available: 'available',
|
|
145
|
+
Unavailable: 'unavailable'
|
|
146
|
+
};
|
|
147
|
+
exports.UpdateCourtRequestSurfaceEnum = {
|
|
148
|
+
Clay: 'clay',
|
|
149
|
+
Grass: 'grass',
|
|
150
|
+
Hard: 'hard'
|
|
151
|
+
};
|
|
1619
152
|
/**
|
|
1620
153
|
* ClubAnalyticsApi - axios parameter creator
|
|
1621
154
|
* @export
|
|
@@ -2492,6 +1025,38 @@ const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2492
1025
|
options: localVarRequestOptions,
|
|
2493
1026
|
};
|
|
2494
1027
|
}),
|
|
1028
|
+
/**
|
|
1029
|
+
*
|
|
1030
|
+
* @summary Supprimer un terrain et ses créneaux futurs
|
|
1031
|
+
* @param {string} courtId ID du terrain à supprimer
|
|
1032
|
+
* @param {*} [options] Override http request option.
|
|
1033
|
+
* @throws {RequiredError}
|
|
1034
|
+
*/
|
|
1035
|
+
deleteCourt: (courtId_1, ...args_1) => __awaiter(this, [courtId_1, ...args_1], void 0, function* (courtId, options = {}) {
|
|
1036
|
+
// verify required parameter 'courtId' is not null or undefined
|
|
1037
|
+
(0, common_1.assertParamExists)('deleteCourt', 'courtId', courtId);
|
|
1038
|
+
const localVarPath = `/api/clubs/courts/{courtId}`
|
|
1039
|
+
.replace(`{${"courtId"}}`, encodeURIComponent(String(courtId)));
|
|
1040
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1041
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1042
|
+
let baseOptions;
|
|
1043
|
+
if (configuration) {
|
|
1044
|
+
baseOptions = configuration.baseOptions;
|
|
1045
|
+
}
|
|
1046
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1047
|
+
const localVarHeaderParameter = {};
|
|
1048
|
+
const localVarQueryParameter = {};
|
|
1049
|
+
// authentication bearerAuth required
|
|
1050
|
+
// http bearer authentication required
|
|
1051
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1052
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1053
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1054
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1055
|
+
return {
|
|
1056
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1057
|
+
options: localVarRequestOptions,
|
|
1058
|
+
};
|
|
1059
|
+
}),
|
|
2495
1060
|
/**
|
|
2496
1061
|
*
|
|
2497
1062
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -2520,6 +1085,43 @@ const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2520
1085
|
options: localVarRequestOptions,
|
|
2521
1086
|
};
|
|
2522
1087
|
}),
|
|
1088
|
+
/**
|
|
1089
|
+
*
|
|
1090
|
+
* @summary Mettre à jour un terrain du club courant
|
|
1091
|
+
* @param {string} courtId ID du terrain à mettre à jour
|
|
1092
|
+
* @param {UpdateCourtRequest} updateCourtRequest
|
|
1093
|
+
* @param {*} [options] Override http request option.
|
|
1094
|
+
* @throws {RequiredError}
|
|
1095
|
+
*/
|
|
1096
|
+
updateCourt: (courtId_1, updateCourtRequest_1, ...args_1) => __awaiter(this, [courtId_1, updateCourtRequest_1, ...args_1], void 0, function* (courtId, updateCourtRequest, options = {}) {
|
|
1097
|
+
// verify required parameter 'courtId' is not null or undefined
|
|
1098
|
+
(0, common_1.assertParamExists)('updateCourt', 'courtId', courtId);
|
|
1099
|
+
// verify required parameter 'updateCourtRequest' is not null or undefined
|
|
1100
|
+
(0, common_1.assertParamExists)('updateCourt', 'updateCourtRequest', updateCourtRequest);
|
|
1101
|
+
const localVarPath = `/api/clubs/courts/{courtId}`
|
|
1102
|
+
.replace(`{${"courtId"}}`, encodeURIComponent(String(courtId)));
|
|
1103
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1104
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1105
|
+
let baseOptions;
|
|
1106
|
+
if (configuration) {
|
|
1107
|
+
baseOptions = configuration.baseOptions;
|
|
1108
|
+
}
|
|
1109
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1110
|
+
const localVarHeaderParameter = {};
|
|
1111
|
+
const localVarQueryParameter = {};
|
|
1112
|
+
// authentication bearerAuth required
|
|
1113
|
+
// http bearer authentication required
|
|
1114
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1115
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1116
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1117
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1118
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1119
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCourtRequest, localVarRequestOptions, configuration);
|
|
1120
|
+
return {
|
|
1121
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1122
|
+
options: localVarRequestOptions,
|
|
1123
|
+
};
|
|
1124
|
+
}),
|
|
2523
1125
|
};
|
|
2524
1126
|
};
|
|
2525
1127
|
exports.ManagerClubCourtsApiAxiosParamCreator = ManagerClubCourtsApiAxiosParamCreator;
|
|
@@ -2546,6 +1148,22 @@ const ManagerClubCourtsApiFp = function (configuration) {
|
|
|
2546
1148
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2547
1149
|
});
|
|
2548
1150
|
},
|
|
1151
|
+
/**
|
|
1152
|
+
*
|
|
1153
|
+
* @summary Supprimer un terrain et ses créneaux futurs
|
|
1154
|
+
* @param {string} courtId ID du terrain à supprimer
|
|
1155
|
+
* @param {*} [options] Override http request option.
|
|
1156
|
+
* @throws {RequiredError}
|
|
1157
|
+
*/
|
|
1158
|
+
deleteCourt(courtId, options) {
|
|
1159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1160
|
+
var _a, _b, _c;
|
|
1161
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCourt(courtId, options);
|
|
1162
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1163
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubCourtsApi.deleteCourt']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1164
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1165
|
+
});
|
|
1166
|
+
},
|
|
2549
1167
|
/**
|
|
2550
1168
|
*
|
|
2551
1169
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -2561,6 +1179,23 @@ const ManagerClubCourtsApiFp = function (configuration) {
|
|
|
2561
1179
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2562
1180
|
});
|
|
2563
1181
|
},
|
|
1182
|
+
/**
|
|
1183
|
+
*
|
|
1184
|
+
* @summary Mettre à jour un terrain du club courant
|
|
1185
|
+
* @param {string} courtId ID du terrain à mettre à jour
|
|
1186
|
+
* @param {UpdateCourtRequest} updateCourtRequest
|
|
1187
|
+
* @param {*} [options] Override http request option.
|
|
1188
|
+
* @throws {RequiredError}
|
|
1189
|
+
*/
|
|
1190
|
+
updateCourt(courtId, updateCourtRequest, options) {
|
|
1191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1192
|
+
var _a, _b, _c;
|
|
1193
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCourt(courtId, updateCourtRequest, options);
|
|
1194
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1195
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubCourtsApi.updateCourt']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1196
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1197
|
+
});
|
|
1198
|
+
},
|
|
2564
1199
|
};
|
|
2565
1200
|
};
|
|
2566
1201
|
exports.ManagerClubCourtsApiFp = ManagerClubCourtsApiFp;
|
|
@@ -2581,6 +1216,16 @@ const ManagerClubCourtsApiFactory = function (configuration, basePath, axios) {
|
|
|
2581
1216
|
createCourtForClub(requestParameters, options) {
|
|
2582
1217
|
return localVarFp.createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
|
|
2583
1218
|
},
|
|
1219
|
+
/**
|
|
1220
|
+
*
|
|
1221
|
+
* @summary Supprimer un terrain et ses créneaux futurs
|
|
1222
|
+
* @param {ManagerClubCourtsApiDeleteCourtRequest} requestParameters Request parameters.
|
|
1223
|
+
* @param {*} [options] Override http request option.
|
|
1224
|
+
* @throws {RequiredError}
|
|
1225
|
+
*/
|
|
1226
|
+
deleteCourt(requestParameters, options) {
|
|
1227
|
+
return localVarFp.deleteCourt(requestParameters.courtId, options).then((request) => request(axios, basePath));
|
|
1228
|
+
},
|
|
2584
1229
|
/**
|
|
2585
1230
|
*
|
|
2586
1231
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -2590,6 +1235,16 @@ const ManagerClubCourtsApiFactory = function (configuration, basePath, axios) {
|
|
|
2590
1235
|
getCourtsByClub(options) {
|
|
2591
1236
|
return localVarFp.getCourtsByClub(options).then((request) => request(axios, basePath));
|
|
2592
1237
|
},
|
|
1238
|
+
/**
|
|
1239
|
+
*
|
|
1240
|
+
* @summary Mettre à jour un terrain du club courant
|
|
1241
|
+
* @param {ManagerClubCourtsApiUpdateCourtRequest} requestParameters Request parameters.
|
|
1242
|
+
* @param {*} [options] Override http request option.
|
|
1243
|
+
* @throws {RequiredError}
|
|
1244
|
+
*/
|
|
1245
|
+
updateCourt(requestParameters, options) {
|
|
1246
|
+
return localVarFp.updateCourt(requestParameters.courtId, requestParameters.updateCourtRequest, options).then((request) => request(axios, basePath));
|
|
1247
|
+
},
|
|
2593
1248
|
};
|
|
2594
1249
|
};
|
|
2595
1250
|
exports.ManagerClubCourtsApiFactory = ManagerClubCourtsApiFactory;
|
|
@@ -2611,6 +1266,17 @@ class ManagerClubCourtsApi extends base_1.BaseAPI {
|
|
|
2611
1266
|
createCourtForClub(requestParameters, options) {
|
|
2612
1267
|
return (0, exports.ManagerClubCourtsApiFp)(this.configuration).createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2613
1268
|
}
|
|
1269
|
+
/**
|
|
1270
|
+
*
|
|
1271
|
+
* @summary Supprimer un terrain et ses créneaux futurs
|
|
1272
|
+
* @param {ManagerClubCourtsApiDeleteCourtRequest} requestParameters Request parameters.
|
|
1273
|
+
* @param {*} [options] Override http request option.
|
|
1274
|
+
* @throws {RequiredError}
|
|
1275
|
+
* @memberof ManagerClubCourtsApi
|
|
1276
|
+
*/
|
|
1277
|
+
deleteCourt(requestParameters, options) {
|
|
1278
|
+
return (0, exports.ManagerClubCourtsApiFp)(this.configuration).deleteCourt(requestParameters.courtId, options).then((request) => request(this.axios, this.basePath));
|
|
1279
|
+
}
|
|
2614
1280
|
/**
|
|
2615
1281
|
*
|
|
2616
1282
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -2621,6 +1287,17 @@ class ManagerClubCourtsApi extends base_1.BaseAPI {
|
|
|
2621
1287
|
getCourtsByClub(options) {
|
|
2622
1288
|
return (0, exports.ManagerClubCourtsApiFp)(this.configuration).getCourtsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
2623
1289
|
}
|
|
1290
|
+
/**
|
|
1291
|
+
*
|
|
1292
|
+
* @summary Mettre à jour un terrain du club courant
|
|
1293
|
+
* @param {ManagerClubCourtsApiUpdateCourtRequest} requestParameters Request parameters.
|
|
1294
|
+
* @param {*} [options] Override http request option.
|
|
1295
|
+
* @throws {RequiredError}
|
|
1296
|
+
* @memberof ManagerClubCourtsApi
|
|
1297
|
+
*/
|
|
1298
|
+
updateCourt(requestParameters, options) {
|
|
1299
|
+
return (0, exports.ManagerClubCourtsApiFp)(this.configuration).updateCourt(requestParameters.courtId, requestParameters.updateCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1300
|
+
}
|
|
2624
1301
|
}
|
|
2625
1302
|
exports.ManagerClubCourtsApi = ManagerClubCourtsApi;
|
|
2626
1303
|
/**
|
|
@@ -4423,39 +3100,6 @@ exports.ManagerEventsApi = ManagerEventsApi;
|
|
|
4423
3100
|
*/
|
|
4424
3101
|
const ManagerSportsApiAxiosParamCreator = function (configuration) {
|
|
4425
3102
|
return {
|
|
4426
|
-
/**
|
|
4427
|
-
*
|
|
4428
|
-
* @summary Créer un sport dans un club
|
|
4429
|
-
* @param {CreateSportRequest} createSportRequest
|
|
4430
|
-
* @param {*} [options] Override http request option.
|
|
4431
|
-
* @throws {RequiredError}
|
|
4432
|
-
*/
|
|
4433
|
-
createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
|
|
4434
|
-
// verify required parameter 'createSportRequest' is not null or undefined
|
|
4435
|
-
(0, common_1.assertParamExists)('createSport', 'createSportRequest', createSportRequest);
|
|
4436
|
-
const localVarPath = `/api/sports`;
|
|
4437
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4438
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4439
|
-
let baseOptions;
|
|
4440
|
-
if (configuration) {
|
|
4441
|
-
baseOptions = configuration.baseOptions;
|
|
4442
|
-
}
|
|
4443
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4444
|
-
const localVarHeaderParameter = {};
|
|
4445
|
-
const localVarQueryParameter = {};
|
|
4446
|
-
// authentication bearerAuth required
|
|
4447
|
-
// http bearer authentication required
|
|
4448
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4449
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4450
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4451
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4452
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4453
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSportRequest, localVarRequestOptions, configuration);
|
|
4454
|
-
return {
|
|
4455
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4456
|
-
options: localVarRequestOptions,
|
|
4457
|
-
};
|
|
4458
|
-
}),
|
|
4459
3103
|
/**
|
|
4460
3104
|
*
|
|
4461
3105
|
* @summary Supprimer un sport
|
|
@@ -4535,22 +3179,6 @@ exports.ManagerSportsApiAxiosParamCreator = ManagerSportsApiAxiosParamCreator;
|
|
|
4535
3179
|
const ManagerSportsApiFp = function (configuration) {
|
|
4536
3180
|
const localVarAxiosParamCreator = (0, exports.ManagerSportsApiAxiosParamCreator)(configuration);
|
|
4537
3181
|
return {
|
|
4538
|
-
/**
|
|
4539
|
-
*
|
|
4540
|
-
* @summary Créer un sport dans un club
|
|
4541
|
-
* @param {CreateSportRequest} createSportRequest
|
|
4542
|
-
* @param {*} [options] Override http request option.
|
|
4543
|
-
* @throws {RequiredError}
|
|
4544
|
-
*/
|
|
4545
|
-
createSport(createSportRequest, options) {
|
|
4546
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4547
|
-
var _a, _b, _c;
|
|
4548
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSport(createSportRequest, options);
|
|
4549
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4550
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerSportsApi.createSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4551
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4552
|
-
});
|
|
4553
|
-
},
|
|
4554
3182
|
/**
|
|
4555
3183
|
*
|
|
4556
3184
|
* @summary Supprimer un sport
|
|
@@ -4594,16 +3222,6 @@ exports.ManagerSportsApiFp = ManagerSportsApiFp;
|
|
|
4594
3222
|
const ManagerSportsApiFactory = function (configuration, basePath, axios) {
|
|
4595
3223
|
const localVarFp = (0, exports.ManagerSportsApiFp)(configuration);
|
|
4596
3224
|
return {
|
|
4597
|
-
/**
|
|
4598
|
-
*
|
|
4599
|
-
* @summary Créer un sport dans un club
|
|
4600
|
-
* @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
|
|
4601
|
-
* @param {*} [options] Override http request option.
|
|
4602
|
-
* @throws {RequiredError}
|
|
4603
|
-
*/
|
|
4604
|
-
createSport(requestParameters, options) {
|
|
4605
|
-
return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
|
|
4606
|
-
},
|
|
4607
3225
|
/**
|
|
4608
3226
|
*
|
|
4609
3227
|
* @summary Supprimer un sport
|
|
@@ -4634,17 +3252,6 @@ exports.ManagerSportsApiFactory = ManagerSportsApiFactory;
|
|
|
4634
3252
|
* @extends {BaseAPI}
|
|
4635
3253
|
*/
|
|
4636
3254
|
class ManagerSportsApi extends base_1.BaseAPI {
|
|
4637
|
-
/**
|
|
4638
|
-
*
|
|
4639
|
-
* @summary Créer un sport dans un club
|
|
4640
|
-
* @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
|
|
4641
|
-
* @param {*} [options] Override http request option.
|
|
4642
|
-
* @throws {RequiredError}
|
|
4643
|
-
* @memberof ManagerSportsApi
|
|
4644
|
-
*/
|
|
4645
|
-
createSport(requestParameters, options) {
|
|
4646
|
-
return (0, exports.ManagerSportsApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4647
|
-
}
|
|
4648
3255
|
/**
|
|
4649
3256
|
*
|
|
4650
3257
|
* @summary Supprimer un sport
|
|
@@ -4675,6 +3282,34 @@ exports.ManagerSportsApi = ManagerSportsApi;
|
|
|
4675
3282
|
*/
|
|
4676
3283
|
const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
4677
3284
|
return {
|
|
3285
|
+
/**
|
|
3286
|
+
*
|
|
3287
|
+
* @summary Récupère la liste des joueurs du club (données staff uniquement)
|
|
3288
|
+
* @param {*} [options] Override http request option.
|
|
3289
|
+
* @throws {RequiredError}
|
|
3290
|
+
*/
|
|
3291
|
+
getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3292
|
+
const localVarPath = `/api/analytics/players`;
|
|
3293
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3294
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3295
|
+
let baseOptions;
|
|
3296
|
+
if (configuration) {
|
|
3297
|
+
baseOptions = configuration.baseOptions;
|
|
3298
|
+
}
|
|
3299
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3300
|
+
const localVarHeaderParameter = {};
|
|
3301
|
+
const localVarQueryParameter = {};
|
|
3302
|
+
// authentication bearerAuth required
|
|
3303
|
+
// http bearer authentication required
|
|
3304
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3305
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3306
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3307
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3308
|
+
return {
|
|
3309
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3310
|
+
options: localVarRequestOptions,
|
|
3311
|
+
};
|
|
3312
|
+
}),
|
|
4678
3313
|
/**
|
|
4679
3314
|
*
|
|
4680
3315
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -4743,6 +3378,21 @@ exports.StaffClubAnalyticsApiAxiosParamCreator = StaffClubAnalyticsApiAxiosParam
|
|
|
4743
3378
|
const StaffClubAnalyticsApiFp = function (configuration) {
|
|
4744
3379
|
const localVarAxiosParamCreator = (0, exports.StaffClubAnalyticsApiAxiosParamCreator)(configuration);
|
|
4745
3380
|
return {
|
|
3381
|
+
/**
|
|
3382
|
+
*
|
|
3383
|
+
* @summary Récupère la liste des joueurs du club (données staff uniquement)
|
|
3384
|
+
* @param {*} [options] Override http request option.
|
|
3385
|
+
* @throws {RequiredError}
|
|
3386
|
+
*/
|
|
3387
|
+
getClubPlayers(options) {
|
|
3388
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3389
|
+
var _a, _b, _c;
|
|
3390
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayers(options);
|
|
3391
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3392
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubAnalyticsApi.getClubPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3393
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3394
|
+
});
|
|
3395
|
+
},
|
|
4746
3396
|
/**
|
|
4747
3397
|
*
|
|
4748
3398
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -4784,6 +3434,15 @@ exports.StaffClubAnalyticsApiFp = StaffClubAnalyticsApiFp;
|
|
|
4784
3434
|
const StaffClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
4785
3435
|
const localVarFp = (0, exports.StaffClubAnalyticsApiFp)(configuration);
|
|
4786
3436
|
return {
|
|
3437
|
+
/**
|
|
3438
|
+
*
|
|
3439
|
+
* @summary Récupère la liste des joueurs du club (données staff uniquement)
|
|
3440
|
+
* @param {*} [options] Override http request option.
|
|
3441
|
+
* @throws {RequiredError}
|
|
3442
|
+
*/
|
|
3443
|
+
getClubPlayers(options) {
|
|
3444
|
+
return localVarFp.getClubPlayers(options).then((request) => request(axios, basePath));
|
|
3445
|
+
},
|
|
4787
3446
|
/**
|
|
4788
3447
|
*
|
|
4789
3448
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -4813,6 +3472,16 @@ exports.StaffClubAnalyticsApiFactory = StaffClubAnalyticsApiFactory;
|
|
|
4813
3472
|
* @extends {BaseAPI}
|
|
4814
3473
|
*/
|
|
4815
3474
|
class StaffClubAnalyticsApi extends base_1.BaseAPI {
|
|
3475
|
+
/**
|
|
3476
|
+
*
|
|
3477
|
+
* @summary Récupère la liste des joueurs du club (données staff uniquement)
|
|
3478
|
+
* @param {*} [options] Override http request option.
|
|
3479
|
+
* @throws {RequiredError}
|
|
3480
|
+
* @memberof StaffClubAnalyticsApi
|
|
3481
|
+
*/
|
|
3482
|
+
getClubPlayers(options) {
|
|
3483
|
+
return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
3484
|
+
}
|
|
4816
3485
|
/**
|
|
4817
3486
|
*
|
|
4818
3487
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -4998,6 +3667,34 @@ const StaffClubsApiAxiosParamCreator = function (configuration) {
|
|
|
4998
3667
|
options: localVarRequestOptions,
|
|
4999
3668
|
};
|
|
5000
3669
|
}),
|
|
3670
|
+
/**
|
|
3671
|
+
*
|
|
3672
|
+
* @summary Récupère la liste des sports du club courant
|
|
3673
|
+
* @param {*} [options] Override http request option.
|
|
3674
|
+
* @throws {RequiredError}
|
|
3675
|
+
*/
|
|
3676
|
+
getSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3677
|
+
const localVarPath = `/api/sports`;
|
|
3678
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3679
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3680
|
+
let baseOptions;
|
|
3681
|
+
if (configuration) {
|
|
3682
|
+
baseOptions = configuration.baseOptions;
|
|
3683
|
+
}
|
|
3684
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3685
|
+
const localVarHeaderParameter = {};
|
|
3686
|
+
const localVarQueryParameter = {};
|
|
3687
|
+
// authentication bearerAuth required
|
|
3688
|
+
// http bearer authentication required
|
|
3689
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3690
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3691
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3692
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3693
|
+
return {
|
|
3694
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3695
|
+
options: localVarRequestOptions,
|
|
3696
|
+
};
|
|
3697
|
+
}),
|
|
5001
3698
|
};
|
|
5002
3699
|
};
|
|
5003
3700
|
exports.StaffClubsApiAxiosParamCreator = StaffClubsApiAxiosParamCreator;
|
|
@@ -5038,6 +3735,21 @@ const StaffClubsApiFp = function (configuration) {
|
|
|
5038
3735
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5039
3736
|
});
|
|
5040
3737
|
},
|
|
3738
|
+
/**
|
|
3739
|
+
*
|
|
3740
|
+
* @summary Récupère la liste des sports du club courant
|
|
3741
|
+
* @param {*} [options] Override http request option.
|
|
3742
|
+
* @throws {RequiredError}
|
|
3743
|
+
*/
|
|
3744
|
+
getSports(options) {
|
|
3745
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3746
|
+
var _a, _b, _c;
|
|
3747
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSports(options);
|
|
3748
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3749
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubsApi.getSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3750
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3751
|
+
});
|
|
3752
|
+
},
|
|
5041
3753
|
};
|
|
5042
3754
|
};
|
|
5043
3755
|
exports.StaffClubsApiFp = StaffClubsApiFp;
|
|
@@ -5066,6 +3778,15 @@ const StaffClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
5066
3778
|
getClubSettings(options) {
|
|
5067
3779
|
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
5068
3780
|
},
|
|
3781
|
+
/**
|
|
3782
|
+
*
|
|
3783
|
+
* @summary Récupère la liste des sports du club courant
|
|
3784
|
+
* @param {*} [options] Override http request option.
|
|
3785
|
+
* @throws {RequiredError}
|
|
3786
|
+
*/
|
|
3787
|
+
getSports(options) {
|
|
3788
|
+
return localVarFp.getSports(options).then((request) => request(axios, basePath));
|
|
3789
|
+
},
|
|
5069
3790
|
};
|
|
5070
3791
|
};
|
|
5071
3792
|
exports.StaffClubsApiFactory = StaffClubsApiFactory;
|
|
@@ -5096,6 +3817,16 @@ class StaffClubsApi extends base_1.BaseAPI {
|
|
|
5096
3817
|
getClubSettings(options) {
|
|
5097
3818
|
return (0, exports.StaffClubsApiFp)(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
5098
3819
|
}
|
|
3820
|
+
/**
|
|
3821
|
+
*
|
|
3822
|
+
* @summary Récupère la liste des sports du club courant
|
|
3823
|
+
* @param {*} [options] Override http request option.
|
|
3824
|
+
* @throws {RequiredError}
|
|
3825
|
+
* @memberof StaffClubsApi
|
|
3826
|
+
*/
|
|
3827
|
+
getSports(options) {
|
|
3828
|
+
return (0, exports.StaffClubsApiFp)(this.configuration).getSports(options).then((request) => request(this.axios, this.basePath));
|
|
3829
|
+
}
|
|
5099
3830
|
}
|
|
5100
3831
|
exports.StaffClubsApi = StaffClubsApi;
|
|
5101
3832
|
/**
|