@tennac-booking/sdk 1.0.22 → 1.0.23
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 +11 -6
- package/README.md +54 -36
- package/api.ts +2614 -1296
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1548 -818
- package/dist/api.js +1874 -932
- 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 +1548 -818
- package/dist/esm/api.js +1854 -912
- 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/AdminClubAnalyticsApi.md +249 -0
- package/docs/AdminClubSlotsApi.md +120 -0
- package/docs/AdminClubSubscriptionsApi.md +394 -0
- package/docs/AdminClubsApi.md +82 -20
- package/docs/BookingPopulated.md +28 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
- package/docs/BookingPopulatedSlotId.md +26 -0
- package/docs/{CheckInPlayersRequest.md → BookingPopulatedSlotIdCourtId.md} +7 -5
- package/docs/BookingPopulatedUserId.md +24 -0
- package/docs/ClubAnalyticsApi.md +4 -16
- package/docs/{GetAllSportsRequest.md → DeleteClub200Response.md} +5 -5
- package/docs/{CancelBookingRequest.md → DeleteClubSettings200Response.md} +5 -5
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +3 -5
- package/docs/ManagerBookingsApi.md +0 -118
- package/docs/ManagerClubCourtsApi.md +4 -14
- package/docs/ManagerClubSettingsApi.md +172 -0
- package/docs/ManagerClubSlotsApi.md +2 -8
- package/docs/ManagerClubSubscriptionsApi.md +7 -28
- package/docs/ManagerClubsApi.md +14 -41
- package/docs/ManagerSportsApi.md +55 -0
- package/docs/StaffClubAnalyticsApi.md +14 -14
- package/docs/StaffClubBookingsApi.md +5 -12
- package/docs/StaffClubsApi.md +3 -10
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BookingsApi.md +0 -68
- package/docs/StaffClubSettingsApi.md +0 -54
- package/docs/StaffSportsApi.md +0 -62
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pandook API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.23
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = void 0;
|
|
25
|
+
exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSubscriptionsApi = exports.AdminClubSubscriptionsApiFactory = exports.AdminClubSubscriptionsApiFp = exports.AdminClubSubscriptionsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.GetInvoicesAdminStatusEnum = exports.AdminClubAnalyticsApi = exports.AdminClubAnalyticsApiFactory = exports.AdminClubAnalyticsApiFp = exports.AdminClubAnalyticsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
|
|
26
|
+
exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubSettingsApi = exports.ManagerClubSettingsApiFactory = exports.ManagerClubSettingsApiFp = exports.ManagerClubSettingsApiAxiosParamCreator = void 0;
|
|
27
|
+
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -35,6 +35,15 @@ exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = {
|
|
|
35
35
|
Stripe: 'stripe',
|
|
36
36
|
Onsite: 'onsite'
|
|
37
37
|
};
|
|
38
|
+
exports.BookingPopulatedStatusEnum = {
|
|
39
|
+
Active: 'active',
|
|
40
|
+
Inactive: 'inactive'
|
|
41
|
+
};
|
|
42
|
+
exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = {
|
|
43
|
+
Paid: 'paid',
|
|
44
|
+
Pending: 'pending',
|
|
45
|
+
Failed: 'failed'
|
|
46
|
+
};
|
|
38
47
|
/**
|
|
39
48
|
*
|
|
40
49
|
* @export
|
|
@@ -122,22 +131,25 @@ exports.SubscriptionResponseStatusEnum = {
|
|
|
122
131
|
Unpaid: 'unpaid'
|
|
123
132
|
};
|
|
124
133
|
/**
|
|
125
|
-
*
|
|
134
|
+
* AdminClubAnalyticsApi - axios parameter creator
|
|
126
135
|
* @export
|
|
127
136
|
*/
|
|
128
|
-
const
|
|
137
|
+
const AdminClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
129
138
|
return {
|
|
130
139
|
/**
|
|
131
140
|
*
|
|
132
|
-
* @summary
|
|
141
|
+
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
133
142
|
* @param {string} id ID du club
|
|
143
|
+
* @param {string} date Date (YYYY-MM-DD)
|
|
134
144
|
* @param {*} [options] Override http request option.
|
|
135
145
|
* @throws {RequiredError}
|
|
136
146
|
*/
|
|
137
|
-
|
|
147
|
+
getDailyTurnOverAdmin: (id_1, date_1, ...args_1) => __awaiter(this, [id_1, date_1, ...args_1], void 0, function* (id, date, options = {}) {
|
|
138
148
|
// verify required parameter 'id' is not null or undefined
|
|
139
|
-
(0, common_1.assertParamExists)('
|
|
140
|
-
|
|
149
|
+
(0, common_1.assertParamExists)('getDailyTurnOverAdmin', 'id', id);
|
|
150
|
+
// verify required parameter 'date' is not null or undefined
|
|
151
|
+
(0, common_1.assertParamExists)('getDailyTurnOverAdmin', 'date', date);
|
|
152
|
+
const localVarPath = `/api/clubs/{id}/turnover/daily`
|
|
141
153
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
142
154
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
143
155
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -145,12 +157,155 @@ const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
145
157
|
if (configuration) {
|
|
146
158
|
baseOptions = configuration.baseOptions;
|
|
147
159
|
}
|
|
148
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
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 (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
166
|
+
if (date !== undefined) {
|
|
167
|
+
localVarQueryParameter['date'] = (date instanceof Date) ?
|
|
168
|
+
date.toISOString().substring(0, 10) :
|
|
169
|
+
date;
|
|
170
|
+
}
|
|
171
|
+
(0, common_1.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: (0, common_1.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
|
+
(0, common_1.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, common_1.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 (0, common_1.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
|
+
(0, common_1.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: (0, common_1.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
|
+
(0, common_1.assertParamExists)('getMonthlyTurnOverAdmin', 'id', id);
|
|
247
|
+
// verify required parameter 'year' is not null or undefined
|
|
248
|
+
(0, common_1.assertParamExists)('getMonthlyTurnOverAdmin', 'year', year);
|
|
249
|
+
// verify required parameter 'month' is not null or undefined
|
|
250
|
+
(0, common_1.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, common_1.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 (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
265
|
+
if (year !== undefined) {
|
|
266
|
+
localVarQueryParameter['year'] = year;
|
|
267
|
+
}
|
|
268
|
+
if (month !== undefined) {
|
|
269
|
+
localVarQueryParameter['month'] = month;
|
|
270
|
+
}
|
|
271
|
+
(0, common_1.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: (0, common_1.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
|
+
(0, common_1.assertParamExists)('getYearlyTurnOverAdmin', 'id', id);
|
|
290
|
+
// verify required parameter 'year' is not null or undefined
|
|
291
|
+
(0, common_1.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, common_1.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);
|
|
149
301
|
const localVarHeaderParameter = {};
|
|
150
302
|
const localVarQueryParameter = {};
|
|
151
303
|
// authentication bearerAuth required
|
|
152
304
|
// http bearer authentication required
|
|
153
305
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
306
|
+
if (year !== undefined) {
|
|
307
|
+
localVarQueryParameter['year'] = year;
|
|
308
|
+
}
|
|
154
309
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
155
310
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
156
311
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -161,73 +316,1050 @@ const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
161
316
|
}),
|
|
162
317
|
};
|
|
163
318
|
};
|
|
164
|
-
exports.
|
|
319
|
+
exports.AdminClubAnalyticsApiAxiosParamCreator = AdminClubAnalyticsApiAxiosParamCreator;
|
|
165
320
|
/**
|
|
166
|
-
*
|
|
321
|
+
* AdminClubAnalyticsApi - functional programming interface
|
|
167
322
|
* @export
|
|
168
323
|
*/
|
|
169
|
-
const
|
|
170
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
324
|
+
const AdminClubAnalyticsApiFp = function (configuration) {
|
|
325
|
+
const localVarAxiosParamCreator = (0, exports.AdminClubAnalyticsApiAxiosParamCreator)(configuration);
|
|
171
326
|
return {
|
|
172
327
|
/**
|
|
173
328
|
*
|
|
174
|
-
* @summary
|
|
329
|
+
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
175
330
|
* @param {string} id ID du club
|
|
331
|
+
* @param {string} date Date (YYYY-MM-DD)
|
|
176
332
|
* @param {*} [options] Override http request option.
|
|
177
333
|
* @throws {RequiredError}
|
|
178
334
|
*/
|
|
179
|
-
|
|
335
|
+
getDailyTurnOverAdmin(id, date, options) {
|
|
180
336
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
337
|
var _a, _b, _c;
|
|
182
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
338
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOverAdmin(id, date, options);
|
|
183
339
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
184
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
340
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubAnalyticsApi.getDailyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
341
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
342
|
+
});
|
|
343
|
+
},
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @summary Récupérer les factures d\'un club (Admin)
|
|
347
|
+
* @param {string} id ID du club
|
|
348
|
+
* @param {number} [page]
|
|
349
|
+
* @param {number} [limit]
|
|
350
|
+
* @param {GetInvoicesAdminStatusEnum} [status]
|
|
351
|
+
* @param {string} [startDate]
|
|
352
|
+
* @param {string} [endDate]
|
|
353
|
+
* @param {*} [options] Override http request option.
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
*/
|
|
356
|
+
getInvoicesAdmin(id, page, limit, status, startDate, endDate, options) {
|
|
357
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
358
|
+
var _a, _b, _c;
|
|
359
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoicesAdmin(id, page, limit, status, startDate, endDate, options);
|
|
360
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
361
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubAnalyticsApi.getInvoicesAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
362
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
363
|
+
});
|
|
364
|
+
},
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
368
|
+
* @param {string} id ID du club
|
|
369
|
+
* @param {number} year Année
|
|
370
|
+
* @param {number} month Mois (1-12)
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
getMonthlyTurnOverAdmin(id, year, month, options) {
|
|
375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
376
|
+
var _a, _b, _c;
|
|
377
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOverAdmin(id, year, month, options);
|
|
378
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
379
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubAnalyticsApi.getMonthlyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
380
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
381
|
+
});
|
|
382
|
+
},
|
|
383
|
+
/**
|
|
384
|
+
*
|
|
385
|
+
* @summary Chiffre d\'affaires annuel (Admin)
|
|
386
|
+
* @param {string} id ID du club
|
|
387
|
+
* @param {number} year Année
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
getYearlyTurnOverAdmin(id, year, options) {
|
|
392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
393
|
+
var _a, _b, _c;
|
|
394
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOverAdmin(id, year, options);
|
|
395
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
396
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubAnalyticsApi.getYearlyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
185
397
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
186
398
|
});
|
|
187
399
|
},
|
|
188
400
|
};
|
|
189
401
|
};
|
|
190
|
-
exports.
|
|
402
|
+
exports.AdminClubAnalyticsApiFp = AdminClubAnalyticsApiFp;
|
|
191
403
|
/**
|
|
192
|
-
*
|
|
404
|
+
* AdminClubAnalyticsApi - factory interface
|
|
193
405
|
* @export
|
|
194
406
|
*/
|
|
195
|
-
const
|
|
196
|
-
const localVarFp = (0, exports.
|
|
407
|
+
const AdminClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
408
|
+
const localVarFp = (0, exports.AdminClubAnalyticsApiFp)(configuration);
|
|
197
409
|
return {
|
|
198
410
|
/**
|
|
199
411
|
*
|
|
200
|
-
* @summary
|
|
201
|
-
* @param {
|
|
412
|
+
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
413
|
+
* @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
|
|
202
414
|
* @param {*} [options] Override http request option.
|
|
203
415
|
* @throws {RequiredError}
|
|
204
416
|
*/
|
|
205
|
-
|
|
206
|
-
return localVarFp.
|
|
417
|
+
getDailyTurnOverAdmin(requestParameters, options) {
|
|
418
|
+
return localVarFp.getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
|
|
419
|
+
},
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* @summary Récupérer les factures d\'un club (Admin)
|
|
423
|
+
* @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
*/
|
|
427
|
+
getInvoicesAdmin(requestParameters, options) {
|
|
428
|
+
return localVarFp.getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
429
|
+
},
|
|
430
|
+
/**
|
|
431
|
+
*
|
|
432
|
+
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
433
|
+
* @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
434
|
+
* @param {*} [options] Override http request option.
|
|
435
|
+
* @throws {RequiredError}
|
|
436
|
+
*/
|
|
437
|
+
getMonthlyTurnOverAdmin(requestParameters, options) {
|
|
438
|
+
return localVarFp.getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
|
|
439
|
+
},
|
|
440
|
+
/**
|
|
441
|
+
*
|
|
442
|
+
* @summary Chiffre d\'affaires annuel (Admin)
|
|
443
|
+
* @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
444
|
+
* @param {*} [options] Override http request option.
|
|
445
|
+
* @throws {RequiredError}
|
|
446
|
+
*/
|
|
447
|
+
getYearlyTurnOverAdmin(requestParameters, options) {
|
|
448
|
+
return localVarFp.getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
|
|
207
449
|
},
|
|
208
450
|
};
|
|
209
451
|
};
|
|
210
|
-
exports.
|
|
452
|
+
exports.AdminClubAnalyticsApiFactory = AdminClubAnalyticsApiFactory;
|
|
211
453
|
/**
|
|
212
|
-
*
|
|
454
|
+
* AdminClubAnalyticsApi - object-oriented interface
|
|
455
|
+
* @export
|
|
456
|
+
* @class AdminClubAnalyticsApi
|
|
457
|
+
* @extends {BaseAPI}
|
|
458
|
+
*/
|
|
459
|
+
class AdminClubAnalyticsApi extends base_1.BaseAPI {
|
|
460
|
+
/**
|
|
461
|
+
*
|
|
462
|
+
* @summary Chiffre d\'affaires quotidien (Admin)
|
|
463
|
+
* @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
* @memberof AdminClubAnalyticsApi
|
|
467
|
+
*/
|
|
468
|
+
getDailyTurnOverAdmin(requestParameters, options) {
|
|
469
|
+
return (0, exports.AdminClubAnalyticsApiFp)(this.configuration).getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
*
|
|
473
|
+
* @summary Récupérer les factures d\'un club (Admin)
|
|
474
|
+
* @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
* @memberof AdminClubAnalyticsApi
|
|
478
|
+
*/
|
|
479
|
+
getInvoicesAdmin(requestParameters, options) {
|
|
480
|
+
return (0, exports.AdminClubAnalyticsApiFp)(this.configuration).getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
*
|
|
484
|
+
* @summary Chiffre d\'affaires mensuel (Admin)
|
|
485
|
+
* @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
* @memberof AdminClubAnalyticsApi
|
|
489
|
+
*/
|
|
490
|
+
getMonthlyTurnOverAdmin(requestParameters, options) {
|
|
491
|
+
return (0, exports.AdminClubAnalyticsApiFp)(this.configuration).getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @summary Chiffre d\'affaires annuel (Admin)
|
|
496
|
+
* @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
* @memberof AdminClubAnalyticsApi
|
|
500
|
+
*/
|
|
501
|
+
getYearlyTurnOverAdmin(requestParameters, options) {
|
|
502
|
+
return (0, exports.AdminClubAnalyticsApiFp)(this.configuration).getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
exports.AdminClubAnalyticsApi = AdminClubAnalyticsApi;
|
|
506
|
+
/**
|
|
507
|
+
* @export
|
|
508
|
+
*/
|
|
509
|
+
exports.GetInvoicesAdminStatusEnum = {
|
|
510
|
+
Pending: 'pending',
|
|
511
|
+
Paid: 'paid',
|
|
512
|
+
Failed: 'failed',
|
|
513
|
+
Authorized: 'authorized',
|
|
514
|
+
Canceled: 'canceled',
|
|
515
|
+
Expired: 'expired'
|
|
516
|
+
};
|
|
517
|
+
/**
|
|
518
|
+
* AdminClubSlotsApi - axios parameter creator
|
|
519
|
+
* @export
|
|
520
|
+
*/
|
|
521
|
+
const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
522
|
+
return {
|
|
523
|
+
/**
|
|
524
|
+
*
|
|
525
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
526
|
+
* @param {string} id ID du club
|
|
527
|
+
* @param {string} start Date de début (format ISO)
|
|
528
|
+
* @param {string} end Date de fin (format ISO)
|
|
529
|
+
* @param {*} [options] Override http request option.
|
|
530
|
+
* @throws {RequiredError}
|
|
531
|
+
*/
|
|
532
|
+
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 = {}) {
|
|
533
|
+
// verify required parameter 'id' is not null or undefined
|
|
534
|
+
(0, common_1.assertParamExists)('deleteSlotsByClubInRangeByID', 'id', id);
|
|
535
|
+
// verify required parameter 'start' is not null or undefined
|
|
536
|
+
(0, common_1.assertParamExists)('deleteSlotsByClubInRangeByID', 'start', start);
|
|
537
|
+
// verify required parameter 'end' is not null or undefined
|
|
538
|
+
(0, common_1.assertParamExists)('deleteSlotsByClubInRangeByID', 'end', end);
|
|
539
|
+
const localVarPath = `/api/clubs/{id}/slots`
|
|
540
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
541
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
542
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
543
|
+
let baseOptions;
|
|
544
|
+
if (configuration) {
|
|
545
|
+
baseOptions = configuration.baseOptions;
|
|
546
|
+
}
|
|
547
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
548
|
+
const localVarHeaderParameter = {};
|
|
549
|
+
const localVarQueryParameter = {};
|
|
550
|
+
// authentication bearerAuth required
|
|
551
|
+
// http bearer authentication required
|
|
552
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
553
|
+
if (start !== undefined) {
|
|
554
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
555
|
+
start.toISOString() :
|
|
556
|
+
start;
|
|
557
|
+
}
|
|
558
|
+
if (end !== undefined) {
|
|
559
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
560
|
+
end.toISOString() :
|
|
561
|
+
end;
|
|
562
|
+
}
|
|
563
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
564
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
565
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
566
|
+
return {
|
|
567
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
568
|
+
options: localVarRequestOptions,
|
|
569
|
+
};
|
|
570
|
+
}),
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
574
|
+
* @param {string} id ID du club
|
|
575
|
+
* @param {*} [options] Override http request option.
|
|
576
|
+
* @throws {RequiredError}
|
|
577
|
+
*/
|
|
578
|
+
generateSlotsForNextThreeWeeks: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
579
|
+
// verify required parameter 'id' is not null or undefined
|
|
580
|
+
(0, common_1.assertParamExists)('generateSlotsForNextThreeWeeks', 'id', id);
|
|
581
|
+
const localVarPath = `/api/clubs/{id}/generate-slots`
|
|
582
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
583
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
584
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
585
|
+
let baseOptions;
|
|
586
|
+
if (configuration) {
|
|
587
|
+
baseOptions = configuration.baseOptions;
|
|
588
|
+
}
|
|
589
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
590
|
+
const localVarHeaderParameter = {};
|
|
591
|
+
const localVarQueryParameter = {};
|
|
592
|
+
// authentication bearerAuth required
|
|
593
|
+
// http bearer authentication required
|
|
594
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
595
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
596
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
597
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
598
|
+
return {
|
|
599
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
600
|
+
options: localVarRequestOptions,
|
|
601
|
+
};
|
|
602
|
+
}),
|
|
603
|
+
/**
|
|
604
|
+
*
|
|
605
|
+
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
606
|
+
* @param {string} id ID du club
|
|
607
|
+
* @param {string} [start] Date de début (format ISO)
|
|
608
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
*/
|
|
612
|
+
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 = {}) {
|
|
613
|
+
// verify required parameter 'id' is not null or undefined
|
|
614
|
+
(0, common_1.assertParamExists)('getSlotsByClubAdmin', 'id', id);
|
|
615
|
+
const localVarPath = `/api/clubs/{id}/slots`
|
|
616
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
617
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
618
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
619
|
+
let baseOptions;
|
|
620
|
+
if (configuration) {
|
|
621
|
+
baseOptions = configuration.baseOptions;
|
|
622
|
+
}
|
|
623
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
624
|
+
const localVarHeaderParameter = {};
|
|
625
|
+
const localVarQueryParameter = {};
|
|
626
|
+
// authentication bearerAuth required
|
|
627
|
+
// http bearer authentication required
|
|
628
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
629
|
+
if (start !== undefined) {
|
|
630
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
631
|
+
start.toISOString() :
|
|
632
|
+
start;
|
|
633
|
+
}
|
|
634
|
+
if (end !== undefined) {
|
|
635
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
636
|
+
end.toISOString() :
|
|
637
|
+
end;
|
|
638
|
+
}
|
|
639
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
640
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
641
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
642
|
+
return {
|
|
643
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
644
|
+
options: localVarRequestOptions,
|
|
645
|
+
};
|
|
646
|
+
}),
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
exports.AdminClubSlotsApiAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator;
|
|
650
|
+
/**
|
|
651
|
+
* AdminClubSlotsApi - functional programming interface
|
|
652
|
+
* @export
|
|
653
|
+
*/
|
|
654
|
+
const AdminClubSlotsApiFp = function (configuration) {
|
|
655
|
+
const localVarAxiosParamCreator = (0, exports.AdminClubSlotsApiAxiosParamCreator)(configuration);
|
|
656
|
+
return {
|
|
657
|
+
/**
|
|
658
|
+
*
|
|
659
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
660
|
+
* @param {string} id ID du club
|
|
661
|
+
* @param {string} start Date de début (format ISO)
|
|
662
|
+
* @param {string} end Date de fin (format ISO)
|
|
663
|
+
* @param {*} [options] Override http request option.
|
|
664
|
+
* @throws {RequiredError}
|
|
665
|
+
*/
|
|
666
|
+
deleteSlotsByClubInRangeByID(id, start, end, options) {
|
|
667
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
668
|
+
var _a, _b, _c;
|
|
669
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRangeByID(id, start, end, options);
|
|
670
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
671
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSlotsApi.deleteSlotsByClubInRangeByID']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
672
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
673
|
+
});
|
|
674
|
+
},
|
|
675
|
+
/**
|
|
676
|
+
*
|
|
677
|
+
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
678
|
+
* @param {string} id ID du club
|
|
679
|
+
* @param {*} [options] Override http request option.
|
|
680
|
+
* @throws {RequiredError}
|
|
681
|
+
*/
|
|
682
|
+
generateSlotsForNextThreeWeeks(id, options) {
|
|
683
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
684
|
+
var _a, _b, _c;
|
|
685
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
|
|
686
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
687
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
688
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
689
|
+
});
|
|
690
|
+
},
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
694
|
+
* @param {string} id ID du club
|
|
695
|
+
* @param {string} [start] Date de début (format ISO)
|
|
696
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
*/
|
|
700
|
+
getSlotsByClubAdmin(id, start, end, options) {
|
|
701
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
702
|
+
var _a, _b, _c;
|
|
703
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClubAdmin(id, start, end, options);
|
|
704
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
705
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSlotsApi.getSlotsByClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
706
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
707
|
+
});
|
|
708
|
+
},
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
exports.AdminClubSlotsApiFp = AdminClubSlotsApiFp;
|
|
712
|
+
/**
|
|
713
|
+
* AdminClubSlotsApi - factory interface
|
|
714
|
+
* @export
|
|
715
|
+
*/
|
|
716
|
+
const AdminClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
717
|
+
const localVarFp = (0, exports.AdminClubSlotsApiFp)(configuration);
|
|
718
|
+
return {
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
722
|
+
* @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
|
|
723
|
+
* @param {*} [options] Override http request option.
|
|
724
|
+
* @throws {RequiredError}
|
|
725
|
+
*/
|
|
726
|
+
deleteSlotsByClubInRangeByID(requestParameters, options) {
|
|
727
|
+
return localVarFp.deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
728
|
+
},
|
|
729
|
+
/**
|
|
730
|
+
*
|
|
731
|
+
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
732
|
+
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
*/
|
|
736
|
+
generateSlotsForNextThreeWeeks(requestParameters, options) {
|
|
737
|
+
return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
738
|
+
},
|
|
739
|
+
/**
|
|
740
|
+
*
|
|
741
|
+
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
742
|
+
* @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
|
|
743
|
+
* @param {*} [options] Override http request option.
|
|
744
|
+
* @throws {RequiredError}
|
|
745
|
+
*/
|
|
746
|
+
getSlotsByClubAdmin(requestParameters, options) {
|
|
747
|
+
return localVarFp.getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
748
|
+
},
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
exports.AdminClubSlotsApiFactory = AdminClubSlotsApiFactory;
|
|
752
|
+
/**
|
|
753
|
+
* AdminClubSlotsApi - object-oriented interface
|
|
754
|
+
* @export
|
|
755
|
+
* @class AdminClubSlotsApi
|
|
756
|
+
* @extends {BaseAPI}
|
|
757
|
+
*/
|
|
758
|
+
class AdminClubSlotsApi extends base_1.BaseAPI {
|
|
759
|
+
/**
|
|
760
|
+
*
|
|
761
|
+
* @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
|
|
762
|
+
* @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
|
|
763
|
+
* @param {*} [options] Override http request option.
|
|
764
|
+
* @throws {RequiredError}
|
|
765
|
+
* @memberof AdminClubSlotsApi
|
|
766
|
+
*/
|
|
767
|
+
deleteSlotsByClubInRangeByID(requestParameters, options) {
|
|
768
|
+
return (0, exports.AdminClubSlotsApiFp)(this.configuration).deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
*
|
|
772
|
+
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
773
|
+
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
774
|
+
* @param {*} [options] Override http request option.
|
|
775
|
+
* @throws {RequiredError}
|
|
776
|
+
* @memberof AdminClubSlotsApi
|
|
777
|
+
*/
|
|
778
|
+
generateSlotsForNextThreeWeeks(requestParameters, options) {
|
|
779
|
+
return (0, exports.AdminClubSlotsApiFp)(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
*
|
|
783
|
+
* @summary Récupérer tous les créneaux d\'un club (Admin)
|
|
784
|
+
* @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
* @memberof AdminClubSlotsApi
|
|
788
|
+
*/
|
|
789
|
+
getSlotsByClubAdmin(requestParameters, options) {
|
|
790
|
+
return (0, exports.AdminClubSlotsApiFp)(this.configuration).getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
exports.AdminClubSlotsApi = AdminClubSlotsApi;
|
|
794
|
+
/**
|
|
795
|
+
* AdminClubSubscriptionsApi - axios parameter creator
|
|
796
|
+
* @export
|
|
797
|
+
*/
|
|
798
|
+
const AdminClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
799
|
+
return {
|
|
800
|
+
/**
|
|
801
|
+
*
|
|
802
|
+
* @summary Archiver un prix (Admin)
|
|
803
|
+
* @param {string} id
|
|
804
|
+
* @param {string} priceId
|
|
805
|
+
* @param {*} [options] Override http request option.
|
|
806
|
+
* @throws {RequiredError}
|
|
807
|
+
*/
|
|
808
|
+
archivePriceForSubscriptionPlanAdmin: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
|
|
809
|
+
// verify required parameter 'id' is not null or undefined
|
|
810
|
+
(0, common_1.assertParamExists)('archivePriceForSubscriptionPlanAdmin', 'id', id);
|
|
811
|
+
// verify required parameter 'priceId' is not null or undefined
|
|
812
|
+
(0, common_1.assertParamExists)('archivePriceForSubscriptionPlanAdmin', 'priceId', priceId);
|
|
813
|
+
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/archive-price`
|
|
814
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
815
|
+
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
816
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
817
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
818
|
+
let baseOptions;
|
|
819
|
+
if (configuration) {
|
|
820
|
+
baseOptions = configuration.baseOptions;
|
|
821
|
+
}
|
|
822
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
823
|
+
const localVarHeaderParameter = {};
|
|
824
|
+
const localVarQueryParameter = {};
|
|
825
|
+
// authentication bearerAuth required
|
|
826
|
+
// http bearer authentication required
|
|
827
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
828
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
829
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
830
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
831
|
+
return {
|
|
832
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
833
|
+
options: localVarRequestOptions,
|
|
834
|
+
};
|
|
835
|
+
}),
|
|
836
|
+
/**
|
|
837
|
+
*
|
|
838
|
+
* @summary Créer un prix pour un plan (Admin)
|
|
839
|
+
* @param {string} id
|
|
840
|
+
* @param {string} productId
|
|
841
|
+
* @param {CreatePriceRequest} createPriceRequest
|
|
842
|
+
* @param {*} [options] Override http request option.
|
|
843
|
+
* @throws {RequiredError}
|
|
844
|
+
*/
|
|
845
|
+
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 = {}) {
|
|
846
|
+
// verify required parameter 'id' is not null or undefined
|
|
847
|
+
(0, common_1.assertParamExists)('createPriceForSubscriptionPlanAdmin', 'id', id);
|
|
848
|
+
// verify required parameter 'productId' is not null or undefined
|
|
849
|
+
(0, common_1.assertParamExists)('createPriceForSubscriptionPlanAdmin', 'productId', productId);
|
|
850
|
+
// verify required parameter 'createPriceRequest' is not null or undefined
|
|
851
|
+
(0, common_1.assertParamExists)('createPriceForSubscriptionPlanAdmin', 'createPriceRequest', createPriceRequest);
|
|
852
|
+
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/prices`
|
|
853
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
854
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
855
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
856
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
857
|
+
let baseOptions;
|
|
858
|
+
if (configuration) {
|
|
859
|
+
baseOptions = configuration.baseOptions;
|
|
860
|
+
}
|
|
861
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
862
|
+
const localVarHeaderParameter = {};
|
|
863
|
+
const localVarQueryParameter = {};
|
|
864
|
+
// authentication bearerAuth required
|
|
865
|
+
// http bearer authentication required
|
|
866
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
867
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
868
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
869
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
870
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
871
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPriceRequest, localVarRequestOptions, configuration);
|
|
872
|
+
return {
|
|
873
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
874
|
+
options: localVarRequestOptions,
|
|
875
|
+
};
|
|
876
|
+
}),
|
|
877
|
+
/**
|
|
878
|
+
*
|
|
879
|
+
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
880
|
+
* @param {string} id
|
|
881
|
+
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
882
|
+
* @param {*} [options] Override http request option.
|
|
883
|
+
* @throws {RequiredError}
|
|
884
|
+
*/
|
|
885
|
+
createSubscriptionPlanForClubAdmin: (id_1, createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [id_1, createSubscriptionPlanRequest_1, ...args_1], void 0, function* (id, createSubscriptionPlanRequest, options = {}) {
|
|
886
|
+
// verify required parameter 'id' is not null or undefined
|
|
887
|
+
(0, common_1.assertParamExists)('createSubscriptionPlanForClubAdmin', 'id', id);
|
|
888
|
+
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
889
|
+
(0, common_1.assertParamExists)('createSubscriptionPlanForClubAdmin', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
|
|
890
|
+
const localVarPath = `/api/clubs/{id}/subscription-plans`
|
|
891
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
892
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
893
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
894
|
+
let baseOptions;
|
|
895
|
+
if (configuration) {
|
|
896
|
+
baseOptions = configuration.baseOptions;
|
|
897
|
+
}
|
|
898
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
899
|
+
const localVarHeaderParameter = {};
|
|
900
|
+
const localVarQueryParameter = {};
|
|
901
|
+
// authentication bearerAuth required
|
|
902
|
+
// http bearer authentication required
|
|
903
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
904
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
905
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
906
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
907
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
908
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
909
|
+
return {
|
|
910
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
911
|
+
options: localVarRequestOptions,
|
|
912
|
+
};
|
|
913
|
+
}),
|
|
914
|
+
/**
|
|
915
|
+
*
|
|
916
|
+
* @summary Supprimer un plan (Admin)
|
|
917
|
+
* @param {string} id
|
|
918
|
+
* @param {string} productId
|
|
919
|
+
* @param {*} [options] Override http request option.
|
|
920
|
+
* @throws {RequiredError}
|
|
921
|
+
*/
|
|
922
|
+
deleteSubscriptionPlanForClubAdmin: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
|
|
923
|
+
// verify required parameter 'id' is not null or undefined
|
|
924
|
+
(0, common_1.assertParamExists)('deleteSubscriptionPlanForClubAdmin', 'id', id);
|
|
925
|
+
// verify required parameter 'productId' is not null or undefined
|
|
926
|
+
(0, common_1.assertParamExists)('deleteSubscriptionPlanForClubAdmin', 'productId', productId);
|
|
927
|
+
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}`
|
|
928
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
929
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
930
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
931
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
932
|
+
let baseOptions;
|
|
933
|
+
if (configuration) {
|
|
934
|
+
baseOptions = configuration.baseOptions;
|
|
935
|
+
}
|
|
936
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
937
|
+
const localVarHeaderParameter = {};
|
|
938
|
+
const localVarQueryParameter = {};
|
|
939
|
+
// authentication bearerAuth required
|
|
940
|
+
// http bearer authentication required
|
|
941
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
942
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
943
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
944
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
945
|
+
return {
|
|
946
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
947
|
+
options: localVarRequestOptions,
|
|
948
|
+
};
|
|
949
|
+
}),
|
|
950
|
+
/**
|
|
951
|
+
*
|
|
952
|
+
* @summary Réactiver un plan (Admin)
|
|
953
|
+
* @param {string} id
|
|
954
|
+
* @param {string} productId
|
|
955
|
+
* @param {*} [options] Override http request option.
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
*/
|
|
958
|
+
restoreSubscriptionPlanForClubAdmin: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
|
|
959
|
+
// verify required parameter 'id' is not null or undefined
|
|
960
|
+
(0, common_1.assertParamExists)('restoreSubscriptionPlanForClubAdmin', 'id', id);
|
|
961
|
+
// verify required parameter 'productId' is not null or undefined
|
|
962
|
+
(0, common_1.assertParamExists)('restoreSubscriptionPlanForClubAdmin', 'productId', productId);
|
|
963
|
+
const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/restore`
|
|
964
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
965
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
966
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
967
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
968
|
+
let baseOptions;
|
|
969
|
+
if (configuration) {
|
|
970
|
+
baseOptions = configuration.baseOptions;
|
|
971
|
+
}
|
|
972
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
973
|
+
const localVarHeaderParameter = {};
|
|
974
|
+
const localVarQueryParameter = {};
|
|
975
|
+
// authentication bearerAuth required
|
|
976
|
+
// http bearer authentication required
|
|
977
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
978
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
979
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
980
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
981
|
+
return {
|
|
982
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
983
|
+
options: localVarRequestOptions,
|
|
984
|
+
};
|
|
985
|
+
}),
|
|
986
|
+
/**
|
|
987
|
+
*
|
|
988
|
+
* @summary Réactiver un prix (Admin)
|
|
989
|
+
* @param {string} id
|
|
990
|
+
* @param {string} priceId
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
*/
|
|
994
|
+
restoreSubscriptionPriceForClubAdmin: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
|
|
995
|
+
// verify required parameter 'id' is not null or undefined
|
|
996
|
+
(0, common_1.assertParamExists)('restoreSubscriptionPriceForClubAdmin', 'id', id);
|
|
997
|
+
// verify required parameter 'priceId' is not null or undefined
|
|
998
|
+
(0, common_1.assertParamExists)('restoreSubscriptionPriceForClubAdmin', 'priceId', priceId);
|
|
999
|
+
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/restore-price`
|
|
1000
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
1001
|
+
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
1002
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1003
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1004
|
+
let baseOptions;
|
|
1005
|
+
if (configuration) {
|
|
1006
|
+
baseOptions = configuration.baseOptions;
|
|
1007
|
+
}
|
|
1008
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1009
|
+
const localVarHeaderParameter = {};
|
|
1010
|
+
const localVarQueryParameter = {};
|
|
1011
|
+
// authentication bearerAuth required
|
|
1012
|
+
// http bearer authentication required
|
|
1013
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1014
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1015
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1016
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1017
|
+
return {
|
|
1018
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1019
|
+
options: localVarRequestOptions,
|
|
1020
|
+
};
|
|
1021
|
+
}),
|
|
1022
|
+
/**
|
|
1023
|
+
*
|
|
1024
|
+
* @summary Mettre à jour un plan (Admin)
|
|
1025
|
+
* @param {string} id
|
|
1026
|
+
* @param {string} priceId
|
|
1027
|
+
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
1028
|
+
* @param {*} [options] Override http request option.
|
|
1029
|
+
* @throws {RequiredError}
|
|
1030
|
+
*/
|
|
1031
|
+
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 = {}) {
|
|
1032
|
+
// verify required parameter 'id' is not null or undefined
|
|
1033
|
+
(0, common_1.assertParamExists)('updateSubscriptionPlanForClubAdmin', 'id', id);
|
|
1034
|
+
// verify required parameter 'priceId' is not null or undefined
|
|
1035
|
+
(0, common_1.assertParamExists)('updateSubscriptionPlanForClubAdmin', 'priceId', priceId);
|
|
1036
|
+
// verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
|
|
1037
|
+
(0, common_1.assertParamExists)('updateSubscriptionPlanForClubAdmin', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
|
|
1038
|
+
const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}`
|
|
1039
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
1040
|
+
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
1041
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1042
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1043
|
+
let baseOptions;
|
|
1044
|
+
if (configuration) {
|
|
1045
|
+
baseOptions = configuration.baseOptions;
|
|
1046
|
+
}
|
|
1047
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1048
|
+
const localVarHeaderParameter = {};
|
|
1049
|
+
const localVarQueryParameter = {};
|
|
1050
|
+
// authentication bearerAuth required
|
|
1051
|
+
// http bearer authentication required
|
|
1052
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1053
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1054
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1055
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1056
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1057
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
1058
|
+
return {
|
|
1059
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1060
|
+
options: localVarRequestOptions,
|
|
1061
|
+
};
|
|
1062
|
+
}),
|
|
1063
|
+
};
|
|
1064
|
+
};
|
|
1065
|
+
exports.AdminClubSubscriptionsApiAxiosParamCreator = AdminClubSubscriptionsApiAxiosParamCreator;
|
|
1066
|
+
/**
|
|
1067
|
+
* AdminClubSubscriptionsApi - functional programming interface
|
|
1068
|
+
* @export
|
|
1069
|
+
*/
|
|
1070
|
+
const AdminClubSubscriptionsApiFp = function (configuration) {
|
|
1071
|
+
const localVarAxiosParamCreator = (0, exports.AdminClubSubscriptionsApiAxiosParamCreator)(configuration);
|
|
1072
|
+
return {
|
|
1073
|
+
/**
|
|
1074
|
+
*
|
|
1075
|
+
* @summary Archiver un prix (Admin)
|
|
1076
|
+
* @param {string} id
|
|
1077
|
+
* @param {string} priceId
|
|
1078
|
+
* @param {*} [options] Override http request option.
|
|
1079
|
+
* @throws {RequiredError}
|
|
1080
|
+
*/
|
|
1081
|
+
archivePriceForSubscriptionPlanAdmin(id, priceId, options) {
|
|
1082
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1083
|
+
var _a, _b, _c;
|
|
1084
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlanAdmin(id, priceId, options);
|
|
1085
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1086
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.archivePriceForSubscriptionPlanAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1087
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1088
|
+
});
|
|
1089
|
+
},
|
|
1090
|
+
/**
|
|
1091
|
+
*
|
|
1092
|
+
* @summary Créer un prix pour un plan (Admin)
|
|
1093
|
+
* @param {string} id
|
|
1094
|
+
* @param {string} productId
|
|
1095
|
+
* @param {CreatePriceRequest} createPriceRequest
|
|
1096
|
+
* @param {*} [options] Override http request option.
|
|
1097
|
+
* @throws {RequiredError}
|
|
1098
|
+
*/
|
|
1099
|
+
createPriceForSubscriptionPlanAdmin(id, productId, createPriceRequest, options) {
|
|
1100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1101
|
+
var _a, _b, _c;
|
|
1102
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlanAdmin(id, productId, createPriceRequest, options);
|
|
1103
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1104
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.createPriceForSubscriptionPlanAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1105
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1106
|
+
});
|
|
1107
|
+
},
|
|
1108
|
+
/**
|
|
1109
|
+
*
|
|
1110
|
+
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
1111
|
+
* @param {string} id
|
|
1112
|
+
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
1113
|
+
* @param {*} [options] Override http request option.
|
|
1114
|
+
* @throws {RequiredError}
|
|
1115
|
+
*/
|
|
1116
|
+
createSubscriptionPlanForClubAdmin(id, createSubscriptionPlanRequest, options) {
|
|
1117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1118
|
+
var _a, _b, _c;
|
|
1119
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClubAdmin(id, createSubscriptionPlanRequest, options);
|
|
1120
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1121
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.createSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1122
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1123
|
+
});
|
|
1124
|
+
},
|
|
1125
|
+
/**
|
|
1126
|
+
*
|
|
1127
|
+
* @summary Supprimer un plan (Admin)
|
|
1128
|
+
* @param {string} id
|
|
1129
|
+
* @param {string} productId
|
|
1130
|
+
* @param {*} [options] Override http request option.
|
|
1131
|
+
* @throws {RequiredError}
|
|
1132
|
+
*/
|
|
1133
|
+
deleteSubscriptionPlanForClubAdmin(id, productId, options) {
|
|
1134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1135
|
+
var _a, _b, _c;
|
|
1136
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClubAdmin(id, productId, options);
|
|
1137
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1138
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.deleteSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1139
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1140
|
+
});
|
|
1141
|
+
},
|
|
1142
|
+
/**
|
|
1143
|
+
*
|
|
1144
|
+
* @summary Réactiver un plan (Admin)
|
|
1145
|
+
* @param {string} id
|
|
1146
|
+
* @param {string} productId
|
|
1147
|
+
* @param {*} [options] Override http request option.
|
|
1148
|
+
* @throws {RequiredError}
|
|
1149
|
+
*/
|
|
1150
|
+
restoreSubscriptionPlanForClubAdmin(id, productId, options) {
|
|
1151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1152
|
+
var _a, _b, _c;
|
|
1153
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClubAdmin(id, productId, options);
|
|
1154
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1155
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1156
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1157
|
+
});
|
|
1158
|
+
},
|
|
1159
|
+
/**
|
|
1160
|
+
*
|
|
1161
|
+
* @summary Réactiver un prix (Admin)
|
|
1162
|
+
* @param {string} id
|
|
1163
|
+
* @param {string} priceId
|
|
1164
|
+
* @param {*} [options] Override http request option.
|
|
1165
|
+
* @throws {RequiredError}
|
|
1166
|
+
*/
|
|
1167
|
+
restoreSubscriptionPriceForClubAdmin(id, priceId, options) {
|
|
1168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1169
|
+
var _a, _b, _c;
|
|
1170
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClubAdmin(id, priceId, options);
|
|
1171
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1172
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPriceForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1173
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1174
|
+
});
|
|
1175
|
+
},
|
|
1176
|
+
/**
|
|
1177
|
+
*
|
|
1178
|
+
* @summary Mettre à jour un plan (Admin)
|
|
1179
|
+
* @param {string} id
|
|
1180
|
+
* @param {string} priceId
|
|
1181
|
+
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
1182
|
+
* @param {*} [options] Override http request option.
|
|
1183
|
+
* @throws {RequiredError}
|
|
1184
|
+
*/
|
|
1185
|
+
updateSubscriptionPlanForClubAdmin(id, priceId, updateSubscriptionPlanRequest, options) {
|
|
1186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1187
|
+
var _a, _b, _c;
|
|
1188
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClubAdmin(id, priceId, updateSubscriptionPlanRequest, options);
|
|
1189
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1190
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.updateSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1191
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1192
|
+
});
|
|
1193
|
+
},
|
|
1194
|
+
};
|
|
1195
|
+
};
|
|
1196
|
+
exports.AdminClubSubscriptionsApiFp = AdminClubSubscriptionsApiFp;
|
|
1197
|
+
/**
|
|
1198
|
+
* AdminClubSubscriptionsApi - factory interface
|
|
1199
|
+
* @export
|
|
1200
|
+
*/
|
|
1201
|
+
const AdminClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
1202
|
+
const localVarFp = (0, exports.AdminClubSubscriptionsApiFp)(configuration);
|
|
1203
|
+
return {
|
|
1204
|
+
/**
|
|
1205
|
+
*
|
|
1206
|
+
* @summary Archiver un prix (Admin)
|
|
1207
|
+
* @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
1208
|
+
* @param {*} [options] Override http request option.
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
*/
|
|
1211
|
+
archivePriceForSubscriptionPlanAdmin(requestParameters, options) {
|
|
1212
|
+
return localVarFp.archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
|
|
1213
|
+
},
|
|
1214
|
+
/**
|
|
1215
|
+
*
|
|
1216
|
+
* @summary Créer un prix pour un plan (Admin)
|
|
1217
|
+
* @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
1218
|
+
* @param {*} [options] Override http request option.
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
*/
|
|
1221
|
+
createPriceForSubscriptionPlanAdmin(requestParameters, options) {
|
|
1222
|
+
return localVarFp.createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
|
|
1223
|
+
},
|
|
1224
|
+
/**
|
|
1225
|
+
*
|
|
1226
|
+
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
1227
|
+
* @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1228
|
+
* @param {*} [options] Override http request option.
|
|
1229
|
+
* @throws {RequiredError}
|
|
1230
|
+
*/
|
|
1231
|
+
createSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1232
|
+
return localVarFp.createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
1233
|
+
},
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
* @summary Supprimer un plan (Admin)
|
|
1237
|
+
* @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1238
|
+
* @param {*} [options] Override http request option.
|
|
1239
|
+
* @throws {RequiredError}
|
|
1240
|
+
*/
|
|
1241
|
+
deleteSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1242
|
+
return localVarFp.deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
1243
|
+
},
|
|
1244
|
+
/**
|
|
1245
|
+
*
|
|
1246
|
+
* @summary Réactiver un plan (Admin)
|
|
1247
|
+
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1248
|
+
* @param {*} [options] Override http request option.
|
|
1249
|
+
* @throws {RequiredError}
|
|
1250
|
+
*/
|
|
1251
|
+
restoreSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1252
|
+
return localVarFp.restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
1253
|
+
},
|
|
1254
|
+
/**
|
|
1255
|
+
*
|
|
1256
|
+
* @summary Réactiver un prix (Admin)
|
|
1257
|
+
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
|
|
1258
|
+
* @param {*} [options] Override http request option.
|
|
1259
|
+
* @throws {RequiredError}
|
|
1260
|
+
*/
|
|
1261
|
+
restoreSubscriptionPriceForClubAdmin(requestParameters, options) {
|
|
1262
|
+
return localVarFp.restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
|
|
1263
|
+
},
|
|
1264
|
+
/**
|
|
1265
|
+
*
|
|
1266
|
+
* @summary Mettre à jour un plan (Admin)
|
|
1267
|
+
* @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1268
|
+
* @param {*} [options] Override http request option.
|
|
1269
|
+
* @throws {RequiredError}
|
|
1270
|
+
*/
|
|
1271
|
+
updateSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1272
|
+
return localVarFp.updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
1273
|
+
},
|
|
1274
|
+
};
|
|
1275
|
+
};
|
|
1276
|
+
exports.AdminClubSubscriptionsApiFactory = AdminClubSubscriptionsApiFactory;
|
|
1277
|
+
/**
|
|
1278
|
+
* AdminClubSubscriptionsApi - object-oriented interface
|
|
213
1279
|
* @export
|
|
214
|
-
* @class
|
|
1280
|
+
* @class AdminClubSubscriptionsApi
|
|
215
1281
|
* @extends {BaseAPI}
|
|
216
1282
|
*/
|
|
217
|
-
class
|
|
1283
|
+
class AdminClubSubscriptionsApi extends base_1.BaseAPI {
|
|
218
1284
|
/**
|
|
219
1285
|
*
|
|
220
|
-
* @summary
|
|
221
|
-
* @param {
|
|
1286
|
+
* @summary Archiver un prix (Admin)
|
|
1287
|
+
* @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
222
1288
|
* @param {*} [options] Override http request option.
|
|
223
1289
|
* @throws {RequiredError}
|
|
224
|
-
* @memberof
|
|
1290
|
+
* @memberof AdminClubSubscriptionsApi
|
|
225
1291
|
*/
|
|
226
|
-
|
|
227
|
-
return (0, exports.
|
|
1292
|
+
archivePriceForSubscriptionPlanAdmin(requestParameters, options) {
|
|
1293
|
+
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
*
|
|
1297
|
+
* @summary Créer un prix pour un plan (Admin)
|
|
1298
|
+
* @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
|
|
1299
|
+
* @param {*} [options] Override http request option.
|
|
1300
|
+
* @throws {RequiredError}
|
|
1301
|
+
* @memberof AdminClubSubscriptionsApi
|
|
1302
|
+
*/
|
|
1303
|
+
createPriceForSubscriptionPlanAdmin(requestParameters, options) {
|
|
1304
|
+
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
*
|
|
1308
|
+
* @summary Créer un plan d\'abonnement pour un club (Admin)
|
|
1309
|
+
* @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1310
|
+
* @param {*} [options] Override http request option.
|
|
1311
|
+
* @throws {RequiredError}
|
|
1312
|
+
* @memberof AdminClubSubscriptionsApi
|
|
1313
|
+
*/
|
|
1314
|
+
createSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1315
|
+
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
*
|
|
1319
|
+
* @summary Supprimer un plan (Admin)
|
|
1320
|
+
* @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1321
|
+
* @param {*} [options] Override http request option.
|
|
1322
|
+
* @throws {RequiredError}
|
|
1323
|
+
* @memberof AdminClubSubscriptionsApi
|
|
1324
|
+
*/
|
|
1325
|
+
deleteSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1326
|
+
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1327
|
+
}
|
|
1328
|
+
/**
|
|
1329
|
+
*
|
|
1330
|
+
* @summary Réactiver un plan (Admin)
|
|
1331
|
+
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1332
|
+
* @param {*} [options] Override http request option.
|
|
1333
|
+
* @throws {RequiredError}
|
|
1334
|
+
* @memberof AdminClubSubscriptionsApi
|
|
1335
|
+
*/
|
|
1336
|
+
restoreSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1337
|
+
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
*
|
|
1341
|
+
* @summary Réactiver un prix (Admin)
|
|
1342
|
+
* @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
|
|
1343
|
+
* @param {*} [options] Override http request option.
|
|
1344
|
+
* @throws {RequiredError}
|
|
1345
|
+
* @memberof AdminClubSubscriptionsApi
|
|
1346
|
+
*/
|
|
1347
|
+
restoreSubscriptionPriceForClubAdmin(requestParameters, options) {
|
|
1348
|
+
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
1349
|
+
}
|
|
1350
|
+
/**
|
|
1351
|
+
*
|
|
1352
|
+
* @summary Mettre à jour un plan (Admin)
|
|
1353
|
+
* @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
|
|
1354
|
+
* @param {*} [options] Override http request option.
|
|
1355
|
+
* @throws {RequiredError}
|
|
1356
|
+
* @memberof AdminClubSubscriptionsApi
|
|
1357
|
+
*/
|
|
1358
|
+
updateSubscriptionPlanForClubAdmin(requestParameters, options) {
|
|
1359
|
+
return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
228
1360
|
}
|
|
229
1361
|
}
|
|
230
|
-
exports.
|
|
1362
|
+
exports.AdminClubSubscriptionsApi = AdminClubSubscriptionsApi;
|
|
231
1363
|
/**
|
|
232
1364
|
* AdminClubsApi - axios parameter creator
|
|
233
1365
|
* @export
|
|
@@ -236,32 +1368,31 @@ const AdminClubsApiAxiosParamCreator = function (configuration) {
|
|
|
236
1368
|
return {
|
|
237
1369
|
/**
|
|
238
1370
|
*
|
|
239
|
-
* @summary
|
|
240
|
-
* @param {
|
|
1371
|
+
* @summary Supprimer un club (Admin uniquement)
|
|
1372
|
+
* @param {string} id ID du club
|
|
241
1373
|
* @param {*} [options] Override http request option.
|
|
242
1374
|
* @throws {RequiredError}
|
|
243
1375
|
*/
|
|
244
|
-
|
|
245
|
-
// verify required parameter '
|
|
246
|
-
(0, common_1.assertParamExists)('
|
|
247
|
-
const localVarPath = `/api/clubs
|
|
1376
|
+
deleteClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1377
|
+
// verify required parameter 'id' is not null or undefined
|
|
1378
|
+
(0, common_1.assertParamExists)('deleteClub', 'id', id);
|
|
1379
|
+
const localVarPath = `/api/clubs/{id}`
|
|
1380
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
248
1381
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
249
1382
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
250
1383
|
let baseOptions;
|
|
251
1384
|
if (configuration) {
|
|
252
1385
|
baseOptions = configuration.baseOptions;
|
|
253
1386
|
}
|
|
254
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1387
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
255
1388
|
const localVarHeaderParameter = {};
|
|
256
1389
|
const localVarQueryParameter = {};
|
|
257
1390
|
// authentication bearerAuth required
|
|
258
1391
|
// http bearer authentication required
|
|
259
1392
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
260
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
261
1393
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
262
1394
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
263
1395
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
264
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubRequest, localVarRequestOptions, configuration);
|
|
265
1396
|
return {
|
|
266
1397
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
267
1398
|
options: localVarRequestOptions,
|
|
@@ -269,12 +1400,16 @@ const AdminClubsApiAxiosParamCreator = function (configuration) {
|
|
|
269
1400
|
}),
|
|
270
1401
|
/**
|
|
271
1402
|
*
|
|
272
|
-
* @summary
|
|
1403
|
+
* @summary Obtenir les infos d\'un club (Admin)
|
|
1404
|
+
* @param {string} id
|
|
273
1405
|
* @param {*} [options] Override http request option.
|
|
274
1406
|
* @throws {RequiredError}
|
|
275
1407
|
*/
|
|
276
|
-
|
|
277
|
-
|
|
1408
|
+
getClubInfosAdmin: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1409
|
+
// verify required parameter 'id' is not null or undefined
|
|
1410
|
+
(0, common_1.assertParamExists)('getClubInfosAdmin', 'id', id);
|
|
1411
|
+
const localVarPath = `/api/clubs/{id}/infos`
|
|
1412
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
278
1413
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
279
1414
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
280
1415
|
let baseOptions;
|
|
@@ -295,6 +1430,43 @@ const AdminClubsApiAxiosParamCreator = function (configuration) {
|
|
|
295
1430
|
options: localVarRequestOptions,
|
|
296
1431
|
};
|
|
297
1432
|
}),
|
|
1433
|
+
/**
|
|
1434
|
+
*
|
|
1435
|
+
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
1436
|
+
* @param {string} id
|
|
1437
|
+
* @param {object} body
|
|
1438
|
+
* @param {*} [options] Override http request option.
|
|
1439
|
+
* @throws {RequiredError}
|
|
1440
|
+
*/
|
|
1441
|
+
updateClubInfosAdmin: (id_1, body_1, ...args_1) => __awaiter(this, [id_1, body_1, ...args_1], void 0, function* (id, body, options = {}) {
|
|
1442
|
+
// verify required parameter 'id' is not null or undefined
|
|
1443
|
+
(0, common_1.assertParamExists)('updateClubInfosAdmin', 'id', id);
|
|
1444
|
+
// verify required parameter 'body' is not null or undefined
|
|
1445
|
+
(0, common_1.assertParamExists)('updateClubInfosAdmin', 'body', body);
|
|
1446
|
+
const localVarPath = `/api/clubs/{id}/infos`
|
|
1447
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1448
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1449
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1450
|
+
let baseOptions;
|
|
1451
|
+
if (configuration) {
|
|
1452
|
+
baseOptions = configuration.baseOptions;
|
|
1453
|
+
}
|
|
1454
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1455
|
+
const localVarHeaderParameter = {};
|
|
1456
|
+
const localVarQueryParameter = {};
|
|
1457
|
+
// authentication bearerAuth required
|
|
1458
|
+
// http bearer authentication required
|
|
1459
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1460
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1461
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1462
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1463
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1464
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1465
|
+
return {
|
|
1466
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1467
|
+
options: localVarRequestOptions,
|
|
1468
|
+
};
|
|
1469
|
+
}),
|
|
298
1470
|
};
|
|
299
1471
|
};
|
|
300
1472
|
exports.AdminClubsApiAxiosParamCreator = AdminClubsApiAxiosParamCreator;
|
|
@@ -307,32 +1479,50 @@ const AdminClubsApiFp = function (configuration) {
|
|
|
307
1479
|
return {
|
|
308
1480
|
/**
|
|
309
1481
|
*
|
|
310
|
-
* @summary
|
|
311
|
-
* @param {
|
|
1482
|
+
* @summary Supprimer un club (Admin uniquement)
|
|
1483
|
+
* @param {string} id ID du club
|
|
1484
|
+
* @param {*} [options] Override http request option.
|
|
1485
|
+
* @throws {RequiredError}
|
|
1486
|
+
*/
|
|
1487
|
+
deleteClub(id, options) {
|
|
1488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1489
|
+
var _a, _b, _c;
|
|
1490
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClub(id, options);
|
|
1491
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1492
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.deleteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1493
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1494
|
+
});
|
|
1495
|
+
},
|
|
1496
|
+
/**
|
|
1497
|
+
*
|
|
1498
|
+
* @summary Obtenir les infos d\'un club (Admin)
|
|
1499
|
+
* @param {string} id
|
|
312
1500
|
* @param {*} [options] Override http request option.
|
|
313
1501
|
* @throws {RequiredError}
|
|
314
1502
|
*/
|
|
315
|
-
|
|
1503
|
+
getClubInfosAdmin(id, options) {
|
|
316
1504
|
return __awaiter(this, void 0, void 0, function* () {
|
|
317
1505
|
var _a, _b, _c;
|
|
318
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1506
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfosAdmin(id, options);
|
|
319
1507
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
320
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.
|
|
1508
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.getClubInfosAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
321
1509
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
322
1510
|
});
|
|
323
1511
|
},
|
|
324
1512
|
/**
|
|
325
1513
|
*
|
|
326
|
-
* @summary
|
|
1514
|
+
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
1515
|
+
* @param {string} id
|
|
1516
|
+
* @param {object} body
|
|
327
1517
|
* @param {*} [options] Override http request option.
|
|
328
1518
|
* @throws {RequiredError}
|
|
329
1519
|
*/
|
|
330
|
-
|
|
1520
|
+
updateClubInfosAdmin(id, body, options) {
|
|
331
1521
|
return __awaiter(this, void 0, void 0, function* () {
|
|
332
1522
|
var _a, _b, _c;
|
|
333
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1523
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubInfosAdmin(id, body, options);
|
|
334
1524
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
335
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.
|
|
1525
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.updateClubInfosAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
336
1526
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
337
1527
|
});
|
|
338
1528
|
},
|
|
@@ -348,22 +1538,33 @@ const AdminClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
348
1538
|
return {
|
|
349
1539
|
/**
|
|
350
1540
|
*
|
|
351
|
-
* @summary
|
|
352
|
-
* @param {
|
|
1541
|
+
* @summary Supprimer un club (Admin uniquement)
|
|
1542
|
+
* @param {AdminClubsApiDeleteClubRequest} requestParameters Request parameters.
|
|
1543
|
+
* @param {*} [options] Override http request option.
|
|
1544
|
+
* @throws {RequiredError}
|
|
1545
|
+
*/
|
|
1546
|
+
deleteClub(requestParameters, options) {
|
|
1547
|
+
return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1548
|
+
},
|
|
1549
|
+
/**
|
|
1550
|
+
*
|
|
1551
|
+
* @summary Obtenir les infos d\'un club (Admin)
|
|
1552
|
+
* @param {AdminClubsApiGetClubInfosAdminRequest} requestParameters Request parameters.
|
|
353
1553
|
* @param {*} [options] Override http request option.
|
|
354
1554
|
* @throws {RequiredError}
|
|
355
1555
|
*/
|
|
356
|
-
|
|
357
|
-
return localVarFp.
|
|
1556
|
+
getClubInfosAdmin(requestParameters, options) {
|
|
1557
|
+
return localVarFp.getClubInfosAdmin(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
358
1558
|
},
|
|
359
1559
|
/**
|
|
360
1560
|
*
|
|
361
|
-
* @summary
|
|
1561
|
+
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
1562
|
+
* @param {AdminClubsApiUpdateClubInfosAdminRequest} requestParameters Request parameters.
|
|
362
1563
|
* @param {*} [options] Override http request option.
|
|
363
1564
|
* @throws {RequiredError}
|
|
364
1565
|
*/
|
|
365
|
-
|
|
366
|
-
return localVarFp.
|
|
1566
|
+
updateClubInfosAdmin(requestParameters, options) {
|
|
1567
|
+
return localVarFp.updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
367
1568
|
},
|
|
368
1569
|
};
|
|
369
1570
|
};
|
|
@@ -377,140 +1578,39 @@ exports.AdminClubsApiFactory = AdminClubsApiFactory;
|
|
|
377
1578
|
class AdminClubsApi extends base_1.BaseAPI {
|
|
378
1579
|
/**
|
|
379
1580
|
*
|
|
380
|
-
* @summary
|
|
381
|
-
* @param {
|
|
1581
|
+
* @summary Supprimer un club (Admin uniquement)
|
|
1582
|
+
* @param {AdminClubsApiDeleteClubRequest} requestParameters Request parameters.
|
|
382
1583
|
* @param {*} [options] Override http request option.
|
|
383
1584
|
* @throws {RequiredError}
|
|
384
1585
|
* @memberof AdminClubsApi
|
|
385
1586
|
*/
|
|
386
|
-
|
|
387
|
-
return (0, exports.AdminClubsApiFp)(this.configuration).
|
|
1587
|
+
deleteClub(requestParameters, options) {
|
|
1588
|
+
return (0, exports.AdminClubsApiFp)(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
388
1589
|
}
|
|
389
1590
|
/**
|
|
390
1591
|
*
|
|
391
|
-
* @summary
|
|
1592
|
+
* @summary Obtenir les infos d\'un club (Admin)
|
|
1593
|
+
* @param {AdminClubsApiGetClubInfosAdminRequest} requestParameters Request parameters.
|
|
392
1594
|
* @param {*} [options] Override http request option.
|
|
393
1595
|
* @throws {RequiredError}
|
|
394
1596
|
* @memberof AdminClubsApi
|
|
395
1597
|
*/
|
|
396
|
-
|
|
397
|
-
return (0, exports.AdminClubsApiFp)(this.configuration).
|
|
1598
|
+
getClubInfosAdmin(requestParameters, options) {
|
|
1599
|
+
return (0, exports.AdminClubsApiFp)(this.configuration).getClubInfosAdmin(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
398
1600
|
}
|
|
399
|
-
}
|
|
400
|
-
exports.AdminClubsApi = AdminClubsApi;
|
|
401
|
-
/**
|
|
402
|
-
* BookingsApi - axios parameter creator
|
|
403
|
-
* @export
|
|
404
|
-
*/
|
|
405
|
-
const BookingsApiAxiosParamCreator = function (configuration) {
|
|
406
|
-
return {
|
|
407
|
-
/**
|
|
408
|
-
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
409
|
-
* @summary Annuler une réservation (créateur uniquement)
|
|
410
|
-
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
411
|
-
* @param {CancelBookingRequest} cancelBookingRequest
|
|
412
|
-
* @param {*} [options] Override http request option.
|
|
413
|
-
* @throws {RequiredError}
|
|
414
|
-
*/
|
|
415
|
-
cancelBooking: (bookingId_1, cancelBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, cancelBookingRequest_1, ...args_1], void 0, function* (bookingId, cancelBookingRequest, options = {}) {
|
|
416
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
417
|
-
(0, common_1.assertParamExists)('cancelBooking', 'bookingId', bookingId);
|
|
418
|
-
// verify required parameter 'cancelBookingRequest' is not null or undefined
|
|
419
|
-
(0, common_1.assertParamExists)('cancelBooking', 'cancelBookingRequest', cancelBookingRequest);
|
|
420
|
-
const localVarPath = `/api/bookings/{bookingId}/cancel`
|
|
421
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
422
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
423
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
424
|
-
let baseOptions;
|
|
425
|
-
if (configuration) {
|
|
426
|
-
baseOptions = configuration.baseOptions;
|
|
427
|
-
}
|
|
428
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
429
|
-
const localVarHeaderParameter = {};
|
|
430
|
-
const localVarQueryParameter = {};
|
|
431
|
-
// authentication bearerAuth required
|
|
432
|
-
// http bearer authentication required
|
|
433
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
434
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
435
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
436
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
437
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
438
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cancelBookingRequest, localVarRequestOptions, configuration);
|
|
439
|
-
return {
|
|
440
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
441
|
-
options: localVarRequestOptions,
|
|
442
|
-
};
|
|
443
|
-
}),
|
|
444
|
-
};
|
|
445
|
-
};
|
|
446
|
-
exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
|
|
447
|
-
/**
|
|
448
|
-
* BookingsApi - functional programming interface
|
|
449
|
-
* @export
|
|
450
|
-
*/
|
|
451
|
-
const BookingsApiFp = function (configuration) {
|
|
452
|
-
const localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
|
|
453
|
-
return {
|
|
454
|
-
/**
|
|
455
|
-
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
456
|
-
* @summary Annuler une réservation (créateur uniquement)
|
|
457
|
-
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
458
|
-
* @param {CancelBookingRequest} cancelBookingRequest
|
|
459
|
-
* @param {*} [options] Override http request option.
|
|
460
|
-
* @throws {RequiredError}
|
|
461
|
-
*/
|
|
462
|
-
cancelBooking(bookingId, cancelBookingRequest, options) {
|
|
463
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
464
|
-
var _a, _b, _c;
|
|
465
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelBooking(bookingId, cancelBookingRequest, options);
|
|
466
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
467
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.cancelBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
468
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
469
|
-
});
|
|
470
|
-
},
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
|
-
exports.BookingsApiFp = BookingsApiFp;
|
|
474
|
-
/**
|
|
475
|
-
* BookingsApi - factory interface
|
|
476
|
-
* @export
|
|
477
|
-
*/
|
|
478
|
-
const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
479
|
-
const localVarFp = (0, exports.BookingsApiFp)(configuration);
|
|
480
|
-
return {
|
|
481
|
-
/**
|
|
482
|
-
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
483
|
-
* @summary Annuler une réservation (créateur uniquement)
|
|
484
|
-
* @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
|
|
485
|
-
* @param {*} [options] Override http request option.
|
|
486
|
-
* @throws {RequiredError}
|
|
487
|
-
*/
|
|
488
|
-
cancelBooking(requestParameters, options) {
|
|
489
|
-
return localVarFp.cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(axios, basePath));
|
|
490
|
-
},
|
|
491
|
-
};
|
|
492
|
-
};
|
|
493
|
-
exports.BookingsApiFactory = BookingsApiFactory;
|
|
494
|
-
/**
|
|
495
|
-
* BookingsApi - object-oriented interface
|
|
496
|
-
* @export
|
|
497
|
-
* @class BookingsApi
|
|
498
|
-
* @extends {BaseAPI}
|
|
499
|
-
*/
|
|
500
|
-
class BookingsApi extends base_1.BaseAPI {
|
|
501
1601
|
/**
|
|
502
|
-
*
|
|
503
|
-
* @summary
|
|
504
|
-
* @param {
|
|
1602
|
+
*
|
|
1603
|
+
* @summary Mettre à jour les infos d\'un club (Admin)
|
|
1604
|
+
* @param {AdminClubsApiUpdateClubInfosAdminRequest} requestParameters Request parameters.
|
|
505
1605
|
* @param {*} [options] Override http request option.
|
|
506
1606
|
* @throws {RequiredError}
|
|
507
|
-
* @memberof
|
|
1607
|
+
* @memberof AdminClubsApi
|
|
508
1608
|
*/
|
|
509
|
-
|
|
510
|
-
return (0, exports.
|
|
1609
|
+
updateClubInfosAdmin(requestParameters, options) {
|
|
1610
|
+
return (0, exports.AdminClubsApiFp)(this.configuration).updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
511
1611
|
}
|
|
512
1612
|
}
|
|
513
|
-
exports.
|
|
1613
|
+
exports.AdminClubsApi = AdminClubsApi;
|
|
514
1614
|
/**
|
|
515
1615
|
* ClubAnalyticsApi - axios parameter creator
|
|
516
1616
|
* @export
|
|
@@ -519,19 +1619,15 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
519
1619
|
return {
|
|
520
1620
|
/**
|
|
521
1621
|
*
|
|
522
|
-
* @summary Chiffre d\'affaires quotidien
|
|
523
|
-
* @param {string} id ID du club
|
|
1622
|
+
* @summary Chiffre d\'affaires quotidien (club courant)
|
|
524
1623
|
* @param {string} date Date (format YYYY-MM-DD)
|
|
525
1624
|
* @param {*} [options] Override http request option.
|
|
526
1625
|
* @throws {RequiredError}
|
|
527
1626
|
*/
|
|
528
|
-
getDailyTurnOver: (
|
|
529
|
-
// verify required parameter 'id' is not null or undefined
|
|
530
|
-
(0, common_1.assertParamExists)('getDailyTurnOver', 'id', id);
|
|
1627
|
+
getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
|
|
531
1628
|
// verify required parameter 'date' is not null or undefined
|
|
532
1629
|
(0, common_1.assertParamExists)('getDailyTurnOver', 'date', date);
|
|
533
|
-
const localVarPath = `/api/
|
|
534
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1630
|
+
const localVarPath = `/api/analytics/dailyTurnover`;
|
|
535
1631
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
536
1632
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
537
1633
|
let baseOptions;
|
|
@@ -559,8 +1655,7 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
559
1655
|
}),
|
|
560
1656
|
/**
|
|
561
1657
|
*
|
|
562
|
-
* @summary Récupérer les factures du club
|
|
563
|
-
* @param {string} id ID du club
|
|
1658
|
+
* @summary Récupérer les factures du club courant
|
|
564
1659
|
* @param {number} [page] Numéro de page
|
|
565
1660
|
* @param {number} [limit] Nombre d\'éléments par page
|
|
566
1661
|
* @param {GetInvoicesStatusEnum} [status] Filtrer par statut
|
|
@@ -569,11 +1664,8 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
569
1664
|
* @param {*} [options] Override http request option.
|
|
570
1665
|
* @throws {RequiredError}
|
|
571
1666
|
*/
|
|
572
|
-
getInvoices: (
|
|
573
|
-
|
|
574
|
-
(0, common_1.assertParamExists)('getInvoices', 'id', id);
|
|
575
|
-
const localVarPath = `/api/clubs/{id}/invoices`
|
|
576
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1667
|
+
getInvoices: (page_1, limit_1, status_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [page_1, limit_1, status_1, startDate_1, endDate_1, ...args_1], void 0, function* (page, limit, status, startDate, endDate, options = {}) {
|
|
1668
|
+
const localVarPath = `/api/clubs/invoices`;
|
|
577
1669
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
578
1670
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
579
1671
|
let baseOptions;
|
|
@@ -615,22 +1707,18 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
615
1707
|
}),
|
|
616
1708
|
/**
|
|
617
1709
|
*
|
|
618
|
-
* @summary Chiffre d\'affaires mensuel
|
|
619
|
-
* @param {string} id ID du club
|
|
1710
|
+
* @summary Chiffre d\'affaires mensuel (club courant)
|
|
620
1711
|
* @param {number} year Année
|
|
621
1712
|
* @param {number} month Mois (1-12)
|
|
622
1713
|
* @param {*} [options] Override http request option.
|
|
623
1714
|
* @throws {RequiredError}
|
|
624
1715
|
*/
|
|
625
|
-
getMonthlyTurnOver: (
|
|
626
|
-
// verify required parameter 'id' is not null or undefined
|
|
627
|
-
(0, common_1.assertParamExists)('getMonthlyTurnOver', 'id', id);
|
|
1716
|
+
getMonthlyTurnOver: (year_1, month_1, ...args_1) => __awaiter(this, [year_1, month_1, ...args_1], void 0, function* (year, month, options = {}) {
|
|
628
1717
|
// verify required parameter 'year' is not null or undefined
|
|
629
1718
|
(0, common_1.assertParamExists)('getMonthlyTurnOver', 'year', year);
|
|
630
1719
|
// verify required parameter 'month' is not null or undefined
|
|
631
1720
|
(0, common_1.assertParamExists)('getMonthlyTurnOver', 'month', month);
|
|
632
|
-
const localVarPath = `/api/
|
|
633
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1721
|
+
const localVarPath = `/api/analytics/monthlyTurnover`;
|
|
634
1722
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
635
1723
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
636
1724
|
let baseOptions;
|
|
@@ -659,19 +1747,15 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
659
1747
|
}),
|
|
660
1748
|
/**
|
|
661
1749
|
*
|
|
662
|
-
* @summary Chiffre d\'affaires annuel
|
|
663
|
-
* @param {string} id ID du club
|
|
1750
|
+
* @summary Chiffre d\'affaires annuel (club courant)
|
|
664
1751
|
* @param {number} year Année
|
|
665
1752
|
* @param {*} [options] Override http request option.
|
|
666
1753
|
* @throws {RequiredError}
|
|
667
1754
|
*/
|
|
668
|
-
getYearlyTurnOver: (
|
|
669
|
-
// verify required parameter 'id' is not null or undefined
|
|
670
|
-
(0, common_1.assertParamExists)('getYearlyTurnOver', 'id', id);
|
|
1755
|
+
getYearlyTurnOver: (year_1, ...args_1) => __awaiter(this, [year_1, ...args_1], void 0, function* (year, options = {}) {
|
|
671
1756
|
// verify required parameter 'year' is not null or undefined
|
|
672
1757
|
(0, common_1.assertParamExists)('getYearlyTurnOver', 'year', year);
|
|
673
|
-
const localVarPath = `/api/
|
|
674
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1758
|
+
const localVarPath = `/api/analytics/yearlyTurnover`;
|
|
675
1759
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
676
1760
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
677
1761
|
let baseOptions;
|
|
@@ -707,16 +1791,15 @@ const ClubAnalyticsApiFp = function (configuration) {
|
|
|
707
1791
|
return {
|
|
708
1792
|
/**
|
|
709
1793
|
*
|
|
710
|
-
* @summary Chiffre d\'affaires quotidien
|
|
711
|
-
* @param {string} id ID du club
|
|
1794
|
+
* @summary Chiffre d\'affaires quotidien (club courant)
|
|
712
1795
|
* @param {string} date Date (format YYYY-MM-DD)
|
|
713
1796
|
* @param {*} [options] Override http request option.
|
|
714
1797
|
* @throws {RequiredError}
|
|
715
1798
|
*/
|
|
716
|
-
getDailyTurnOver(
|
|
1799
|
+
getDailyTurnOver(date, options) {
|
|
717
1800
|
return __awaiter(this, void 0, void 0, function* () {
|
|
718
1801
|
var _a, _b, _c;
|
|
719
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOver(
|
|
1802
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOver(date, options);
|
|
720
1803
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
721
1804
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getDailyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
722
1805
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -724,8 +1807,7 @@ const ClubAnalyticsApiFp = function (configuration) {
|
|
|
724
1807
|
},
|
|
725
1808
|
/**
|
|
726
1809
|
*
|
|
727
|
-
* @summary Récupérer les factures du club
|
|
728
|
-
* @param {string} id ID du club
|
|
1810
|
+
* @summary Récupérer les factures du club courant
|
|
729
1811
|
* @param {number} [page] Numéro de page
|
|
730
1812
|
* @param {number} [limit] Nombre d\'éléments par page
|
|
731
1813
|
* @param {GetInvoicesStatusEnum} [status] Filtrer par statut
|
|
@@ -734,10 +1816,10 @@ const ClubAnalyticsApiFp = function (configuration) {
|
|
|
734
1816
|
* @param {*} [options] Override http request option.
|
|
735
1817
|
* @throws {RequiredError}
|
|
736
1818
|
*/
|
|
737
|
-
getInvoices(
|
|
1819
|
+
getInvoices(page, limit, status, startDate, endDate, options) {
|
|
738
1820
|
return __awaiter(this, void 0, void 0, function* () {
|
|
739
1821
|
var _a, _b, _c;
|
|
740
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(
|
|
1822
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(page, limit, status, startDate, endDate, options);
|
|
741
1823
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
742
1824
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getInvoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
743
1825
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -745,17 +1827,16 @@ const ClubAnalyticsApiFp = function (configuration) {
|
|
|
745
1827
|
},
|
|
746
1828
|
/**
|
|
747
1829
|
*
|
|
748
|
-
* @summary Chiffre d\'affaires mensuel
|
|
749
|
-
* @param {string} id ID du club
|
|
1830
|
+
* @summary Chiffre d\'affaires mensuel (club courant)
|
|
750
1831
|
* @param {number} year Année
|
|
751
1832
|
* @param {number} month Mois (1-12)
|
|
752
1833
|
* @param {*} [options] Override http request option.
|
|
753
1834
|
* @throws {RequiredError}
|
|
754
1835
|
*/
|
|
755
|
-
getMonthlyTurnOver(
|
|
1836
|
+
getMonthlyTurnOver(year, month, options) {
|
|
756
1837
|
return __awaiter(this, void 0, void 0, function* () {
|
|
757
1838
|
var _a, _b, _c;
|
|
758
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOver(
|
|
1839
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOver(year, month, options);
|
|
759
1840
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
760
1841
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getMonthlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
761
1842
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -763,16 +1844,15 @@ const ClubAnalyticsApiFp = function (configuration) {
|
|
|
763
1844
|
},
|
|
764
1845
|
/**
|
|
765
1846
|
*
|
|
766
|
-
* @summary Chiffre d\'affaires annuel
|
|
767
|
-
* @param {string} id ID du club
|
|
1847
|
+
* @summary Chiffre d\'affaires annuel (club courant)
|
|
768
1848
|
* @param {number} year Année
|
|
769
1849
|
* @param {*} [options] Override http request option.
|
|
770
1850
|
* @throws {RequiredError}
|
|
771
1851
|
*/
|
|
772
|
-
getYearlyTurnOver(
|
|
1852
|
+
getYearlyTurnOver(year, options) {
|
|
773
1853
|
return __awaiter(this, void 0, void 0, function* () {
|
|
774
1854
|
var _a, _b, _c;
|
|
775
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOver(
|
|
1855
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOver(year, options);
|
|
776
1856
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
777
1857
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getYearlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
778
1858
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -790,43 +1870,43 @@ const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
|
790
1870
|
return {
|
|
791
1871
|
/**
|
|
792
1872
|
*
|
|
793
|
-
* @summary Chiffre d\'affaires quotidien
|
|
1873
|
+
* @summary Chiffre d\'affaires quotidien (club courant)
|
|
794
1874
|
* @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
795
1875
|
* @param {*} [options] Override http request option.
|
|
796
1876
|
* @throws {RequiredError}
|
|
797
1877
|
*/
|
|
798
1878
|
getDailyTurnOver(requestParameters, options) {
|
|
799
|
-
return localVarFp.getDailyTurnOver(requestParameters.
|
|
1879
|
+
return localVarFp.getDailyTurnOver(requestParameters.date, options).then((request) => request(axios, basePath));
|
|
800
1880
|
},
|
|
801
1881
|
/**
|
|
802
1882
|
*
|
|
803
|
-
* @summary Récupérer les factures du club
|
|
1883
|
+
* @summary Récupérer les factures du club courant
|
|
804
1884
|
* @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
|
|
805
1885
|
* @param {*} [options] Override http request option.
|
|
806
1886
|
* @throws {RequiredError}
|
|
807
1887
|
*/
|
|
808
|
-
getInvoices(requestParameters, options) {
|
|
809
|
-
return localVarFp.getInvoices(requestParameters.
|
|
1888
|
+
getInvoices(requestParameters = {}, options) {
|
|
1889
|
+
return localVarFp.getInvoices(requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
810
1890
|
},
|
|
811
1891
|
/**
|
|
812
1892
|
*
|
|
813
|
-
* @summary Chiffre d\'affaires mensuel
|
|
1893
|
+
* @summary Chiffre d\'affaires mensuel (club courant)
|
|
814
1894
|
* @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
|
|
815
1895
|
* @param {*} [options] Override http request option.
|
|
816
1896
|
* @throws {RequiredError}
|
|
817
1897
|
*/
|
|
818
1898
|
getMonthlyTurnOver(requestParameters, options) {
|
|
819
|
-
return localVarFp.getMonthlyTurnOver(requestParameters.
|
|
1899
|
+
return localVarFp.getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
|
|
820
1900
|
},
|
|
821
1901
|
/**
|
|
822
1902
|
*
|
|
823
|
-
* @summary Chiffre d\'affaires annuel
|
|
1903
|
+
* @summary Chiffre d\'affaires annuel (club courant)
|
|
824
1904
|
* @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
825
1905
|
* @param {*} [options] Override http request option.
|
|
826
1906
|
* @throws {RequiredError}
|
|
827
1907
|
*/
|
|
828
1908
|
getYearlyTurnOver(requestParameters, options) {
|
|
829
|
-
return localVarFp.getYearlyTurnOver(requestParameters.
|
|
1909
|
+
return localVarFp.getYearlyTurnOver(requestParameters.year, options).then((request) => request(axios, basePath));
|
|
830
1910
|
},
|
|
831
1911
|
};
|
|
832
1912
|
};
|
|
@@ -840,47 +1920,47 @@ exports.ClubAnalyticsApiFactory = ClubAnalyticsApiFactory;
|
|
|
840
1920
|
class ClubAnalyticsApi extends base_1.BaseAPI {
|
|
841
1921
|
/**
|
|
842
1922
|
*
|
|
843
|
-
* @summary Chiffre d\'affaires quotidien
|
|
1923
|
+
* @summary Chiffre d\'affaires quotidien (club courant)
|
|
844
1924
|
* @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
845
1925
|
* @param {*} [options] Override http request option.
|
|
846
1926
|
* @throws {RequiredError}
|
|
847
1927
|
* @memberof ClubAnalyticsApi
|
|
848
1928
|
*/
|
|
849
1929
|
getDailyTurnOver(requestParameters, options) {
|
|
850
|
-
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getDailyTurnOver(requestParameters.
|
|
1930
|
+
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getDailyTurnOver(requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
851
1931
|
}
|
|
852
1932
|
/**
|
|
853
1933
|
*
|
|
854
|
-
* @summary Récupérer les factures du club
|
|
1934
|
+
* @summary Récupérer les factures du club courant
|
|
855
1935
|
* @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
|
|
856
1936
|
* @param {*} [options] Override http request option.
|
|
857
1937
|
* @throws {RequiredError}
|
|
858
1938
|
* @memberof ClubAnalyticsApi
|
|
859
1939
|
*/
|
|
860
|
-
getInvoices(requestParameters, options) {
|
|
861
|
-
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getInvoices(requestParameters.
|
|
1940
|
+
getInvoices(requestParameters = {}, options) {
|
|
1941
|
+
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getInvoices(requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
862
1942
|
}
|
|
863
1943
|
/**
|
|
864
1944
|
*
|
|
865
|
-
* @summary Chiffre d\'affaires mensuel
|
|
1945
|
+
* @summary Chiffre d\'affaires mensuel (club courant)
|
|
866
1946
|
* @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
|
|
867
1947
|
* @param {*} [options] Override http request option.
|
|
868
1948
|
* @throws {RequiredError}
|
|
869
1949
|
* @memberof ClubAnalyticsApi
|
|
870
1950
|
*/
|
|
871
1951
|
getMonthlyTurnOver(requestParameters, options) {
|
|
872
|
-
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMonthlyTurnOver(requestParameters.
|
|
1952
|
+
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
|
|
873
1953
|
}
|
|
874
1954
|
/**
|
|
875
1955
|
*
|
|
876
|
-
* @summary Chiffre d\'affaires annuel
|
|
1956
|
+
* @summary Chiffre d\'affaires annuel (club courant)
|
|
877
1957
|
* @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
878
1958
|
* @param {*} [options] Override http request option.
|
|
879
1959
|
* @throws {RequiredError}
|
|
880
1960
|
* @memberof ClubAnalyticsApi
|
|
881
1961
|
*/
|
|
882
1962
|
getYearlyTurnOver(requestParameters, options) {
|
|
883
|
-
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getYearlyTurnOver(requestParameters.
|
|
1963
|
+
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getYearlyTurnOver(requestParameters.year, options).then((request) => request(this.axios, this.basePath));
|
|
884
1964
|
}
|
|
885
1965
|
}
|
|
886
1966
|
exports.ClubAnalyticsApi = ClubAnalyticsApi;
|
|
@@ -899,88 +1979,19 @@ exports.GetInvoicesStatusEnum = {
|
|
|
899
1979
|
* ManagerBookingsApi - axios parameter creator
|
|
900
1980
|
* @export
|
|
901
1981
|
*/
|
|
902
|
-
const ManagerBookingsApiAxiosParamCreator = function (configuration) {
|
|
903
|
-
return {
|
|
904
|
-
/**
|
|
905
|
-
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
906
|
-
* @summary Appliquer les frais de no-show
|
|
907
|
-
* @param {string} bookingId ID MongoDB de la réservation
|
|
908
|
-
* @param {*} [options] Override http request option.
|
|
909
|
-
* @throws {RequiredError}
|
|
910
|
-
*/
|
|
911
|
-
applyNoShowFee: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
912
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
913
|
-
(0, common_1.assertParamExists)('applyNoShowFee', 'bookingId', bookingId);
|
|
914
|
-
const localVarPath = `/api/bookings/{bookingId}/apply-noshow-fee`
|
|
915
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
916
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
917
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
918
|
-
let baseOptions;
|
|
919
|
-
if (configuration) {
|
|
920
|
-
baseOptions = configuration.baseOptions;
|
|
921
|
-
}
|
|
922
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
923
|
-
const localVarHeaderParameter = {};
|
|
924
|
-
const localVarQueryParameter = {};
|
|
925
|
-
// authentication bearerAuth required
|
|
926
|
-
// http bearer authentication required
|
|
927
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
928
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
929
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
930
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
931
|
-
return {
|
|
932
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
933
|
-
options: localVarRequestOptions,
|
|
934
|
-
};
|
|
935
|
-
}),
|
|
936
|
-
/**
|
|
937
|
-
* Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
|
|
938
|
-
* @summary Enregistrer l\'arrivée des joueurs
|
|
939
|
-
* @param {string} bookingId ID MongoDB de la réservation
|
|
940
|
-
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
941
|
-
* @param {*} [options] Override http request option.
|
|
942
|
-
* @throws {RequiredError}
|
|
943
|
-
*/
|
|
944
|
-
checkInPlayers: (bookingId_1, checkInPlayersRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayersRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayersRequest, options = {}) {
|
|
945
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
946
|
-
(0, common_1.assertParamExists)('checkInPlayers', 'bookingId', bookingId);
|
|
947
|
-
// verify required parameter 'checkInPlayersRequest' is not null or undefined
|
|
948
|
-
(0, common_1.assertParamExists)('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest);
|
|
949
|
-
const localVarPath = `/api/bookings/{bookingId}/checkin-players`
|
|
950
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
951
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
952
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
953
|
-
let baseOptions;
|
|
954
|
-
if (configuration) {
|
|
955
|
-
baseOptions = configuration.baseOptions;
|
|
956
|
-
}
|
|
957
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
958
|
-
const localVarHeaderParameter = {};
|
|
959
|
-
const localVarQueryParameter = {};
|
|
960
|
-
// authentication bearerAuth required
|
|
961
|
-
// http bearer authentication required
|
|
962
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
963
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
964
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
965
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
966
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
967
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayersRequest, localVarRequestOptions, configuration);
|
|
968
|
-
return {
|
|
969
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
970
|
-
options: localVarRequestOptions,
|
|
971
|
-
};
|
|
972
|
-
}),
|
|
1982
|
+
const ManagerBookingsApiAxiosParamCreator = function (configuration) {
|
|
1983
|
+
return {
|
|
973
1984
|
/**
|
|
974
|
-
*
|
|
975
|
-
* @summary
|
|
1985
|
+
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
1986
|
+
* @summary Appliquer les frais de no-show
|
|
976
1987
|
* @param {string} bookingId ID MongoDB de la réservation
|
|
977
1988
|
* @param {*} [options] Override http request option.
|
|
978
1989
|
* @throws {RequiredError}
|
|
979
1990
|
*/
|
|
980
|
-
|
|
1991
|
+
applyNoShowFee: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
981
1992
|
// verify required parameter 'bookingId' is not null or undefined
|
|
982
|
-
(0, common_1.assertParamExists)('
|
|
983
|
-
const localVarPath = `/api/bookings/{bookingId}/
|
|
1993
|
+
(0, common_1.assertParamExists)('applyNoShowFee', 'bookingId', bookingId);
|
|
1994
|
+
const localVarPath = `/api/bookings/{bookingId}/apply-noshow-fee`
|
|
984
1995
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
985
1996
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
986
1997
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -988,7 +1999,7 @@ const ManagerBookingsApiAxiosParamCreator = function (configuration) {
|
|
|
988
1999
|
if (configuration) {
|
|
989
2000
|
baseOptions = configuration.baseOptions;
|
|
990
2001
|
}
|
|
991
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2002
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
992
2003
|
const localVarHeaderParameter = {};
|
|
993
2004
|
const localVarQueryParameter = {};
|
|
994
2005
|
// authentication bearerAuth required
|
|
@@ -1065,39 +2076,6 @@ const ManagerBookingsApiFp = function (configuration) {
|
|
|
1065
2076
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1066
2077
|
});
|
|
1067
2078
|
},
|
|
1068
|
-
/**
|
|
1069
|
-
* Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
|
|
1070
|
-
* @summary Enregistrer l\'arrivée des joueurs
|
|
1071
|
-
* @param {string} bookingId ID MongoDB de la réservation
|
|
1072
|
-
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
1073
|
-
* @param {*} [options] Override http request option.
|
|
1074
|
-
* @throws {RequiredError}
|
|
1075
|
-
*/
|
|
1076
|
-
checkInPlayers(bookingId, checkInPlayersRequest, options) {
|
|
1077
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1078
|
-
var _a, _b, _c;
|
|
1079
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
|
|
1080
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1081
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerBookingsApi.checkInPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1082
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1083
|
-
});
|
|
1084
|
-
},
|
|
1085
|
-
/**
|
|
1086
|
-
* Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
|
|
1087
|
-
* @summary Obtenir le statut des paiements d\'une réservation
|
|
1088
|
-
* @param {string} bookingId ID MongoDB de la réservation
|
|
1089
|
-
* @param {*} [options] Override http request option.
|
|
1090
|
-
* @throws {RequiredError}
|
|
1091
|
-
*/
|
|
1092
|
-
getBookingPaymentStatus(bookingId, options) {
|
|
1093
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1094
|
-
var _a, _b, _c;
|
|
1095
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPaymentStatus(bookingId, options);
|
|
1096
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1097
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerBookingsApi.getBookingPaymentStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1098
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1099
|
-
});
|
|
1100
|
-
},
|
|
1101
2079
|
/**
|
|
1102
2080
|
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
1103
2081
|
* @summary Annuler une réservation (gestionnaire)
|
|
@@ -1135,26 +2113,6 @@ const ManagerBookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1135
2113
|
applyNoShowFee(requestParameters, options) {
|
|
1136
2114
|
return localVarFp.applyNoShowFee(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
1137
2115
|
},
|
|
1138
|
-
/**
|
|
1139
|
-
* Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
|
|
1140
|
-
* @summary Enregistrer l\'arrivée des joueurs
|
|
1141
|
-
* @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
1142
|
-
* @param {*} [options] Override http request option.
|
|
1143
|
-
* @throws {RequiredError}
|
|
1144
|
-
*/
|
|
1145
|
-
checkInPlayers(requestParameters, options) {
|
|
1146
|
-
return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
|
|
1147
|
-
},
|
|
1148
|
-
/**
|
|
1149
|
-
* Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
|
|
1150
|
-
* @summary Obtenir le statut des paiements d\'une réservation
|
|
1151
|
-
* @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
|
|
1152
|
-
* @param {*} [options] Override http request option.
|
|
1153
|
-
* @throws {RequiredError}
|
|
1154
|
-
*/
|
|
1155
|
-
getBookingPaymentStatus(requestParameters, options) {
|
|
1156
|
-
return localVarFp.getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
1157
|
-
},
|
|
1158
2116
|
/**
|
|
1159
2117
|
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
1160
2118
|
* @summary Annuler une réservation (gestionnaire)
|
|
@@ -1186,28 +2144,6 @@ class ManagerBookingsApi extends base_1.BaseAPI {
|
|
|
1186
2144
|
applyNoShowFee(requestParameters, options) {
|
|
1187
2145
|
return (0, exports.ManagerBookingsApiFp)(this.configuration).applyNoShowFee(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
1188
2146
|
}
|
|
1189
|
-
/**
|
|
1190
|
-
* Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
|
|
1191
|
-
* @summary Enregistrer l\'arrivée des joueurs
|
|
1192
|
-
* @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
1193
|
-
* @param {*} [options] Override http request option.
|
|
1194
|
-
* @throws {RequiredError}
|
|
1195
|
-
* @memberof ManagerBookingsApi
|
|
1196
|
-
*/
|
|
1197
|
-
checkInPlayers(requestParameters, options) {
|
|
1198
|
-
return (0, exports.ManagerBookingsApiFp)(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1199
|
-
}
|
|
1200
|
-
/**
|
|
1201
|
-
* Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
|
|
1202
|
-
* @summary Obtenir le statut des paiements d\'une réservation
|
|
1203
|
-
* @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
|
|
1204
|
-
* @param {*} [options] Override http request option.
|
|
1205
|
-
* @throws {RequiredError}
|
|
1206
|
-
* @memberof ManagerBookingsApi
|
|
1207
|
-
*/
|
|
1208
|
-
getBookingPaymentStatus(requestParameters, options) {
|
|
1209
|
-
return (0, exports.ManagerBookingsApiFp)(this.configuration).getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
1210
|
-
}
|
|
1211
2147
|
/**
|
|
1212
2148
|
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
1213
2149
|
* @summary Annuler une réservation (gestionnaire)
|
|
@@ -1229,19 +2165,15 @@ const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
1229
2165
|
return {
|
|
1230
2166
|
/**
|
|
1231
2167
|
*
|
|
1232
|
-
* @summary Créer un terrain pour
|
|
1233
|
-
* @param {string} id ID du club
|
|
2168
|
+
* @summary Créer un terrain pour le club courant
|
|
1234
2169
|
* @param {CreateCourtRequest} createCourtRequest
|
|
1235
2170
|
* @param {*} [options] Override http request option.
|
|
1236
2171
|
* @throws {RequiredError}
|
|
1237
2172
|
*/
|
|
1238
|
-
createCourtForClub: (
|
|
1239
|
-
// verify required parameter 'id' is not null or undefined
|
|
1240
|
-
(0, common_1.assertParamExists)('createCourtForClub', 'id', id);
|
|
2173
|
+
createCourtForClub: (createCourtRequest_1, ...args_1) => __awaiter(this, [createCourtRequest_1, ...args_1], void 0, function* (createCourtRequest, options = {}) {
|
|
1241
2174
|
// verify required parameter 'createCourtRequest' is not null or undefined
|
|
1242
2175
|
(0, common_1.assertParamExists)('createCourtForClub', 'createCourtRequest', createCourtRequest);
|
|
1243
|
-
const localVarPath = `/api/clubs/
|
|
1244
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2176
|
+
const localVarPath = `/api/clubs/courts`;
|
|
1245
2177
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1246
2178
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1247
2179
|
let baseOptions;
|
|
@@ -1266,16 +2198,12 @@ const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
|
|
|
1266
2198
|
}),
|
|
1267
2199
|
/**
|
|
1268
2200
|
*
|
|
1269
|
-
* @summary Récupérer tous les terrains
|
|
1270
|
-
* @param {string} id ID du club
|
|
2201
|
+
* @summary Récupérer tous les terrains du club courant
|
|
1271
2202
|
* @param {*} [options] Override http request option.
|
|
1272
2203
|
* @throws {RequiredError}
|
|
1273
2204
|
*/
|
|
1274
|
-
getCourtsByClub: (
|
|
1275
|
-
|
|
1276
|
-
(0, common_1.assertParamExists)('getCourtsByClub', 'id', id);
|
|
1277
|
-
const localVarPath = `/api/clubs/{id}/courts`
|
|
1278
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2205
|
+
getCourtsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2206
|
+
const localVarPath = `/api/clubs/courts`;
|
|
1279
2207
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1280
2208
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1281
2209
|
let baseOptions;
|
|
@@ -1308,16 +2236,15 @@ const ManagerClubCourtsApiFp = function (configuration) {
|
|
|
1308
2236
|
return {
|
|
1309
2237
|
/**
|
|
1310
2238
|
*
|
|
1311
|
-
* @summary Créer un terrain pour
|
|
1312
|
-
* @param {string} id ID du club
|
|
2239
|
+
* @summary Créer un terrain pour le club courant
|
|
1313
2240
|
* @param {CreateCourtRequest} createCourtRequest
|
|
1314
2241
|
* @param {*} [options] Override http request option.
|
|
1315
2242
|
* @throws {RequiredError}
|
|
1316
2243
|
*/
|
|
1317
|
-
createCourtForClub(
|
|
2244
|
+
createCourtForClub(createCourtRequest, options) {
|
|
1318
2245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1319
2246
|
var _a, _b, _c;
|
|
1320
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCourtForClub(
|
|
2247
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCourtForClub(createCourtRequest, options);
|
|
1321
2248
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1322
2249
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubCourtsApi.createCourtForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1323
2250
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1325,15 +2252,14 @@ const ManagerClubCourtsApiFp = function (configuration) {
|
|
|
1325
2252
|
},
|
|
1326
2253
|
/**
|
|
1327
2254
|
*
|
|
1328
|
-
* @summary Récupérer tous les terrains
|
|
1329
|
-
* @param {string} id ID du club
|
|
2255
|
+
* @summary Récupérer tous les terrains du club courant
|
|
1330
2256
|
* @param {*} [options] Override http request option.
|
|
1331
2257
|
* @throws {RequiredError}
|
|
1332
2258
|
*/
|
|
1333
|
-
getCourtsByClub(
|
|
2259
|
+
getCourtsByClub(options) {
|
|
1334
2260
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1335
2261
|
var _a, _b, _c;
|
|
1336
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClub(
|
|
2262
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClub(options);
|
|
1337
2263
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1338
2264
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubCourtsApi.getCourtsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1339
2265
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1351,23 +2277,22 @@ const ManagerClubCourtsApiFactory = function (configuration, basePath, axios) {
|
|
|
1351
2277
|
return {
|
|
1352
2278
|
/**
|
|
1353
2279
|
*
|
|
1354
|
-
* @summary Créer un terrain pour
|
|
2280
|
+
* @summary Créer un terrain pour le club courant
|
|
1355
2281
|
* @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
|
|
1356
2282
|
* @param {*} [options] Override http request option.
|
|
1357
2283
|
* @throws {RequiredError}
|
|
1358
2284
|
*/
|
|
1359
2285
|
createCourtForClub(requestParameters, options) {
|
|
1360
|
-
return localVarFp.createCourtForClub(requestParameters.
|
|
2286
|
+
return localVarFp.createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
|
|
1361
2287
|
},
|
|
1362
2288
|
/**
|
|
1363
2289
|
*
|
|
1364
|
-
* @summary Récupérer tous les terrains
|
|
1365
|
-
* @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
|
|
2290
|
+
* @summary Récupérer tous les terrains du club courant
|
|
1366
2291
|
* @param {*} [options] Override http request option.
|
|
1367
2292
|
* @throws {RequiredError}
|
|
1368
2293
|
*/
|
|
1369
|
-
getCourtsByClub(
|
|
1370
|
-
return localVarFp.getCourtsByClub(
|
|
2294
|
+
getCourtsByClub(options) {
|
|
2295
|
+
return localVarFp.getCourtsByClub(options).then((request) => request(axios, basePath));
|
|
1371
2296
|
},
|
|
1372
2297
|
};
|
|
1373
2298
|
};
|
|
@@ -1381,25 +2306,24 @@ exports.ManagerClubCourtsApiFactory = ManagerClubCourtsApiFactory;
|
|
|
1381
2306
|
class ManagerClubCourtsApi extends base_1.BaseAPI {
|
|
1382
2307
|
/**
|
|
1383
2308
|
*
|
|
1384
|
-
* @summary Créer un terrain pour
|
|
2309
|
+
* @summary Créer un terrain pour le club courant
|
|
1385
2310
|
* @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
|
|
1386
2311
|
* @param {*} [options] Override http request option.
|
|
1387
2312
|
* @throws {RequiredError}
|
|
1388
2313
|
* @memberof ManagerClubCourtsApi
|
|
1389
2314
|
*/
|
|
1390
2315
|
createCourtForClub(requestParameters, options) {
|
|
1391
|
-
return (0, exports.ManagerClubCourtsApiFp)(this.configuration).createCourtForClub(requestParameters.
|
|
2316
|
+
return (0, exports.ManagerClubCourtsApiFp)(this.configuration).createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1392
2317
|
}
|
|
1393
2318
|
/**
|
|
1394
2319
|
*
|
|
1395
|
-
* @summary Récupérer tous les terrains
|
|
1396
|
-
* @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
|
|
2320
|
+
* @summary Récupérer tous les terrains du club courant
|
|
1397
2321
|
* @param {*} [options] Override http request option.
|
|
1398
2322
|
* @throws {RequiredError}
|
|
1399
2323
|
* @memberof ManagerClubCourtsApi
|
|
1400
2324
|
*/
|
|
1401
|
-
getCourtsByClub(
|
|
1402
|
-
return (0, exports.ManagerClubCourtsApiFp)(this.configuration).getCourtsByClub(
|
|
2325
|
+
getCourtsByClub(options) {
|
|
2326
|
+
return (0, exports.ManagerClubCourtsApiFp)(this.configuration).getCourtsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
1403
2327
|
}
|
|
1404
2328
|
}
|
|
1405
2329
|
exports.ManagerClubCourtsApi = ManagerClubCourtsApi;
|
|
@@ -1786,6 +2710,254 @@ class ManagerClubRolesApi extends base_1.BaseAPI {
|
|
|
1786
2710
|
}
|
|
1787
2711
|
}
|
|
1788
2712
|
exports.ManagerClubRolesApi = ManagerClubRolesApi;
|
|
2713
|
+
/**
|
|
2714
|
+
* ManagerClubSettingsApi - axios parameter creator
|
|
2715
|
+
* @export
|
|
2716
|
+
*/
|
|
2717
|
+
const ManagerClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
2718
|
+
return {
|
|
2719
|
+
/**
|
|
2720
|
+
*
|
|
2721
|
+
* @summary Créer les paramètres d\'un club
|
|
2722
|
+
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
2723
|
+
* @param {*} [options] Override http request option.
|
|
2724
|
+
* @throws {RequiredError}
|
|
2725
|
+
*/
|
|
2726
|
+
createClubSettings: (createClubSettingsRequest_1, ...args_1) => __awaiter(this, [createClubSettingsRequest_1, ...args_1], void 0, function* (createClubSettingsRequest, options = {}) {
|
|
2727
|
+
// verify required parameter 'createClubSettingsRequest' is not null or undefined
|
|
2728
|
+
(0, common_1.assertParamExists)('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
|
|
2729
|
+
const localVarPath = `/api/club-settings`;
|
|
2730
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2731
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2732
|
+
let baseOptions;
|
|
2733
|
+
if (configuration) {
|
|
2734
|
+
baseOptions = configuration.baseOptions;
|
|
2735
|
+
}
|
|
2736
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2737
|
+
const localVarHeaderParameter = {};
|
|
2738
|
+
const localVarQueryParameter = {};
|
|
2739
|
+
// authentication bearerAuth required
|
|
2740
|
+
// http bearer authentication required
|
|
2741
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2742
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2743
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2744
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2745
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2746
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2747
|
+
return {
|
|
2748
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2749
|
+
options: localVarRequestOptions,
|
|
2750
|
+
};
|
|
2751
|
+
}),
|
|
2752
|
+
/**
|
|
2753
|
+
*
|
|
2754
|
+
* @summary Supprimer les paramètres d\'un club
|
|
2755
|
+
* @param {DeleteClubSettingsRequest} deleteClubSettingsRequest
|
|
2756
|
+
* @param {*} [options] Override http request option.
|
|
2757
|
+
* @throws {RequiredError}
|
|
2758
|
+
*/
|
|
2759
|
+
deleteClubSettings: (deleteClubSettingsRequest_1, ...args_1) => __awaiter(this, [deleteClubSettingsRequest_1, ...args_1], void 0, function* (deleteClubSettingsRequest, options = {}) {
|
|
2760
|
+
// verify required parameter 'deleteClubSettingsRequest' is not null or undefined
|
|
2761
|
+
(0, common_1.assertParamExists)('deleteClubSettings', 'deleteClubSettingsRequest', deleteClubSettingsRequest);
|
|
2762
|
+
const localVarPath = `/api/club-settings`;
|
|
2763
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2764
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2765
|
+
let baseOptions;
|
|
2766
|
+
if (configuration) {
|
|
2767
|
+
baseOptions = configuration.baseOptions;
|
|
2768
|
+
}
|
|
2769
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2770
|
+
const localVarHeaderParameter = {};
|
|
2771
|
+
const localVarQueryParameter = {};
|
|
2772
|
+
// authentication bearerAuth required
|
|
2773
|
+
// http bearer authentication required
|
|
2774
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2775
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2776
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2777
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2778
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2779
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2780
|
+
return {
|
|
2781
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2782
|
+
options: localVarRequestOptions,
|
|
2783
|
+
};
|
|
2784
|
+
}),
|
|
2785
|
+
/**
|
|
2786
|
+
*
|
|
2787
|
+
* @summary Mettre à jour les paramètres d\'un club
|
|
2788
|
+
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
2789
|
+
* @param {*} [options] Override http request option.
|
|
2790
|
+
* @throws {RequiredError}
|
|
2791
|
+
*/
|
|
2792
|
+
updateClubSettings: (updateClubSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubSettingsRequest_1, ...args_1], void 0, function* (updateClubSettingsRequest, options = {}) {
|
|
2793
|
+
// verify required parameter 'updateClubSettingsRequest' is not null or undefined
|
|
2794
|
+
(0, common_1.assertParamExists)('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
|
|
2795
|
+
const localVarPath = `/api/club-settings`;
|
|
2796
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2797
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2798
|
+
let baseOptions;
|
|
2799
|
+
if (configuration) {
|
|
2800
|
+
baseOptions = configuration.baseOptions;
|
|
2801
|
+
}
|
|
2802
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2803
|
+
const localVarHeaderParameter = {};
|
|
2804
|
+
const localVarQueryParameter = {};
|
|
2805
|
+
// authentication bearerAuth required
|
|
2806
|
+
// http bearer authentication required
|
|
2807
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2808
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2809
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2810
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2811
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2812
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2813
|
+
return {
|
|
2814
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2815
|
+
options: localVarRequestOptions,
|
|
2816
|
+
};
|
|
2817
|
+
}),
|
|
2818
|
+
};
|
|
2819
|
+
};
|
|
2820
|
+
exports.ManagerClubSettingsApiAxiosParamCreator = ManagerClubSettingsApiAxiosParamCreator;
|
|
2821
|
+
/**
|
|
2822
|
+
* ManagerClubSettingsApi - functional programming interface
|
|
2823
|
+
* @export
|
|
2824
|
+
*/
|
|
2825
|
+
const ManagerClubSettingsApiFp = function (configuration) {
|
|
2826
|
+
const localVarAxiosParamCreator = (0, exports.ManagerClubSettingsApiAxiosParamCreator)(configuration);
|
|
2827
|
+
return {
|
|
2828
|
+
/**
|
|
2829
|
+
*
|
|
2830
|
+
* @summary Créer les paramètres d\'un club
|
|
2831
|
+
* @param {CreateClubSettingsRequest} createClubSettingsRequest
|
|
2832
|
+
* @param {*} [options] Override http request option.
|
|
2833
|
+
* @throws {RequiredError}
|
|
2834
|
+
*/
|
|
2835
|
+
createClubSettings(createClubSettingsRequest, options) {
|
|
2836
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2837
|
+
var _a, _b, _c;
|
|
2838
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(createClubSettingsRequest, options);
|
|
2839
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2840
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSettingsApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2841
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2842
|
+
});
|
|
2843
|
+
},
|
|
2844
|
+
/**
|
|
2845
|
+
*
|
|
2846
|
+
* @summary Supprimer les paramètres d\'un club
|
|
2847
|
+
* @param {DeleteClubSettingsRequest} deleteClubSettingsRequest
|
|
2848
|
+
* @param {*} [options] Override http request option.
|
|
2849
|
+
* @throws {RequiredError}
|
|
2850
|
+
*/
|
|
2851
|
+
deleteClubSettings(deleteClubSettingsRequest, options) {
|
|
2852
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2853
|
+
var _a, _b, _c;
|
|
2854
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(deleteClubSettingsRequest, options);
|
|
2855
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2856
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSettingsApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2857
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2858
|
+
});
|
|
2859
|
+
},
|
|
2860
|
+
/**
|
|
2861
|
+
*
|
|
2862
|
+
* @summary Mettre à jour les paramètres d\'un club
|
|
2863
|
+
* @param {UpdateClubSettingsRequest} updateClubSettingsRequest
|
|
2864
|
+
* @param {*} [options] Override http request option.
|
|
2865
|
+
* @throws {RequiredError}
|
|
2866
|
+
*/
|
|
2867
|
+
updateClubSettings(updateClubSettingsRequest, options) {
|
|
2868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2869
|
+
var _a, _b, _c;
|
|
2870
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
|
|
2871
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2872
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSettingsApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2873
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2874
|
+
});
|
|
2875
|
+
},
|
|
2876
|
+
};
|
|
2877
|
+
};
|
|
2878
|
+
exports.ManagerClubSettingsApiFp = ManagerClubSettingsApiFp;
|
|
2879
|
+
/**
|
|
2880
|
+
* ManagerClubSettingsApi - factory interface
|
|
2881
|
+
* @export
|
|
2882
|
+
*/
|
|
2883
|
+
const ManagerClubSettingsApiFactory = function (configuration, basePath, axios) {
|
|
2884
|
+
const localVarFp = (0, exports.ManagerClubSettingsApiFp)(configuration);
|
|
2885
|
+
return {
|
|
2886
|
+
/**
|
|
2887
|
+
*
|
|
2888
|
+
* @summary Créer les paramètres d\'un club
|
|
2889
|
+
* @param {ManagerClubSettingsApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
2890
|
+
* @param {*} [options] Override http request option.
|
|
2891
|
+
* @throws {RequiredError}
|
|
2892
|
+
*/
|
|
2893
|
+
createClubSettings(requestParameters, options) {
|
|
2894
|
+
return localVarFp.createClubSettings(requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2895
|
+
},
|
|
2896
|
+
/**
|
|
2897
|
+
*
|
|
2898
|
+
* @summary Supprimer les paramètres d\'un club
|
|
2899
|
+
* @param {ManagerClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
|
|
2900
|
+
* @param {*} [options] Override http request option.
|
|
2901
|
+
* @throws {RequiredError}
|
|
2902
|
+
*/
|
|
2903
|
+
deleteClubSettings(requestParameters, options) {
|
|
2904
|
+
return localVarFp.deleteClubSettings(requestParameters.deleteClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2905
|
+
},
|
|
2906
|
+
/**
|
|
2907
|
+
*
|
|
2908
|
+
* @summary Mettre à jour les paramètres d\'un club
|
|
2909
|
+
* @param {ManagerClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
2910
|
+
* @param {*} [options] Override http request option.
|
|
2911
|
+
* @throws {RequiredError}
|
|
2912
|
+
*/
|
|
2913
|
+
updateClubSettings(requestParameters, options) {
|
|
2914
|
+
return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
2915
|
+
},
|
|
2916
|
+
};
|
|
2917
|
+
};
|
|
2918
|
+
exports.ManagerClubSettingsApiFactory = ManagerClubSettingsApiFactory;
|
|
2919
|
+
/**
|
|
2920
|
+
* ManagerClubSettingsApi - object-oriented interface
|
|
2921
|
+
* @export
|
|
2922
|
+
* @class ManagerClubSettingsApi
|
|
2923
|
+
* @extends {BaseAPI}
|
|
2924
|
+
*/
|
|
2925
|
+
class ManagerClubSettingsApi extends base_1.BaseAPI {
|
|
2926
|
+
/**
|
|
2927
|
+
*
|
|
2928
|
+
* @summary Créer les paramètres d\'un club
|
|
2929
|
+
* @param {ManagerClubSettingsApiCreateClubSettingsRequest} requestParameters Request parameters.
|
|
2930
|
+
* @param {*} [options] Override http request option.
|
|
2931
|
+
* @throws {RequiredError}
|
|
2932
|
+
* @memberof ManagerClubSettingsApi
|
|
2933
|
+
*/
|
|
2934
|
+
createClubSettings(requestParameters, options) {
|
|
2935
|
+
return (0, exports.ManagerClubSettingsApiFp)(this.configuration).createClubSettings(requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2936
|
+
}
|
|
2937
|
+
/**
|
|
2938
|
+
*
|
|
2939
|
+
* @summary Supprimer les paramètres d\'un club
|
|
2940
|
+
* @param {ManagerClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
|
|
2941
|
+
* @param {*} [options] Override http request option.
|
|
2942
|
+
* @throws {RequiredError}
|
|
2943
|
+
* @memberof ManagerClubSettingsApi
|
|
2944
|
+
*/
|
|
2945
|
+
deleteClubSettings(requestParameters, options) {
|
|
2946
|
+
return (0, exports.ManagerClubSettingsApiFp)(this.configuration).deleteClubSettings(requestParameters.deleteClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2947
|
+
}
|
|
2948
|
+
/**
|
|
2949
|
+
*
|
|
2950
|
+
* @summary Mettre à jour les paramètres d\'un club
|
|
2951
|
+
* @param {ManagerClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
2952
|
+
* @param {*} [options] Override http request option.
|
|
2953
|
+
* @throws {RequiredError}
|
|
2954
|
+
* @memberof ManagerClubSettingsApi
|
|
2955
|
+
*/
|
|
2956
|
+
updateClubSettings(requestParameters, options) {
|
|
2957
|
+
return (0, exports.ManagerClubSettingsApiFp)(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2958
|
+
}
|
|
2959
|
+
}
|
|
2960
|
+
exports.ManagerClubSettingsApi = ManagerClubSettingsApi;
|
|
1789
2961
|
/**
|
|
1790
2962
|
* ManagerClubSlotsApi - axios parameter creator
|
|
1791
2963
|
* @export
|
|
@@ -1794,22 +2966,18 @@ const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1794
2966
|
return {
|
|
1795
2967
|
/**
|
|
1796
2968
|
*
|
|
1797
|
-
* @summary Supprimer des créneaux pour
|
|
1798
|
-
* @param {string} id ID du club
|
|
2969
|
+
* @summary Supprimer des créneaux pour le club courant sur une plage de dates
|
|
1799
2970
|
* @param {string} start Date de début (format ISO)
|
|
1800
2971
|
* @param {string} end Date de fin (format ISO)
|
|
1801
2972
|
* @param {*} [options] Override http request option.
|
|
1802
2973
|
* @throws {RequiredError}
|
|
1803
2974
|
*/
|
|
1804
|
-
deleteSlotsByClubInRange: (
|
|
1805
|
-
// verify required parameter 'id' is not null or undefined
|
|
1806
|
-
(0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'id', id);
|
|
2975
|
+
deleteSlotsByClubInRange: (start_1, end_1, ...args_1) => __awaiter(this, [start_1, end_1, ...args_1], void 0, function* (start, end, options = {}) {
|
|
1807
2976
|
// verify required parameter 'start' is not null or undefined
|
|
1808
2977
|
(0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'start', start);
|
|
1809
2978
|
// verify required parameter 'end' is not null or undefined
|
|
1810
2979
|
(0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'end', end);
|
|
1811
|
-
const localVarPath = `/api/clubs/
|
|
1812
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2980
|
+
const localVarPath = `/api/clubs/slots`;
|
|
1813
2981
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1814
2982
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1815
2983
|
let baseOptions;
|
|
@@ -1842,18 +3010,14 @@ const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1842
3010
|
}),
|
|
1843
3011
|
/**
|
|
1844
3012
|
*
|
|
1845
|
-
* @summary Récupérer tous les créneaux
|
|
1846
|
-
* @param {string} id ID du club
|
|
3013
|
+
* @summary Récupérer tous les créneaux du club courant
|
|
1847
3014
|
* @param {string} [start] Date de début (format ISO)
|
|
1848
3015
|
* @param {string} [end] Date de fin (format ISO)
|
|
1849
3016
|
* @param {*} [options] Override http request option.
|
|
1850
3017
|
* @throws {RequiredError}
|
|
1851
3018
|
*/
|
|
1852
|
-
getSlotsByClub: (
|
|
1853
|
-
|
|
1854
|
-
(0, common_1.assertParamExists)('getSlotsByClub', 'id', id);
|
|
1855
|
-
const localVarPath = `/api/clubs/{id}/slots`
|
|
1856
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3019
|
+
getSlotsByClub: (start_1, end_1, ...args_1) => __awaiter(this, [start_1, end_1, ...args_1], void 0, function* (start, end, options = {}) {
|
|
3020
|
+
const localVarPath = `/api/clubs/slots`;
|
|
1857
3021
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1858
3022
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1859
3023
|
let baseOptions;
|
|
@@ -1896,17 +3060,16 @@ const ManagerClubSlotsApiFp = function (configuration) {
|
|
|
1896
3060
|
return {
|
|
1897
3061
|
/**
|
|
1898
3062
|
*
|
|
1899
|
-
* @summary Supprimer des créneaux pour
|
|
1900
|
-
* @param {string} id ID du club
|
|
3063
|
+
* @summary Supprimer des créneaux pour le club courant sur une plage de dates
|
|
1901
3064
|
* @param {string} start Date de début (format ISO)
|
|
1902
3065
|
* @param {string} end Date de fin (format ISO)
|
|
1903
3066
|
* @param {*} [options] Override http request option.
|
|
1904
3067
|
* @throws {RequiredError}
|
|
1905
3068
|
*/
|
|
1906
|
-
deleteSlotsByClubInRange(
|
|
3069
|
+
deleteSlotsByClubInRange(start, end, options) {
|
|
1907
3070
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1908
3071
|
var _a, _b, _c;
|
|
1909
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(
|
|
3072
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(start, end, options);
|
|
1910
3073
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1911
3074
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSlotsApi.deleteSlotsByClubInRange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1912
3075
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1914,17 +3077,16 @@ const ManagerClubSlotsApiFp = function (configuration) {
|
|
|
1914
3077
|
},
|
|
1915
3078
|
/**
|
|
1916
3079
|
*
|
|
1917
|
-
* @summary Récupérer tous les créneaux
|
|
1918
|
-
* @param {string} id ID du club
|
|
3080
|
+
* @summary Récupérer tous les créneaux du club courant
|
|
1919
3081
|
* @param {string} [start] Date de début (format ISO)
|
|
1920
3082
|
* @param {string} [end] Date de fin (format ISO)
|
|
1921
3083
|
* @param {*} [options] Override http request option.
|
|
1922
3084
|
* @throws {RequiredError}
|
|
1923
3085
|
*/
|
|
1924
|
-
getSlotsByClub(
|
|
3086
|
+
getSlotsByClub(start, end, options) {
|
|
1925
3087
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1926
3088
|
var _a, _b, _c;
|
|
1927
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(
|
|
3089
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(start, end, options);
|
|
1928
3090
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1929
3091
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSlotsApi.getSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1930
3092
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1942,23 +3104,23 @@ const ManagerClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
|
1942
3104
|
return {
|
|
1943
3105
|
/**
|
|
1944
3106
|
*
|
|
1945
|
-
* @summary Supprimer des créneaux pour
|
|
3107
|
+
* @summary Supprimer des créneaux pour le club courant sur une plage de dates
|
|
1946
3108
|
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
1947
3109
|
* @param {*} [options] Override http request option.
|
|
1948
3110
|
* @throws {RequiredError}
|
|
1949
3111
|
*/
|
|
1950
3112
|
deleteSlotsByClubInRange(requestParameters, options) {
|
|
1951
|
-
return localVarFp.deleteSlotsByClubInRange(requestParameters.
|
|
3113
|
+
return localVarFp.deleteSlotsByClubInRange(requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
1952
3114
|
},
|
|
1953
3115
|
/**
|
|
1954
3116
|
*
|
|
1955
|
-
* @summary Récupérer tous les créneaux
|
|
3117
|
+
* @summary Récupérer tous les créneaux du club courant
|
|
1956
3118
|
* @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
|
|
1957
3119
|
* @param {*} [options] Override http request option.
|
|
1958
3120
|
* @throws {RequiredError}
|
|
1959
3121
|
*/
|
|
1960
|
-
getSlotsByClub(requestParameters, options) {
|
|
1961
|
-
return localVarFp.getSlotsByClub(requestParameters.
|
|
3122
|
+
getSlotsByClub(requestParameters = {}, options) {
|
|
3123
|
+
return localVarFp.getSlotsByClub(requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
1962
3124
|
},
|
|
1963
3125
|
};
|
|
1964
3126
|
};
|
|
@@ -1972,25 +3134,25 @@ exports.ManagerClubSlotsApiFactory = ManagerClubSlotsApiFactory;
|
|
|
1972
3134
|
class ManagerClubSlotsApi extends base_1.BaseAPI {
|
|
1973
3135
|
/**
|
|
1974
3136
|
*
|
|
1975
|
-
* @summary Supprimer des créneaux pour
|
|
3137
|
+
* @summary Supprimer des créneaux pour le club courant sur une plage de dates
|
|
1976
3138
|
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
1977
3139
|
* @param {*} [options] Override http request option.
|
|
1978
3140
|
* @throws {RequiredError}
|
|
1979
3141
|
* @memberof ManagerClubSlotsApi
|
|
1980
3142
|
*/
|
|
1981
3143
|
deleteSlotsByClubInRange(requestParameters, options) {
|
|
1982
|
-
return (0, exports.ManagerClubSlotsApiFp)(this.configuration).deleteSlotsByClubInRange(requestParameters.
|
|
3144
|
+
return (0, exports.ManagerClubSlotsApiFp)(this.configuration).deleteSlotsByClubInRange(requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
1983
3145
|
}
|
|
1984
3146
|
/**
|
|
1985
3147
|
*
|
|
1986
|
-
* @summary Récupérer tous les créneaux
|
|
3148
|
+
* @summary Récupérer tous les créneaux du club courant
|
|
1987
3149
|
* @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
|
|
1988
3150
|
* @param {*} [options] Override http request option.
|
|
1989
3151
|
* @throws {RequiredError}
|
|
1990
3152
|
* @memberof ManagerClubSlotsApi
|
|
1991
3153
|
*/
|
|
1992
|
-
getSlotsByClub(requestParameters, options) {
|
|
1993
|
-
return (0, exports.ManagerClubSlotsApiFp)(this.configuration).getSlotsByClub(requestParameters.
|
|
3154
|
+
getSlotsByClub(requestParameters = {}, options) {
|
|
3155
|
+
return (0, exports.ManagerClubSlotsApiFp)(this.configuration).getSlotsByClub(requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
1994
3156
|
}
|
|
1995
3157
|
}
|
|
1996
3158
|
exports.ManagerClubSlotsApi = ManagerClubSlotsApi;
|
|
@@ -2002,19 +3164,15 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
2002
3164
|
return {
|
|
2003
3165
|
/**
|
|
2004
3166
|
*
|
|
2005
|
-
* @summary Archiver un prix
|
|
2006
|
-
* @param {string} id ID du club
|
|
3167
|
+
* @summary Archiver un prix (club courant)
|
|
2007
3168
|
* @param {string} priceId ID du prix Stripe
|
|
2008
3169
|
* @param {*} [options] Override http request option.
|
|
2009
3170
|
* @throws {RequiredError}
|
|
2010
3171
|
*/
|
|
2011
|
-
archivePriceForSubscriptionPlan: (
|
|
2012
|
-
// verify required parameter 'id' is not null or undefined
|
|
2013
|
-
(0, common_1.assertParamExists)('archivePriceForSubscriptionPlan', 'id', id);
|
|
3172
|
+
archivePriceForSubscriptionPlan: (priceId_1, ...args_1) => __awaiter(this, [priceId_1, ...args_1], void 0, function* (priceId, options = {}) {
|
|
2014
3173
|
// verify required parameter 'priceId' is not null or undefined
|
|
2015
3174
|
(0, common_1.assertParamExists)('archivePriceForSubscriptionPlan', 'priceId', priceId);
|
|
2016
|
-
const localVarPath = `/api/clubs/
|
|
2017
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3175
|
+
const localVarPath = `/api/clubs/subscription-plans/{priceId}/archive-price`
|
|
2018
3176
|
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
2019
3177
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2020
3178
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2038,22 +3196,18 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
2038
3196
|
}),
|
|
2039
3197
|
/**
|
|
2040
3198
|
*
|
|
2041
|
-
* @summary Créer un nouveau prix pour un plan
|
|
2042
|
-
* @param {string} id ID du club
|
|
3199
|
+
* @summary Créer un nouveau prix pour un plan (club courant)
|
|
2043
3200
|
* @param {string} productId ID du produit Stripe
|
|
2044
3201
|
* @param {CreatePriceRequest} createPriceRequest
|
|
2045
3202
|
* @param {*} [options] Override http request option.
|
|
2046
3203
|
* @throws {RequiredError}
|
|
2047
3204
|
*/
|
|
2048
|
-
createPriceForSubscriptionPlan: (
|
|
2049
|
-
// verify required parameter 'id' is not null or undefined
|
|
2050
|
-
(0, common_1.assertParamExists)('createPriceForSubscriptionPlan', 'id', id);
|
|
3205
|
+
createPriceForSubscriptionPlan: (productId_1, createPriceRequest_1, ...args_1) => __awaiter(this, [productId_1, createPriceRequest_1, ...args_1], void 0, function* (productId, createPriceRequest, options = {}) {
|
|
2051
3206
|
// verify required parameter 'productId' is not null or undefined
|
|
2052
3207
|
(0, common_1.assertParamExists)('createPriceForSubscriptionPlan', 'productId', productId);
|
|
2053
3208
|
// verify required parameter 'createPriceRequest' is not null or undefined
|
|
2054
3209
|
(0, common_1.assertParamExists)('createPriceForSubscriptionPlan', 'createPriceRequest', createPriceRequest);
|
|
2055
|
-
const localVarPath = `/api/clubs/
|
|
2056
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3210
|
+
const localVarPath = `/api/clubs/subscription-plans/{productId}/prices`
|
|
2057
3211
|
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
2058
3212
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2059
3213
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2079,19 +3233,15 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
2079
3233
|
}),
|
|
2080
3234
|
/**
|
|
2081
3235
|
*
|
|
2082
|
-
* @summary Créer un plan d\'abonnement pour
|
|
2083
|
-
* @param {string} id ID du club
|
|
3236
|
+
* @summary Créer un plan d\'abonnement pour le club courant
|
|
2084
3237
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
2085
3238
|
* @param {*} [options] Override http request option.
|
|
2086
3239
|
* @throws {RequiredError}
|
|
2087
3240
|
*/
|
|
2088
|
-
createSubscriptionPlanForClub: (
|
|
2089
|
-
// verify required parameter 'id' is not null or undefined
|
|
2090
|
-
(0, common_1.assertParamExists)('createSubscriptionPlanForClub', 'id', id);
|
|
3241
|
+
createSubscriptionPlanForClub: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
|
|
2091
3242
|
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
2092
3243
|
(0, common_1.assertParamExists)('createSubscriptionPlanForClub', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
|
|
2093
|
-
const localVarPath = `/api/clubs/
|
|
2094
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3244
|
+
const localVarPath = `/api/clubs/subscription-plans`;
|
|
2095
3245
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2096
3246
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2097
3247
|
let baseOptions;
|
|
@@ -2116,19 +3266,15 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
2116
3266
|
}),
|
|
2117
3267
|
/**
|
|
2118
3268
|
*
|
|
2119
|
-
* @summary Supprimer un plan d\'abonnement
|
|
2120
|
-
* @param {string} id ID du club
|
|
3269
|
+
* @summary Supprimer un plan d\'abonnement (club courant)
|
|
2121
3270
|
* @param {string} productId ID du produit Stripe
|
|
2122
3271
|
* @param {*} [options] Override http request option.
|
|
2123
3272
|
* @throws {RequiredError}
|
|
2124
3273
|
*/
|
|
2125
|
-
deleteSubscriptionPlanForClub: (
|
|
2126
|
-
// verify required parameter 'id' is not null or undefined
|
|
2127
|
-
(0, common_1.assertParamExists)('deleteSubscriptionPlanForClub', 'id', id);
|
|
3274
|
+
deleteSubscriptionPlanForClub: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
|
|
2128
3275
|
// verify required parameter 'productId' is not null or undefined
|
|
2129
3276
|
(0, common_1.assertParamExists)('deleteSubscriptionPlanForClub', 'productId', productId);
|
|
2130
|
-
const localVarPath = `/api/clubs/
|
|
2131
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3277
|
+
const localVarPath = `/api/clubs/subscription-plans/{productId}`
|
|
2132
3278
|
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
2133
3279
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2134
3280
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2152,19 +3298,15 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
2152
3298
|
}),
|
|
2153
3299
|
/**
|
|
2154
3300
|
*
|
|
2155
|
-
* @summary Réactiver un plan d\'abonnement
|
|
2156
|
-
* @param {string} id ID du club
|
|
3301
|
+
* @summary Réactiver un plan d\'abonnement (club courant)
|
|
2157
3302
|
* @param {string} productId ID du produit Stripe
|
|
2158
3303
|
* @param {*} [options] Override http request option.
|
|
2159
3304
|
* @throws {RequiredError}
|
|
2160
3305
|
*/
|
|
2161
|
-
restoreSubscriptionPlanForClub: (
|
|
2162
|
-
// verify required parameter 'id' is not null or undefined
|
|
2163
|
-
(0, common_1.assertParamExists)('restoreSubscriptionPlanForClub', 'id', id);
|
|
3306
|
+
restoreSubscriptionPlanForClub: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
|
|
2164
3307
|
// verify required parameter 'productId' is not null or undefined
|
|
2165
3308
|
(0, common_1.assertParamExists)('restoreSubscriptionPlanForClub', 'productId', productId);
|
|
2166
|
-
const localVarPath = `/api/clubs/
|
|
2167
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3309
|
+
const localVarPath = `/api/clubs/subscription-plans/{productId}/restore`
|
|
2168
3310
|
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
2169
3311
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2170
3312
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2188,19 +3330,15 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
2188
3330
|
}),
|
|
2189
3331
|
/**
|
|
2190
3332
|
*
|
|
2191
|
-
* @summary Réactiver un prix
|
|
2192
|
-
* @param {string} id ID du club
|
|
3333
|
+
* @summary Réactiver un prix (club courant)
|
|
2193
3334
|
* @param {string} priceId ID du prix Stripe
|
|
2194
3335
|
* @param {*} [options] Override http request option.
|
|
2195
3336
|
* @throws {RequiredError}
|
|
2196
3337
|
*/
|
|
2197
|
-
restoreSubscriptionPriceForClub: (
|
|
2198
|
-
// verify required parameter 'id' is not null or undefined
|
|
2199
|
-
(0, common_1.assertParamExists)('restoreSubscriptionPriceForClub', 'id', id);
|
|
3338
|
+
restoreSubscriptionPriceForClub: (priceId_1, ...args_1) => __awaiter(this, [priceId_1, ...args_1], void 0, function* (priceId, options = {}) {
|
|
2200
3339
|
// verify required parameter 'priceId' is not null or undefined
|
|
2201
3340
|
(0, common_1.assertParamExists)('restoreSubscriptionPriceForClub', 'priceId', priceId);
|
|
2202
|
-
const localVarPath = `/api/clubs/
|
|
2203
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3341
|
+
const localVarPath = `/api/clubs/subscription-plans/{priceId}/restore-price`
|
|
2204
3342
|
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
2205
3343
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2206
3344
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2224,22 +3362,18 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
2224
3362
|
}),
|
|
2225
3363
|
/**
|
|
2226
3364
|
*
|
|
2227
|
-
* @summary Mettre à jour un plan d\'abonnement
|
|
2228
|
-
* @param {string} id ID du club
|
|
3365
|
+
* @summary Mettre à jour un plan d\'abonnement (club courant)
|
|
2229
3366
|
* @param {string} priceId ID du prix Stripe
|
|
2230
3367
|
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
2231
3368
|
* @param {*} [options] Override http request option.
|
|
2232
3369
|
* @throws {RequiredError}
|
|
2233
3370
|
*/
|
|
2234
|
-
updateSubscriptionPlanForClub: (
|
|
2235
|
-
// verify required parameter 'id' is not null or undefined
|
|
2236
|
-
(0, common_1.assertParamExists)('updateSubscriptionPlanForClub', 'id', id);
|
|
3371
|
+
updateSubscriptionPlanForClub: (priceId_1, updateSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [priceId_1, updateSubscriptionPlanRequest_1, ...args_1], void 0, function* (priceId, updateSubscriptionPlanRequest, options = {}) {
|
|
2237
3372
|
// verify required parameter 'priceId' is not null or undefined
|
|
2238
3373
|
(0, common_1.assertParamExists)('updateSubscriptionPlanForClub', 'priceId', priceId);
|
|
2239
3374
|
// verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
|
|
2240
3375
|
(0, common_1.assertParamExists)('updateSubscriptionPlanForClub', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
|
|
2241
|
-
const localVarPath = `/api/clubs/
|
|
2242
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3376
|
+
const localVarPath = `/api/clubs/subscription-plans/{priceId}`
|
|
2243
3377
|
.replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
|
|
2244
3378
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2245
3379
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2275,16 +3409,15 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
|
|
|
2275
3409
|
return {
|
|
2276
3410
|
/**
|
|
2277
3411
|
*
|
|
2278
|
-
* @summary Archiver un prix
|
|
2279
|
-
* @param {string} id ID du club
|
|
3412
|
+
* @summary Archiver un prix (club courant)
|
|
2280
3413
|
* @param {string} priceId ID du prix Stripe
|
|
2281
3414
|
* @param {*} [options] Override http request option.
|
|
2282
3415
|
* @throws {RequiredError}
|
|
2283
3416
|
*/
|
|
2284
|
-
archivePriceForSubscriptionPlan(
|
|
3417
|
+
archivePriceForSubscriptionPlan(priceId, options) {
|
|
2285
3418
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2286
3419
|
var _a, _b, _c;
|
|
2287
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(
|
|
3420
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(priceId, options);
|
|
2288
3421
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2289
3422
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.archivePriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2290
3423
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2292,17 +3425,16 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
|
|
|
2292
3425
|
},
|
|
2293
3426
|
/**
|
|
2294
3427
|
*
|
|
2295
|
-
* @summary Créer un nouveau prix pour un plan
|
|
2296
|
-
* @param {string} id ID du club
|
|
3428
|
+
* @summary Créer un nouveau prix pour un plan (club courant)
|
|
2297
3429
|
* @param {string} productId ID du produit Stripe
|
|
2298
3430
|
* @param {CreatePriceRequest} createPriceRequest
|
|
2299
3431
|
* @param {*} [options] Override http request option.
|
|
2300
3432
|
* @throws {RequiredError}
|
|
2301
3433
|
*/
|
|
2302
|
-
createPriceForSubscriptionPlan(
|
|
3434
|
+
createPriceForSubscriptionPlan(productId, createPriceRequest, options) {
|
|
2303
3435
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2304
3436
|
var _a, _b, _c;
|
|
2305
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(
|
|
3437
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(productId, createPriceRequest, options);
|
|
2306
3438
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2307
3439
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.createPriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2308
3440
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2310,16 +3442,15 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
|
|
|
2310
3442
|
},
|
|
2311
3443
|
/**
|
|
2312
3444
|
*
|
|
2313
|
-
* @summary Créer un plan d\'abonnement pour
|
|
2314
|
-
* @param {string} id ID du club
|
|
3445
|
+
* @summary Créer un plan d\'abonnement pour le club courant
|
|
2315
3446
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
2316
3447
|
* @param {*} [options] Override http request option.
|
|
2317
3448
|
* @throws {RequiredError}
|
|
2318
3449
|
*/
|
|
2319
|
-
createSubscriptionPlanForClub(
|
|
3450
|
+
createSubscriptionPlanForClub(createSubscriptionPlanRequest, options) {
|
|
2320
3451
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2321
3452
|
var _a, _b, _c;
|
|
2322
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(
|
|
3453
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(createSubscriptionPlanRequest, options);
|
|
2323
3454
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2324
3455
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.createSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2325
3456
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2327,16 +3458,15 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
|
|
|
2327
3458
|
},
|
|
2328
3459
|
/**
|
|
2329
3460
|
*
|
|
2330
|
-
* @summary Supprimer un plan d\'abonnement
|
|
2331
|
-
* @param {string} id ID du club
|
|
3461
|
+
* @summary Supprimer un plan d\'abonnement (club courant)
|
|
2332
3462
|
* @param {string} productId ID du produit Stripe
|
|
2333
3463
|
* @param {*} [options] Override http request option.
|
|
2334
3464
|
* @throws {RequiredError}
|
|
2335
3465
|
*/
|
|
2336
|
-
deleteSubscriptionPlanForClub(
|
|
3466
|
+
deleteSubscriptionPlanForClub(productId, options) {
|
|
2337
3467
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2338
3468
|
var _a, _b, _c;
|
|
2339
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(
|
|
3469
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(productId, options);
|
|
2340
3470
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2341
3471
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.deleteSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2342
3472
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2344,16 +3474,15 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
|
|
|
2344
3474
|
},
|
|
2345
3475
|
/**
|
|
2346
3476
|
*
|
|
2347
|
-
* @summary Réactiver un plan d\'abonnement
|
|
2348
|
-
* @param {string} id ID du club
|
|
3477
|
+
* @summary Réactiver un plan d\'abonnement (club courant)
|
|
2349
3478
|
* @param {string} productId ID du produit Stripe
|
|
2350
3479
|
* @param {*} [options] Override http request option.
|
|
2351
3480
|
* @throws {RequiredError}
|
|
2352
3481
|
*/
|
|
2353
|
-
restoreSubscriptionPlanForClub(
|
|
3482
|
+
restoreSubscriptionPlanForClub(productId, options) {
|
|
2354
3483
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2355
3484
|
var _a, _b, _c;
|
|
2356
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(
|
|
3485
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(productId, options);
|
|
2357
3486
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2358
3487
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2359
3488
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2361,16 +3490,15 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
|
|
|
2361
3490
|
},
|
|
2362
3491
|
/**
|
|
2363
3492
|
*
|
|
2364
|
-
* @summary Réactiver un prix
|
|
2365
|
-
* @param {string} id ID du club
|
|
3493
|
+
* @summary Réactiver un prix (club courant)
|
|
2366
3494
|
* @param {string} priceId ID du prix Stripe
|
|
2367
3495
|
* @param {*} [options] Override http request option.
|
|
2368
3496
|
* @throws {RequiredError}
|
|
2369
3497
|
*/
|
|
2370
|
-
restoreSubscriptionPriceForClub(
|
|
3498
|
+
restoreSubscriptionPriceForClub(priceId, options) {
|
|
2371
3499
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2372
3500
|
var _a, _b, _c;
|
|
2373
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(
|
|
3501
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(priceId, options);
|
|
2374
3502
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2375
3503
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPriceForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2376
3504
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2378,17 +3506,16 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
|
|
|
2378
3506
|
},
|
|
2379
3507
|
/**
|
|
2380
3508
|
*
|
|
2381
|
-
* @summary Mettre à jour un plan d\'abonnement
|
|
2382
|
-
* @param {string} id ID du club
|
|
3509
|
+
* @summary Mettre à jour un plan d\'abonnement (club courant)
|
|
2383
3510
|
* @param {string} priceId ID du prix Stripe
|
|
2384
3511
|
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
2385
3512
|
* @param {*} [options] Override http request option.
|
|
2386
3513
|
* @throws {RequiredError}
|
|
2387
3514
|
*/
|
|
2388
|
-
updateSubscriptionPlanForClub(
|
|
3515
|
+
updateSubscriptionPlanForClub(priceId, updateSubscriptionPlanRequest, options) {
|
|
2389
3516
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2390
3517
|
var _a, _b, _c;
|
|
2391
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(
|
|
3518
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(priceId, updateSubscriptionPlanRequest, options);
|
|
2392
3519
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2393
3520
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.updateSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2394
3521
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2406,73 +3533,73 @@ const ManagerClubSubscriptionsApiFactory = function (configuration, basePath, ax
|
|
|
2406
3533
|
return {
|
|
2407
3534
|
/**
|
|
2408
3535
|
*
|
|
2409
|
-
* @summary Archiver un prix
|
|
3536
|
+
* @summary Archiver un prix (club courant)
|
|
2410
3537
|
* @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
2411
3538
|
* @param {*} [options] Override http request option.
|
|
2412
3539
|
* @throws {RequiredError}
|
|
2413
3540
|
*/
|
|
2414
3541
|
archivePriceForSubscriptionPlan(requestParameters, options) {
|
|
2415
|
-
return localVarFp.archivePriceForSubscriptionPlan(requestParameters.
|
|
3542
|
+
return localVarFp.archivePriceForSubscriptionPlan(requestParameters.priceId, options).then((request) => request(axios, basePath));
|
|
2416
3543
|
},
|
|
2417
3544
|
/**
|
|
2418
3545
|
*
|
|
2419
|
-
* @summary Créer un nouveau prix pour un plan
|
|
3546
|
+
* @summary Créer un nouveau prix pour un plan (club courant)
|
|
2420
3547
|
* @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
2421
3548
|
* @param {*} [options] Override http request option.
|
|
2422
3549
|
* @throws {RequiredError}
|
|
2423
3550
|
*/
|
|
2424
3551
|
createPriceForSubscriptionPlan(requestParameters, options) {
|
|
2425
|
-
return localVarFp.createPriceForSubscriptionPlan(requestParameters.
|
|
3552
|
+
return localVarFp.createPriceForSubscriptionPlan(requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
|
|
2426
3553
|
},
|
|
2427
3554
|
/**
|
|
2428
3555
|
*
|
|
2429
|
-
* @summary Créer un plan d\'abonnement pour
|
|
3556
|
+
* @summary Créer un plan d\'abonnement pour le club courant
|
|
2430
3557
|
* @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
2431
3558
|
* @param {*} [options] Override http request option.
|
|
2432
3559
|
* @throws {RequiredError}
|
|
2433
3560
|
*/
|
|
2434
3561
|
createSubscriptionPlanForClub(requestParameters, options) {
|
|
2435
|
-
return localVarFp.createSubscriptionPlanForClub(requestParameters.
|
|
3562
|
+
return localVarFp.createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
2436
3563
|
},
|
|
2437
3564
|
/**
|
|
2438
3565
|
*
|
|
2439
|
-
* @summary Supprimer un plan d\'abonnement
|
|
3566
|
+
* @summary Supprimer un plan d\'abonnement (club courant)
|
|
2440
3567
|
* @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
2441
3568
|
* @param {*} [options] Override http request option.
|
|
2442
3569
|
* @throws {RequiredError}
|
|
2443
3570
|
*/
|
|
2444
3571
|
deleteSubscriptionPlanForClub(requestParameters, options) {
|
|
2445
|
-
return localVarFp.deleteSubscriptionPlanForClub(requestParameters.
|
|
3572
|
+
return localVarFp.deleteSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
2446
3573
|
},
|
|
2447
3574
|
/**
|
|
2448
3575
|
*
|
|
2449
|
-
* @summary Réactiver un plan d\'abonnement
|
|
3576
|
+
* @summary Réactiver un plan d\'abonnement (club courant)
|
|
2450
3577
|
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
2451
3578
|
* @param {*} [options] Override http request option.
|
|
2452
3579
|
* @throws {RequiredError}
|
|
2453
3580
|
*/
|
|
2454
3581
|
restoreSubscriptionPlanForClub(requestParameters, options) {
|
|
2455
|
-
return localVarFp.restoreSubscriptionPlanForClub(requestParameters.
|
|
3582
|
+
return localVarFp.restoreSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
2456
3583
|
},
|
|
2457
3584
|
/**
|
|
2458
3585
|
*
|
|
2459
|
-
* @summary Réactiver un prix
|
|
3586
|
+
* @summary Réactiver un prix (club courant)
|
|
2460
3587
|
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
|
|
2461
3588
|
* @param {*} [options] Override http request option.
|
|
2462
3589
|
* @throws {RequiredError}
|
|
2463
3590
|
*/
|
|
2464
3591
|
restoreSubscriptionPriceForClub(requestParameters, options) {
|
|
2465
|
-
return localVarFp.restoreSubscriptionPriceForClub(requestParameters.
|
|
3592
|
+
return localVarFp.restoreSubscriptionPriceForClub(requestParameters.priceId, options).then((request) => request(axios, basePath));
|
|
2466
3593
|
},
|
|
2467
3594
|
/**
|
|
2468
3595
|
*
|
|
2469
|
-
* @summary Mettre à jour un plan d\'abonnement
|
|
3596
|
+
* @summary Mettre à jour un plan d\'abonnement (club courant)
|
|
2470
3597
|
* @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
2471
3598
|
* @param {*} [options] Override http request option.
|
|
2472
3599
|
* @throws {RequiredError}
|
|
2473
3600
|
*/
|
|
2474
3601
|
updateSubscriptionPlanForClub(requestParameters, options) {
|
|
2475
|
-
return localVarFp.updateSubscriptionPlanForClub(requestParameters.
|
|
3602
|
+
return localVarFp.updateSubscriptionPlanForClub(requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
2476
3603
|
},
|
|
2477
3604
|
};
|
|
2478
3605
|
};
|
|
@@ -2486,80 +3613,80 @@ exports.ManagerClubSubscriptionsApiFactory = ManagerClubSubscriptionsApiFactory;
|
|
|
2486
3613
|
class ManagerClubSubscriptionsApi extends base_1.BaseAPI {
|
|
2487
3614
|
/**
|
|
2488
3615
|
*
|
|
2489
|
-
* @summary Archiver un prix
|
|
3616
|
+
* @summary Archiver un prix (club courant)
|
|
2490
3617
|
* @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
2491
3618
|
* @param {*} [options] Override http request option.
|
|
2492
3619
|
* @throws {RequiredError}
|
|
2493
3620
|
* @memberof ManagerClubSubscriptionsApi
|
|
2494
3621
|
*/
|
|
2495
3622
|
archivePriceForSubscriptionPlan(requestParameters, options) {
|
|
2496
|
-
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).archivePriceForSubscriptionPlan(requestParameters.
|
|
3623
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).archivePriceForSubscriptionPlan(requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
2497
3624
|
}
|
|
2498
3625
|
/**
|
|
2499
3626
|
*
|
|
2500
|
-
* @summary Créer un nouveau prix pour un plan
|
|
3627
|
+
* @summary Créer un nouveau prix pour un plan (club courant)
|
|
2501
3628
|
* @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
|
|
2502
3629
|
* @param {*} [options] Override http request option.
|
|
2503
3630
|
* @throws {RequiredError}
|
|
2504
3631
|
* @memberof ManagerClubSubscriptionsApi
|
|
2505
3632
|
*/
|
|
2506
3633
|
createPriceForSubscriptionPlan(requestParameters, options) {
|
|
2507
|
-
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).createPriceForSubscriptionPlan(requestParameters.
|
|
3634
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).createPriceForSubscriptionPlan(requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2508
3635
|
}
|
|
2509
3636
|
/**
|
|
2510
3637
|
*
|
|
2511
|
-
* @summary Créer un plan d\'abonnement pour
|
|
3638
|
+
* @summary Créer un plan d\'abonnement pour le club courant
|
|
2512
3639
|
* @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
2513
3640
|
* @param {*} [options] Override http request option.
|
|
2514
3641
|
* @throws {RequiredError}
|
|
2515
3642
|
* @memberof ManagerClubSubscriptionsApi
|
|
2516
3643
|
*/
|
|
2517
3644
|
createSubscriptionPlanForClub(requestParameters, options) {
|
|
2518
|
-
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).createSubscriptionPlanForClub(requestParameters.
|
|
3645
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2519
3646
|
}
|
|
2520
3647
|
/**
|
|
2521
3648
|
*
|
|
2522
|
-
* @summary Supprimer un plan d\'abonnement
|
|
3649
|
+
* @summary Supprimer un plan d\'abonnement (club courant)
|
|
2523
3650
|
* @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
2524
3651
|
* @param {*} [options] Override http request option.
|
|
2525
3652
|
* @throws {RequiredError}
|
|
2526
3653
|
* @memberof ManagerClubSubscriptionsApi
|
|
2527
3654
|
*/
|
|
2528
3655
|
deleteSubscriptionPlanForClub(requestParameters, options) {
|
|
2529
|
-
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).deleteSubscriptionPlanForClub(requestParameters.
|
|
3656
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).deleteSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
2530
3657
|
}
|
|
2531
3658
|
/**
|
|
2532
3659
|
*
|
|
2533
|
-
* @summary Réactiver un plan d\'abonnement
|
|
3660
|
+
* @summary Réactiver un plan d\'abonnement (club courant)
|
|
2534
3661
|
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
2535
3662
|
* @param {*} [options] Override http request option.
|
|
2536
3663
|
* @throws {RequiredError}
|
|
2537
3664
|
* @memberof ManagerClubSubscriptionsApi
|
|
2538
3665
|
*/
|
|
2539
3666
|
restoreSubscriptionPlanForClub(requestParameters, options) {
|
|
2540
|
-
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPlanForClub(requestParameters.
|
|
3667
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
2541
3668
|
}
|
|
2542
3669
|
/**
|
|
2543
3670
|
*
|
|
2544
|
-
* @summary Réactiver un prix
|
|
3671
|
+
* @summary Réactiver un prix (club courant)
|
|
2545
3672
|
* @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
|
|
2546
3673
|
* @param {*} [options] Override http request option.
|
|
2547
3674
|
* @throws {RequiredError}
|
|
2548
3675
|
* @memberof ManagerClubSubscriptionsApi
|
|
2549
3676
|
*/
|
|
2550
3677
|
restoreSubscriptionPriceForClub(requestParameters, options) {
|
|
2551
|
-
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPriceForClub(requestParameters.
|
|
3678
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPriceForClub(requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
|
|
2552
3679
|
}
|
|
2553
3680
|
/**
|
|
2554
3681
|
*
|
|
2555
|
-
* @summary Mettre à jour un plan d\'abonnement
|
|
3682
|
+
* @summary Mettre à jour un plan d\'abonnement (club courant)
|
|
2556
3683
|
* @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
2557
3684
|
* @param {*} [options] Override http request option.
|
|
2558
3685
|
* @throws {RequiredError}
|
|
2559
3686
|
* @memberof ManagerClubSubscriptionsApi
|
|
2560
3687
|
*/
|
|
2561
3688
|
updateSubscriptionPlanForClub(requestParameters, options) {
|
|
2562
|
-
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).updateSubscriptionPlanForClub(requestParameters.
|
|
3689
|
+
return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).updateSubscriptionPlanForClub(requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2563
3690
|
}
|
|
2564
3691
|
}
|
|
2565
3692
|
exports.ManagerClubSubscriptionsApi = ManagerClubSubscriptionsApi;
|
|
@@ -2571,19 +3698,15 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2571
3698
|
return {
|
|
2572
3699
|
/**
|
|
2573
3700
|
*
|
|
2574
|
-
* @summary Ajouter un membre
|
|
2575
|
-
* @param {string} id ID du club
|
|
3701
|
+
* @summary Ajouter un membre au club courant
|
|
2576
3702
|
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
2577
3703
|
* @param {*} [options] Override http request option.
|
|
2578
3704
|
* @throws {RequiredError}
|
|
2579
3705
|
*/
|
|
2580
|
-
addClubMember: (
|
|
2581
|
-
// verify required parameter 'id' is not null or undefined
|
|
2582
|
-
(0, common_1.assertParamExists)('addClubMember', 'id', id);
|
|
3706
|
+
addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
|
|
2583
3707
|
// verify required parameter 'addClubMemberRequest' is not null or undefined
|
|
2584
3708
|
(0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
|
|
2585
|
-
const localVarPath = `/api/clubs/
|
|
2586
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3709
|
+
const localVarPath = `/api/clubs/add_members`;
|
|
2587
3710
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2588
3711
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2589
3712
|
let baseOptions;
|
|
@@ -2608,16 +3731,12 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2608
3731
|
}),
|
|
2609
3732
|
/**
|
|
2610
3733
|
*
|
|
2611
|
-
* @summary Récupérer les informations
|
|
2612
|
-
* @param {string} id ID du club
|
|
3734
|
+
* @summary Récupérer les informations du club courant
|
|
2613
3735
|
* @param {*} [options] Override http request option.
|
|
2614
3736
|
* @throws {RequiredError}
|
|
2615
3737
|
*/
|
|
2616
|
-
getClubInfo: (
|
|
2617
|
-
|
|
2618
|
-
(0, common_1.assertParamExists)('getClubInfo', 'id', id);
|
|
2619
|
-
const localVarPath = `/api/clubs/{id}`
|
|
2620
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3738
|
+
getClubInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3739
|
+
const localVarPath = `/api/clubs/me`;
|
|
2621
3740
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2622
3741
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2623
3742
|
let baseOptions;
|
|
@@ -2640,16 +3759,12 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2640
3759
|
}),
|
|
2641
3760
|
/**
|
|
2642
3761
|
*
|
|
2643
|
-
* @summary Récupérer les membres
|
|
2644
|
-
* @param {string} id ID du club
|
|
3762
|
+
* @summary Récupérer les membres du club courant
|
|
2645
3763
|
* @param {*} [options] Override http request option.
|
|
2646
3764
|
* @throws {RequiredError}
|
|
2647
3765
|
*/
|
|
2648
|
-
getClubMembers: (
|
|
2649
|
-
|
|
2650
|
-
(0, common_1.assertParamExists)('getClubMembers', 'id', id);
|
|
2651
|
-
const localVarPath = `/api/clubs/{id}/members`
|
|
2652
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3766
|
+
getClubMembers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3767
|
+
const localVarPath = `/api/clubs/members`;
|
|
2653
3768
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2654
3769
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2655
3770
|
let baseOptions;
|
|
@@ -2672,16 +3787,12 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2672
3787
|
}),
|
|
2673
3788
|
/**
|
|
2674
3789
|
*
|
|
2675
|
-
* @summary Récupérer les rôles
|
|
2676
|
-
* @param {string} id ID du club
|
|
3790
|
+
* @summary Récupérer les rôles du club courant
|
|
2677
3791
|
* @param {*} [options] Override http request option.
|
|
2678
3792
|
* @throws {RequiredError}
|
|
2679
3793
|
*/
|
|
2680
|
-
getClubRoles: (
|
|
2681
|
-
|
|
2682
|
-
(0, common_1.assertParamExists)('getClubRoles', 'id', id);
|
|
2683
|
-
const localVarPath = `/api/clubs/{id}/roles`
|
|
2684
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3794
|
+
getClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3795
|
+
const localVarPath = `/api/clubs/roles`;
|
|
2685
3796
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2686
3797
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2687
3798
|
let baseOptions;
|
|
@@ -2704,19 +3815,15 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2704
3815
|
}),
|
|
2705
3816
|
/**
|
|
2706
3817
|
*
|
|
2707
|
-
* @summary Mettre à jour un club existant
|
|
2708
|
-
* @param {string} id ID du club
|
|
3818
|
+
* @summary Mettre à jour un club existant (club courant)
|
|
2709
3819
|
* @param {UpdateClubRequest} updateClubRequest
|
|
2710
3820
|
* @param {*} [options] Override http request option.
|
|
2711
3821
|
* @throws {RequiredError}
|
|
2712
3822
|
*/
|
|
2713
|
-
|
|
2714
|
-
// verify required parameter 'id' is not null or undefined
|
|
2715
|
-
(0, common_1.assertParamExists)('updateClub', 'id', id);
|
|
3823
|
+
updateClubNoId: (updateClubRequest_1, ...args_1) => __awaiter(this, [updateClubRequest_1, ...args_1], void 0, function* (updateClubRequest, options = {}) {
|
|
2716
3824
|
// verify required parameter 'updateClubRequest' is not null or undefined
|
|
2717
|
-
(0, common_1.assertParamExists)('
|
|
2718
|
-
const localVarPath = `/api/clubs
|
|
2719
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3825
|
+
(0, common_1.assertParamExists)('updateClubNoId', 'updateClubRequest', updateClubRequest);
|
|
3826
|
+
const localVarPath = `/api/clubs`;
|
|
2720
3827
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2721
3828
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2722
3829
|
let baseOptions;
|
|
@@ -2751,16 +3858,15 @@ const ManagerClubsApiFp = function (configuration) {
|
|
|
2751
3858
|
return {
|
|
2752
3859
|
/**
|
|
2753
3860
|
*
|
|
2754
|
-
* @summary Ajouter un membre
|
|
2755
|
-
* @param {string} id ID du club
|
|
3861
|
+
* @summary Ajouter un membre au club courant
|
|
2756
3862
|
* @param {AddClubMemberRequest} addClubMemberRequest
|
|
2757
3863
|
* @param {*} [options] Override http request option.
|
|
2758
3864
|
* @throws {RequiredError}
|
|
2759
3865
|
*/
|
|
2760
|
-
addClubMember(
|
|
3866
|
+
addClubMember(addClubMemberRequest, options) {
|
|
2761
3867
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2762
3868
|
var _a, _b, _c;
|
|
2763
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(
|
|
3869
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(addClubMemberRequest, options);
|
|
2764
3870
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2765
3871
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.addClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2766
3872
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2768,15 +3874,14 @@ const ManagerClubsApiFp = function (configuration) {
|
|
|
2768
3874
|
},
|
|
2769
3875
|
/**
|
|
2770
3876
|
*
|
|
2771
|
-
* @summary Récupérer les informations
|
|
2772
|
-
* @param {string} id ID du club
|
|
3877
|
+
* @summary Récupérer les informations du club courant
|
|
2773
3878
|
* @param {*} [options] Override http request option.
|
|
2774
3879
|
* @throws {RequiredError}
|
|
2775
3880
|
*/
|
|
2776
|
-
getClubInfo(
|
|
3881
|
+
getClubInfo(options) {
|
|
2777
3882
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2778
3883
|
var _a, _b, _c;
|
|
2779
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(
|
|
3884
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(options);
|
|
2780
3885
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2781
3886
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.getClubInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2782
3887
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2784,15 +3889,14 @@ const ManagerClubsApiFp = function (configuration) {
|
|
|
2784
3889
|
},
|
|
2785
3890
|
/**
|
|
2786
3891
|
*
|
|
2787
|
-
* @summary Récupérer les membres
|
|
2788
|
-
* @param {string} id ID du club
|
|
3892
|
+
* @summary Récupérer les membres du club courant
|
|
2789
3893
|
* @param {*} [options] Override http request option.
|
|
2790
3894
|
* @throws {RequiredError}
|
|
2791
3895
|
*/
|
|
2792
|
-
getClubMembers(
|
|
3896
|
+
getClubMembers(options) {
|
|
2793
3897
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2794
3898
|
var _a, _b, _c;
|
|
2795
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(
|
|
3899
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(options);
|
|
2796
3900
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2797
3901
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.getClubMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2798
3902
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2800,15 +3904,14 @@ const ManagerClubsApiFp = function (configuration) {
|
|
|
2800
3904
|
},
|
|
2801
3905
|
/**
|
|
2802
3906
|
*
|
|
2803
|
-
* @summary Récupérer les rôles
|
|
2804
|
-
* @param {string} id ID du club
|
|
3907
|
+
* @summary Récupérer les rôles du club courant
|
|
2805
3908
|
* @param {*} [options] Override http request option.
|
|
2806
3909
|
* @throws {RequiredError}
|
|
2807
3910
|
*/
|
|
2808
|
-
getClubRoles(
|
|
3911
|
+
getClubRoles(options) {
|
|
2809
3912
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2810
3913
|
var _a, _b, _c;
|
|
2811
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(
|
|
3914
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(options);
|
|
2812
3915
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2813
3916
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.getClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2814
3917
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2816,18 +3919,17 @@ const ManagerClubsApiFp = function (configuration) {
|
|
|
2816
3919
|
},
|
|
2817
3920
|
/**
|
|
2818
3921
|
*
|
|
2819
|
-
* @summary Mettre à jour un club existant
|
|
2820
|
-
* @param {string} id ID du club
|
|
3922
|
+
* @summary Mettre à jour un club existant (club courant)
|
|
2821
3923
|
* @param {UpdateClubRequest} updateClubRequest
|
|
2822
3924
|
* @param {*} [options] Override http request option.
|
|
2823
3925
|
* @throws {RequiredError}
|
|
2824
3926
|
*/
|
|
2825
|
-
|
|
3927
|
+
updateClubNoId(updateClubRequest, options) {
|
|
2826
3928
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2827
3929
|
var _a, _b, _c;
|
|
2828
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3930
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubNoId(updateClubRequest, options);
|
|
2829
3931
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2830
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.
|
|
3932
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.updateClubNoId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2831
3933
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2832
3934
|
});
|
|
2833
3935
|
},
|
|
@@ -2843,53 +3945,50 @@ const ManagerClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
2843
3945
|
return {
|
|
2844
3946
|
/**
|
|
2845
3947
|
*
|
|
2846
|
-
* @summary Ajouter un membre
|
|
3948
|
+
* @summary Ajouter un membre au club courant
|
|
2847
3949
|
* @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
|
|
2848
3950
|
* @param {*} [options] Override http request option.
|
|
2849
3951
|
* @throws {RequiredError}
|
|
2850
3952
|
*/
|
|
2851
3953
|
addClubMember(requestParameters, options) {
|
|
2852
|
-
return localVarFp.addClubMember(requestParameters.
|
|
3954
|
+
return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
|
|
2853
3955
|
},
|
|
2854
3956
|
/**
|
|
2855
3957
|
*
|
|
2856
|
-
* @summary Récupérer les informations
|
|
2857
|
-
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
3958
|
+
* @summary Récupérer les informations du club courant
|
|
2858
3959
|
* @param {*} [options] Override http request option.
|
|
2859
3960
|
* @throws {RequiredError}
|
|
2860
3961
|
*/
|
|
2861
|
-
getClubInfo(
|
|
2862
|
-
return localVarFp.getClubInfo(
|
|
3962
|
+
getClubInfo(options) {
|
|
3963
|
+
return localVarFp.getClubInfo(options).then((request) => request(axios, basePath));
|
|
2863
3964
|
},
|
|
2864
3965
|
/**
|
|
2865
3966
|
*
|
|
2866
|
-
* @summary Récupérer les membres
|
|
2867
|
-
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
3967
|
+
* @summary Récupérer les membres du club courant
|
|
2868
3968
|
* @param {*} [options] Override http request option.
|
|
2869
3969
|
* @throws {RequiredError}
|
|
2870
3970
|
*/
|
|
2871
|
-
getClubMembers(
|
|
2872
|
-
return localVarFp.getClubMembers(
|
|
3971
|
+
getClubMembers(options) {
|
|
3972
|
+
return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
|
|
2873
3973
|
},
|
|
2874
3974
|
/**
|
|
2875
3975
|
*
|
|
2876
|
-
* @summary Récupérer les rôles
|
|
2877
|
-
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
3976
|
+
* @summary Récupérer les rôles du club courant
|
|
2878
3977
|
* @param {*} [options] Override http request option.
|
|
2879
3978
|
* @throws {RequiredError}
|
|
2880
3979
|
*/
|
|
2881
|
-
getClubRoles(
|
|
2882
|
-
return localVarFp.getClubRoles(
|
|
3980
|
+
getClubRoles(options) {
|
|
3981
|
+
return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
|
|
2883
3982
|
},
|
|
2884
3983
|
/**
|
|
2885
3984
|
*
|
|
2886
|
-
* @summary Mettre à jour un club existant
|
|
2887
|
-
* @param {
|
|
3985
|
+
* @summary Mettre à jour un club existant (club courant)
|
|
3986
|
+
* @param {ManagerClubsApiUpdateClubNoIdRequest} requestParameters Request parameters.
|
|
2888
3987
|
* @param {*} [options] Override http request option.
|
|
2889
3988
|
* @throws {RequiredError}
|
|
2890
3989
|
*/
|
|
2891
|
-
|
|
2892
|
-
return localVarFp.
|
|
3990
|
+
updateClubNoId(requestParameters, options) {
|
|
3991
|
+
return localVarFp.updateClubNoId(requestParameters.updateClubRequest, options).then((request) => request(axios, basePath));
|
|
2893
3992
|
},
|
|
2894
3993
|
};
|
|
2895
3994
|
};
|
|
@@ -2903,58 +4002,55 @@ exports.ManagerClubsApiFactory = ManagerClubsApiFactory;
|
|
|
2903
4002
|
class ManagerClubsApi extends base_1.BaseAPI {
|
|
2904
4003
|
/**
|
|
2905
4004
|
*
|
|
2906
|
-
* @summary Ajouter un membre
|
|
4005
|
+
* @summary Ajouter un membre au club courant
|
|
2907
4006
|
* @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
|
|
2908
4007
|
* @param {*} [options] Override http request option.
|
|
2909
4008
|
* @throws {RequiredError}
|
|
2910
4009
|
* @memberof ManagerClubsApi
|
|
2911
4010
|
*/
|
|
2912
4011
|
addClubMember(requestParameters, options) {
|
|
2913
|
-
return (0, exports.ManagerClubsApiFp)(this.configuration).addClubMember(requestParameters.
|
|
4012
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2914
4013
|
}
|
|
2915
4014
|
/**
|
|
2916
4015
|
*
|
|
2917
|
-
* @summary Récupérer les informations
|
|
2918
|
-
* @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
|
|
4016
|
+
* @summary Récupérer les informations du club courant
|
|
2919
4017
|
* @param {*} [options] Override http request option.
|
|
2920
4018
|
* @throws {RequiredError}
|
|
2921
4019
|
* @memberof ManagerClubsApi
|
|
2922
4020
|
*/
|
|
2923
|
-
getClubInfo(
|
|
2924
|
-
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubInfo(
|
|
4021
|
+
getClubInfo(options) {
|
|
4022
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubInfo(options).then((request) => request(this.axios, this.basePath));
|
|
2925
4023
|
}
|
|
2926
4024
|
/**
|
|
2927
4025
|
*
|
|
2928
|
-
* @summary Récupérer les membres
|
|
2929
|
-
* @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
|
|
4026
|
+
* @summary Récupérer les membres du club courant
|
|
2930
4027
|
* @param {*} [options] Override http request option.
|
|
2931
4028
|
* @throws {RequiredError}
|
|
2932
4029
|
* @memberof ManagerClubsApi
|
|
2933
4030
|
*/
|
|
2934
|
-
getClubMembers(
|
|
2935
|
-
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubMembers(
|
|
4031
|
+
getClubMembers(options) {
|
|
4032
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
|
|
2936
4033
|
}
|
|
2937
4034
|
/**
|
|
2938
4035
|
*
|
|
2939
|
-
* @summary Récupérer les rôles
|
|
2940
|
-
* @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
|
|
4036
|
+
* @summary Récupérer les rôles du club courant
|
|
2941
4037
|
* @param {*} [options] Override http request option.
|
|
2942
4038
|
* @throws {RequiredError}
|
|
2943
4039
|
* @memberof ManagerClubsApi
|
|
2944
4040
|
*/
|
|
2945
|
-
getClubRoles(
|
|
2946
|
-
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubRoles(
|
|
4041
|
+
getClubRoles(options) {
|
|
4042
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
2947
4043
|
}
|
|
2948
4044
|
/**
|
|
2949
4045
|
*
|
|
2950
|
-
* @summary Mettre à jour un club existant
|
|
2951
|
-
* @param {
|
|
4046
|
+
* @summary Mettre à jour un club existant (club courant)
|
|
4047
|
+
* @param {ManagerClubsApiUpdateClubNoIdRequest} requestParameters Request parameters.
|
|
2952
4048
|
* @param {*} [options] Override http request option.
|
|
2953
4049
|
* @throws {RequiredError}
|
|
2954
4050
|
* @memberof ManagerClubsApi
|
|
2955
4051
|
*/
|
|
2956
|
-
|
|
2957
|
-
return (0, exports.ManagerClubsApiFp)(this.configuration).
|
|
4052
|
+
updateClubNoId(requestParameters, options) {
|
|
4053
|
+
return (0, exports.ManagerClubsApiFp)(this.configuration).updateClubNoId(requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2958
4054
|
}
|
|
2959
4055
|
}
|
|
2960
4056
|
exports.ManagerClubsApi = ManagerClubsApi;
|
|
@@ -2964,6 +4060,39 @@ exports.ManagerClubsApi = ManagerClubsApi;
|
|
|
2964
4060
|
*/
|
|
2965
4061
|
const ManagerSportsApiAxiosParamCreator = function (configuration) {
|
|
2966
4062
|
return {
|
|
4063
|
+
/**
|
|
4064
|
+
*
|
|
4065
|
+
* @summary Créer un sport dans un club
|
|
4066
|
+
* @param {CreateSportRequest} createSportRequest
|
|
4067
|
+
* @param {*} [options] Override http request option.
|
|
4068
|
+
* @throws {RequiredError}
|
|
4069
|
+
*/
|
|
4070
|
+
createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
|
|
4071
|
+
// verify required parameter 'createSportRequest' is not null or undefined
|
|
4072
|
+
(0, common_1.assertParamExists)('createSport', 'createSportRequest', createSportRequest);
|
|
4073
|
+
const localVarPath = `/api/sports`;
|
|
4074
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4075
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4076
|
+
let baseOptions;
|
|
4077
|
+
if (configuration) {
|
|
4078
|
+
baseOptions = configuration.baseOptions;
|
|
4079
|
+
}
|
|
4080
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4081
|
+
const localVarHeaderParameter = {};
|
|
4082
|
+
const localVarQueryParameter = {};
|
|
4083
|
+
// authentication bearerAuth required
|
|
4084
|
+
// http bearer authentication required
|
|
4085
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4086
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4087
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4088
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4089
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4090
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSportRequest, localVarRequestOptions, configuration);
|
|
4091
|
+
return {
|
|
4092
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4093
|
+
options: localVarRequestOptions,
|
|
4094
|
+
};
|
|
4095
|
+
}),
|
|
2967
4096
|
/**
|
|
2968
4097
|
*
|
|
2969
4098
|
* @summary Supprimer un sport
|
|
@@ -3043,6 +4172,22 @@ exports.ManagerSportsApiAxiosParamCreator = ManagerSportsApiAxiosParamCreator;
|
|
|
3043
4172
|
const ManagerSportsApiFp = function (configuration) {
|
|
3044
4173
|
const localVarAxiosParamCreator = (0, exports.ManagerSportsApiAxiosParamCreator)(configuration);
|
|
3045
4174
|
return {
|
|
4175
|
+
/**
|
|
4176
|
+
*
|
|
4177
|
+
* @summary Créer un sport dans un club
|
|
4178
|
+
* @param {CreateSportRequest} createSportRequest
|
|
4179
|
+
* @param {*} [options] Override http request option.
|
|
4180
|
+
* @throws {RequiredError}
|
|
4181
|
+
*/
|
|
4182
|
+
createSport(createSportRequest, options) {
|
|
4183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4184
|
+
var _a, _b, _c;
|
|
4185
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSport(createSportRequest, options);
|
|
4186
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4187
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerSportsApi.createSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4188
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4189
|
+
});
|
|
4190
|
+
},
|
|
3046
4191
|
/**
|
|
3047
4192
|
*
|
|
3048
4193
|
* @summary Supprimer un sport
|
|
@@ -3086,6 +4231,16 @@ exports.ManagerSportsApiFp = ManagerSportsApiFp;
|
|
|
3086
4231
|
const ManagerSportsApiFactory = function (configuration, basePath, axios) {
|
|
3087
4232
|
const localVarFp = (0, exports.ManagerSportsApiFp)(configuration);
|
|
3088
4233
|
return {
|
|
4234
|
+
/**
|
|
4235
|
+
*
|
|
4236
|
+
* @summary Créer un sport dans un club
|
|
4237
|
+
* @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
|
|
4238
|
+
* @param {*} [options] Override http request option.
|
|
4239
|
+
* @throws {RequiredError}
|
|
4240
|
+
*/
|
|
4241
|
+
createSport(requestParameters, options) {
|
|
4242
|
+
return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
|
|
4243
|
+
},
|
|
3089
4244
|
/**
|
|
3090
4245
|
*
|
|
3091
4246
|
* @summary Supprimer un sport
|
|
@@ -3116,6 +4271,17 @@ exports.ManagerSportsApiFactory = ManagerSportsApiFactory;
|
|
|
3116
4271
|
* @extends {BaseAPI}
|
|
3117
4272
|
*/
|
|
3118
4273
|
class ManagerSportsApi extends base_1.BaseAPI {
|
|
4274
|
+
/**
|
|
4275
|
+
*
|
|
4276
|
+
* @summary Créer un sport dans un club
|
|
4277
|
+
* @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
|
|
4278
|
+
* @param {*} [options] Override http request option.
|
|
4279
|
+
* @throws {RequiredError}
|
|
4280
|
+
* @memberof ManagerSportsApi
|
|
4281
|
+
*/
|
|
4282
|
+
createSport(requestParameters, options) {
|
|
4283
|
+
return (0, exports.ManagerSportsApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4284
|
+
}
|
|
3119
4285
|
/**
|
|
3120
4286
|
*
|
|
3121
4287
|
* @summary Supprimer un sport
|
|
@@ -3148,16 +4314,12 @@ const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
3148
4314
|
return {
|
|
3149
4315
|
/**
|
|
3150
4316
|
*
|
|
3151
|
-
* @summary Get monthly turnover for the last six months
|
|
3152
|
-
* @param {string} id ID du club
|
|
4317
|
+
* @summary Get monthly turnover for the last six months (club courant)
|
|
3153
4318
|
* @param {*} [options] Override http request option.
|
|
3154
4319
|
* @throws {RequiredError}
|
|
3155
4320
|
*/
|
|
3156
|
-
getLastSixMonthsTurnover: (
|
|
3157
|
-
|
|
3158
|
-
(0, common_1.assertParamExists)('getLastSixMonthsTurnover', 'id', id);
|
|
3159
|
-
const localVarPath = `/api/clubs/{id}/turnover`
|
|
3160
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4321
|
+
getLastSixMonthsTurnover: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4322
|
+
const localVarPath = `/api/analytics/lastSixMonthsTurnover`;
|
|
3161
4323
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3162
4324
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3163
4325
|
let baseOptions;
|
|
@@ -3181,11 +4343,13 @@ const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
3181
4343
|
/**
|
|
3182
4344
|
*
|
|
3183
4345
|
* @summary Get number of users subscribed to the club
|
|
4346
|
+
* @param {string} [id] ID du club (optionnel, si absent, pris depuis le token)
|
|
3184
4347
|
* @param {*} [options] Override http request option.
|
|
3185
4348
|
* @throws {RequiredError}
|
|
3186
4349
|
*/
|
|
3187
|
-
getNumberOfClubUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3188
|
-
const localVarPath = `/api/
|
|
4350
|
+
getNumberOfClubUsers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
4351
|
+
const localVarPath = `/api/analytics/user-count`
|
|
4352
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3189
4353
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3190
4354
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3191
4355
|
let baseOptions;
|
|
@@ -3218,15 +4382,14 @@ const StaffClubAnalyticsApiFp = function (configuration) {
|
|
|
3218
4382
|
return {
|
|
3219
4383
|
/**
|
|
3220
4384
|
*
|
|
3221
|
-
* @summary Get monthly turnover for the last six months
|
|
3222
|
-
* @param {string} id ID du club
|
|
4385
|
+
* @summary Get monthly turnover for the last six months (club courant)
|
|
3223
4386
|
* @param {*} [options] Override http request option.
|
|
3224
4387
|
* @throws {RequiredError}
|
|
3225
4388
|
*/
|
|
3226
|
-
getLastSixMonthsTurnover(
|
|
4389
|
+
getLastSixMonthsTurnover(options) {
|
|
3227
4390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3228
4391
|
var _a, _b, _c;
|
|
3229
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLastSixMonthsTurnover(
|
|
4392
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLastSixMonthsTurnover(options);
|
|
3230
4393
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3231
4394
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubAnalyticsApi.getLastSixMonthsTurnover']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3232
4395
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3235,13 +4398,14 @@ const StaffClubAnalyticsApiFp = function (configuration) {
|
|
|
3235
4398
|
/**
|
|
3236
4399
|
*
|
|
3237
4400
|
* @summary Get number of users subscribed to the club
|
|
4401
|
+
* @param {string} [id] ID du club (optionnel, si absent, pris depuis le token)
|
|
3238
4402
|
* @param {*} [options] Override http request option.
|
|
3239
4403
|
* @throws {RequiredError}
|
|
3240
4404
|
*/
|
|
3241
|
-
getNumberOfClubUsers(options) {
|
|
4405
|
+
getNumberOfClubUsers(id, options) {
|
|
3242
4406
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3243
4407
|
var _a, _b, _c;
|
|
3244
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(options);
|
|
4408
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(id, options);
|
|
3245
4409
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3246
4410
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3247
4411
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3259,22 +4423,22 @@ const StaffClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
|
3259
4423
|
return {
|
|
3260
4424
|
/**
|
|
3261
4425
|
*
|
|
3262
|
-
* @summary Get monthly turnover for the last six months
|
|
3263
|
-
* @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
|
|
4426
|
+
* @summary Get monthly turnover for the last six months (club courant)
|
|
3264
4427
|
* @param {*} [options] Override http request option.
|
|
3265
4428
|
* @throws {RequiredError}
|
|
3266
4429
|
*/
|
|
3267
|
-
getLastSixMonthsTurnover(
|
|
3268
|
-
return localVarFp.getLastSixMonthsTurnover(
|
|
4430
|
+
getLastSixMonthsTurnover(options) {
|
|
4431
|
+
return localVarFp.getLastSixMonthsTurnover(options).then((request) => request(axios, basePath));
|
|
3269
4432
|
},
|
|
3270
4433
|
/**
|
|
3271
4434
|
*
|
|
3272
4435
|
* @summary Get number of users subscribed to the club
|
|
4436
|
+
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
3273
4437
|
* @param {*} [options] Override http request option.
|
|
3274
4438
|
* @throws {RequiredError}
|
|
3275
4439
|
*/
|
|
3276
|
-
getNumberOfClubUsers(options) {
|
|
3277
|
-
return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
|
|
4440
|
+
getNumberOfClubUsers(requestParameters = {}, options) {
|
|
4441
|
+
return localVarFp.getNumberOfClubUsers(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
3278
4442
|
},
|
|
3279
4443
|
};
|
|
3280
4444
|
};
|
|
@@ -3288,24 +4452,24 @@ exports.StaffClubAnalyticsApiFactory = StaffClubAnalyticsApiFactory;
|
|
|
3288
4452
|
class StaffClubAnalyticsApi extends base_1.BaseAPI {
|
|
3289
4453
|
/**
|
|
3290
4454
|
*
|
|
3291
|
-
* @summary Get monthly turnover for the last six months
|
|
3292
|
-
* @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
|
|
4455
|
+
* @summary Get monthly turnover for the last six months (club courant)
|
|
3293
4456
|
* @param {*} [options] Override http request option.
|
|
3294
4457
|
* @throws {RequiredError}
|
|
3295
4458
|
* @memberof StaffClubAnalyticsApi
|
|
3296
4459
|
*/
|
|
3297
|
-
getLastSixMonthsTurnover(
|
|
3298
|
-
return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getLastSixMonthsTurnover(
|
|
4460
|
+
getLastSixMonthsTurnover(options) {
|
|
4461
|
+
return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getLastSixMonthsTurnover(options).then((request) => request(this.axios, this.basePath));
|
|
3299
4462
|
}
|
|
3300
4463
|
/**
|
|
3301
4464
|
*
|
|
3302
4465
|
* @summary Get number of users subscribed to the club
|
|
4466
|
+
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
3303
4467
|
* @param {*} [options] Override http request option.
|
|
3304
4468
|
* @throws {RequiredError}
|
|
3305
4469
|
* @memberof StaffClubAnalyticsApi
|
|
3306
4470
|
*/
|
|
3307
|
-
getNumberOfClubUsers(options) {
|
|
3308
|
-
return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
|
|
4471
|
+
getNumberOfClubUsers(requestParameters = {}, options) {
|
|
4472
|
+
return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getNumberOfClubUsers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3309
4473
|
}
|
|
3310
4474
|
}
|
|
3311
4475
|
exports.StaffClubAnalyticsApi = StaffClubAnalyticsApi;
|
|
@@ -3317,16 +4481,12 @@ const StaffClubBookingsApiAxiosParamCreator = function (configuration) {
|
|
|
3317
4481
|
return {
|
|
3318
4482
|
/**
|
|
3319
4483
|
*
|
|
3320
|
-
* @summary Get the ten next bookings for the club
|
|
3321
|
-
* @param {string} id ID du club
|
|
4484
|
+
* @summary Get the ten next bookings for the current club
|
|
3322
4485
|
* @param {*} [options] Override http request option.
|
|
3323
4486
|
* @throws {RequiredError}
|
|
3324
4487
|
*/
|
|
3325
|
-
getTenNextBookings: (
|
|
3326
|
-
|
|
3327
|
-
(0, common_1.assertParamExists)('getTenNextBookings', 'id', id);
|
|
3328
|
-
const localVarPath = `/api/clubs/{id}/next-bookings`
|
|
3329
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4488
|
+
getTenNextBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4489
|
+
const localVarPath = `/api/analytics/next-bookings`;
|
|
3330
4490
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3331
4491
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3332
4492
|
let baseOptions;
|
|
@@ -3359,15 +4519,14 @@ const StaffClubBookingsApiFp = function (configuration) {
|
|
|
3359
4519
|
return {
|
|
3360
4520
|
/**
|
|
3361
4521
|
*
|
|
3362
|
-
* @summary Get the ten next bookings for the club
|
|
3363
|
-
* @param {string} id ID du club
|
|
4522
|
+
* @summary Get the ten next bookings for the current club
|
|
3364
4523
|
* @param {*} [options] Override http request option.
|
|
3365
4524
|
* @throws {RequiredError}
|
|
3366
4525
|
*/
|
|
3367
|
-
getTenNextBookings(
|
|
4526
|
+
getTenNextBookings(options) {
|
|
3368
4527
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3369
4528
|
var _a, _b, _c;
|
|
3370
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(
|
|
4529
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(options);
|
|
3371
4530
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3372
4531
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubBookingsApi.getTenNextBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3373
4532
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3385,13 +4544,12 @@ const StaffClubBookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
3385
4544
|
return {
|
|
3386
4545
|
/**
|
|
3387
4546
|
*
|
|
3388
|
-
* @summary Get the ten next bookings for the club
|
|
3389
|
-
* @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
4547
|
+
* @summary Get the ten next bookings for the current club
|
|
3390
4548
|
* @param {*} [options] Override http request option.
|
|
3391
4549
|
* @throws {RequiredError}
|
|
3392
4550
|
*/
|
|
3393
|
-
getTenNextBookings(
|
|
3394
|
-
return localVarFp.getTenNextBookings(
|
|
4551
|
+
getTenNextBookings(options) {
|
|
4552
|
+
return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
|
|
3395
4553
|
},
|
|
3396
4554
|
};
|
|
3397
4555
|
};
|
|
@@ -3405,117 +4563,16 @@ exports.StaffClubBookingsApiFactory = StaffClubBookingsApiFactory;
|
|
|
3405
4563
|
class StaffClubBookingsApi extends base_1.BaseAPI {
|
|
3406
4564
|
/**
|
|
3407
4565
|
*
|
|
3408
|
-
* @summary Get the ten next bookings for the club
|
|
3409
|
-
* @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
|
|
4566
|
+
* @summary Get the ten next bookings for the current club
|
|
3410
4567
|
* @param {*} [options] Override http request option.
|
|
3411
4568
|
* @throws {RequiredError}
|
|
3412
4569
|
* @memberof StaffClubBookingsApi
|
|
3413
4570
|
*/
|
|
3414
|
-
getTenNextBookings(
|
|
3415
|
-
return (0, exports.StaffClubBookingsApiFp)(this.configuration).getTenNextBookings(
|
|
4571
|
+
getTenNextBookings(options) {
|
|
4572
|
+
return (0, exports.StaffClubBookingsApiFp)(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
|
|
3416
4573
|
}
|
|
3417
4574
|
}
|
|
3418
4575
|
exports.StaffClubBookingsApi = StaffClubBookingsApi;
|
|
3419
|
-
/**
|
|
3420
|
-
* StaffClubSettingsApi - axios parameter creator
|
|
3421
|
-
* @export
|
|
3422
|
-
*/
|
|
3423
|
-
const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
3424
|
-
return {
|
|
3425
|
-
/**
|
|
3426
|
-
*
|
|
3427
|
-
* @summary Récupère les paramètres d\'un club
|
|
3428
|
-
* @param {*} [options] Override http request option.
|
|
3429
|
-
* @throws {RequiredError}
|
|
3430
|
-
*/
|
|
3431
|
-
getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3432
|
-
const localVarPath = `/api/club-settings`;
|
|
3433
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3434
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3435
|
-
let baseOptions;
|
|
3436
|
-
if (configuration) {
|
|
3437
|
-
baseOptions = configuration.baseOptions;
|
|
3438
|
-
}
|
|
3439
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3440
|
-
const localVarHeaderParameter = {};
|
|
3441
|
-
const localVarQueryParameter = {};
|
|
3442
|
-
// authentication bearerAuth required
|
|
3443
|
-
// http bearer authentication required
|
|
3444
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3445
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3446
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3447
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3448
|
-
return {
|
|
3449
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3450
|
-
options: localVarRequestOptions,
|
|
3451
|
-
};
|
|
3452
|
-
}),
|
|
3453
|
-
};
|
|
3454
|
-
};
|
|
3455
|
-
exports.StaffClubSettingsApiAxiosParamCreator = StaffClubSettingsApiAxiosParamCreator;
|
|
3456
|
-
/**
|
|
3457
|
-
* StaffClubSettingsApi - functional programming interface
|
|
3458
|
-
* @export
|
|
3459
|
-
*/
|
|
3460
|
-
const StaffClubSettingsApiFp = function (configuration) {
|
|
3461
|
-
const localVarAxiosParamCreator = (0, exports.StaffClubSettingsApiAxiosParamCreator)(configuration);
|
|
3462
|
-
return {
|
|
3463
|
-
/**
|
|
3464
|
-
*
|
|
3465
|
-
* @summary Récupère les paramètres d\'un club
|
|
3466
|
-
* @param {*} [options] Override http request option.
|
|
3467
|
-
* @throws {RequiredError}
|
|
3468
|
-
*/
|
|
3469
|
-
getClubSettings(options) {
|
|
3470
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3471
|
-
var _a, _b, _c;
|
|
3472
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
|
|
3473
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3474
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubSettingsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3475
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3476
|
-
});
|
|
3477
|
-
},
|
|
3478
|
-
};
|
|
3479
|
-
};
|
|
3480
|
-
exports.StaffClubSettingsApiFp = StaffClubSettingsApiFp;
|
|
3481
|
-
/**
|
|
3482
|
-
* StaffClubSettingsApi - factory interface
|
|
3483
|
-
* @export
|
|
3484
|
-
*/
|
|
3485
|
-
const StaffClubSettingsApiFactory = function (configuration, basePath, axios) {
|
|
3486
|
-
const localVarFp = (0, exports.StaffClubSettingsApiFp)(configuration);
|
|
3487
|
-
return {
|
|
3488
|
-
/**
|
|
3489
|
-
*
|
|
3490
|
-
* @summary Récupère les paramètres d\'un club
|
|
3491
|
-
* @param {*} [options] Override http request option.
|
|
3492
|
-
* @throws {RequiredError}
|
|
3493
|
-
*/
|
|
3494
|
-
getClubSettings(options) {
|
|
3495
|
-
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
3496
|
-
},
|
|
3497
|
-
};
|
|
3498
|
-
};
|
|
3499
|
-
exports.StaffClubSettingsApiFactory = StaffClubSettingsApiFactory;
|
|
3500
|
-
/**
|
|
3501
|
-
* StaffClubSettingsApi - object-oriented interface
|
|
3502
|
-
* @export
|
|
3503
|
-
* @class StaffClubSettingsApi
|
|
3504
|
-
* @extends {BaseAPI}
|
|
3505
|
-
*/
|
|
3506
|
-
class StaffClubSettingsApi extends base_1.BaseAPI {
|
|
3507
|
-
/**
|
|
3508
|
-
*
|
|
3509
|
-
* @summary Récupère les paramètres d\'un club
|
|
3510
|
-
* @param {*} [options] Override http request option.
|
|
3511
|
-
* @throws {RequiredError}
|
|
3512
|
-
* @memberof StaffClubSettingsApi
|
|
3513
|
-
*/
|
|
3514
|
-
getClubSettings(options) {
|
|
3515
|
-
return (0, exports.StaffClubSettingsApiFp)(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
3516
|
-
}
|
|
3517
|
-
}
|
|
3518
|
-
exports.StaffClubSettingsApi = StaffClubSettingsApi;
|
|
3519
4576
|
/**
|
|
3520
4577
|
* StaffClubsApi - axios parameter creator
|
|
3521
4578
|
* @export
|
|
@@ -3524,16 +4581,12 @@ const StaffClubsApiAxiosParamCreator = function (configuration) {
|
|
|
3524
4581
|
return {
|
|
3525
4582
|
/**
|
|
3526
4583
|
*
|
|
3527
|
-
* @summary Get club information
|
|
3528
|
-
* @param {string} id ID du club
|
|
4584
|
+
* @summary Get current club information
|
|
3529
4585
|
* @param {*} [options] Override http request option.
|
|
3530
4586
|
* @throws {RequiredError}
|
|
3531
4587
|
*/
|
|
3532
|
-
getClubInfos: (
|
|
3533
|
-
|
|
3534
|
-
(0, common_1.assertParamExists)('getClubInfos', 'id', id);
|
|
3535
|
-
const localVarPath = `/api/clubs/{id}/infos`
|
|
3536
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4588
|
+
getClubInfos: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4589
|
+
const localVarPath = `/api/clubs/infos`;
|
|
3537
4590
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3538
4591
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3539
4592
|
let baseOptions;
|
|
@@ -3566,15 +4619,14 @@ const StaffClubsApiFp = function (configuration) {
|
|
|
3566
4619
|
return {
|
|
3567
4620
|
/**
|
|
3568
4621
|
*
|
|
3569
|
-
* @summary Get club information
|
|
3570
|
-
* @param {string} id ID du club
|
|
4622
|
+
* @summary Get current club information
|
|
3571
4623
|
* @param {*} [options] Override http request option.
|
|
3572
4624
|
* @throws {RequiredError}
|
|
3573
4625
|
*/
|
|
3574
|
-
getClubInfos(
|
|
4626
|
+
getClubInfos(options) {
|
|
3575
4627
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3576
4628
|
var _a, _b, _c;
|
|
3577
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(
|
|
4629
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(options);
|
|
3578
4630
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3579
4631
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubsApi.getClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3580
4632
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3592,13 +4644,12 @@ const StaffClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
3592
4644
|
return {
|
|
3593
4645
|
/**
|
|
3594
4646
|
*
|
|
3595
|
-
* @summary Get club information
|
|
3596
|
-
* @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
4647
|
+
* @summary Get current club information
|
|
3597
4648
|
* @param {*} [options] Override http request option.
|
|
3598
4649
|
* @throws {RequiredError}
|
|
3599
4650
|
*/
|
|
3600
|
-
getClubInfos(
|
|
3601
|
-
return localVarFp.getClubInfos(
|
|
4651
|
+
getClubInfos(options) {
|
|
4652
|
+
return localVarFp.getClubInfos(options).then((request) => request(axios, basePath));
|
|
3602
4653
|
},
|
|
3603
4654
|
};
|
|
3604
4655
|
};
|
|
@@ -3612,14 +4663,13 @@ exports.StaffClubsApiFactory = StaffClubsApiFactory;
|
|
|
3612
4663
|
class StaffClubsApi extends base_1.BaseAPI {
|
|
3613
4664
|
/**
|
|
3614
4665
|
*
|
|
3615
|
-
* @summary Get club information
|
|
3616
|
-
* @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
|
|
4666
|
+
* @summary Get current club information
|
|
3617
4667
|
* @param {*} [options] Override http request option.
|
|
3618
4668
|
* @throws {RequiredError}
|
|
3619
4669
|
* @memberof StaffClubsApi
|
|
3620
4670
|
*/
|
|
3621
|
-
getClubInfos(
|
|
3622
|
-
return (0, exports.StaffClubsApiFp)(this.configuration).getClubInfos(
|
|
4671
|
+
getClubInfos(options) {
|
|
4672
|
+
return (0, exports.StaffClubsApiFp)(this.configuration).getClubInfos(options).then((request) => request(this.axios, this.basePath));
|
|
3623
4673
|
}
|
|
3624
4674
|
}
|
|
3625
4675
|
exports.StaffClubsApi = StaffClubsApi;
|
|
@@ -3723,114 +4773,6 @@ class StaffProfileApi extends base_1.BaseAPI {
|
|
|
3723
4773
|
}
|
|
3724
4774
|
}
|
|
3725
4775
|
exports.StaffProfileApi = StaffProfileApi;
|
|
3726
|
-
/**
|
|
3727
|
-
* StaffSportsApi - axios parameter creator
|
|
3728
|
-
* @export
|
|
3729
|
-
*/
|
|
3730
|
-
const StaffSportsApiAxiosParamCreator = function (configuration) {
|
|
3731
|
-
return {
|
|
3732
|
-
/**
|
|
3733
|
-
*
|
|
3734
|
-
* @summary Récupère la liste des sports d\'un club
|
|
3735
|
-
* @param {GetAllSportsRequest} getAllSportsRequest
|
|
3736
|
-
* @param {*} [options] Override http request option.
|
|
3737
|
-
* @throws {RequiredError}
|
|
3738
|
-
*/
|
|
3739
|
-
getAllSports: (getAllSportsRequest_1, ...args_1) => __awaiter(this, [getAllSportsRequest_1, ...args_1], void 0, function* (getAllSportsRequest, options = {}) {
|
|
3740
|
-
// verify required parameter 'getAllSportsRequest' is not null or undefined
|
|
3741
|
-
(0, common_1.assertParamExists)('getAllSports', 'getAllSportsRequest', getAllSportsRequest);
|
|
3742
|
-
const localVarPath = `/api/sports`;
|
|
3743
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3744
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3745
|
-
let baseOptions;
|
|
3746
|
-
if (configuration) {
|
|
3747
|
-
baseOptions = configuration.baseOptions;
|
|
3748
|
-
}
|
|
3749
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3750
|
-
const localVarHeaderParameter = {};
|
|
3751
|
-
const localVarQueryParameter = {};
|
|
3752
|
-
// authentication bearerAuth required
|
|
3753
|
-
// http bearer authentication required
|
|
3754
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3755
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3756
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3757
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3758
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3759
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getAllSportsRequest, localVarRequestOptions, configuration);
|
|
3760
|
-
return {
|
|
3761
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3762
|
-
options: localVarRequestOptions,
|
|
3763
|
-
};
|
|
3764
|
-
}),
|
|
3765
|
-
};
|
|
3766
|
-
};
|
|
3767
|
-
exports.StaffSportsApiAxiosParamCreator = StaffSportsApiAxiosParamCreator;
|
|
3768
|
-
/**
|
|
3769
|
-
* StaffSportsApi - functional programming interface
|
|
3770
|
-
* @export
|
|
3771
|
-
*/
|
|
3772
|
-
const StaffSportsApiFp = function (configuration) {
|
|
3773
|
-
const localVarAxiosParamCreator = (0, exports.StaffSportsApiAxiosParamCreator)(configuration);
|
|
3774
|
-
return {
|
|
3775
|
-
/**
|
|
3776
|
-
*
|
|
3777
|
-
* @summary Récupère la liste des sports d\'un club
|
|
3778
|
-
* @param {GetAllSportsRequest} getAllSportsRequest
|
|
3779
|
-
* @param {*} [options] Override http request option.
|
|
3780
|
-
* @throws {RequiredError}
|
|
3781
|
-
*/
|
|
3782
|
-
getAllSports(getAllSportsRequest, options) {
|
|
3783
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3784
|
-
var _a, _b, _c;
|
|
3785
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllSports(getAllSportsRequest, options);
|
|
3786
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3787
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffSportsApi.getAllSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3788
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3789
|
-
});
|
|
3790
|
-
},
|
|
3791
|
-
};
|
|
3792
|
-
};
|
|
3793
|
-
exports.StaffSportsApiFp = StaffSportsApiFp;
|
|
3794
|
-
/**
|
|
3795
|
-
* StaffSportsApi - factory interface
|
|
3796
|
-
* @export
|
|
3797
|
-
*/
|
|
3798
|
-
const StaffSportsApiFactory = function (configuration, basePath, axios) {
|
|
3799
|
-
const localVarFp = (0, exports.StaffSportsApiFp)(configuration);
|
|
3800
|
-
return {
|
|
3801
|
-
/**
|
|
3802
|
-
*
|
|
3803
|
-
* @summary Récupère la liste des sports d\'un club
|
|
3804
|
-
* @param {StaffSportsApiGetAllSportsRequest} requestParameters Request parameters.
|
|
3805
|
-
* @param {*} [options] Override http request option.
|
|
3806
|
-
* @throws {RequiredError}
|
|
3807
|
-
*/
|
|
3808
|
-
getAllSports(requestParameters, options) {
|
|
3809
|
-
return localVarFp.getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(axios, basePath));
|
|
3810
|
-
},
|
|
3811
|
-
};
|
|
3812
|
-
};
|
|
3813
|
-
exports.StaffSportsApiFactory = StaffSportsApiFactory;
|
|
3814
|
-
/**
|
|
3815
|
-
* StaffSportsApi - object-oriented interface
|
|
3816
|
-
* @export
|
|
3817
|
-
* @class StaffSportsApi
|
|
3818
|
-
* @extends {BaseAPI}
|
|
3819
|
-
*/
|
|
3820
|
-
class StaffSportsApi extends base_1.BaseAPI {
|
|
3821
|
-
/**
|
|
3822
|
-
*
|
|
3823
|
-
* @summary Récupère la liste des sports d\'un club
|
|
3824
|
-
* @param {StaffSportsApiGetAllSportsRequest} requestParameters Request parameters.
|
|
3825
|
-
* @param {*} [options] Override http request option.
|
|
3826
|
-
* @throws {RequiredError}
|
|
3827
|
-
* @memberof StaffSportsApi
|
|
3828
|
-
*/
|
|
3829
|
-
getAllSports(requestParameters, options) {
|
|
3830
|
-
return (0, exports.StaffSportsApiFp)(this.configuration).getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3831
|
-
}
|
|
3832
|
-
}
|
|
3833
|
-
exports.StaffSportsApi = StaffSportsApi;
|
|
3834
4776
|
/**
|
|
3835
4777
|
* UserApi - axios parameter creator
|
|
3836
4778
|
* @export
|