@tennac-booking/sdk 1.0.31 → 1.0.32
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/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.32
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -51,6 +51,11 @@ export const BookingStatus = {
|
|
|
51
51
|
export const CancelBookingResponseBookingStatusEnum = {
|
|
52
52
|
Cancelled: 'cancelled'
|
|
53
53
|
};
|
|
54
|
+
export const ClubMemberRoleEnum = {
|
|
55
|
+
Admin: 'admin',
|
|
56
|
+
Manager: 'manager',
|
|
57
|
+
Staff: 'staff'
|
|
58
|
+
};
|
|
54
59
|
export const CourtResponseStatusEnum = {
|
|
55
60
|
Available: 'available',
|
|
56
61
|
Unavailable: 'unavailable'
|
|
@@ -130,1471 +135,15 @@ export const SubscriptionResponseStatusEnum = {
|
|
|
130
135
|
Trialing: 'trialing',
|
|
131
136
|
Unpaid: 'unpaid'
|
|
132
137
|
};
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
export const
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
* @param {string} id ID du club
|
|
143
|
-
* @param {string} date Date (YYYY-MM-DD)
|
|
144
|
-
* @param {*} [options] Override http request option.
|
|
145
|
-
* @throws {RequiredError}
|
|
146
|
-
*/
|
|
147
|
-
getDailyTurnOverAdmin: (id_1, date_1, ...args_1) => __awaiter(this, [id_1, date_1, ...args_1], void 0, function* (id, date, options = {}) {
|
|
148
|
-
// verify required parameter 'id' is not null or undefined
|
|
149
|
-
assertParamExists('getDailyTurnOverAdmin', 'id', id);
|
|
150
|
-
// verify required parameter 'date' is not null or undefined
|
|
151
|
-
assertParamExists('getDailyTurnOverAdmin', 'date', date);
|
|
152
|
-
const localVarPath = `/api/clubs/{id}/turnover/daily`
|
|
153
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
154
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
156
|
-
let baseOptions;
|
|
157
|
-
if (configuration) {
|
|
158
|
-
baseOptions = configuration.baseOptions;
|
|
159
|
-
}
|
|
160
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
161
|
-
const localVarHeaderParameter = {};
|
|
162
|
-
const localVarQueryParameter = {};
|
|
163
|
-
// authentication bearerAuth required
|
|
164
|
-
// http bearer authentication required
|
|
165
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
166
|
-
if (date !== undefined) {
|
|
167
|
-
localVarQueryParameter['date'] = (date instanceof Date) ?
|
|
168
|
-
date.toISOString().substring(0, 10) :
|
|
169
|
-
date;
|
|
170
|
-
}
|
|
171
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
172
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
173
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
174
|
-
return {
|
|
175
|
-
url: toPathString(localVarUrlObj),
|
|
176
|
-
options: localVarRequestOptions,
|
|
177
|
-
};
|
|
178
|
-
}),
|
|
179
|
-
/**
|
|
180
|
-
*
|
|
181
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
182
|
-
* @param {string} id ID du club
|
|
183
|
-
* @param {number} [page]
|
|
184
|
-
* @param {number} [limit]
|
|
185
|
-
* @param {GetInvoicesAdminStatusEnum} [status]
|
|
186
|
-
* @param {string} [startDate]
|
|
187
|
-
* @param {string} [endDate]
|
|
188
|
-
* @param {*} [options] Override http request option.
|
|
189
|
-
* @throws {RequiredError}
|
|
190
|
-
*/
|
|
191
|
-
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 = {}) {
|
|
192
|
-
// verify required parameter 'id' is not null or undefined
|
|
193
|
-
assertParamExists('getInvoicesAdmin', 'id', id);
|
|
194
|
-
const localVarPath = `/api/clubs/{id}/invoices`
|
|
195
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
196
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
197
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
198
|
-
let baseOptions;
|
|
199
|
-
if (configuration) {
|
|
200
|
-
baseOptions = configuration.baseOptions;
|
|
201
|
-
}
|
|
202
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
203
|
-
const localVarHeaderParameter = {};
|
|
204
|
-
const localVarQueryParameter = {};
|
|
205
|
-
// authentication bearerAuth required
|
|
206
|
-
// http bearer authentication required
|
|
207
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
208
|
-
if (page !== undefined) {
|
|
209
|
-
localVarQueryParameter['page'] = page;
|
|
210
|
-
}
|
|
211
|
-
if (limit !== undefined) {
|
|
212
|
-
localVarQueryParameter['limit'] = limit;
|
|
213
|
-
}
|
|
214
|
-
if (status !== undefined) {
|
|
215
|
-
localVarQueryParameter['status'] = status;
|
|
216
|
-
}
|
|
217
|
-
if (startDate !== undefined) {
|
|
218
|
-
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
219
|
-
startDate.toISOString() :
|
|
220
|
-
startDate;
|
|
221
|
-
}
|
|
222
|
-
if (endDate !== undefined) {
|
|
223
|
-
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
224
|
-
endDate.toISOString() :
|
|
225
|
-
endDate;
|
|
226
|
-
}
|
|
227
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
228
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
230
|
-
return {
|
|
231
|
-
url: toPathString(localVarUrlObj),
|
|
232
|
-
options: localVarRequestOptions,
|
|
233
|
-
};
|
|
234
|
-
}),
|
|
235
|
-
/**
|
|
236
|
-
*
|
|
237
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
238
|
-
* @param {string} id ID du club
|
|
239
|
-
* @param {number} year Année
|
|
240
|
-
* @param {number} month Mois (1-12)
|
|
241
|
-
* @param {*} [options] Override http request option.
|
|
242
|
-
* @throws {RequiredError}
|
|
243
|
-
*/
|
|
244
|
-
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 = {}) {
|
|
245
|
-
// verify required parameter 'id' is not null or undefined
|
|
246
|
-
assertParamExists('getMonthlyTurnOverAdmin', 'id', id);
|
|
247
|
-
// verify required parameter 'year' is not null or undefined
|
|
248
|
-
assertParamExists('getMonthlyTurnOverAdmin', 'year', year);
|
|
249
|
-
// verify required parameter 'month' is not null or undefined
|
|
250
|
-
assertParamExists('getMonthlyTurnOverAdmin', 'month', month);
|
|
251
|
-
const localVarPath = `/api/clubs/{id}/turnover/monthly`
|
|
252
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
253
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
254
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
255
|
-
let baseOptions;
|
|
256
|
-
if (configuration) {
|
|
257
|
-
baseOptions = configuration.baseOptions;
|
|
258
|
-
}
|
|
259
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
260
|
-
const localVarHeaderParameter = {};
|
|
261
|
-
const localVarQueryParameter = {};
|
|
262
|
-
// authentication bearerAuth required
|
|
263
|
-
// http bearer authentication required
|
|
264
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
265
|
-
if (year !== undefined) {
|
|
266
|
-
localVarQueryParameter['year'] = year;
|
|
267
|
-
}
|
|
268
|
-
if (month !== undefined) {
|
|
269
|
-
localVarQueryParameter['month'] = month;
|
|
270
|
-
}
|
|
271
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
272
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
273
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
274
|
-
return {
|
|
275
|
-
url: toPathString(localVarUrlObj),
|
|
276
|
-
options: localVarRequestOptions,
|
|
277
|
-
};
|
|
278
|
-
}),
|
|
279
|
-
/**
|
|
280
|
-
*
|
|
281
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
282
|
-
* @param {string} id ID du club
|
|
283
|
-
* @param {number} year Année
|
|
284
|
-
* @param {*} [options] Override http request option.
|
|
285
|
-
* @throws {RequiredError}
|
|
286
|
-
*/
|
|
287
|
-
getYearlyTurnOverAdmin: (id_1, year_1, ...args_1) => __awaiter(this, [id_1, year_1, ...args_1], void 0, function* (id, year, options = {}) {
|
|
288
|
-
// verify required parameter 'id' is not null or undefined
|
|
289
|
-
assertParamExists('getYearlyTurnOverAdmin', 'id', id);
|
|
290
|
-
// verify required parameter 'year' is not null or undefined
|
|
291
|
-
assertParamExists('getYearlyTurnOverAdmin', 'year', year);
|
|
292
|
-
const localVarPath = `/api/clubs/{id}/turnover/yearly`
|
|
293
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
294
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
295
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
296
|
-
let baseOptions;
|
|
297
|
-
if (configuration) {
|
|
298
|
-
baseOptions = configuration.baseOptions;
|
|
299
|
-
}
|
|
300
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
301
|
-
const localVarHeaderParameter = {};
|
|
302
|
-
const localVarQueryParameter = {};
|
|
303
|
-
// authentication bearerAuth required
|
|
304
|
-
// http bearer authentication required
|
|
305
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
306
|
-
if (year !== undefined) {
|
|
307
|
-
localVarQueryParameter['year'] = year;
|
|
308
|
-
}
|
|
309
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
310
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
311
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
312
|
-
return {
|
|
313
|
-
url: toPathString(localVarUrlObj),
|
|
314
|
-
options: localVarRequestOptions,
|
|
315
|
-
};
|
|
316
|
-
}),
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
/**
|
|
320
|
-
* AdminClubAnalyticsApi - functional programming interface
|
|
321
|
-
* @export
|
|
322
|
-
*/
|
|
323
|
-
export const AdminClubAnalyticsApiFp = function (configuration) {
|
|
324
|
-
const localVarAxiosParamCreator = AdminClubAnalyticsApiAxiosParamCreator(configuration);
|
|
325
|
-
return {
|
|
326
|
-
/**
|
|
327
|
-
*
|
|
328
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
329
|
-
* @param {string} id ID du club
|
|
330
|
-
* @param {string} date Date (YYYY-MM-DD)
|
|
331
|
-
* @param {*} [options] Override http request option.
|
|
332
|
-
* @throws {RequiredError}
|
|
333
|
-
*/
|
|
334
|
-
getDailyTurnOverAdmin(id, date, options) {
|
|
335
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
-
var _a, _b, _c;
|
|
337
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOverAdmin(id, date, options);
|
|
338
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
339
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubAnalyticsApi.getDailyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
340
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
341
|
-
});
|
|
342
|
-
},
|
|
343
|
-
/**
|
|
344
|
-
*
|
|
345
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
346
|
-
* @param {string} id ID du club
|
|
347
|
-
* @param {number} [page]
|
|
348
|
-
* @param {number} [limit]
|
|
349
|
-
* @param {GetInvoicesAdminStatusEnum} [status]
|
|
350
|
-
* @param {string} [startDate]
|
|
351
|
-
* @param {string} [endDate]
|
|
352
|
-
* @param {*} [options] Override http request option.
|
|
353
|
-
* @throws {RequiredError}
|
|
354
|
-
*/
|
|
355
|
-
getInvoicesAdmin(id, page, limit, status, startDate, endDate, options) {
|
|
356
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
-
var _a, _b, _c;
|
|
358
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoicesAdmin(id, page, limit, status, startDate, endDate, options);
|
|
359
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
360
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubAnalyticsApi.getInvoicesAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
361
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
362
|
-
});
|
|
363
|
-
},
|
|
364
|
-
/**
|
|
365
|
-
*
|
|
366
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
367
|
-
* @param {string} id ID du club
|
|
368
|
-
* @param {number} year Année
|
|
369
|
-
* @param {number} month Mois (1-12)
|
|
370
|
-
* @param {*} [options] Override http request option.
|
|
371
|
-
* @throws {RequiredError}
|
|
372
|
-
*/
|
|
373
|
-
getMonthlyTurnOverAdmin(id, year, month, options) {
|
|
374
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
375
|
-
var _a, _b, _c;
|
|
376
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOverAdmin(id, year, month, options);
|
|
377
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
378
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubAnalyticsApi.getMonthlyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
379
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
380
|
-
});
|
|
381
|
-
},
|
|
382
|
-
/**
|
|
383
|
-
*
|
|
384
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
385
|
-
* @param {string} id ID du club
|
|
386
|
-
* @param {number} year Année
|
|
387
|
-
* @param {*} [options] Override http request option.
|
|
388
|
-
* @throws {RequiredError}
|
|
389
|
-
*/
|
|
390
|
-
getYearlyTurnOverAdmin(id, year, options) {
|
|
391
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
392
|
-
var _a, _b, _c;
|
|
393
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOverAdmin(id, year, options);
|
|
394
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
395
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubAnalyticsApi.getYearlyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
396
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
397
|
-
});
|
|
398
|
-
},
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
/**
|
|
402
|
-
* AdminClubAnalyticsApi - factory interface
|
|
403
|
-
* @export
|
|
404
|
-
*/
|
|
405
|
-
export const AdminClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
406
|
-
const localVarFp = AdminClubAnalyticsApiFp(configuration);
|
|
407
|
-
return {
|
|
408
|
-
/**
|
|
409
|
-
*
|
|
410
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
411
|
-
* @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
|
|
412
|
-
* @param {*} [options] Override http request option.
|
|
413
|
-
* @throws {RequiredError}
|
|
414
|
-
*/
|
|
415
|
-
getDailyTurnOverAdmin(requestParameters, options) {
|
|
416
|
-
return localVarFp.getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
|
|
417
|
-
},
|
|
418
|
-
/**
|
|
419
|
-
*
|
|
420
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
421
|
-
* @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
|
|
422
|
-
* @param {*} [options] Override http request option.
|
|
423
|
-
* @throws {RequiredError}
|
|
424
|
-
*/
|
|
425
|
-
getInvoicesAdmin(requestParameters, options) {
|
|
426
|
-
return localVarFp.getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
427
|
-
},
|
|
428
|
-
/**
|
|
429
|
-
*
|
|
430
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
431
|
-
* @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
432
|
-
* @param {*} [options] Override http request option.
|
|
433
|
-
* @throws {RequiredError}
|
|
434
|
-
*/
|
|
435
|
-
getMonthlyTurnOverAdmin(requestParameters, options) {
|
|
436
|
-
return localVarFp.getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
|
|
437
|
-
},
|
|
438
|
-
/**
|
|
439
|
-
*
|
|
440
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
441
|
-
* @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
442
|
-
* @param {*} [options] Override http request option.
|
|
443
|
-
* @throws {RequiredError}
|
|
444
|
-
*/
|
|
445
|
-
getYearlyTurnOverAdmin(requestParameters, options) {
|
|
446
|
-
return localVarFp.getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
|
|
447
|
-
},
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
/**
|
|
451
|
-
* AdminClubAnalyticsApi - object-oriented interface
|
|
452
|
-
* @export
|
|
453
|
-
* @class AdminClubAnalyticsApi
|
|
454
|
-
* @extends {BaseAPI}
|
|
455
|
-
*/
|
|
456
|
-
export class AdminClubAnalyticsApi extends BaseAPI {
|
|
457
|
-
/**
|
|
458
|
-
*
|
|
459
|
-
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
460
|
-
* @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
|
|
461
|
-
* @param {*} [options] Override http request option.
|
|
462
|
-
* @throws {RequiredError}
|
|
463
|
-
* @memberof AdminClubAnalyticsApi
|
|
464
|
-
*/
|
|
465
|
-
getDailyTurnOverAdmin(requestParameters, options) {
|
|
466
|
-
return AdminClubAnalyticsApiFp(this.configuration).getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
467
|
-
}
|
|
468
|
-
/**
|
|
469
|
-
*
|
|
470
|
-
* @summary Récupérer les factures d\'un club (Admin)
|
|
471
|
-
* @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
|
|
472
|
-
* @param {*} [options] Override http request option.
|
|
473
|
-
* @throws {RequiredError}
|
|
474
|
-
* @memberof AdminClubAnalyticsApi
|
|
475
|
-
*/
|
|
476
|
-
getInvoicesAdmin(requestParameters, options) {
|
|
477
|
-
return AdminClubAnalyticsApiFp(this.configuration).getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
*
|
|
481
|
-
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
482
|
-
* @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
483
|
-
* @param {*} [options] Override http request option.
|
|
484
|
-
* @throws {RequiredError}
|
|
485
|
-
* @memberof AdminClubAnalyticsApi
|
|
486
|
-
*/
|
|
487
|
-
getMonthlyTurnOverAdmin(requestParameters, options) {
|
|
488
|
-
return AdminClubAnalyticsApiFp(this.configuration).getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
|
|
489
|
-
}
|
|
490
|
-
/**
|
|
491
|
-
*
|
|
492
|
-
* @summary Chiffre d\'affaires annuel (Admin)
|
|
493
|
-
* @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
494
|
-
* @param {*} [options] Override http request option.
|
|
495
|
-
* @throws {RequiredError}
|
|
496
|
-
* @memberof AdminClubAnalyticsApi
|
|
497
|
-
*/
|
|
498
|
-
getYearlyTurnOverAdmin(requestParameters, options) {
|
|
499
|
-
return AdminClubAnalyticsApiFp(this.configuration).getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
/**
|
|
503
|
-
* @export
|
|
504
|
-
*/
|
|
505
|
-
export const GetInvoicesAdminStatusEnum = {
|
|
506
|
-
Pending: 'pending',
|
|
507
|
-
Paid: 'paid',
|
|
508
|
-
Failed: 'failed',
|
|
509
|
-
Authorized: 'authorized',
|
|
510
|
-
Canceled: 'canceled',
|
|
511
|
-
Expired: 'expired'
|
|
512
|
-
};
|
|
513
|
-
/**
|
|
514
|
-
* AdminClubSlotsApi - axios parameter creator
|
|
515
|
-
* @export
|
|
516
|
-
*/
|
|
517
|
-
export const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
518
|
-
return {
|
|
519
|
-
/**
|
|
520
|
-
*
|
|
521
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
522
|
-
* @param {string} id ID du club
|
|
523
|
-
* @param {string} start Date de début (format ISO)
|
|
524
|
-
* @param {string} end Date de fin (format ISO)
|
|
525
|
-
* @param {*} [options] Override http request option.
|
|
526
|
-
* @throws {RequiredError}
|
|
527
|
-
*/
|
|
528
|
-
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 = {}) {
|
|
529
|
-
// verify required parameter 'id' is not null or undefined
|
|
530
|
-
assertParamExists('deleteSlotsByClubInRangeByID', 'id', id);
|
|
531
|
-
// verify required parameter 'start' is not null or undefined
|
|
532
|
-
assertParamExists('deleteSlotsByClubInRangeByID', 'start', start);
|
|
533
|
-
// verify required parameter 'end' is not null or undefined
|
|
534
|
-
assertParamExists('deleteSlotsByClubInRangeByID', 'end', end);
|
|
535
|
-
const localVarPath = `/api/clubs/{id}/slots`
|
|
536
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
537
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
538
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
539
|
-
let baseOptions;
|
|
540
|
-
if (configuration) {
|
|
541
|
-
baseOptions = configuration.baseOptions;
|
|
542
|
-
}
|
|
543
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
544
|
-
const localVarHeaderParameter = {};
|
|
545
|
-
const localVarQueryParameter = {};
|
|
546
|
-
// authentication bearerAuth required
|
|
547
|
-
// http bearer authentication required
|
|
548
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
549
|
-
if (start !== undefined) {
|
|
550
|
-
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
551
|
-
start.toISOString() :
|
|
552
|
-
start;
|
|
553
|
-
}
|
|
554
|
-
if (end !== undefined) {
|
|
555
|
-
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
556
|
-
end.toISOString() :
|
|
557
|
-
end;
|
|
558
|
-
}
|
|
559
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
560
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
561
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
562
|
-
return {
|
|
563
|
-
url: toPathString(localVarUrlObj),
|
|
564
|
-
options: localVarRequestOptions,
|
|
565
|
-
};
|
|
566
|
-
}),
|
|
567
|
-
/**
|
|
568
|
-
*
|
|
569
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
570
|
-
* @param {string} id ID du club
|
|
571
|
-
* @param {*} [options] Override http request option.
|
|
572
|
-
* @throws {RequiredError}
|
|
573
|
-
*/
|
|
574
|
-
generateSlotsForNextThreeWeeks: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
575
|
-
// verify required parameter 'id' is not null or undefined
|
|
576
|
-
assertParamExists('generateSlotsForNextThreeWeeks', 'id', id);
|
|
577
|
-
const localVarPath = `/api/clubs/{id}/generate-slots`
|
|
578
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
579
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
580
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
581
|
-
let baseOptions;
|
|
582
|
-
if (configuration) {
|
|
583
|
-
baseOptions = configuration.baseOptions;
|
|
584
|
-
}
|
|
585
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
586
|
-
const localVarHeaderParameter = {};
|
|
587
|
-
const localVarQueryParameter = {};
|
|
588
|
-
// authentication bearerAuth required
|
|
589
|
-
// http bearer authentication required
|
|
590
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
591
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
592
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
593
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
594
|
-
return {
|
|
595
|
-
url: toPathString(localVarUrlObj),
|
|
596
|
-
options: localVarRequestOptions,
|
|
597
|
-
};
|
|
598
|
-
}),
|
|
599
|
-
/**
|
|
600
|
-
*
|
|
601
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
602
|
-
* @param {string} id ID du club
|
|
603
|
-
* @param {string} [start] Date de début (format ISO)
|
|
604
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
605
|
-
* @param {*} [options] Override http request option.
|
|
606
|
-
* @throws {RequiredError}
|
|
607
|
-
*/
|
|
608
|
-
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 = {}) {
|
|
609
|
-
// verify required parameter 'id' is not null or undefined
|
|
610
|
-
assertParamExists('getSlotsByClubAdmin', 'id', id);
|
|
611
|
-
const localVarPath = `/api/clubs/{id}/slots`
|
|
612
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
613
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
614
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
615
|
-
let baseOptions;
|
|
616
|
-
if (configuration) {
|
|
617
|
-
baseOptions = configuration.baseOptions;
|
|
618
|
-
}
|
|
619
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
620
|
-
const localVarHeaderParameter = {};
|
|
621
|
-
const localVarQueryParameter = {};
|
|
622
|
-
// authentication bearerAuth required
|
|
623
|
-
// http bearer authentication required
|
|
624
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
625
|
-
if (start !== undefined) {
|
|
626
|
-
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
627
|
-
start.toISOString() :
|
|
628
|
-
start;
|
|
629
|
-
}
|
|
630
|
-
if (end !== undefined) {
|
|
631
|
-
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
632
|
-
end.toISOString() :
|
|
633
|
-
end;
|
|
634
|
-
}
|
|
635
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
636
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
637
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
638
|
-
return {
|
|
639
|
-
url: toPathString(localVarUrlObj),
|
|
640
|
-
options: localVarRequestOptions,
|
|
641
|
-
};
|
|
642
|
-
}),
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
|
-
/**
|
|
646
|
-
* AdminClubSlotsApi - functional programming interface
|
|
647
|
-
* @export
|
|
648
|
-
*/
|
|
649
|
-
export const AdminClubSlotsApiFp = function (configuration) {
|
|
650
|
-
const localVarAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator(configuration);
|
|
651
|
-
return {
|
|
652
|
-
/**
|
|
653
|
-
*
|
|
654
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
655
|
-
* @param {string} id ID du club
|
|
656
|
-
* @param {string} start Date de début (format ISO)
|
|
657
|
-
* @param {string} end Date de fin (format ISO)
|
|
658
|
-
* @param {*} [options] Override http request option.
|
|
659
|
-
* @throws {RequiredError}
|
|
660
|
-
*/
|
|
661
|
-
deleteSlotsByClubInRangeByID(id, start, end, options) {
|
|
662
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
663
|
-
var _a, _b, _c;
|
|
664
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRangeByID(id, start, end, options);
|
|
665
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
666
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSlotsApi.deleteSlotsByClubInRangeByID']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
667
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
668
|
-
});
|
|
669
|
-
},
|
|
670
|
-
/**
|
|
671
|
-
*
|
|
672
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
673
|
-
* @param {string} id ID du club
|
|
674
|
-
* @param {*} [options] Override http request option.
|
|
675
|
-
* @throws {RequiredError}
|
|
676
|
-
*/
|
|
677
|
-
generateSlotsForNextThreeWeeks(id, options) {
|
|
678
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
679
|
-
var _a, _b, _c;
|
|
680
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
|
|
681
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
682
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
683
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
684
|
-
});
|
|
685
|
-
},
|
|
686
|
-
/**
|
|
687
|
-
*
|
|
688
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
689
|
-
* @param {string} id ID du club
|
|
690
|
-
* @param {string} [start] Date de début (format ISO)
|
|
691
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
692
|
-
* @param {*} [options] Override http request option.
|
|
693
|
-
* @throws {RequiredError}
|
|
694
|
-
*/
|
|
695
|
-
getSlotsByClubAdmin(id, start, end, options) {
|
|
696
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
697
|
-
var _a, _b, _c;
|
|
698
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClubAdmin(id, start, end, options);
|
|
699
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
700
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSlotsApi.getSlotsByClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
701
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
702
|
-
});
|
|
703
|
-
},
|
|
704
|
-
};
|
|
705
|
-
};
|
|
706
|
-
/**
|
|
707
|
-
* AdminClubSlotsApi - factory interface
|
|
708
|
-
* @export
|
|
709
|
-
*/
|
|
710
|
-
export const AdminClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
711
|
-
const localVarFp = AdminClubSlotsApiFp(configuration);
|
|
712
|
-
return {
|
|
713
|
-
/**
|
|
714
|
-
*
|
|
715
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
716
|
-
* @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
|
|
717
|
-
* @param {*} [options] Override http request option.
|
|
718
|
-
* @throws {RequiredError}
|
|
719
|
-
*/
|
|
720
|
-
deleteSlotsByClubInRangeByID(requestParameters, options) {
|
|
721
|
-
return localVarFp.deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
722
|
-
},
|
|
723
|
-
/**
|
|
724
|
-
*
|
|
725
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
726
|
-
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
727
|
-
* @param {*} [options] Override http request option.
|
|
728
|
-
* @throws {RequiredError}
|
|
729
|
-
*/
|
|
730
|
-
generateSlotsForNextThreeWeeks(requestParameters, options) {
|
|
731
|
-
return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
732
|
-
},
|
|
733
|
-
/**
|
|
734
|
-
*
|
|
735
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
736
|
-
* @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
|
|
737
|
-
* @param {*} [options] Override http request option.
|
|
738
|
-
* @throws {RequiredError}
|
|
739
|
-
*/
|
|
740
|
-
getSlotsByClubAdmin(requestParameters, options) {
|
|
741
|
-
return localVarFp.getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
742
|
-
},
|
|
743
|
-
};
|
|
744
|
-
};
|
|
745
|
-
/**
|
|
746
|
-
* AdminClubSlotsApi - object-oriented interface
|
|
747
|
-
* @export
|
|
748
|
-
* @class AdminClubSlotsApi
|
|
749
|
-
* @extends {BaseAPI}
|
|
750
|
-
*/
|
|
751
|
-
export class AdminClubSlotsApi extends BaseAPI {
|
|
752
|
-
/**
|
|
753
|
-
*
|
|
754
|
-
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
755
|
-
* @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
|
|
756
|
-
* @param {*} [options] Override http request option.
|
|
757
|
-
* @throws {RequiredError}
|
|
758
|
-
* @memberof AdminClubSlotsApi
|
|
759
|
-
*/
|
|
760
|
-
deleteSlotsByClubInRangeByID(requestParameters, options) {
|
|
761
|
-
return AdminClubSlotsApiFp(this.configuration).deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
762
|
-
}
|
|
763
|
-
/**
|
|
764
|
-
*
|
|
765
|
-
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
766
|
-
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
767
|
-
* @param {*} [options] Override http request option.
|
|
768
|
-
* @throws {RequiredError}
|
|
769
|
-
* @memberof AdminClubSlotsApi
|
|
770
|
-
*/
|
|
771
|
-
generateSlotsForNextThreeWeeks(requestParameters, options) {
|
|
772
|
-
return AdminClubSlotsApiFp(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
773
|
-
}
|
|
774
|
-
/**
|
|
775
|
-
*
|
|
776
|
-
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
777
|
-
* @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
|
|
778
|
-
* @param {*} [options] Override http request option.
|
|
779
|
-
* @throws {RequiredError}
|
|
780
|
-
* @memberof AdminClubSlotsApi
|
|
781
|
-
*/
|
|
782
|
-
getSlotsByClubAdmin(requestParameters, options) {
|
|
783
|
-
return AdminClubSlotsApiFp(this.configuration).getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
/**
|
|
787
|
-
* AdminClubSubscriptionsApi - axios parameter creator
|
|
788
|
-
* @export
|
|
789
|
-
*/
|
|
790
|
-
export const AdminClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
791
|
-
return {
|
|
792
|
-
/**
|
|
793
|
-
*
|
|
794
|
-
* @summary Archiver un prix (Admin)
|
|
795
|
-
* @param {string} id
|
|
796
|
-
* @param {string} priceId
|
|
797
|
-
* @param {*} [options] Override http request option.
|
|
798
|
-
* @throws {RequiredError}
|
|
799
|
-
*/
|
|
800
|
-
archivePriceForSubscriptionPlanAdmin: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
|
|
801
|
-
// verify required parameter 'id' is not null or undefined
|
|
802
|
-
assertParamExists('archivePriceForSubscriptionPlanAdmin', 'id', id);
|
|
803
|
-
// verify required parameter 'priceId' is not null or undefined
|
|
804
|
-
assertParamExists('archivePriceForSubscriptionPlanAdmin', 'priceId', priceId);
|
|
805
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/archive-price`
|
|
806
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
807
|
-
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
808
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
809
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
810
|
-
let baseOptions;
|
|
811
|
-
if (configuration) {
|
|
812
|
-
baseOptions = configuration.baseOptions;
|
|
813
|
-
}
|
|
814
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
815
|
-
const localVarHeaderParameter = {};
|
|
816
|
-
const localVarQueryParameter = {};
|
|
817
|
-
// authentication bearerAuth required
|
|
818
|
-
// http bearer authentication required
|
|
819
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
820
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
821
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
822
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
823
|
-
return {
|
|
824
|
-
url: toPathString(localVarUrlObj),
|
|
825
|
-
options: localVarRequestOptions,
|
|
826
|
-
};
|
|
827
|
-
}),
|
|
828
|
-
/**
|
|
829
|
-
*
|
|
830
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
831
|
-
* @param {string} id
|
|
832
|
-
* @param {string} productId
|
|
833
|
-
* @param {CreatePriceRequest} createPriceRequest
|
|
834
|
-
* @param {*} [options] Override http request option.
|
|
835
|
-
* @throws {RequiredError}
|
|
836
|
-
*/
|
|
837
|
-
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 = {}) {
|
|
838
|
-
// verify required parameter 'id' is not null or undefined
|
|
839
|
-
assertParamExists('createPriceForSubscriptionPlanAdmin', 'id', id);
|
|
840
|
-
// verify required parameter 'productId' is not null or undefined
|
|
841
|
-
assertParamExists('createPriceForSubscriptionPlanAdmin', 'productId', productId);
|
|
842
|
-
// verify required parameter 'createPriceRequest' is not null or undefined
|
|
843
|
-
assertParamExists('createPriceForSubscriptionPlanAdmin', 'createPriceRequest', createPriceRequest);
|
|
844
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/prices`
|
|
845
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
846
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
847
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
848
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
849
|
-
let baseOptions;
|
|
850
|
-
if (configuration) {
|
|
851
|
-
baseOptions = configuration.baseOptions;
|
|
852
|
-
}
|
|
853
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
854
|
-
const localVarHeaderParameter = {};
|
|
855
|
-
const localVarQueryParameter = {};
|
|
856
|
-
// authentication bearerAuth required
|
|
857
|
-
// http bearer authentication required
|
|
858
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
859
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
860
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
861
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
862
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
863
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createPriceRequest, localVarRequestOptions, configuration);
|
|
864
|
-
return {
|
|
865
|
-
url: toPathString(localVarUrlObj),
|
|
866
|
-
options: localVarRequestOptions,
|
|
867
|
-
};
|
|
868
|
-
}),
|
|
869
|
-
/**
|
|
870
|
-
*
|
|
871
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
872
|
-
* @param {string} id
|
|
873
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
874
|
-
* @param {*} [options] Override http request option.
|
|
875
|
-
* @throws {RequiredError}
|
|
876
|
-
*/
|
|
877
|
-
createSubscriptionPlanForClubAdmin: (id_1, createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [id_1, createSubscriptionPlanRequest_1, ...args_1], void 0, function* (id, createSubscriptionPlanRequest, options = {}) {
|
|
878
|
-
// verify required parameter 'id' is not null or undefined
|
|
879
|
-
assertParamExists('createSubscriptionPlanForClubAdmin', 'id', id);
|
|
880
|
-
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
881
|
-
assertParamExists('createSubscriptionPlanForClubAdmin', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
|
|
882
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans`
|
|
883
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
884
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
885
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
886
|
-
let baseOptions;
|
|
887
|
-
if (configuration) {
|
|
888
|
-
baseOptions = configuration.baseOptions;
|
|
889
|
-
}
|
|
890
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
891
|
-
const localVarHeaderParameter = {};
|
|
892
|
-
const localVarQueryParameter = {};
|
|
893
|
-
// authentication bearerAuth required
|
|
894
|
-
// http bearer authentication required
|
|
895
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
896
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
897
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
898
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
899
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
900
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
901
|
-
return {
|
|
902
|
-
url: toPathString(localVarUrlObj),
|
|
903
|
-
options: localVarRequestOptions,
|
|
904
|
-
};
|
|
905
|
-
}),
|
|
906
|
-
/**
|
|
907
|
-
*
|
|
908
|
-
* @summary Supprimer un plan (Admin)
|
|
909
|
-
* @param {string} id
|
|
910
|
-
* @param {string} productId
|
|
911
|
-
* @param {*} [options] Override http request option.
|
|
912
|
-
* @throws {RequiredError}
|
|
913
|
-
*/
|
|
914
|
-
deleteSubscriptionPlanForClubAdmin: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
|
|
915
|
-
// verify required parameter 'id' is not null or undefined
|
|
916
|
-
assertParamExists('deleteSubscriptionPlanForClubAdmin', 'id', id);
|
|
917
|
-
// verify required parameter 'productId' is not null or undefined
|
|
918
|
-
assertParamExists('deleteSubscriptionPlanForClubAdmin', 'productId', productId);
|
|
919
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}`
|
|
920
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
921
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
922
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
923
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
924
|
-
let baseOptions;
|
|
925
|
-
if (configuration) {
|
|
926
|
-
baseOptions = configuration.baseOptions;
|
|
927
|
-
}
|
|
928
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
929
|
-
const localVarHeaderParameter = {};
|
|
930
|
-
const localVarQueryParameter = {};
|
|
931
|
-
// authentication bearerAuth required
|
|
932
|
-
// http bearer authentication required
|
|
933
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
934
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
935
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
936
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
937
|
-
return {
|
|
938
|
-
url: toPathString(localVarUrlObj),
|
|
939
|
-
options: localVarRequestOptions,
|
|
940
|
-
};
|
|
941
|
-
}),
|
|
942
|
-
/**
|
|
943
|
-
*
|
|
944
|
-
* @summary Réactiver un plan (Admin)
|
|
945
|
-
* @param {string} id
|
|
946
|
-
* @param {string} productId
|
|
947
|
-
* @param {*} [options] Override http request option.
|
|
948
|
-
* @throws {RequiredError}
|
|
949
|
-
*/
|
|
950
|
-
restoreSubscriptionPlanForClubAdmin: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
|
|
951
|
-
// verify required parameter 'id' is not null or undefined
|
|
952
|
-
assertParamExists('restoreSubscriptionPlanForClubAdmin', 'id', id);
|
|
953
|
-
// verify required parameter 'productId' is not null or undefined
|
|
954
|
-
assertParamExists('restoreSubscriptionPlanForClubAdmin', 'productId', productId);
|
|
955
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/restore`
|
|
956
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
957
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
958
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
959
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
960
|
-
let baseOptions;
|
|
961
|
-
if (configuration) {
|
|
962
|
-
baseOptions = configuration.baseOptions;
|
|
963
|
-
}
|
|
964
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
965
|
-
const localVarHeaderParameter = {};
|
|
966
|
-
const localVarQueryParameter = {};
|
|
967
|
-
// authentication bearerAuth required
|
|
968
|
-
// http bearer authentication required
|
|
969
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
970
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
971
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
972
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
973
|
-
return {
|
|
974
|
-
url: toPathString(localVarUrlObj),
|
|
975
|
-
options: localVarRequestOptions,
|
|
976
|
-
};
|
|
977
|
-
}),
|
|
978
|
-
/**
|
|
979
|
-
*
|
|
980
|
-
* @summary Réactiver un prix (Admin)
|
|
981
|
-
* @param {string} id
|
|
982
|
-
* @param {string} priceId
|
|
983
|
-
* @param {*} [options] Override http request option.
|
|
984
|
-
* @throws {RequiredError}
|
|
985
|
-
*/
|
|
986
|
-
restoreSubscriptionPriceForClubAdmin: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
|
|
987
|
-
// verify required parameter 'id' is not null or undefined
|
|
988
|
-
assertParamExists('restoreSubscriptionPriceForClubAdmin', 'id', id);
|
|
989
|
-
// verify required parameter 'priceId' is not null or undefined
|
|
990
|
-
assertParamExists('restoreSubscriptionPriceForClubAdmin', 'priceId', priceId);
|
|
991
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/restore-price`
|
|
992
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
993
|
-
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
994
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
995
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
996
|
-
let baseOptions;
|
|
997
|
-
if (configuration) {
|
|
998
|
-
baseOptions = configuration.baseOptions;
|
|
999
|
-
}
|
|
1000
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1001
|
-
const localVarHeaderParameter = {};
|
|
1002
|
-
const localVarQueryParameter = {};
|
|
1003
|
-
// authentication bearerAuth required
|
|
1004
|
-
// http bearer authentication required
|
|
1005
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1006
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1007
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1008
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1009
|
-
return {
|
|
1010
|
-
url: toPathString(localVarUrlObj),
|
|
1011
|
-
options: localVarRequestOptions,
|
|
1012
|
-
};
|
|
1013
|
-
}),
|
|
1014
|
-
/**
|
|
1015
|
-
*
|
|
1016
|
-
* @summary Mettre à jour un plan (Admin)
|
|
1017
|
-
* @param {string} id
|
|
1018
|
-
* @param {string} priceId
|
|
1019
|
-
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
1020
|
-
* @param {*} [options] Override http request option.
|
|
1021
|
-
* @throws {RequiredError}
|
|
1022
|
-
*/
|
|
1023
|
-
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 = {}) {
|
|
1024
|
-
// verify required parameter 'id' is not null or undefined
|
|
1025
|
-
assertParamExists('updateSubscriptionPlanForClubAdmin', 'id', id);
|
|
1026
|
-
// verify required parameter 'priceId' is not null or undefined
|
|
1027
|
-
assertParamExists('updateSubscriptionPlanForClubAdmin', 'priceId', priceId);
|
|
1028
|
-
// verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
|
|
1029
|
-
assertParamExists('updateSubscriptionPlanForClubAdmin', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
|
|
1030
|
-
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}`
|
|
1031
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
1032
|
-
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
1033
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1034
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1035
|
-
let baseOptions;
|
|
1036
|
-
if (configuration) {
|
|
1037
|
-
baseOptions = configuration.baseOptions;
|
|
1038
|
-
}
|
|
1039
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1040
|
-
const localVarHeaderParameter = {};
|
|
1041
|
-
const localVarQueryParameter = {};
|
|
1042
|
-
// authentication bearerAuth required
|
|
1043
|
-
// http bearer authentication required
|
|
1044
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1045
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1046
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1047
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1048
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1049
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
1050
|
-
return {
|
|
1051
|
-
url: toPathString(localVarUrlObj),
|
|
1052
|
-
options: localVarRequestOptions,
|
|
1053
|
-
};
|
|
1054
|
-
}),
|
|
1055
|
-
};
|
|
1056
|
-
};
|
|
1057
|
-
/**
|
|
1058
|
-
* AdminClubSubscriptionsApi - functional programming interface
|
|
1059
|
-
* @export
|
|
1060
|
-
*/
|
|
1061
|
-
export const AdminClubSubscriptionsApiFp = function (configuration) {
|
|
1062
|
-
const localVarAxiosParamCreator = AdminClubSubscriptionsApiAxiosParamCreator(configuration);
|
|
1063
|
-
return {
|
|
1064
|
-
/**
|
|
1065
|
-
*
|
|
1066
|
-
* @summary Archiver un prix (Admin)
|
|
1067
|
-
* @param {string} id
|
|
1068
|
-
* @param {string} priceId
|
|
1069
|
-
* @param {*} [options] Override http request option.
|
|
1070
|
-
* @throws {RequiredError}
|
|
1071
|
-
*/
|
|
1072
|
-
archivePriceForSubscriptionPlanAdmin(id, priceId, options) {
|
|
1073
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1074
|
-
var _a, _b, _c;
|
|
1075
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlanAdmin(id, priceId, options);
|
|
1076
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1077
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.archivePriceForSubscriptionPlanAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1078
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1079
|
-
});
|
|
1080
|
-
},
|
|
1081
|
-
/**
|
|
1082
|
-
*
|
|
1083
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
1084
|
-
* @param {string} id
|
|
1085
|
-
* @param {string} productId
|
|
1086
|
-
* @param {CreatePriceRequest} createPriceRequest
|
|
1087
|
-
* @param {*} [options] Override http request option.
|
|
1088
|
-
* @throws {RequiredError}
|
|
1089
|
-
*/
|
|
1090
|
-
createPriceForSubscriptionPlanAdmin(id, productId, createPriceRequest, options) {
|
|
1091
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1092
|
-
var _a, _b, _c;
|
|
1093
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlanAdmin(id, productId, createPriceRequest, options);
|
|
1094
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1095
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.createPriceForSubscriptionPlanAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1096
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1097
|
-
});
|
|
1098
|
-
},
|
|
1099
|
-
/**
|
|
1100
|
-
*
|
|
1101
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
1102
|
-
* @param {string} id
|
|
1103
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
1104
|
-
* @param {*} [options] Override http request option.
|
|
1105
|
-
* @throws {RequiredError}
|
|
1106
|
-
*/
|
|
1107
|
-
createSubscriptionPlanForClubAdmin(id, createSubscriptionPlanRequest, options) {
|
|
1108
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1109
|
-
var _a, _b, _c;
|
|
1110
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClubAdmin(id, createSubscriptionPlanRequest, options);
|
|
1111
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1112
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.createSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1113
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1114
|
-
});
|
|
1115
|
-
},
|
|
1116
|
-
/**
|
|
1117
|
-
*
|
|
1118
|
-
* @summary Supprimer un plan (Admin)
|
|
1119
|
-
* @param {string} id
|
|
1120
|
-
* @param {string} productId
|
|
1121
|
-
* @param {*} [options] Override http request option.
|
|
1122
|
-
* @throws {RequiredError}
|
|
1123
|
-
*/
|
|
1124
|
-
deleteSubscriptionPlanForClubAdmin(id, productId, options) {
|
|
1125
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1126
|
-
var _a, _b, _c;
|
|
1127
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClubAdmin(id, productId, options);
|
|
1128
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1129
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.deleteSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1130
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1131
|
-
});
|
|
1132
|
-
},
|
|
1133
|
-
/**
|
|
1134
|
-
*
|
|
1135
|
-
* @summary Réactiver un plan (Admin)
|
|
1136
|
-
* @param {string} id
|
|
1137
|
-
* @param {string} productId
|
|
1138
|
-
* @param {*} [options] Override http request option.
|
|
1139
|
-
* @throws {RequiredError}
|
|
1140
|
-
*/
|
|
1141
|
-
restoreSubscriptionPlanForClubAdmin(id, productId, options) {
|
|
1142
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1143
|
-
var _a, _b, _c;
|
|
1144
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClubAdmin(id, productId, options);
|
|
1145
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1146
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1147
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1148
|
-
});
|
|
1149
|
-
},
|
|
1150
|
-
/**
|
|
1151
|
-
*
|
|
1152
|
-
* @summary Réactiver un prix (Admin)
|
|
1153
|
-
* @param {string} id
|
|
1154
|
-
* @param {string} priceId
|
|
1155
|
-
* @param {*} [options] Override http request option.
|
|
1156
|
-
* @throws {RequiredError}
|
|
1157
|
-
*/
|
|
1158
|
-
restoreSubscriptionPriceForClubAdmin(id, priceId, options) {
|
|
1159
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1160
|
-
var _a, _b, _c;
|
|
1161
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClubAdmin(id, priceId, 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 = operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPriceForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1164
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1165
|
-
});
|
|
1166
|
-
},
|
|
1167
|
-
/**
|
|
1168
|
-
*
|
|
1169
|
-
* @summary Mettre à jour un plan (Admin)
|
|
1170
|
-
* @param {string} id
|
|
1171
|
-
* @param {string} priceId
|
|
1172
|
-
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
1173
|
-
* @param {*} [options] Override http request option.
|
|
1174
|
-
* @throws {RequiredError}
|
|
1175
|
-
*/
|
|
1176
|
-
updateSubscriptionPlanForClubAdmin(id, priceId, updateSubscriptionPlanRequest, options) {
|
|
1177
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1178
|
-
var _a, _b, _c;
|
|
1179
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClubAdmin(id, priceId, updateSubscriptionPlanRequest, options);
|
|
1180
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1181
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.updateSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1182
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1183
|
-
});
|
|
1184
|
-
},
|
|
1185
|
-
};
|
|
1186
|
-
};
|
|
1187
|
-
/**
|
|
1188
|
-
* AdminClubSubscriptionsApi - factory interface
|
|
1189
|
-
* @export
|
|
1190
|
-
*/
|
|
1191
|
-
export const AdminClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
1192
|
-
const localVarFp = AdminClubSubscriptionsApiFp(configuration);
|
|
1193
|
-
return {
|
|
1194
|
-
/**
|
|
1195
|
-
*
|
|
1196
|
-
* @summary Archiver un prix (Admin)
|
|
1197
|
-
* @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
1198
|
-
* @param {*} [options] Override http request option.
|
|
1199
|
-
* @throws {RequiredError}
|
|
1200
|
-
*/
|
|
1201
|
-
archivePriceForSubscriptionPlanAdmin(requestParameters, options) {
|
|
1202
|
-
return localVarFp.archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
|
|
1203
|
-
},
|
|
1204
|
-
/**
|
|
1205
|
-
*
|
|
1206
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
1207
|
-
* @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
1208
|
-
* @param {*} [options] Override http request option.
|
|
1209
|
-
* @throws {RequiredError}
|
|
1210
|
-
*/
|
|
1211
|
-
createPriceForSubscriptionPlanAdmin(requestParameters, options) {
|
|
1212
|
-
return localVarFp.createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
|
|
1213
|
-
},
|
|
1214
|
-
/**
|
|
1215
|
-
*
|
|
1216
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
1217
|
-
* @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1218
|
-
* @param {*} [options] Override http request option.
|
|
1219
|
-
* @throws {RequiredError}
|
|
1220
|
-
*/
|
|
1221
|
-
createSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1222
|
-
return localVarFp.createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
1223
|
-
},
|
|
1224
|
-
/**
|
|
1225
|
-
*
|
|
1226
|
-
* @summary Supprimer un plan (Admin)
|
|
1227
|
-
* @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1228
|
-
* @param {*} [options] Override http request option.
|
|
1229
|
-
* @throws {RequiredError}
|
|
1230
|
-
*/
|
|
1231
|
-
deleteSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1232
|
-
return localVarFp.deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
1233
|
-
},
|
|
1234
|
-
/**
|
|
1235
|
-
*
|
|
1236
|
-
* @summary Réactiver un plan (Admin)
|
|
1237
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1238
|
-
* @param {*} [options] Override http request option.
|
|
1239
|
-
* @throws {RequiredError}
|
|
1240
|
-
*/
|
|
1241
|
-
restoreSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1242
|
-
return localVarFp.restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
1243
|
-
},
|
|
1244
|
-
/**
|
|
1245
|
-
*
|
|
1246
|
-
* @summary Réactiver un prix (Admin)
|
|
1247
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
|
|
1248
|
-
* @param {*} [options] Override http request option.
|
|
1249
|
-
* @throws {RequiredError}
|
|
1250
|
-
*/
|
|
1251
|
-
restoreSubscriptionPriceForClubAdmin(requestParameters, options) {
|
|
1252
|
-
return localVarFp.restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
|
|
1253
|
-
},
|
|
1254
|
-
/**
|
|
1255
|
-
*
|
|
1256
|
-
* @summary Mettre à jour un plan (Admin)
|
|
1257
|
-
* @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1258
|
-
* @param {*} [options] Override http request option.
|
|
1259
|
-
* @throws {RequiredError}
|
|
1260
|
-
*/
|
|
1261
|
-
updateSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1262
|
-
return localVarFp.updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
1263
|
-
},
|
|
1264
|
-
};
|
|
1265
|
-
};
|
|
1266
|
-
/**
|
|
1267
|
-
* AdminClubSubscriptionsApi - object-oriented interface
|
|
1268
|
-
* @export
|
|
1269
|
-
* @class AdminClubSubscriptionsApi
|
|
1270
|
-
* @extends {BaseAPI}
|
|
1271
|
-
*/
|
|
1272
|
-
export class AdminClubSubscriptionsApi extends BaseAPI {
|
|
1273
|
-
/**
|
|
1274
|
-
*
|
|
1275
|
-
* @summary Archiver un prix (Admin)
|
|
1276
|
-
* @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
1277
|
-
* @param {*} [options] Override http request option.
|
|
1278
|
-
* @throws {RequiredError}
|
|
1279
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1280
|
-
*/
|
|
1281
|
-
archivePriceForSubscriptionPlanAdmin(requestParameters, options) {
|
|
1282
|
-
return AdminClubSubscriptionsApiFp(this.configuration).archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1283
|
-
}
|
|
1284
|
-
/**
|
|
1285
|
-
*
|
|
1286
|
-
* @summary Créer un prix pour un plan (Admin)
|
|
1287
|
-
* @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
1288
|
-
* @param {*} [options] Override http request option.
|
|
1289
|
-
* @throws {RequiredError}
|
|
1290
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1291
|
-
*/
|
|
1292
|
-
createPriceForSubscriptionPlanAdmin(requestParameters, options) {
|
|
1293
|
-
return AdminClubSubscriptionsApiFp(this.configuration).createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1294
|
-
}
|
|
1295
|
-
/**
|
|
1296
|
-
*
|
|
1297
|
-
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
1298
|
-
* @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1299
|
-
* @param {*} [options] Override http request option.
|
|
1300
|
-
* @throws {RequiredError}
|
|
1301
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1302
|
-
*/
|
|
1303
|
-
createSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1304
|
-
return AdminClubSubscriptionsApiFp(this.configuration).createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1305
|
-
}
|
|
1306
|
-
/**
|
|
1307
|
-
*
|
|
1308
|
-
* @summary Supprimer un plan (Admin)
|
|
1309
|
-
* @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1310
|
-
* @param {*} [options] Override http request option.
|
|
1311
|
-
* @throws {RequiredError}
|
|
1312
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1313
|
-
*/
|
|
1314
|
-
deleteSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1315
|
-
return AdminClubSubscriptionsApiFp(this.configuration).deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1316
|
-
}
|
|
1317
|
-
/**
|
|
1318
|
-
*
|
|
1319
|
-
* @summary Réactiver un plan (Admin)
|
|
1320
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1321
|
-
* @param {*} [options] Override http request option.
|
|
1322
|
-
* @throws {RequiredError}
|
|
1323
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1324
|
-
*/
|
|
1325
|
-
restoreSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1326
|
-
return AdminClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1327
|
-
}
|
|
1328
|
-
/**
|
|
1329
|
-
*
|
|
1330
|
-
* @summary Réactiver un prix (Admin)
|
|
1331
|
-
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
|
|
1332
|
-
* @param {*} [options] Override http request option.
|
|
1333
|
-
* @throws {RequiredError}
|
|
1334
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1335
|
-
*/
|
|
1336
|
-
restoreSubscriptionPriceForClubAdmin(requestParameters, options) {
|
|
1337
|
-
return AdminClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1338
|
-
}
|
|
1339
|
-
/**
|
|
1340
|
-
*
|
|
1341
|
-
* @summary Mettre à jour un plan (Admin)
|
|
1342
|
-
* @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1343
|
-
* @param {*} [options] Override http request option.
|
|
1344
|
-
* @throws {RequiredError}
|
|
1345
|
-
* @memberof AdminClubSubscriptionsApi
|
|
1346
|
-
*/
|
|
1347
|
-
updateSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1348
|
-
return AdminClubSubscriptionsApiFp(this.configuration).updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
/**
|
|
1352
|
-
* AdminClubsApi - axios parameter creator
|
|
1353
|
-
* @export
|
|
1354
|
-
*/
|
|
1355
|
-
export const AdminClubsApiAxiosParamCreator = function (configuration) {
|
|
1356
|
-
return {
|
|
1357
|
-
/**
|
|
1358
|
-
*
|
|
1359
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
1360
|
-
* @param {string} id ID du club
|
|
1361
|
-
* @param {*} [options] Override http request option.
|
|
1362
|
-
* @throws {RequiredError}
|
|
1363
|
-
*/
|
|
1364
|
-
deleteClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1365
|
-
// verify required parameter 'id' is not null or undefined
|
|
1366
|
-
assertParamExists('deleteClub', 'id', id);
|
|
1367
|
-
const localVarPath = `/api/clubs/{id}`
|
|
1368
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1369
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1370
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1371
|
-
let baseOptions;
|
|
1372
|
-
if (configuration) {
|
|
1373
|
-
baseOptions = configuration.baseOptions;
|
|
1374
|
-
}
|
|
1375
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1376
|
-
const localVarHeaderParameter = {};
|
|
1377
|
-
const localVarQueryParameter = {};
|
|
1378
|
-
// authentication bearerAuth required
|
|
1379
|
-
// http bearer authentication required
|
|
1380
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1381
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1382
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1383
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1384
|
-
return {
|
|
1385
|
-
url: toPathString(localVarUrlObj),
|
|
1386
|
-
options: localVarRequestOptions,
|
|
1387
|
-
};
|
|
1388
|
-
}),
|
|
1389
|
-
/**
|
|
1390
|
-
*
|
|
1391
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
1392
|
-
* @param {string} id
|
|
1393
|
-
* @param {*} [options] Override http request option.
|
|
1394
|
-
* @throws {RequiredError}
|
|
1395
|
-
*/
|
|
1396
|
-
getClubInfosAdmin: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1397
|
-
// verify required parameter 'id' is not null or undefined
|
|
1398
|
-
assertParamExists('getClubInfosAdmin', 'id', id);
|
|
1399
|
-
const localVarPath = `/api/clubs/{id}/infos`
|
|
1400
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1401
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1402
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1403
|
-
let baseOptions;
|
|
1404
|
-
if (configuration) {
|
|
1405
|
-
baseOptions = configuration.baseOptions;
|
|
1406
|
-
}
|
|
1407
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1408
|
-
const localVarHeaderParameter = {};
|
|
1409
|
-
const localVarQueryParameter = {};
|
|
1410
|
-
// authentication bearerAuth required
|
|
1411
|
-
// http bearer authentication required
|
|
1412
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1413
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1414
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1415
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1416
|
-
return {
|
|
1417
|
-
url: toPathString(localVarUrlObj),
|
|
1418
|
-
options: localVarRequestOptions,
|
|
1419
|
-
};
|
|
1420
|
-
}),
|
|
1421
|
-
/**
|
|
1422
|
-
*
|
|
1423
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
1424
|
-
* @param {string} id
|
|
1425
|
-
* @param {object} body
|
|
1426
|
-
* @param {*} [options] Override http request option.
|
|
1427
|
-
* @throws {RequiredError}
|
|
1428
|
-
*/
|
|
1429
|
-
updateClubInfosAdmin: (id_1, body_1, ...args_1) => __awaiter(this, [id_1, body_1, ...args_1], void 0, function* (id, body, options = {}) {
|
|
1430
|
-
// verify required parameter 'id' is not null or undefined
|
|
1431
|
-
assertParamExists('updateClubInfosAdmin', 'id', id);
|
|
1432
|
-
// verify required parameter 'body' is not null or undefined
|
|
1433
|
-
assertParamExists('updateClubInfosAdmin', 'body', body);
|
|
1434
|
-
const localVarPath = `/api/clubs/{id}/infos`
|
|
1435
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1436
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1437
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1438
|
-
let baseOptions;
|
|
1439
|
-
if (configuration) {
|
|
1440
|
-
baseOptions = configuration.baseOptions;
|
|
1441
|
-
}
|
|
1442
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1443
|
-
const localVarHeaderParameter = {};
|
|
1444
|
-
const localVarQueryParameter = {};
|
|
1445
|
-
// authentication bearerAuth required
|
|
1446
|
-
// http bearer authentication required
|
|
1447
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1448
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1449
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1450
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1451
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1452
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
1453
|
-
return {
|
|
1454
|
-
url: toPathString(localVarUrlObj),
|
|
1455
|
-
options: localVarRequestOptions,
|
|
1456
|
-
};
|
|
1457
|
-
}),
|
|
1458
|
-
};
|
|
1459
|
-
};
|
|
1460
|
-
/**
|
|
1461
|
-
* AdminClubsApi - functional programming interface
|
|
1462
|
-
* @export
|
|
1463
|
-
*/
|
|
1464
|
-
export const AdminClubsApiFp = function (configuration) {
|
|
1465
|
-
const localVarAxiosParamCreator = AdminClubsApiAxiosParamCreator(configuration);
|
|
1466
|
-
return {
|
|
1467
|
-
/**
|
|
1468
|
-
*
|
|
1469
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
1470
|
-
* @param {string} id ID du club
|
|
1471
|
-
* @param {*} [options] Override http request option.
|
|
1472
|
-
* @throws {RequiredError}
|
|
1473
|
-
*/
|
|
1474
|
-
deleteClub(id, options) {
|
|
1475
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1476
|
-
var _a, _b, _c;
|
|
1477
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClub(id, options);
|
|
1478
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1479
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubsApi.deleteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1480
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1481
|
-
});
|
|
1482
|
-
},
|
|
1483
|
-
/**
|
|
1484
|
-
*
|
|
1485
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
1486
|
-
* @param {string} id
|
|
1487
|
-
* @param {*} [options] Override http request option.
|
|
1488
|
-
* @throws {RequiredError}
|
|
1489
|
-
*/
|
|
1490
|
-
getClubInfosAdmin(id, options) {
|
|
1491
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1492
|
-
var _a, _b, _c;
|
|
1493
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfosAdmin(id, options);
|
|
1494
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1495
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubsApi.getClubInfosAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1496
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1497
|
-
});
|
|
1498
|
-
},
|
|
1499
|
-
/**
|
|
1500
|
-
*
|
|
1501
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
1502
|
-
* @param {string} id
|
|
1503
|
-
* @param {object} body
|
|
1504
|
-
* @param {*} [options] Override http request option.
|
|
1505
|
-
* @throws {RequiredError}
|
|
1506
|
-
*/
|
|
1507
|
-
updateClubInfosAdmin(id, body, options) {
|
|
1508
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1509
|
-
var _a, _b, _c;
|
|
1510
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubInfosAdmin(id, body, options);
|
|
1511
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1512
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubsApi.updateClubInfosAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1513
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1514
|
-
});
|
|
1515
|
-
},
|
|
1516
|
-
};
|
|
1517
|
-
};
|
|
1518
|
-
/**
|
|
1519
|
-
* AdminClubsApi - factory interface
|
|
1520
|
-
* @export
|
|
1521
|
-
*/
|
|
1522
|
-
export const AdminClubsApiFactory = function (configuration, basePath, axios) {
|
|
1523
|
-
const localVarFp = AdminClubsApiFp(configuration);
|
|
1524
|
-
return {
|
|
1525
|
-
/**
|
|
1526
|
-
*
|
|
1527
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
1528
|
-
* @param {AdminClubsApiDeleteClubRequest} requestParameters Request parameters.
|
|
1529
|
-
* @param {*} [options] Override http request option.
|
|
1530
|
-
* @throws {RequiredError}
|
|
1531
|
-
*/
|
|
1532
|
-
deleteClub(requestParameters, options) {
|
|
1533
|
-
return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1534
|
-
},
|
|
1535
|
-
/**
|
|
1536
|
-
*
|
|
1537
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
1538
|
-
* @param {AdminClubsApiGetClubInfosAdminRequest} requestParameters Request parameters.
|
|
1539
|
-
* @param {*} [options] Override http request option.
|
|
1540
|
-
* @throws {RequiredError}
|
|
1541
|
-
*/
|
|
1542
|
-
getClubInfosAdmin(requestParameters, options) {
|
|
1543
|
-
return localVarFp.getClubInfosAdmin(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1544
|
-
},
|
|
1545
|
-
/**
|
|
1546
|
-
*
|
|
1547
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
1548
|
-
* @param {AdminClubsApiUpdateClubInfosAdminRequest} requestParameters Request parameters.
|
|
1549
|
-
* @param {*} [options] Override http request option.
|
|
1550
|
-
* @throws {RequiredError}
|
|
1551
|
-
*/
|
|
1552
|
-
updateClubInfosAdmin(requestParameters, options) {
|
|
1553
|
-
return localVarFp.updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1554
|
-
},
|
|
1555
|
-
};
|
|
1556
|
-
};
|
|
1557
|
-
/**
|
|
1558
|
-
* AdminClubsApi - object-oriented interface
|
|
1559
|
-
* @export
|
|
1560
|
-
* @class AdminClubsApi
|
|
1561
|
-
* @extends {BaseAPI}
|
|
1562
|
-
*/
|
|
1563
|
-
export class AdminClubsApi extends BaseAPI {
|
|
1564
|
-
/**
|
|
1565
|
-
*
|
|
1566
|
-
* @summary Supprimer un club (Admin uniquement)
|
|
1567
|
-
* @param {AdminClubsApiDeleteClubRequest} requestParameters Request parameters.
|
|
1568
|
-
* @param {*} [options] Override http request option.
|
|
1569
|
-
* @throws {RequiredError}
|
|
1570
|
-
* @memberof AdminClubsApi
|
|
1571
|
-
*/
|
|
1572
|
-
deleteClub(requestParameters, options) {
|
|
1573
|
-
return AdminClubsApiFp(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1574
|
-
}
|
|
1575
|
-
/**
|
|
1576
|
-
*
|
|
1577
|
-
* @summary Obtenir les infos d\'un club (Admin)
|
|
1578
|
-
* @param {AdminClubsApiGetClubInfosAdminRequest} requestParameters Request parameters.
|
|
1579
|
-
* @param {*} [options] Override http request option.
|
|
1580
|
-
* @throws {RequiredError}
|
|
1581
|
-
* @memberof AdminClubsApi
|
|
1582
|
-
*/
|
|
1583
|
-
getClubInfosAdmin(requestParameters, options) {
|
|
1584
|
-
return AdminClubsApiFp(this.configuration).getClubInfosAdmin(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1585
|
-
}
|
|
1586
|
-
/**
|
|
1587
|
-
*
|
|
1588
|
-
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
1589
|
-
* @param {AdminClubsApiUpdateClubInfosAdminRequest} requestParameters Request parameters.
|
|
1590
|
-
* @param {*} [options] Override http request option.
|
|
1591
|
-
* @throws {RequiredError}
|
|
1592
|
-
* @memberof AdminClubsApi
|
|
1593
|
-
*/
|
|
1594
|
-
updateClubInfosAdmin(requestParameters, options) {
|
|
1595
|
-
return AdminClubsApiFp(this.configuration).updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
138
|
+
export const UpdateCourtRequestStatusEnum = {
|
|
139
|
+
Available: 'available',
|
|
140
|
+
Unavailable: 'unavailable'
|
|
141
|
+
};
|
|
142
|
+
export const UpdateCourtRequestSurfaceEnum = {
|
|
143
|
+
Clay: 'clay',
|
|
144
|
+
Grass: 'grass',
|
|
145
|
+
Hard: 'hard'
|
|
146
|
+
};
|
|
1598
147
|
/**
|
|
1599
148
|
* ClubAnalyticsApi - axios parameter creator
|
|
1600
149
|
* @export
|
|
@@ -2455,6 +1004,38 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2455
1004
|
options: localVarRequestOptions,
|
|
2456
1005
|
};
|
|
2457
1006
|
}),
|
|
1007
|
+
/**
|
|
1008
|
+
*
|
|
1009
|
+
* @summary Supprimer un terrain et ses créneaux futurs
|
|
1010
|
+
* @param {string} courtId ID du terrain à supprimer
|
|
1011
|
+
* @param {*} [options] Override http request option.
|
|
1012
|
+
* @throws {RequiredError}
|
|
1013
|
+
*/
|
|
1014
|
+
deleteCourt: (courtId_1, ...args_1) => __awaiter(this, [courtId_1, ...args_1], void 0, function* (courtId, options = {}) {
|
|
1015
|
+
// verify required parameter 'courtId' is not null or undefined
|
|
1016
|
+
assertParamExists('deleteCourt', 'courtId', courtId);
|
|
1017
|
+
const localVarPath = `/api/clubs/courts/{courtId}`
|
|
1018
|
+
.replace(`{${"courtId"}}`, encodeURIComponent(String(courtId)));
|
|
1019
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1020
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1021
|
+
let baseOptions;
|
|
1022
|
+
if (configuration) {
|
|
1023
|
+
baseOptions = configuration.baseOptions;
|
|
1024
|
+
}
|
|
1025
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1026
|
+
const localVarHeaderParameter = {};
|
|
1027
|
+
const localVarQueryParameter = {};
|
|
1028
|
+
// authentication bearerAuth required
|
|
1029
|
+
// http bearer authentication required
|
|
1030
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1031
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1032
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1033
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1034
|
+
return {
|
|
1035
|
+
url: toPathString(localVarUrlObj),
|
|
1036
|
+
options: localVarRequestOptions,
|
|
1037
|
+
};
|
|
1038
|
+
}),
|
|
2458
1039
|
/**
|
|
2459
1040
|
*
|
|
2460
1041
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -2483,6 +1064,43 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
2483
1064
|
options: localVarRequestOptions,
|
|
2484
1065
|
};
|
|
2485
1066
|
}),
|
|
1067
|
+
/**
|
|
1068
|
+
*
|
|
1069
|
+
* @summary Mettre à jour un terrain du club courant
|
|
1070
|
+
* @param {string} courtId ID du terrain à mettre à jour
|
|
1071
|
+
* @param {UpdateCourtRequest} updateCourtRequest
|
|
1072
|
+
* @param {*} [options] Override http request option.
|
|
1073
|
+
* @throws {RequiredError}
|
|
1074
|
+
*/
|
|
1075
|
+
updateCourt: (courtId_1, updateCourtRequest_1, ...args_1) => __awaiter(this, [courtId_1, updateCourtRequest_1, ...args_1], void 0, function* (courtId, updateCourtRequest, options = {}) {
|
|
1076
|
+
// verify required parameter 'courtId' is not null or undefined
|
|
1077
|
+
assertParamExists('updateCourt', 'courtId', courtId);
|
|
1078
|
+
// verify required parameter 'updateCourtRequest' is not null or undefined
|
|
1079
|
+
assertParamExists('updateCourt', 'updateCourtRequest', updateCourtRequest);
|
|
1080
|
+
const localVarPath = `/api/clubs/courts/{courtId}`
|
|
1081
|
+
.replace(`{${"courtId"}}`, encodeURIComponent(String(courtId)));
|
|
1082
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1083
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1084
|
+
let baseOptions;
|
|
1085
|
+
if (configuration) {
|
|
1086
|
+
baseOptions = configuration.baseOptions;
|
|
1087
|
+
}
|
|
1088
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1089
|
+
const localVarHeaderParameter = {};
|
|
1090
|
+
const localVarQueryParameter = {};
|
|
1091
|
+
// authentication bearerAuth required
|
|
1092
|
+
// http bearer authentication required
|
|
1093
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1094
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1095
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1096
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1097
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1098
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCourtRequest, localVarRequestOptions, configuration);
|
|
1099
|
+
return {
|
|
1100
|
+
url: toPathString(localVarUrlObj),
|
|
1101
|
+
options: localVarRequestOptions,
|
|
1102
|
+
};
|
|
1103
|
+
}),
|
|
2486
1104
|
};
|
|
2487
1105
|
};
|
|
2488
1106
|
/**
|
|
@@ -2508,6 +1126,22 @@ export const ManagerClubCourtsApiFp = function (configuration) {
|
|
|
2508
1126
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2509
1127
|
});
|
|
2510
1128
|
},
|
|
1129
|
+
/**
|
|
1130
|
+
*
|
|
1131
|
+
* @summary Supprimer un terrain et ses créneaux futurs
|
|
1132
|
+
* @param {string} courtId ID du terrain à supprimer
|
|
1133
|
+
* @param {*} [options] Override http request option.
|
|
1134
|
+
* @throws {RequiredError}
|
|
1135
|
+
*/
|
|
1136
|
+
deleteCourt(courtId, options) {
|
|
1137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1138
|
+
var _a, _b, _c;
|
|
1139
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCourt(courtId, options);
|
|
1140
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1141
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubCourtsApi.deleteCourt']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1142
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1143
|
+
});
|
|
1144
|
+
},
|
|
2511
1145
|
/**
|
|
2512
1146
|
*
|
|
2513
1147
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -2523,6 +1157,23 @@ export const ManagerClubCourtsApiFp = function (configuration) {
|
|
|
2523
1157
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2524
1158
|
});
|
|
2525
1159
|
},
|
|
1160
|
+
/**
|
|
1161
|
+
*
|
|
1162
|
+
* @summary Mettre à jour un terrain du club courant
|
|
1163
|
+
* @param {string} courtId ID du terrain à mettre à jour
|
|
1164
|
+
* @param {UpdateCourtRequest} updateCourtRequest
|
|
1165
|
+
* @param {*} [options] Override http request option.
|
|
1166
|
+
* @throws {RequiredError}
|
|
1167
|
+
*/
|
|
1168
|
+
updateCourt(courtId, updateCourtRequest, options) {
|
|
1169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1170
|
+
var _a, _b, _c;
|
|
1171
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCourt(courtId, updateCourtRequest, options);
|
|
1172
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1173
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubCourtsApi.updateCourt']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1174
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1175
|
+
});
|
|
1176
|
+
},
|
|
2526
1177
|
};
|
|
2527
1178
|
};
|
|
2528
1179
|
/**
|
|
@@ -2542,6 +1193,16 @@ export const ManagerClubCourtsApiFactory = function (configuration, basePath, ax
|
|
|
2542
1193
|
createCourtForClub(requestParameters, options) {
|
|
2543
1194
|
return localVarFp.createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
|
|
2544
1195
|
},
|
|
1196
|
+
/**
|
|
1197
|
+
*
|
|
1198
|
+
* @summary Supprimer un terrain et ses créneaux futurs
|
|
1199
|
+
* @param {ManagerClubCourtsApiDeleteCourtRequest} requestParameters Request parameters.
|
|
1200
|
+
* @param {*} [options] Override http request option.
|
|
1201
|
+
* @throws {RequiredError}
|
|
1202
|
+
*/
|
|
1203
|
+
deleteCourt(requestParameters, options) {
|
|
1204
|
+
return localVarFp.deleteCourt(requestParameters.courtId, options).then((request) => request(axios, basePath));
|
|
1205
|
+
},
|
|
2545
1206
|
/**
|
|
2546
1207
|
*
|
|
2547
1208
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -2551,6 +1212,16 @@ export const ManagerClubCourtsApiFactory = function (configuration, basePath, ax
|
|
|
2551
1212
|
getCourtsByClub(options) {
|
|
2552
1213
|
return localVarFp.getCourtsByClub(options).then((request) => request(axios, basePath));
|
|
2553
1214
|
},
|
|
1215
|
+
/**
|
|
1216
|
+
*
|
|
1217
|
+
* @summary Mettre à jour un terrain du club courant
|
|
1218
|
+
* @param {ManagerClubCourtsApiUpdateCourtRequest} requestParameters Request parameters.
|
|
1219
|
+
* @param {*} [options] Override http request option.
|
|
1220
|
+
* @throws {RequiredError}
|
|
1221
|
+
*/
|
|
1222
|
+
updateCourt(requestParameters, options) {
|
|
1223
|
+
return localVarFp.updateCourt(requestParameters.courtId, requestParameters.updateCourtRequest, options).then((request) => request(axios, basePath));
|
|
1224
|
+
},
|
|
2554
1225
|
};
|
|
2555
1226
|
};
|
|
2556
1227
|
/**
|
|
@@ -2571,6 +1242,17 @@ export class ManagerClubCourtsApi extends BaseAPI {
|
|
|
2571
1242
|
createCourtForClub(requestParameters, options) {
|
|
2572
1243
|
return ManagerClubCourtsApiFp(this.configuration).createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2573
1244
|
}
|
|
1245
|
+
/**
|
|
1246
|
+
*
|
|
1247
|
+
* @summary Supprimer un terrain et ses créneaux futurs
|
|
1248
|
+
* @param {ManagerClubCourtsApiDeleteCourtRequest} requestParameters Request parameters.
|
|
1249
|
+
* @param {*} [options] Override http request option.
|
|
1250
|
+
* @throws {RequiredError}
|
|
1251
|
+
* @memberof ManagerClubCourtsApi
|
|
1252
|
+
*/
|
|
1253
|
+
deleteCourt(requestParameters, options) {
|
|
1254
|
+
return ManagerClubCourtsApiFp(this.configuration).deleteCourt(requestParameters.courtId, options).then((request) => request(this.axios, this.basePath));
|
|
1255
|
+
}
|
|
2574
1256
|
/**
|
|
2575
1257
|
*
|
|
2576
1258
|
* @summary Récupérer tous les terrains du club courant
|
|
@@ -2581,6 +1263,17 @@ export class ManagerClubCourtsApi extends BaseAPI {
|
|
|
2581
1263
|
getCourtsByClub(options) {
|
|
2582
1264
|
return ManagerClubCourtsApiFp(this.configuration).getCourtsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
2583
1265
|
}
|
|
1266
|
+
/**
|
|
1267
|
+
*
|
|
1268
|
+
* @summary Mettre à jour un terrain du club courant
|
|
1269
|
+
* @param {ManagerClubCourtsApiUpdateCourtRequest} requestParameters Request parameters.
|
|
1270
|
+
* @param {*} [options] Override http request option.
|
|
1271
|
+
* @throws {RequiredError}
|
|
1272
|
+
* @memberof ManagerClubCourtsApi
|
|
1273
|
+
*/
|
|
1274
|
+
updateCourt(requestParameters, options) {
|
|
1275
|
+
return ManagerClubCourtsApiFp(this.configuration).updateCourt(requestParameters.courtId, requestParameters.updateCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1276
|
+
}
|
|
2584
1277
|
}
|
|
2585
1278
|
/**
|
|
2586
1279
|
* ManagerClubRolesApi - axios parameter creator
|
|
@@ -4362,39 +3055,6 @@ export class ManagerEventsApi extends BaseAPI {
|
|
|
4362
3055
|
*/
|
|
4363
3056
|
export const ManagerSportsApiAxiosParamCreator = function (configuration) {
|
|
4364
3057
|
return {
|
|
4365
|
-
/**
|
|
4366
|
-
*
|
|
4367
|
-
* @summary Créer un sport dans un club
|
|
4368
|
-
* @param {CreateSportRequest} createSportRequest
|
|
4369
|
-
* @param {*} [options] Override http request option.
|
|
4370
|
-
* @throws {RequiredError}
|
|
4371
|
-
*/
|
|
4372
|
-
createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
|
|
4373
|
-
// verify required parameter 'createSportRequest' is not null or undefined
|
|
4374
|
-
assertParamExists('createSport', 'createSportRequest', createSportRequest);
|
|
4375
|
-
const localVarPath = `/api/sports`;
|
|
4376
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4377
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4378
|
-
let baseOptions;
|
|
4379
|
-
if (configuration) {
|
|
4380
|
-
baseOptions = configuration.baseOptions;
|
|
4381
|
-
}
|
|
4382
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4383
|
-
const localVarHeaderParameter = {};
|
|
4384
|
-
const localVarQueryParameter = {};
|
|
4385
|
-
// authentication bearerAuth required
|
|
4386
|
-
// http bearer authentication required
|
|
4387
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4388
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4389
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4390
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4391
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4392
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createSportRequest, localVarRequestOptions, configuration);
|
|
4393
|
-
return {
|
|
4394
|
-
url: toPathString(localVarUrlObj),
|
|
4395
|
-
options: localVarRequestOptions,
|
|
4396
|
-
};
|
|
4397
|
-
}),
|
|
4398
3058
|
/**
|
|
4399
3059
|
*
|
|
4400
3060
|
* @summary Supprimer un sport
|
|
@@ -4473,22 +3133,6 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration) {
|
|
|
4473
3133
|
export const ManagerSportsApiFp = function (configuration) {
|
|
4474
3134
|
const localVarAxiosParamCreator = ManagerSportsApiAxiosParamCreator(configuration);
|
|
4475
3135
|
return {
|
|
4476
|
-
/**
|
|
4477
|
-
*
|
|
4478
|
-
* @summary Créer un sport dans un club
|
|
4479
|
-
* @param {CreateSportRequest} createSportRequest
|
|
4480
|
-
* @param {*} [options] Override http request option.
|
|
4481
|
-
* @throws {RequiredError}
|
|
4482
|
-
*/
|
|
4483
|
-
createSport(createSportRequest, options) {
|
|
4484
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4485
|
-
var _a, _b, _c;
|
|
4486
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSport(createSportRequest, options);
|
|
4487
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4488
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.createSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4489
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4490
|
-
});
|
|
4491
|
-
},
|
|
4492
3136
|
/**
|
|
4493
3137
|
*
|
|
4494
3138
|
* @summary Supprimer un sport
|
|
@@ -4531,16 +3175,6 @@ export const ManagerSportsApiFp = function (configuration) {
|
|
|
4531
3175
|
export const ManagerSportsApiFactory = function (configuration, basePath, axios) {
|
|
4532
3176
|
const localVarFp = ManagerSportsApiFp(configuration);
|
|
4533
3177
|
return {
|
|
4534
|
-
/**
|
|
4535
|
-
*
|
|
4536
|
-
* @summary Créer un sport dans un club
|
|
4537
|
-
* @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
|
|
4538
|
-
* @param {*} [options] Override http request option.
|
|
4539
|
-
* @throws {RequiredError}
|
|
4540
|
-
*/
|
|
4541
|
-
createSport(requestParameters, options) {
|
|
4542
|
-
return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
|
|
4543
|
-
},
|
|
4544
3178
|
/**
|
|
4545
3179
|
*
|
|
4546
3180
|
* @summary Supprimer un sport
|
|
@@ -4570,17 +3204,6 @@ export const ManagerSportsApiFactory = function (configuration, basePath, axios)
|
|
|
4570
3204
|
* @extends {BaseAPI}
|
|
4571
3205
|
*/
|
|
4572
3206
|
export class ManagerSportsApi extends BaseAPI {
|
|
4573
|
-
/**
|
|
4574
|
-
*
|
|
4575
|
-
* @summary Créer un sport dans un club
|
|
4576
|
-
* @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
|
|
4577
|
-
* @param {*} [options] Override http request option.
|
|
4578
|
-
* @throws {RequiredError}
|
|
4579
|
-
* @memberof ManagerSportsApi
|
|
4580
|
-
*/
|
|
4581
|
-
createSport(requestParameters, options) {
|
|
4582
|
-
return ManagerSportsApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4583
|
-
}
|
|
4584
3207
|
/**
|
|
4585
3208
|
*
|
|
4586
3209
|
* @summary Supprimer un sport
|
|
@@ -4610,6 +3233,34 @@ export class ManagerSportsApi extends BaseAPI {
|
|
|
4610
3233
|
*/
|
|
4611
3234
|
export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
4612
3235
|
return {
|
|
3236
|
+
/**
|
|
3237
|
+
*
|
|
3238
|
+
* @summary Récupère la liste des joueurs du club (données staff uniquement)
|
|
3239
|
+
* @param {*} [options] Override http request option.
|
|
3240
|
+
* @throws {RequiredError}
|
|
3241
|
+
*/
|
|
3242
|
+
getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3243
|
+
const localVarPath = `/api/analytics/players`;
|
|
3244
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3245
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3246
|
+
let baseOptions;
|
|
3247
|
+
if (configuration) {
|
|
3248
|
+
baseOptions = configuration.baseOptions;
|
|
3249
|
+
}
|
|
3250
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3251
|
+
const localVarHeaderParameter = {};
|
|
3252
|
+
const localVarQueryParameter = {};
|
|
3253
|
+
// authentication bearerAuth required
|
|
3254
|
+
// http bearer authentication required
|
|
3255
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3256
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3257
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3258
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3259
|
+
return {
|
|
3260
|
+
url: toPathString(localVarUrlObj),
|
|
3261
|
+
options: localVarRequestOptions,
|
|
3262
|
+
};
|
|
3263
|
+
}),
|
|
4613
3264
|
/**
|
|
4614
3265
|
*
|
|
4615
3266
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -4677,6 +3328,21 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
4677
3328
|
export const StaffClubAnalyticsApiFp = function (configuration) {
|
|
4678
3329
|
const localVarAxiosParamCreator = StaffClubAnalyticsApiAxiosParamCreator(configuration);
|
|
4679
3330
|
return {
|
|
3331
|
+
/**
|
|
3332
|
+
*
|
|
3333
|
+
* @summary Récupère la liste des joueurs du club (données staff uniquement)
|
|
3334
|
+
* @param {*} [options] Override http request option.
|
|
3335
|
+
* @throws {RequiredError}
|
|
3336
|
+
*/
|
|
3337
|
+
getClubPlayers(options) {
|
|
3338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3339
|
+
var _a, _b, _c;
|
|
3340
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayers(options);
|
|
3341
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3342
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getClubPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3343
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3344
|
+
});
|
|
3345
|
+
},
|
|
4680
3346
|
/**
|
|
4681
3347
|
*
|
|
4682
3348
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -4717,6 +3383,15 @@ export const StaffClubAnalyticsApiFp = function (configuration) {
|
|
|
4717
3383
|
export const StaffClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
4718
3384
|
const localVarFp = StaffClubAnalyticsApiFp(configuration);
|
|
4719
3385
|
return {
|
|
3386
|
+
/**
|
|
3387
|
+
*
|
|
3388
|
+
* @summary Récupère la liste des joueurs du club (données staff uniquement)
|
|
3389
|
+
* @param {*} [options] Override http request option.
|
|
3390
|
+
* @throws {RequiredError}
|
|
3391
|
+
*/
|
|
3392
|
+
getClubPlayers(options) {
|
|
3393
|
+
return localVarFp.getClubPlayers(options).then((request) => request(axios, basePath));
|
|
3394
|
+
},
|
|
4720
3395
|
/**
|
|
4721
3396
|
*
|
|
4722
3397
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -4745,6 +3420,16 @@ export const StaffClubAnalyticsApiFactory = function (configuration, basePath, a
|
|
|
4745
3420
|
* @extends {BaseAPI}
|
|
4746
3421
|
*/
|
|
4747
3422
|
export class StaffClubAnalyticsApi extends BaseAPI {
|
|
3423
|
+
/**
|
|
3424
|
+
*
|
|
3425
|
+
* @summary Récupère la liste des joueurs du club (données staff uniquement)
|
|
3426
|
+
* @param {*} [options] Override http request option.
|
|
3427
|
+
* @throws {RequiredError}
|
|
3428
|
+
* @memberof StaffClubAnalyticsApi
|
|
3429
|
+
*/
|
|
3430
|
+
getClubPlayers(options) {
|
|
3431
|
+
return StaffClubAnalyticsApiFp(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
3432
|
+
}
|
|
4748
3433
|
/**
|
|
4749
3434
|
*
|
|
4750
3435
|
* @summary Get monthly turnover for the last six months (club courant)
|
|
@@ -4925,6 +3610,34 @@ export const StaffClubsApiAxiosParamCreator = function (configuration) {
|
|
|
4925
3610
|
options: localVarRequestOptions,
|
|
4926
3611
|
};
|
|
4927
3612
|
}),
|
|
3613
|
+
/**
|
|
3614
|
+
*
|
|
3615
|
+
* @summary Récupère la liste des sports du club courant
|
|
3616
|
+
* @param {*} [options] Override http request option.
|
|
3617
|
+
* @throws {RequiredError}
|
|
3618
|
+
*/
|
|
3619
|
+
getSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3620
|
+
const localVarPath = `/api/sports`;
|
|
3621
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3622
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3623
|
+
let baseOptions;
|
|
3624
|
+
if (configuration) {
|
|
3625
|
+
baseOptions = configuration.baseOptions;
|
|
3626
|
+
}
|
|
3627
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3628
|
+
const localVarHeaderParameter = {};
|
|
3629
|
+
const localVarQueryParameter = {};
|
|
3630
|
+
// authentication bearerAuth required
|
|
3631
|
+
// http bearer authentication required
|
|
3632
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3633
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3634
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3635
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3636
|
+
return {
|
|
3637
|
+
url: toPathString(localVarUrlObj),
|
|
3638
|
+
options: localVarRequestOptions,
|
|
3639
|
+
};
|
|
3640
|
+
}),
|
|
4928
3641
|
};
|
|
4929
3642
|
};
|
|
4930
3643
|
/**
|
|
@@ -4964,6 +3677,21 @@ export const StaffClubsApiFp = function (configuration) {
|
|
|
4964
3677
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4965
3678
|
});
|
|
4966
3679
|
},
|
|
3680
|
+
/**
|
|
3681
|
+
*
|
|
3682
|
+
* @summary Récupère la liste des sports du club courant
|
|
3683
|
+
* @param {*} [options] Override http request option.
|
|
3684
|
+
* @throws {RequiredError}
|
|
3685
|
+
*/
|
|
3686
|
+
getSports(options) {
|
|
3687
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3688
|
+
var _a, _b, _c;
|
|
3689
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSports(options);
|
|
3690
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3691
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubsApi.getSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3692
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3693
|
+
});
|
|
3694
|
+
},
|
|
4967
3695
|
};
|
|
4968
3696
|
};
|
|
4969
3697
|
/**
|
|
@@ -4991,6 +3719,15 @@ export const StaffClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
4991
3719
|
getClubSettings(options) {
|
|
4992
3720
|
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
4993
3721
|
},
|
|
3722
|
+
/**
|
|
3723
|
+
*
|
|
3724
|
+
* @summary Récupère la liste des sports du club courant
|
|
3725
|
+
* @param {*} [options] Override http request option.
|
|
3726
|
+
* @throws {RequiredError}
|
|
3727
|
+
*/
|
|
3728
|
+
getSports(options) {
|
|
3729
|
+
return localVarFp.getSports(options).then((request) => request(axios, basePath));
|
|
3730
|
+
},
|
|
4994
3731
|
};
|
|
4995
3732
|
};
|
|
4996
3733
|
/**
|
|
@@ -5020,6 +3757,16 @@ export class StaffClubsApi extends BaseAPI {
|
|
|
5020
3757
|
getClubSettings(options) {
|
|
5021
3758
|
return StaffClubsApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
5022
3759
|
}
|
|
3760
|
+
/**
|
|
3761
|
+
*
|
|
3762
|
+
* @summary Récupère la liste des sports du club courant
|
|
3763
|
+
* @param {*} [options] Override http request option.
|
|
3764
|
+
* @throws {RequiredError}
|
|
3765
|
+
* @memberof StaffClubsApi
|
|
3766
|
+
*/
|
|
3767
|
+
getSports(options) {
|
|
3768
|
+
return StaffClubsApiFp(this.configuration).getSports(options).then((request) => request(this.axios, this.basePath));
|
|
3769
|
+
}
|
|
5023
3770
|
}
|
|
5024
3771
|
/**
|
|
5025
3772
|
* StaffEventsApi - axios parameter creator
|