@tennac-booking/sdk 1.0.23 → 1.0.24
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 +6 -2
- package/README.md +13 -7
- package/api.ts +647 -519
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +336 -232
- package/dist/api.js +345 -321
- 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 +336 -232
- package/dist/esm/api.js +343 -315
- 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/AddPaymentMethodSetupRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupResponse.md +24 -0
- package/docs/BlockSlotResponse.md +1 -1
- package/docs/ClubSettings.md +14 -8
- package/docs/{DeleteClubSettings200Response.md → LevelBySportsItem.md} +7 -5
- package/docs/ProfilePictureResponse.md +20 -0
- package/docs/StaffClubsApi.md +56 -0
- package/docs/UpdateLevelBySportsRequestBody.md +20 -0
- package/docs/UpdateProfilePictureRequestBody.md +20 -0
- package/docs/UserApi.md +0 -56
- package/docs/UserPaymentApi.md +55 -0
- package/docs/UserProfileApi.md +158 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ManagerClubSettingsApi.md +0 -172
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.24
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -99,6 +99,44 @@ export interface AddClubMemberResponse {
|
|
|
99
99
|
*/
|
|
100
100
|
'member'?: ClubMember;
|
|
101
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @export
|
|
105
|
+
* @interface AddPaymentMethodSetupRequestBody
|
|
106
|
+
*/
|
|
107
|
+
export interface AddPaymentMethodSetupRequestBody {
|
|
108
|
+
/**
|
|
109
|
+
* ID Stripe du moyen de paiement à ajouter
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof AddPaymentMethodSetupRequestBody
|
|
112
|
+
*/
|
|
113
|
+
'paymentMethodId': string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @export
|
|
118
|
+
* @interface AddPaymentMethodSetupResponse
|
|
119
|
+
*/
|
|
120
|
+
export interface AddPaymentMethodSetupResponse {
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof AddPaymentMethodSetupResponse
|
|
125
|
+
*/
|
|
126
|
+
'message'?: string;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {Array<string>}
|
|
130
|
+
* @memberof AddPaymentMethodSetupResponse
|
|
131
|
+
*/
|
|
132
|
+
'paymentMethods'?: Array<string>;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof AddPaymentMethodSetupResponse
|
|
137
|
+
*/
|
|
138
|
+
'defaultPaymentMethodId'?: string;
|
|
139
|
+
}
|
|
102
140
|
/**
|
|
103
141
|
*
|
|
104
142
|
* @export
|
|
@@ -125,7 +163,7 @@ export interface ApiErrorResponse {
|
|
|
125
163
|
*/
|
|
126
164
|
export interface BlockSlotResponse {
|
|
127
165
|
/**
|
|
128
|
-
*
|
|
166
|
+
*
|
|
129
167
|
* @type {string}
|
|
130
168
|
* @memberof BlockSlotResponse
|
|
131
169
|
*/
|
|
@@ -1270,28 +1308,46 @@ export interface ClubSettings {
|
|
|
1270
1308
|
'clubId'?: string;
|
|
1271
1309
|
/**
|
|
1272
1310
|
*
|
|
1273
|
-
* @type {
|
|
1311
|
+
* @type {number}
|
|
1274
1312
|
* @memberof ClubSettings
|
|
1275
1313
|
*/
|
|
1276
|
-
'
|
|
1314
|
+
'maxWeeklyBookings'?: number;
|
|
1277
1315
|
/**
|
|
1278
1316
|
*
|
|
1279
|
-
* @type {
|
|
1317
|
+
* @type {boolean}
|
|
1280
1318
|
* @memberof ClubSettings
|
|
1281
1319
|
*/
|
|
1282
|
-
'
|
|
1320
|
+
'allowMultipleBookingsAtTheSameTime'?: boolean;
|
|
1283
1321
|
/**
|
|
1284
1322
|
*
|
|
1285
1323
|
* @type {number}
|
|
1286
1324
|
* @memberof ClubSettings
|
|
1287
1325
|
*/
|
|
1288
|
-
'
|
|
1326
|
+
'sameTimeBookingsLimit'?: number | null;
|
|
1289
1327
|
/**
|
|
1290
1328
|
*
|
|
1291
|
-
* @type {
|
|
1329
|
+
* @type {number}
|
|
1292
1330
|
* @memberof ClubSettings
|
|
1293
1331
|
*/
|
|
1294
|
-
'
|
|
1332
|
+
'cancellationLimitHours'?: number;
|
|
1333
|
+
/**
|
|
1334
|
+
*
|
|
1335
|
+
* @type {number}
|
|
1336
|
+
* @memberof ClubSettings
|
|
1337
|
+
*/
|
|
1338
|
+
'availabilityPeriodInDays'?: number;
|
|
1339
|
+
/**
|
|
1340
|
+
*
|
|
1341
|
+
* @type {Array<string>}
|
|
1342
|
+
* @memberof ClubSettings
|
|
1343
|
+
*/
|
|
1344
|
+
'sponsors'?: Array<string>;
|
|
1345
|
+
/**
|
|
1346
|
+
* Minutes before payment is required
|
|
1347
|
+
* @type {number}
|
|
1348
|
+
* @memberof ClubSettings
|
|
1349
|
+
*/
|
|
1350
|
+
'timeBeforePayment'?: number;
|
|
1295
1351
|
/**
|
|
1296
1352
|
*
|
|
1297
1353
|
* @type {string}
|
|
@@ -1938,19 +1994,6 @@ export interface DeleteClubRole200Response {
|
|
|
1938
1994
|
*/
|
|
1939
1995
|
'message'?: string;
|
|
1940
1996
|
}
|
|
1941
|
-
/**
|
|
1942
|
-
*
|
|
1943
|
-
* @export
|
|
1944
|
-
* @interface DeleteClubSettings200Response
|
|
1945
|
-
*/
|
|
1946
|
-
export interface DeleteClubSettings200Response {
|
|
1947
|
-
/**
|
|
1948
|
-
*
|
|
1949
|
-
* @type {string}
|
|
1950
|
-
* @memberof DeleteClubSettings200Response
|
|
1951
|
-
*/
|
|
1952
|
-
'message'?: string;
|
|
1953
|
-
}
|
|
1954
1997
|
/**
|
|
1955
1998
|
*
|
|
1956
1999
|
* @export
|
|
@@ -2416,6 +2459,25 @@ export interface InvoicesResponsePagination {
|
|
|
2416
2459
|
*/
|
|
2417
2460
|
'totalPages'?: number;
|
|
2418
2461
|
}
|
|
2462
|
+
/**
|
|
2463
|
+
*
|
|
2464
|
+
* @export
|
|
2465
|
+
* @interface LevelBySportsItem
|
|
2466
|
+
*/
|
|
2467
|
+
export interface LevelBySportsItem {
|
|
2468
|
+
/**
|
|
2469
|
+
*
|
|
2470
|
+
* @type {string}
|
|
2471
|
+
* @memberof LevelBySportsItem
|
|
2472
|
+
*/
|
|
2473
|
+
'sport': string;
|
|
2474
|
+
/**
|
|
2475
|
+
*
|
|
2476
|
+
* @type {string}
|
|
2477
|
+
* @memberof LevelBySportsItem
|
|
2478
|
+
*/
|
|
2479
|
+
'level': string;
|
|
2480
|
+
}
|
|
2419
2481
|
/**
|
|
2420
2482
|
*
|
|
2421
2483
|
* @export
|
|
@@ -2800,6 +2862,19 @@ export interface PriceResponse {
|
|
|
2800
2862
|
*/
|
|
2801
2863
|
'createdAt'?: string;
|
|
2802
2864
|
}
|
|
2865
|
+
/**
|
|
2866
|
+
*
|
|
2867
|
+
* @export
|
|
2868
|
+
* @interface ProfilePictureResponse
|
|
2869
|
+
*/
|
|
2870
|
+
export interface ProfilePictureResponse {
|
|
2871
|
+
/**
|
|
2872
|
+
* URL de la photo de profil
|
|
2873
|
+
* @type {string}
|
|
2874
|
+
* @memberof ProfilePictureResponse
|
|
2875
|
+
*/
|
|
2876
|
+
'profilePicture'?: string;
|
|
2877
|
+
}
|
|
2803
2878
|
/**
|
|
2804
2879
|
*
|
|
2805
2880
|
* @export
|
|
@@ -3658,6 +3733,32 @@ export interface UpdateCustomerResponseCustomer {
|
|
|
3658
3733
|
*/
|
|
3659
3734
|
'address'?: object;
|
|
3660
3735
|
}
|
|
3736
|
+
/**
|
|
3737
|
+
*
|
|
3738
|
+
* @export
|
|
3739
|
+
* @interface UpdateLevelBySportsRequestBody
|
|
3740
|
+
*/
|
|
3741
|
+
export interface UpdateLevelBySportsRequestBody {
|
|
3742
|
+
/**
|
|
3743
|
+
*
|
|
3744
|
+
* @type {Array<LevelBySportsItem>}
|
|
3745
|
+
* @memberof UpdateLevelBySportsRequestBody
|
|
3746
|
+
*/
|
|
3747
|
+
'levelBySports': Array<LevelBySportsItem>;
|
|
3748
|
+
}
|
|
3749
|
+
/**
|
|
3750
|
+
*
|
|
3751
|
+
* @export
|
|
3752
|
+
* @interface UpdateProfilePictureRequestBody
|
|
3753
|
+
*/
|
|
3754
|
+
export interface UpdateProfilePictureRequestBody {
|
|
3755
|
+
/**
|
|
3756
|
+
* URL distante de la photo de profil (AWS/GCP)
|
|
3757
|
+
* @type {string}
|
|
3758
|
+
* @memberof UpdateProfilePictureRequestBody
|
|
3759
|
+
*/
|
|
3760
|
+
'profilePicture': string;
|
|
3761
|
+
}
|
|
3661
3762
|
/**
|
|
3662
3763
|
*
|
|
3663
3764
|
* @export
|
|
@@ -7335,22 +7436,25 @@ export class ManagerClubRolesApi extends BaseAPI {
|
|
|
7335
7436
|
|
|
7336
7437
|
|
|
7337
7438
|
/**
|
|
7338
|
-
*
|
|
7439
|
+
* ManagerClubSlotsApi - axios parameter creator
|
|
7339
7440
|
* @export
|
|
7340
7441
|
*/
|
|
7341
|
-
export const
|
|
7442
|
+
export const ManagerClubSlotsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7342
7443
|
return {
|
|
7343
7444
|
/**
|
|
7344
7445
|
*
|
|
7345
|
-
* @summary
|
|
7346
|
-
* @param {
|
|
7446
|
+
* @summary Supprimer des créneaux pour le club courant sur une plage de dates
|
|
7447
|
+
* @param {string} start Date de début (format ISO)
|
|
7448
|
+
* @param {string} end Date de fin (format ISO)
|
|
7347
7449
|
* @param {*} [options] Override http request option.
|
|
7348
7450
|
* @throws {RequiredError}
|
|
7349
7451
|
*/
|
|
7350
|
-
|
|
7351
|
-
// verify required parameter '
|
|
7352
|
-
assertParamExists('
|
|
7353
|
-
|
|
7452
|
+
deleteSlotsByClubInRange: async (start: string, end: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7453
|
+
// verify required parameter 'start' is not null or undefined
|
|
7454
|
+
assertParamExists('deleteSlotsByClubInRange', 'start', start)
|
|
7455
|
+
// verify required parameter 'end' is not null or undefined
|
|
7456
|
+
assertParamExists('deleteSlotsByClubInRange', 'end', end)
|
|
7457
|
+
const localVarPath = `/api/clubs/slots`;
|
|
7354
7458
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7355
7459
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7356
7460
|
let baseOptions;
|
|
@@ -7358,7 +7462,7 @@ export const ManagerClubSettingsApiAxiosParamCreator = function (configuration?:
|
|
|
7358
7462
|
baseOptions = configuration.baseOptions;
|
|
7359
7463
|
}
|
|
7360
7464
|
|
|
7361
|
-
const localVarRequestOptions = { method: '
|
|
7465
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
7362
7466
|
const localVarHeaderParameter = {} as any;
|
|
7363
7467
|
const localVarQueryParameter = {} as any;
|
|
7364
7468
|
|
|
@@ -7366,54 +7470,23 @@ export const ManagerClubSettingsApiAxiosParamCreator = function (configuration?:
|
|
|
7366
7470
|
// http bearer authentication required
|
|
7367
7471
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7368
7472
|
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7374
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7375
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7376
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createClubSettingsRequest, localVarRequestOptions, configuration)
|
|
7377
|
-
|
|
7378
|
-
return {
|
|
7379
|
-
url: toPathString(localVarUrlObj),
|
|
7380
|
-
options: localVarRequestOptions,
|
|
7381
|
-
};
|
|
7382
|
-
},
|
|
7383
|
-
/**
|
|
7384
|
-
*
|
|
7385
|
-
* @summary Supprimer les paramètres d\'un club
|
|
7386
|
-
* @param {DeleteClubSettingsRequest} deleteClubSettingsRequest
|
|
7387
|
-
* @param {*} [options] Override http request option.
|
|
7388
|
-
* @throws {RequiredError}
|
|
7389
|
-
*/
|
|
7390
|
-
deleteClubSettings: async (deleteClubSettingsRequest: DeleteClubSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7391
|
-
// verify required parameter 'deleteClubSettingsRequest' is not null or undefined
|
|
7392
|
-
assertParamExists('deleteClubSettings', 'deleteClubSettingsRequest', deleteClubSettingsRequest)
|
|
7393
|
-
const localVarPath = `/api/club-settings`;
|
|
7394
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7395
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7396
|
-
let baseOptions;
|
|
7397
|
-
if (configuration) {
|
|
7398
|
-
baseOptions = configuration.baseOptions;
|
|
7473
|
+
if (start !== undefined) {
|
|
7474
|
+
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
7475
|
+
(start as any).toISOString() :
|
|
7476
|
+
start;
|
|
7399
7477
|
}
|
|
7400
7478
|
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
// http bearer authentication required
|
|
7407
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7479
|
+
if (end !== undefined) {
|
|
7480
|
+
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
7481
|
+
(end as any).toISOString() :
|
|
7482
|
+
end;
|
|
7483
|
+
}
|
|
7408
7484
|
|
|
7409
7485
|
|
|
7410
7486
|
|
|
7411
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7412
|
-
|
|
7413
7487
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7414
7488
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7415
7489
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7416
|
-
localVarRequestOptions.data = serializeDataIfNeeded(deleteClubSettingsRequest, localVarRequestOptions, configuration)
|
|
7417
7490
|
|
|
7418
7491
|
return {
|
|
7419
7492
|
url: toPathString(localVarUrlObj),
|
|
@@ -7422,15 +7495,14 @@ export const ManagerClubSettingsApiAxiosParamCreator = function (configuration?:
|
|
|
7422
7495
|
},
|
|
7423
7496
|
/**
|
|
7424
7497
|
*
|
|
7425
|
-
* @summary
|
|
7426
|
-
* @param {
|
|
7498
|
+
* @summary Récupérer tous les créneaux du club courant
|
|
7499
|
+
* @param {string} [start] Date de début (format ISO)
|
|
7500
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
7427
7501
|
* @param {*} [options] Override http request option.
|
|
7428
7502
|
* @throws {RequiredError}
|
|
7429
7503
|
*/
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
assertParamExists('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest)
|
|
7433
|
-
const localVarPath = `/api/club-settings`;
|
|
7504
|
+
getSlotsByClub: async (start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7505
|
+
const localVarPath = `/api/clubs/slots`;
|
|
7434
7506
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7435
7507
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7436
7508
|
let baseOptions;
|
|
@@ -7438,7 +7510,7 @@ export const ManagerClubSettingsApiAxiosParamCreator = function (configuration?:
|
|
|
7438
7510
|
baseOptions = configuration.baseOptions;
|
|
7439
7511
|
}
|
|
7440
7512
|
|
|
7441
|
-
const localVarRequestOptions = { method: '
|
|
7513
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7442
7514
|
const localVarHeaderParameter = {} as any;
|
|
7443
7515
|
const localVarQueryParameter = {} as any;
|
|
7444
7516
|
|
|
@@ -7446,14 +7518,23 @@ export const ManagerClubSettingsApiAxiosParamCreator = function (configuration?:
|
|
|
7446
7518
|
// http bearer authentication required
|
|
7447
7519
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7448
7520
|
|
|
7521
|
+
if (start !== undefined) {
|
|
7522
|
+
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
7523
|
+
(start as any).toISOString() :
|
|
7524
|
+
start;
|
|
7525
|
+
}
|
|
7449
7526
|
|
|
7450
|
-
|
|
7451
|
-
|
|
7527
|
+
if (end !== undefined) {
|
|
7528
|
+
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
7529
|
+
(end as any).toISOString() :
|
|
7530
|
+
end;
|
|
7531
|
+
}
|
|
7452
7532
|
|
|
7533
|
+
|
|
7534
|
+
|
|
7453
7535
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7454
7536
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7455
7537
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7456
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateClubSettingsRequest, localVarRequestOptions, configuration)
|
|
7457
7538
|
|
|
7458
7539
|
return {
|
|
7459
7540
|
url: toPathString(localVarUrlObj),
|
|
@@ -7464,415 +7545,129 @@ export const ManagerClubSettingsApiAxiosParamCreator = function (configuration?:
|
|
|
7464
7545
|
};
|
|
7465
7546
|
|
|
7466
7547
|
/**
|
|
7467
|
-
*
|
|
7548
|
+
* ManagerClubSlotsApi - functional programming interface
|
|
7468
7549
|
* @export
|
|
7469
7550
|
*/
|
|
7470
|
-
export const
|
|
7471
|
-
const localVarAxiosParamCreator =
|
|
7551
|
+
export const ManagerClubSlotsApiFp = function(configuration?: Configuration) {
|
|
7552
|
+
const localVarAxiosParamCreator = ManagerClubSlotsApiAxiosParamCreator(configuration)
|
|
7472
7553
|
return {
|
|
7473
7554
|
/**
|
|
7474
7555
|
*
|
|
7475
|
-
* @summary
|
|
7476
|
-
* @param {
|
|
7477
|
-
* @param {
|
|
7478
|
-
* @throws {RequiredError}
|
|
7479
|
-
*/
|
|
7480
|
-
async createClubSettings(createClubSettingsRequest: CreateClubSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettings>> {
|
|
7481
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createClubSettings(createClubSettingsRequest, options);
|
|
7482
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7483
|
-
const localVarOperationServerBasePath = operationServerMap['ManagerClubSettingsApi.createClubSettings']?.[localVarOperationServerIndex]?.url;
|
|
7484
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7485
|
-
},
|
|
7486
|
-
/**
|
|
7487
|
-
*
|
|
7488
|
-
* @summary Supprimer les paramètres d\'un club
|
|
7489
|
-
* @param {DeleteClubSettingsRequest} deleteClubSettingsRequest
|
|
7556
|
+
* @summary Supprimer des créneaux pour le club courant sur une plage de dates
|
|
7557
|
+
* @param {string} start Date de début (format ISO)
|
|
7558
|
+
* @param {string} end Date de fin (format ISO)
|
|
7490
7559
|
* @param {*} [options] Override http request option.
|
|
7491
7560
|
* @throws {RequiredError}
|
|
7492
7561
|
*/
|
|
7493
|
-
async
|
|
7494
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7562
|
+
async deleteSlotsByClubInRange(start: string, end: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSlotsByClubInRange200Response>> {
|
|
7563
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSlotsByClubInRange(start, end, options);
|
|
7495
7564
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7496
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
7565
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerClubSlotsApi.deleteSlotsByClubInRange']?.[localVarOperationServerIndex]?.url;
|
|
7497
7566
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7498
7567
|
},
|
|
7499
7568
|
/**
|
|
7500
7569
|
*
|
|
7501
|
-
* @summary
|
|
7502
|
-
* @param {
|
|
7570
|
+
* @summary Récupérer tous les créneaux du club courant
|
|
7571
|
+
* @param {string} [start] Date de début (format ISO)
|
|
7572
|
+
* @param {string} [end] Date de fin (format ISO)
|
|
7503
7573
|
* @param {*} [options] Override http request option.
|
|
7504
7574
|
* @throws {RequiredError}
|
|
7505
7575
|
*/
|
|
7506
|
-
async
|
|
7507
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7576
|
+
async getSlotsByClub(start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SlotsResponse>> {
|
|
7577
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSlotsByClub(start, end, options);
|
|
7508
7578
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7509
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
7579
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerClubSlotsApi.getSlotsByClub']?.[localVarOperationServerIndex]?.url;
|
|
7510
7580
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7511
7581
|
},
|
|
7512
7582
|
}
|
|
7513
7583
|
};
|
|
7514
7584
|
|
|
7515
7585
|
/**
|
|
7516
|
-
*
|
|
7586
|
+
* ManagerClubSlotsApi - factory interface
|
|
7517
7587
|
* @export
|
|
7518
7588
|
*/
|
|
7519
|
-
export const
|
|
7520
|
-
const localVarFp =
|
|
7589
|
+
export const ManagerClubSlotsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7590
|
+
const localVarFp = ManagerClubSlotsApiFp(configuration)
|
|
7521
7591
|
return {
|
|
7522
7592
|
/**
|
|
7523
7593
|
*
|
|
7524
|
-
* @summary
|
|
7525
|
-
* @param {
|
|
7526
|
-
* @param {*} [options] Override http request option.
|
|
7527
|
-
* @throws {RequiredError}
|
|
7528
|
-
*/
|
|
7529
|
-
createClubSettings(requestParameters: ManagerClubSettingsApiCreateClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubSettings> {
|
|
7530
|
-
return localVarFp.createClubSettings(requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
7531
|
-
},
|
|
7532
|
-
/**
|
|
7533
|
-
*
|
|
7534
|
-
* @summary Supprimer les paramètres d\'un club
|
|
7535
|
-
* @param {ManagerClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
|
|
7594
|
+
* @summary Supprimer des créneaux pour le club courant sur une plage de dates
|
|
7595
|
+
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
7536
7596
|
* @param {*} [options] Override http request option.
|
|
7537
7597
|
* @throws {RequiredError}
|
|
7538
7598
|
*/
|
|
7539
|
-
|
|
7540
|
-
return localVarFp.
|
|
7599
|
+
deleteSlotsByClubInRange(requestParameters: ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSlotsByClubInRange200Response> {
|
|
7600
|
+
return localVarFp.deleteSlotsByClubInRange(requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
7541
7601
|
},
|
|
7542
7602
|
/**
|
|
7543
7603
|
*
|
|
7544
|
-
* @summary
|
|
7545
|
-
* @param {
|
|
7604
|
+
* @summary Récupérer tous les créneaux du club courant
|
|
7605
|
+
* @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
|
|
7546
7606
|
* @param {*} [options] Override http request option.
|
|
7547
7607
|
* @throws {RequiredError}
|
|
7548
7608
|
*/
|
|
7549
|
-
|
|
7550
|
-
return localVarFp.
|
|
7609
|
+
getSlotsByClub(requestParameters: ManagerClubSlotsApiGetSlotsByClubRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<SlotsResponse> {
|
|
7610
|
+
return localVarFp.getSlotsByClub(requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
7551
7611
|
},
|
|
7552
7612
|
};
|
|
7553
7613
|
};
|
|
7554
7614
|
|
|
7555
7615
|
/**
|
|
7556
|
-
* Request parameters for
|
|
7616
|
+
* Request parameters for deleteSlotsByClubInRange operation in ManagerClubSlotsApi.
|
|
7557
7617
|
* @export
|
|
7558
|
-
* @interface
|
|
7618
|
+
* @interface ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest
|
|
7559
7619
|
*/
|
|
7560
|
-
export interface
|
|
7620
|
+
export interface ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest {
|
|
7561
7621
|
/**
|
|
7562
|
-
*
|
|
7563
|
-
* @type {
|
|
7564
|
-
* @memberof
|
|
7622
|
+
* Date de début (format ISO)
|
|
7623
|
+
* @type {string}
|
|
7624
|
+
* @memberof ManagerClubSlotsApiDeleteSlotsByClubInRange
|
|
7565
7625
|
*/
|
|
7566
|
-
readonly
|
|
7567
|
-
}
|
|
7626
|
+
readonly start: string
|
|
7568
7627
|
|
|
7569
|
-
/**
|
|
7570
|
-
* Request parameters for deleteClubSettings operation in ManagerClubSettingsApi.
|
|
7571
|
-
* @export
|
|
7572
|
-
* @interface ManagerClubSettingsApiDeleteClubSettingsRequest
|
|
7573
|
-
*/
|
|
7574
|
-
export interface ManagerClubSettingsApiDeleteClubSettingsRequest {
|
|
7575
7628
|
/**
|
|
7576
|
-
*
|
|
7577
|
-
* @type {
|
|
7578
|
-
* @memberof
|
|
7629
|
+
* Date de fin (format ISO)
|
|
7630
|
+
* @type {string}
|
|
7631
|
+
* @memberof ManagerClubSlotsApiDeleteSlotsByClubInRange
|
|
7579
7632
|
*/
|
|
7580
|
-
readonly
|
|
7633
|
+
readonly end: string
|
|
7581
7634
|
}
|
|
7582
7635
|
|
|
7583
7636
|
/**
|
|
7584
|
-
* Request parameters for
|
|
7637
|
+
* Request parameters for getSlotsByClub operation in ManagerClubSlotsApi.
|
|
7585
7638
|
* @export
|
|
7586
|
-
* @interface
|
|
7639
|
+
* @interface ManagerClubSlotsApiGetSlotsByClubRequest
|
|
7587
7640
|
*/
|
|
7588
|
-
export interface
|
|
7641
|
+
export interface ManagerClubSlotsApiGetSlotsByClubRequest {
|
|
7589
7642
|
/**
|
|
7590
|
-
*
|
|
7591
|
-
* @type {
|
|
7592
|
-
* @memberof
|
|
7643
|
+
* Date de début (format ISO)
|
|
7644
|
+
* @type {string}
|
|
7645
|
+
* @memberof ManagerClubSlotsApiGetSlotsByClub
|
|
7646
|
+
*/
|
|
7647
|
+
readonly start?: string
|
|
7648
|
+
|
|
7649
|
+
/**
|
|
7650
|
+
* Date de fin (format ISO)
|
|
7651
|
+
* @type {string}
|
|
7652
|
+
* @memberof ManagerClubSlotsApiGetSlotsByClub
|
|
7593
7653
|
*/
|
|
7594
|
-
readonly
|
|
7654
|
+
readonly end?: string
|
|
7595
7655
|
}
|
|
7596
7656
|
|
|
7597
7657
|
/**
|
|
7598
|
-
*
|
|
7658
|
+
* ManagerClubSlotsApi - object-oriented interface
|
|
7599
7659
|
* @export
|
|
7600
|
-
* @class
|
|
7660
|
+
* @class ManagerClubSlotsApi
|
|
7601
7661
|
* @extends {BaseAPI}
|
|
7602
7662
|
*/
|
|
7603
|
-
export class
|
|
7663
|
+
export class ManagerClubSlotsApi extends BaseAPI {
|
|
7604
7664
|
/**
|
|
7605
7665
|
*
|
|
7606
|
-
* @summary
|
|
7607
|
-
* @param {
|
|
7666
|
+
* @summary Supprimer des créneaux pour le club courant sur une plage de dates
|
|
7667
|
+
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
7608
7668
|
* @param {*} [options] Override http request option.
|
|
7609
7669
|
* @throws {RequiredError}
|
|
7610
|
-
* @memberof
|
|
7611
|
-
*/
|
|
7612
|
-
public createClubSettings(requestParameters: ManagerClubSettingsApiCreateClubSettingsRequest, options?: RawAxiosRequestConfig) {
|
|
7613
|
-
return ManagerClubSettingsApiFp(this.configuration).createClubSettings(requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7614
|
-
}
|
|
7615
|
-
|
|
7616
|
-
/**
|
|
7617
|
-
*
|
|
7618
|
-
* @summary Supprimer les paramètres d\'un club
|
|
7619
|
-
* @param {ManagerClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
|
|
7620
|
-
* @param {*} [options] Override http request option.
|
|
7621
|
-
* @throws {RequiredError}
|
|
7622
|
-
* @memberof ManagerClubSettingsApi
|
|
7623
|
-
*/
|
|
7624
|
-
public deleteClubSettings(requestParameters: ManagerClubSettingsApiDeleteClubSettingsRequest, options?: RawAxiosRequestConfig) {
|
|
7625
|
-
return ManagerClubSettingsApiFp(this.configuration).deleteClubSettings(requestParameters.deleteClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7626
|
-
}
|
|
7627
|
-
|
|
7628
|
-
/**
|
|
7629
|
-
*
|
|
7630
|
-
* @summary Mettre à jour les paramètres d\'un club
|
|
7631
|
-
* @param {ManagerClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
|
|
7632
|
-
* @param {*} [options] Override http request option.
|
|
7633
|
-
* @throws {RequiredError}
|
|
7634
|
-
* @memberof ManagerClubSettingsApi
|
|
7635
|
-
*/
|
|
7636
|
-
public updateClubSettings(requestParameters: ManagerClubSettingsApiUpdateClubSettingsRequest, options?: RawAxiosRequestConfig) {
|
|
7637
|
-
return ManagerClubSettingsApiFp(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7638
|
-
}
|
|
7639
|
-
}
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
/**
|
|
7644
|
-
* ManagerClubSlotsApi - axios parameter creator
|
|
7645
|
-
* @export
|
|
7646
|
-
*/
|
|
7647
|
-
export const ManagerClubSlotsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7648
|
-
return {
|
|
7649
|
-
/**
|
|
7650
|
-
*
|
|
7651
|
-
* @summary Supprimer des créneaux pour le club courant sur une plage de dates
|
|
7652
|
-
* @param {string} start Date de début (format ISO)
|
|
7653
|
-
* @param {string} end Date de fin (format ISO)
|
|
7654
|
-
* @param {*} [options] Override http request option.
|
|
7655
|
-
* @throws {RequiredError}
|
|
7656
|
-
*/
|
|
7657
|
-
deleteSlotsByClubInRange: async (start: string, end: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7658
|
-
// verify required parameter 'start' is not null or undefined
|
|
7659
|
-
assertParamExists('deleteSlotsByClubInRange', 'start', start)
|
|
7660
|
-
// verify required parameter 'end' is not null or undefined
|
|
7661
|
-
assertParamExists('deleteSlotsByClubInRange', 'end', end)
|
|
7662
|
-
const localVarPath = `/api/clubs/slots`;
|
|
7663
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7664
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7665
|
-
let baseOptions;
|
|
7666
|
-
if (configuration) {
|
|
7667
|
-
baseOptions = configuration.baseOptions;
|
|
7668
|
-
}
|
|
7669
|
-
|
|
7670
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
7671
|
-
const localVarHeaderParameter = {} as any;
|
|
7672
|
-
const localVarQueryParameter = {} as any;
|
|
7673
|
-
|
|
7674
|
-
// authentication bearerAuth required
|
|
7675
|
-
// http bearer authentication required
|
|
7676
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7677
|
-
|
|
7678
|
-
if (start !== undefined) {
|
|
7679
|
-
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
7680
|
-
(start as any).toISOString() :
|
|
7681
|
-
start;
|
|
7682
|
-
}
|
|
7683
|
-
|
|
7684
|
-
if (end !== undefined) {
|
|
7685
|
-
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
7686
|
-
(end as any).toISOString() :
|
|
7687
|
-
end;
|
|
7688
|
-
}
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7693
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7694
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7695
|
-
|
|
7696
|
-
return {
|
|
7697
|
-
url: toPathString(localVarUrlObj),
|
|
7698
|
-
options: localVarRequestOptions,
|
|
7699
|
-
};
|
|
7700
|
-
},
|
|
7701
|
-
/**
|
|
7702
|
-
*
|
|
7703
|
-
* @summary Récupérer tous les créneaux du club courant
|
|
7704
|
-
* @param {string} [start] Date de début (format ISO)
|
|
7705
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
7706
|
-
* @param {*} [options] Override http request option.
|
|
7707
|
-
* @throws {RequiredError}
|
|
7708
|
-
*/
|
|
7709
|
-
getSlotsByClub: async (start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7710
|
-
const localVarPath = `/api/clubs/slots`;
|
|
7711
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7712
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7713
|
-
let baseOptions;
|
|
7714
|
-
if (configuration) {
|
|
7715
|
-
baseOptions = configuration.baseOptions;
|
|
7716
|
-
}
|
|
7717
|
-
|
|
7718
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7719
|
-
const localVarHeaderParameter = {} as any;
|
|
7720
|
-
const localVarQueryParameter = {} as any;
|
|
7721
|
-
|
|
7722
|
-
// authentication bearerAuth required
|
|
7723
|
-
// http bearer authentication required
|
|
7724
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7725
|
-
|
|
7726
|
-
if (start !== undefined) {
|
|
7727
|
-
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
7728
|
-
(start as any).toISOString() :
|
|
7729
|
-
start;
|
|
7730
|
-
}
|
|
7731
|
-
|
|
7732
|
-
if (end !== undefined) {
|
|
7733
|
-
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
7734
|
-
(end as any).toISOString() :
|
|
7735
|
-
end;
|
|
7736
|
-
}
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7741
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7742
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7743
|
-
|
|
7744
|
-
return {
|
|
7745
|
-
url: toPathString(localVarUrlObj),
|
|
7746
|
-
options: localVarRequestOptions,
|
|
7747
|
-
};
|
|
7748
|
-
},
|
|
7749
|
-
}
|
|
7750
|
-
};
|
|
7751
|
-
|
|
7752
|
-
/**
|
|
7753
|
-
* ManagerClubSlotsApi - functional programming interface
|
|
7754
|
-
* @export
|
|
7755
|
-
*/
|
|
7756
|
-
export const ManagerClubSlotsApiFp = function(configuration?: Configuration) {
|
|
7757
|
-
const localVarAxiosParamCreator = ManagerClubSlotsApiAxiosParamCreator(configuration)
|
|
7758
|
-
return {
|
|
7759
|
-
/**
|
|
7760
|
-
*
|
|
7761
|
-
* @summary Supprimer des créneaux pour le club courant sur une plage de dates
|
|
7762
|
-
* @param {string} start Date de début (format ISO)
|
|
7763
|
-
* @param {string} end Date de fin (format ISO)
|
|
7764
|
-
* @param {*} [options] Override http request option.
|
|
7765
|
-
* @throws {RequiredError}
|
|
7766
|
-
*/
|
|
7767
|
-
async deleteSlotsByClubInRange(start: string, end: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSlotsByClubInRange200Response>> {
|
|
7768
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSlotsByClubInRange(start, end, options);
|
|
7769
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7770
|
-
const localVarOperationServerBasePath = operationServerMap['ManagerClubSlotsApi.deleteSlotsByClubInRange']?.[localVarOperationServerIndex]?.url;
|
|
7771
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7772
|
-
},
|
|
7773
|
-
/**
|
|
7774
|
-
*
|
|
7775
|
-
* @summary Récupérer tous les créneaux du club courant
|
|
7776
|
-
* @param {string} [start] Date de début (format ISO)
|
|
7777
|
-
* @param {string} [end] Date de fin (format ISO)
|
|
7778
|
-
* @param {*} [options] Override http request option.
|
|
7779
|
-
* @throws {RequiredError}
|
|
7780
|
-
*/
|
|
7781
|
-
async getSlotsByClub(start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SlotsResponse>> {
|
|
7782
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getSlotsByClub(start, end, options);
|
|
7783
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7784
|
-
const localVarOperationServerBasePath = operationServerMap['ManagerClubSlotsApi.getSlotsByClub']?.[localVarOperationServerIndex]?.url;
|
|
7785
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7786
|
-
},
|
|
7787
|
-
}
|
|
7788
|
-
};
|
|
7789
|
-
|
|
7790
|
-
/**
|
|
7791
|
-
* ManagerClubSlotsApi - factory interface
|
|
7792
|
-
* @export
|
|
7793
|
-
*/
|
|
7794
|
-
export const ManagerClubSlotsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7795
|
-
const localVarFp = ManagerClubSlotsApiFp(configuration)
|
|
7796
|
-
return {
|
|
7797
|
-
/**
|
|
7798
|
-
*
|
|
7799
|
-
* @summary Supprimer des créneaux pour le club courant sur une plage de dates
|
|
7800
|
-
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
7801
|
-
* @param {*} [options] Override http request option.
|
|
7802
|
-
* @throws {RequiredError}
|
|
7803
|
-
*/
|
|
7804
|
-
deleteSlotsByClubInRange(requestParameters: ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSlotsByClubInRange200Response> {
|
|
7805
|
-
return localVarFp.deleteSlotsByClubInRange(requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
7806
|
-
},
|
|
7807
|
-
/**
|
|
7808
|
-
*
|
|
7809
|
-
* @summary Récupérer tous les créneaux du club courant
|
|
7810
|
-
* @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
|
|
7811
|
-
* @param {*} [options] Override http request option.
|
|
7812
|
-
* @throws {RequiredError}
|
|
7813
|
-
*/
|
|
7814
|
-
getSlotsByClub(requestParameters: ManagerClubSlotsApiGetSlotsByClubRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<SlotsResponse> {
|
|
7815
|
-
return localVarFp.getSlotsByClub(requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
7816
|
-
},
|
|
7817
|
-
};
|
|
7818
|
-
};
|
|
7819
|
-
|
|
7820
|
-
/**
|
|
7821
|
-
* Request parameters for deleteSlotsByClubInRange operation in ManagerClubSlotsApi.
|
|
7822
|
-
* @export
|
|
7823
|
-
* @interface ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest
|
|
7824
|
-
*/
|
|
7825
|
-
export interface ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest {
|
|
7826
|
-
/**
|
|
7827
|
-
* Date de début (format ISO)
|
|
7828
|
-
* @type {string}
|
|
7829
|
-
* @memberof ManagerClubSlotsApiDeleteSlotsByClubInRange
|
|
7830
|
-
*/
|
|
7831
|
-
readonly start: string
|
|
7832
|
-
|
|
7833
|
-
/**
|
|
7834
|
-
* Date de fin (format ISO)
|
|
7835
|
-
* @type {string}
|
|
7836
|
-
* @memberof ManagerClubSlotsApiDeleteSlotsByClubInRange
|
|
7837
|
-
*/
|
|
7838
|
-
readonly end: string
|
|
7839
|
-
}
|
|
7840
|
-
|
|
7841
|
-
/**
|
|
7842
|
-
* Request parameters for getSlotsByClub operation in ManagerClubSlotsApi.
|
|
7843
|
-
* @export
|
|
7844
|
-
* @interface ManagerClubSlotsApiGetSlotsByClubRequest
|
|
7845
|
-
*/
|
|
7846
|
-
export interface ManagerClubSlotsApiGetSlotsByClubRequest {
|
|
7847
|
-
/**
|
|
7848
|
-
* Date de début (format ISO)
|
|
7849
|
-
* @type {string}
|
|
7850
|
-
* @memberof ManagerClubSlotsApiGetSlotsByClub
|
|
7851
|
-
*/
|
|
7852
|
-
readonly start?: string
|
|
7853
|
-
|
|
7854
|
-
/**
|
|
7855
|
-
* Date de fin (format ISO)
|
|
7856
|
-
* @type {string}
|
|
7857
|
-
* @memberof ManagerClubSlotsApiGetSlotsByClub
|
|
7858
|
-
*/
|
|
7859
|
-
readonly end?: string
|
|
7860
|
-
}
|
|
7861
|
-
|
|
7862
|
-
/**
|
|
7863
|
-
* ManagerClubSlotsApi - object-oriented interface
|
|
7864
|
-
* @export
|
|
7865
|
-
* @class ManagerClubSlotsApi
|
|
7866
|
-
* @extends {BaseAPI}
|
|
7867
|
-
*/
|
|
7868
|
-
export class ManagerClubSlotsApi extends BaseAPI {
|
|
7869
|
-
/**
|
|
7870
|
-
*
|
|
7871
|
-
* @summary Supprimer des créneaux pour le club courant sur une plage de dates
|
|
7872
|
-
* @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
|
|
7873
|
-
* @param {*} [options] Override http request option.
|
|
7874
|
-
* @throws {RequiredError}
|
|
7875
|
-
* @memberof ManagerClubSlotsApi
|
|
7670
|
+
* @memberof ManagerClubSlotsApi
|
|
7876
7671
|
*/
|
|
7877
7672
|
public deleteSlotsByClubInRange(requestParameters: ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest, options?: RawAxiosRequestConfig) {
|
|
7878
7673
|
return ManagerClubSlotsApiFp(this.configuration).deleteSlotsByClubInRange(requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -9632,6 +9427,46 @@ export const StaffClubsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
9632
9427
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9633
9428
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9634
9429
|
|
|
9430
|
+
return {
|
|
9431
|
+
url: toPathString(localVarUrlObj),
|
|
9432
|
+
options: localVarRequestOptions,
|
|
9433
|
+
};
|
|
9434
|
+
},
|
|
9435
|
+
/**
|
|
9436
|
+
*
|
|
9437
|
+
* @summary Récupère les paramètres d’un club
|
|
9438
|
+
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
9439
|
+
* @param {*} [options] Override http request option.
|
|
9440
|
+
* @throws {RequiredError}
|
|
9441
|
+
*/
|
|
9442
|
+
getClubSettings: async (getClubSettingsRequest: GetClubSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9443
|
+
// verify required parameter 'getClubSettingsRequest' is not null or undefined
|
|
9444
|
+
assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest)
|
|
9445
|
+
const localVarPath = `/api/club-settings`;
|
|
9446
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9447
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9448
|
+
let baseOptions;
|
|
9449
|
+
if (configuration) {
|
|
9450
|
+
baseOptions = configuration.baseOptions;
|
|
9451
|
+
}
|
|
9452
|
+
|
|
9453
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9454
|
+
const localVarHeaderParameter = {} as any;
|
|
9455
|
+
const localVarQueryParameter = {} as any;
|
|
9456
|
+
|
|
9457
|
+
// authentication bearerAuth required
|
|
9458
|
+
// http bearer authentication required
|
|
9459
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9460
|
+
|
|
9461
|
+
|
|
9462
|
+
|
|
9463
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9464
|
+
|
|
9465
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9466
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9467
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9468
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration)
|
|
9469
|
+
|
|
9635
9470
|
return {
|
|
9636
9471
|
url: toPathString(localVarUrlObj),
|
|
9637
9472
|
options: localVarRequestOptions,
|
|
@@ -9659,6 +9494,19 @@ export const StaffClubsApiFp = function(configuration?: Configuration) {
|
|
|
9659
9494
|
const localVarOperationServerBasePath = operationServerMap['StaffClubsApi.getClubInfos']?.[localVarOperationServerIndex]?.url;
|
|
9660
9495
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9661
9496
|
},
|
|
9497
|
+
/**
|
|
9498
|
+
*
|
|
9499
|
+
* @summary Récupère les paramètres d’un club
|
|
9500
|
+
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
9501
|
+
* @param {*} [options] Override http request option.
|
|
9502
|
+
* @throws {RequiredError}
|
|
9503
|
+
*/
|
|
9504
|
+
async getClubSettings(getClubSettingsRequest: GetClubSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettings>> {
|
|
9505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
|
|
9506
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9507
|
+
const localVarOperationServerBasePath = operationServerMap['StaffClubsApi.getClubSettings']?.[localVarOperationServerIndex]?.url;
|
|
9508
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9509
|
+
},
|
|
9662
9510
|
}
|
|
9663
9511
|
};
|
|
9664
9512
|
|
|
@@ -9678,9 +9526,33 @@ export const StaffClubsApiFactory = function (configuration?: Configuration, bas
|
|
|
9678
9526
|
getClubInfos(options?: RawAxiosRequestConfig): AxiosPromise<GetClubInfos200Response> {
|
|
9679
9527
|
return localVarFp.getClubInfos(options).then((request) => request(axios, basePath));
|
|
9680
9528
|
},
|
|
9529
|
+
/**
|
|
9530
|
+
*
|
|
9531
|
+
* @summary Récupère les paramètres d’un club
|
|
9532
|
+
* @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
9533
|
+
* @param {*} [options] Override http request option.
|
|
9534
|
+
* @throws {RequiredError}
|
|
9535
|
+
*/
|
|
9536
|
+
getClubSettings(requestParameters: StaffClubsApiGetClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubSettings> {
|
|
9537
|
+
return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
|
|
9538
|
+
},
|
|
9681
9539
|
};
|
|
9682
9540
|
};
|
|
9683
9541
|
|
|
9542
|
+
/**
|
|
9543
|
+
* Request parameters for getClubSettings operation in StaffClubsApi.
|
|
9544
|
+
* @export
|
|
9545
|
+
* @interface StaffClubsApiGetClubSettingsRequest
|
|
9546
|
+
*/
|
|
9547
|
+
export interface StaffClubsApiGetClubSettingsRequest {
|
|
9548
|
+
/**
|
|
9549
|
+
*
|
|
9550
|
+
* @type {GetClubSettingsRequest}
|
|
9551
|
+
* @memberof StaffClubsApiGetClubSettings
|
|
9552
|
+
*/
|
|
9553
|
+
readonly getClubSettingsRequest: GetClubSettingsRequest
|
|
9554
|
+
}
|
|
9555
|
+
|
|
9684
9556
|
/**
|
|
9685
9557
|
* StaffClubsApi - object-oriented interface
|
|
9686
9558
|
* @export
|
|
@@ -9698,6 +9570,18 @@ export class StaffClubsApi extends BaseAPI {
|
|
|
9698
9570
|
public getClubInfos(options?: RawAxiosRequestConfig) {
|
|
9699
9571
|
return StaffClubsApiFp(this.configuration).getClubInfos(options).then((request) => request(this.axios, this.basePath));
|
|
9700
9572
|
}
|
|
9573
|
+
|
|
9574
|
+
/**
|
|
9575
|
+
*
|
|
9576
|
+
* @summary Récupère les paramètres d’un club
|
|
9577
|
+
* @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
9578
|
+
* @param {*} [options] Override http request option.
|
|
9579
|
+
* @throws {RequiredError}
|
|
9580
|
+
* @memberof StaffClubsApi
|
|
9581
|
+
*/
|
|
9582
|
+
public getClubSettings(requestParameters: StaffClubsApiGetClubSettingsRequest, options?: RawAxiosRequestConfig) {
|
|
9583
|
+
return StaffClubsApiFp(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9584
|
+
}
|
|
9701
9585
|
}
|
|
9702
9586
|
|
|
9703
9587
|
|
|
@@ -9813,46 +9697,6 @@ export class StaffProfileApi extends BaseAPI {
|
|
|
9813
9697
|
*/
|
|
9814
9698
|
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
9815
9699
|
return {
|
|
9816
|
-
/**
|
|
9817
|
-
*
|
|
9818
|
-
* @summary Abonne l\'utilisateur connecté à un club
|
|
9819
|
-
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
9820
|
-
* @param {*} [options] Override http request option.
|
|
9821
|
-
* @throws {RequiredError}
|
|
9822
|
-
*/
|
|
9823
|
-
subscribeToClub: async (subscribeToClubRequestBody: SubscribeToClubRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9824
|
-
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
9825
|
-
assertParamExists('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody)
|
|
9826
|
-
const localVarPath = `/api/users/me/subscribe`;
|
|
9827
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9828
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9829
|
-
let baseOptions;
|
|
9830
|
-
if (configuration) {
|
|
9831
|
-
baseOptions = configuration.baseOptions;
|
|
9832
|
-
}
|
|
9833
|
-
|
|
9834
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9835
|
-
const localVarHeaderParameter = {} as any;
|
|
9836
|
-
const localVarQueryParameter = {} as any;
|
|
9837
|
-
|
|
9838
|
-
// authentication bearerAuth required
|
|
9839
|
-
// http bearer authentication required
|
|
9840
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9845
|
-
|
|
9846
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9847
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9848
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9849
|
-
localVarRequestOptions.data = serializeDataIfNeeded(subscribeToClubRequestBody, localVarRequestOptions, configuration)
|
|
9850
|
-
|
|
9851
|
-
return {
|
|
9852
|
-
url: toPathString(localVarUrlObj),
|
|
9853
|
-
options: localVarRequestOptions,
|
|
9854
|
-
};
|
|
9855
|
-
},
|
|
9856
9700
|
/**
|
|
9857
9701
|
*
|
|
9858
9702
|
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
@@ -9903,19 +9747,6 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
9903
9747
|
export const UserApiFp = function(configuration?: Configuration) {
|
|
9904
9748
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
|
9905
9749
|
return {
|
|
9906
|
-
/**
|
|
9907
|
-
*
|
|
9908
|
-
* @summary Abonne l\'utilisateur connecté à un club
|
|
9909
|
-
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
9910
|
-
* @param {*} [options] Override http request option.
|
|
9911
|
-
* @throws {RequiredError}
|
|
9912
|
-
*/
|
|
9913
|
-
async subscribeToClub(subscribeToClubRequestBody: SubscribeToClubRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionResponse>> {
|
|
9914
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
|
|
9915
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9916
|
-
const localVarOperationServerBasePath = operationServerMap['UserApi.subscribeToClub']?.[localVarOperationServerIndex]?.url;
|
|
9917
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9918
|
-
},
|
|
9919
9750
|
/**
|
|
9920
9751
|
*
|
|
9921
9752
|
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
@@ -9939,42 +9770,18 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
9939
9770
|
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
9940
9771
|
const localVarFp = UserApiFp(configuration)
|
|
9941
9772
|
return {
|
|
9942
|
-
/**
|
|
9943
|
-
*
|
|
9944
|
-
* @summary Abonne l\'utilisateur connecté à un club
|
|
9945
|
-
* @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
9946
|
-
* @param {*} [options] Override http request option.
|
|
9947
|
-
* @throws {RequiredError}
|
|
9948
|
-
*/
|
|
9949
|
-
subscribeToClub(requestParameters: UserApiSubscribeToClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionResponse> {
|
|
9950
|
-
return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
|
|
9951
|
-
},
|
|
9952
9773
|
/**
|
|
9953
9774
|
*
|
|
9954
9775
|
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
9955
9776
|
* @param {UserApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
9956
9777
|
* @param {*} [options] Override http request option.
|
|
9957
9778
|
* @throws {RequiredError}
|
|
9958
|
-
*/
|
|
9959
|
-
updateCustomer(requestParameters: UserApiUpdateCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateCustomerResponse> {
|
|
9960
|
-
return localVarFp.updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(axios, basePath));
|
|
9961
|
-
},
|
|
9962
|
-
};
|
|
9963
|
-
};
|
|
9964
|
-
|
|
9965
|
-
/**
|
|
9966
|
-
* Request parameters for subscribeToClub operation in UserApi.
|
|
9967
|
-
* @export
|
|
9968
|
-
* @interface UserApiSubscribeToClubRequest
|
|
9969
|
-
*/
|
|
9970
|
-
export interface UserApiSubscribeToClubRequest {
|
|
9971
|
-
/**
|
|
9972
|
-
*
|
|
9973
|
-
* @type {SubscribeToClubRequestBody}
|
|
9974
|
-
* @memberof UserApiSubscribeToClub
|
|
9975
|
-
*/
|
|
9976
|
-
readonly subscribeToClubRequestBody: SubscribeToClubRequestBody
|
|
9977
|
-
}
|
|
9779
|
+
*/
|
|
9780
|
+
updateCustomer(requestParameters: UserApiUpdateCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateCustomerResponse> {
|
|
9781
|
+
return localVarFp.updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(axios, basePath));
|
|
9782
|
+
},
|
|
9783
|
+
};
|
|
9784
|
+
};
|
|
9978
9785
|
|
|
9979
9786
|
/**
|
|
9980
9787
|
* Request parameters for updateCustomer operation in UserApi.
|
|
@@ -9997,18 +9804,6 @@ export interface UserApiUpdateCustomerRequest {
|
|
|
9997
9804
|
* @extends {BaseAPI}
|
|
9998
9805
|
*/
|
|
9999
9806
|
export class UserApi extends BaseAPI {
|
|
10000
|
-
/**
|
|
10001
|
-
*
|
|
10002
|
-
* @summary Abonne l\'utilisateur connecté à un club
|
|
10003
|
-
* @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
10004
|
-
* @param {*} [options] Override http request option.
|
|
10005
|
-
* @throws {RequiredError}
|
|
10006
|
-
* @memberof UserApi
|
|
10007
|
-
*/
|
|
10008
|
-
public subscribeToClub(requestParameters: UserApiSubscribeToClubRequest, options?: RawAxiosRequestConfig) {
|
|
10009
|
-
return UserApiFp(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10010
|
-
}
|
|
10011
|
-
|
|
10012
9807
|
/**
|
|
10013
9808
|
*
|
|
10014
9809
|
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
@@ -11375,6 +11170,46 @@ export class UserClubsApi extends BaseAPI {
|
|
|
11375
11170
|
*/
|
|
11376
11171
|
export const UserPaymentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
11377
11172
|
return {
|
|
11173
|
+
/**
|
|
11174
|
+
*
|
|
11175
|
+
* @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
|
|
11176
|
+
* @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
|
|
11177
|
+
* @param {*} [options] Override http request option.
|
|
11178
|
+
* @throws {RequiredError}
|
|
11179
|
+
*/
|
|
11180
|
+
addPaymentMethodSetup: async (addPaymentMethodSetupRequestBody: AddPaymentMethodSetupRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11181
|
+
// verify required parameter 'addPaymentMethodSetupRequestBody' is not null or undefined
|
|
11182
|
+
assertParamExists('addPaymentMethodSetup', 'addPaymentMethodSetupRequestBody', addPaymentMethodSetupRequestBody)
|
|
11183
|
+
const localVarPath = `/api/users/addPaymentMethodSetup`;
|
|
11184
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11185
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11186
|
+
let baseOptions;
|
|
11187
|
+
if (configuration) {
|
|
11188
|
+
baseOptions = configuration.baseOptions;
|
|
11189
|
+
}
|
|
11190
|
+
|
|
11191
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11192
|
+
const localVarHeaderParameter = {} as any;
|
|
11193
|
+
const localVarQueryParameter = {} as any;
|
|
11194
|
+
|
|
11195
|
+
// authentication bearerAuth required
|
|
11196
|
+
// http bearer authentication required
|
|
11197
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11198
|
+
|
|
11199
|
+
|
|
11200
|
+
|
|
11201
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11202
|
+
|
|
11203
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11204
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11205
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11206
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodSetupRequestBody, localVarRequestOptions, configuration)
|
|
11207
|
+
|
|
11208
|
+
return {
|
|
11209
|
+
url: toPathString(localVarUrlObj),
|
|
11210
|
+
options: localVarRequestOptions,
|
|
11211
|
+
};
|
|
11212
|
+
},
|
|
11378
11213
|
/**
|
|
11379
11214
|
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
11380
11215
|
* @summary Confirme la configuration d\'une méthode de paiement
|
|
@@ -11465,6 +11300,19 @@ export const UserPaymentApiAxiosParamCreator = function (configuration?: Configu
|
|
|
11465
11300
|
export const UserPaymentApiFp = function(configuration?: Configuration) {
|
|
11466
11301
|
const localVarAxiosParamCreator = UserPaymentApiAxiosParamCreator(configuration)
|
|
11467
11302
|
return {
|
|
11303
|
+
/**
|
|
11304
|
+
*
|
|
11305
|
+
* @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
|
|
11306
|
+
* @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
|
|
11307
|
+
* @param {*} [options] Override http request option.
|
|
11308
|
+
* @throws {RequiredError}
|
|
11309
|
+
*/
|
|
11310
|
+
async addPaymentMethodSetup(addPaymentMethodSetupRequestBody: AddPaymentMethodSetupRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddPaymentMethodSetupResponse>> {
|
|
11311
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodSetupRequestBody, options);
|
|
11312
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11313
|
+
const localVarOperationServerBasePath = operationServerMap['UserPaymentApi.addPaymentMethodSetup']?.[localVarOperationServerIndex]?.url;
|
|
11314
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11315
|
+
},
|
|
11468
11316
|
/**
|
|
11469
11317
|
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
11470
11318
|
* @summary Confirme la configuration d\'une méthode de paiement
|
|
@@ -11501,6 +11349,16 @@ export const UserPaymentApiFp = function(configuration?: Configuration) {
|
|
|
11501
11349
|
export const UserPaymentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
11502
11350
|
const localVarFp = UserPaymentApiFp(configuration)
|
|
11503
11351
|
return {
|
|
11352
|
+
/**
|
|
11353
|
+
*
|
|
11354
|
+
* @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
|
|
11355
|
+
* @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
11356
|
+
* @param {*} [options] Override http request option.
|
|
11357
|
+
* @throws {RequiredError}
|
|
11358
|
+
*/
|
|
11359
|
+
addPaymentMethodSetup(requestParameters: UserPaymentApiAddPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddPaymentMethodSetupResponse> {
|
|
11360
|
+
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
|
|
11361
|
+
},
|
|
11504
11362
|
/**
|
|
11505
11363
|
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
11506
11364
|
* @summary Confirme la configuration d\'une méthode de paiement
|
|
@@ -11524,6 +11382,20 @@ export const UserPaymentApiFactory = function (configuration?: Configuration, ba
|
|
|
11524
11382
|
};
|
|
11525
11383
|
};
|
|
11526
11384
|
|
|
11385
|
+
/**
|
|
11386
|
+
* Request parameters for addPaymentMethodSetup operation in UserPaymentApi.
|
|
11387
|
+
* @export
|
|
11388
|
+
* @interface UserPaymentApiAddPaymentMethodSetupRequest
|
|
11389
|
+
*/
|
|
11390
|
+
export interface UserPaymentApiAddPaymentMethodSetupRequest {
|
|
11391
|
+
/**
|
|
11392
|
+
*
|
|
11393
|
+
* @type {AddPaymentMethodSetupRequestBody}
|
|
11394
|
+
* @memberof UserPaymentApiAddPaymentMethodSetup
|
|
11395
|
+
*/
|
|
11396
|
+
readonly addPaymentMethodSetupRequestBody: AddPaymentMethodSetupRequestBody
|
|
11397
|
+
}
|
|
11398
|
+
|
|
11527
11399
|
/**
|
|
11528
11400
|
* Request parameters for confirmPaymentMethodSetup operation in UserPaymentApi.
|
|
11529
11401
|
* @export
|
|
@@ -11559,6 +11431,18 @@ export interface UserPaymentApiSetupPaymentMethodRequest {
|
|
|
11559
11431
|
* @extends {BaseAPI}
|
|
11560
11432
|
*/
|
|
11561
11433
|
export class UserPaymentApi extends BaseAPI {
|
|
11434
|
+
/**
|
|
11435
|
+
*
|
|
11436
|
+
* @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
|
|
11437
|
+
* @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
11438
|
+
* @param {*} [options] Override http request option.
|
|
11439
|
+
* @throws {RequiredError}
|
|
11440
|
+
* @memberof UserPaymentApi
|
|
11441
|
+
*/
|
|
11442
|
+
public addPaymentMethodSetup(requestParameters: UserPaymentApiAddPaymentMethodSetupRequest, options?: RawAxiosRequestConfig) {
|
|
11443
|
+
return UserPaymentApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
11444
|
+
}
|
|
11445
|
+
|
|
11562
11446
|
/**
|
|
11563
11447
|
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
11564
11448
|
* @summary Confirme la configuration d\'une méthode de paiement
|
|
@@ -11672,6 +11556,40 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
11672
11556
|
|
|
11673
11557
|
|
|
11674
11558
|
|
|
11559
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11560
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11561
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11562
|
+
|
|
11563
|
+
return {
|
|
11564
|
+
url: toPathString(localVarUrlObj),
|
|
11565
|
+
options: localVarRequestOptions,
|
|
11566
|
+
};
|
|
11567
|
+
},
|
|
11568
|
+
/**
|
|
11569
|
+
*
|
|
11570
|
+
* @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
|
|
11571
|
+
* @param {*} [options] Override http request option.
|
|
11572
|
+
* @throws {RequiredError}
|
|
11573
|
+
*/
|
|
11574
|
+
getProfilePicture: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11575
|
+
const localVarPath = `/api/users/me/profile-picture`;
|
|
11576
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11577
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11578
|
+
let baseOptions;
|
|
11579
|
+
if (configuration) {
|
|
11580
|
+
baseOptions = configuration.baseOptions;
|
|
11581
|
+
}
|
|
11582
|
+
|
|
11583
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11584
|
+
const localVarHeaderParameter = {} as any;
|
|
11585
|
+
const localVarQueryParameter = {} as any;
|
|
11586
|
+
|
|
11587
|
+
// authentication bearerAuth required
|
|
11588
|
+
// http bearer authentication required
|
|
11589
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11590
|
+
|
|
11591
|
+
|
|
11592
|
+
|
|
11675
11593
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11676
11594
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11677
11595
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -11715,6 +11633,86 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
11715
11633
|
options: localVarRequestOptions,
|
|
11716
11634
|
};
|
|
11717
11635
|
},
|
|
11636
|
+
/**
|
|
11637
|
+
*
|
|
11638
|
+
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
11639
|
+
* @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
|
|
11640
|
+
* @param {*} [options] Override http request option.
|
|
11641
|
+
* @throws {RequiredError}
|
|
11642
|
+
*/
|
|
11643
|
+
updateLevelBySports: async (updateLevelBySportsRequestBody: UpdateLevelBySportsRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11644
|
+
// verify required parameter 'updateLevelBySportsRequestBody' is not null or undefined
|
|
11645
|
+
assertParamExists('updateLevelBySports', 'updateLevelBySportsRequestBody', updateLevelBySportsRequestBody)
|
|
11646
|
+
const localVarPath = `/api/users/me/level-by-sports`;
|
|
11647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11648
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11649
|
+
let baseOptions;
|
|
11650
|
+
if (configuration) {
|
|
11651
|
+
baseOptions = configuration.baseOptions;
|
|
11652
|
+
}
|
|
11653
|
+
|
|
11654
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
11655
|
+
const localVarHeaderParameter = {} as any;
|
|
11656
|
+
const localVarQueryParameter = {} as any;
|
|
11657
|
+
|
|
11658
|
+
// authentication bearerAuth required
|
|
11659
|
+
// http bearer authentication required
|
|
11660
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11661
|
+
|
|
11662
|
+
|
|
11663
|
+
|
|
11664
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11665
|
+
|
|
11666
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11667
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11668
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11669
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateLevelBySportsRequestBody, localVarRequestOptions, configuration)
|
|
11670
|
+
|
|
11671
|
+
return {
|
|
11672
|
+
url: toPathString(localVarUrlObj),
|
|
11673
|
+
options: localVarRequestOptions,
|
|
11674
|
+
};
|
|
11675
|
+
},
|
|
11676
|
+
/**
|
|
11677
|
+
*
|
|
11678
|
+
* @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
|
|
11679
|
+
* @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
|
|
11680
|
+
* @param {*} [options] Override http request option.
|
|
11681
|
+
* @throws {RequiredError}
|
|
11682
|
+
*/
|
|
11683
|
+
updateProfilePicture: async (updateProfilePictureRequestBody: UpdateProfilePictureRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11684
|
+
// verify required parameter 'updateProfilePictureRequestBody' is not null or undefined
|
|
11685
|
+
assertParamExists('updateProfilePicture', 'updateProfilePictureRequestBody', updateProfilePictureRequestBody)
|
|
11686
|
+
const localVarPath = `/api/users/me/profile-picture`;
|
|
11687
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11688
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11689
|
+
let baseOptions;
|
|
11690
|
+
if (configuration) {
|
|
11691
|
+
baseOptions = configuration.baseOptions;
|
|
11692
|
+
}
|
|
11693
|
+
|
|
11694
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
11695
|
+
const localVarHeaderParameter = {} as any;
|
|
11696
|
+
const localVarQueryParameter = {} as any;
|
|
11697
|
+
|
|
11698
|
+
// authentication bearerAuth required
|
|
11699
|
+
// http bearer authentication required
|
|
11700
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11701
|
+
|
|
11702
|
+
|
|
11703
|
+
|
|
11704
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11705
|
+
|
|
11706
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11707
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11708
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11709
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateProfilePictureRequestBody, localVarRequestOptions, configuration)
|
|
11710
|
+
|
|
11711
|
+
return {
|
|
11712
|
+
url: toPathString(localVarUrlObj),
|
|
11713
|
+
options: localVarRequestOptions,
|
|
11714
|
+
};
|
|
11715
|
+
},
|
|
11718
11716
|
/**
|
|
11719
11717
|
*
|
|
11720
11718
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -11793,6 +11791,18 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
11793
11791
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getAllUsers']?.[localVarOperationServerIndex]?.url;
|
|
11794
11792
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11795
11793
|
},
|
|
11794
|
+
/**
|
|
11795
|
+
*
|
|
11796
|
+
* @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
|
|
11797
|
+
* @param {*} [options] Override http request option.
|
|
11798
|
+
* @throws {RequiredError}
|
|
11799
|
+
*/
|
|
11800
|
+
async getProfilePicture(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfilePictureResponse>> {
|
|
11801
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProfilePicture(options);
|
|
11802
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11803
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getProfilePicture']?.[localVarOperationServerIndex]?.url;
|
|
11804
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11805
|
+
},
|
|
11796
11806
|
/**
|
|
11797
11807
|
*
|
|
11798
11808
|
* @summary Récupère les informations de l\'utilisateur connecté
|
|
@@ -11805,6 +11815,32 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
11805
11815
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getUserInfo']?.[localVarOperationServerIndex]?.url;
|
|
11806
11816
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11807
11817
|
},
|
|
11818
|
+
/**
|
|
11819
|
+
*
|
|
11820
|
+
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
11821
|
+
* @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
|
|
11822
|
+
* @param {*} [options] Override http request option.
|
|
11823
|
+
* @throws {RequiredError}
|
|
11824
|
+
*/
|
|
11825
|
+
async updateLevelBySports(updateLevelBySportsRequestBody: UpdateLevelBySportsRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponse>> {
|
|
11826
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLevelBySports(updateLevelBySportsRequestBody, options);
|
|
11827
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11828
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.updateLevelBySports']?.[localVarOperationServerIndex]?.url;
|
|
11829
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11830
|
+
},
|
|
11831
|
+
/**
|
|
11832
|
+
*
|
|
11833
|
+
* @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
|
|
11834
|
+
* @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
|
|
11835
|
+
* @param {*} [options] Override http request option.
|
|
11836
|
+
* @throws {RequiredError}
|
|
11837
|
+
*/
|
|
11838
|
+
async updateProfilePicture(updateProfilePictureRequestBody: UpdateProfilePictureRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfilePictureResponse>> {
|
|
11839
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProfilePicture(updateProfilePictureRequestBody, options);
|
|
11840
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11841
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.updateProfilePicture']?.[localVarOperationServerIndex]?.url;
|
|
11842
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11843
|
+
},
|
|
11808
11844
|
/**
|
|
11809
11845
|
*
|
|
11810
11846
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -11848,6 +11884,15 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
11848
11884
|
getAllUsers(requestParameters: UserProfileApiGetAllUsersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserResponse>> {
|
|
11849
11885
|
return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
11850
11886
|
},
|
|
11887
|
+
/**
|
|
11888
|
+
*
|
|
11889
|
+
* @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
|
|
11890
|
+
* @param {*} [options] Override http request option.
|
|
11891
|
+
* @throws {RequiredError}
|
|
11892
|
+
*/
|
|
11893
|
+
getProfilePicture(options?: RawAxiosRequestConfig): AxiosPromise<ProfilePictureResponse> {
|
|
11894
|
+
return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
|
|
11895
|
+
},
|
|
11851
11896
|
/**
|
|
11852
11897
|
*
|
|
11853
11898
|
* @summary Récupère les informations de l\'utilisateur connecté
|
|
@@ -11857,6 +11902,26 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
11857
11902
|
getUserInfo(options?: RawAxiosRequestConfig): AxiosPromise<UserResponse> {
|
|
11858
11903
|
return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
|
|
11859
11904
|
},
|
|
11905
|
+
/**
|
|
11906
|
+
*
|
|
11907
|
+
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
11908
|
+
* @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
|
|
11909
|
+
* @param {*} [options] Override http request option.
|
|
11910
|
+
* @throws {RequiredError}
|
|
11911
|
+
*/
|
|
11912
|
+
updateLevelBySports(requestParameters: UserProfileApiUpdateLevelBySportsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserResponse> {
|
|
11913
|
+
return localVarFp.updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(axios, basePath));
|
|
11914
|
+
},
|
|
11915
|
+
/**
|
|
11916
|
+
*
|
|
11917
|
+
* @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
|
|
11918
|
+
* @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
|
|
11919
|
+
* @param {*} [options] Override http request option.
|
|
11920
|
+
* @throws {RequiredError}
|
|
11921
|
+
*/
|
|
11922
|
+
updateProfilePicture(requestParameters: UserProfileApiUpdateProfilePictureRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProfilePictureResponse> {
|
|
11923
|
+
return localVarFp.updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(axios, basePath));
|
|
11924
|
+
},
|
|
11860
11925
|
/**
|
|
11861
11926
|
*
|
|
11862
11927
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -11912,6 +11977,34 @@ export interface UserProfileApiGetAllUsersRequest {
|
|
|
11912
11977
|
readonly search?: string
|
|
11913
11978
|
}
|
|
11914
11979
|
|
|
11980
|
+
/**
|
|
11981
|
+
* Request parameters for updateLevelBySports operation in UserProfileApi.
|
|
11982
|
+
* @export
|
|
11983
|
+
* @interface UserProfileApiUpdateLevelBySportsRequest
|
|
11984
|
+
*/
|
|
11985
|
+
export interface UserProfileApiUpdateLevelBySportsRequest {
|
|
11986
|
+
/**
|
|
11987
|
+
*
|
|
11988
|
+
* @type {UpdateLevelBySportsRequestBody}
|
|
11989
|
+
* @memberof UserProfileApiUpdateLevelBySports
|
|
11990
|
+
*/
|
|
11991
|
+
readonly updateLevelBySportsRequestBody: UpdateLevelBySportsRequestBody
|
|
11992
|
+
}
|
|
11993
|
+
|
|
11994
|
+
/**
|
|
11995
|
+
* Request parameters for updateProfilePicture operation in UserProfileApi.
|
|
11996
|
+
* @export
|
|
11997
|
+
* @interface UserProfileApiUpdateProfilePictureRequest
|
|
11998
|
+
*/
|
|
11999
|
+
export interface UserProfileApiUpdateProfilePictureRequest {
|
|
12000
|
+
/**
|
|
12001
|
+
*
|
|
12002
|
+
* @type {UpdateProfilePictureRequestBody}
|
|
12003
|
+
* @memberof UserProfileApiUpdateProfilePicture
|
|
12004
|
+
*/
|
|
12005
|
+
readonly updateProfilePictureRequestBody: UpdateProfilePictureRequestBody
|
|
12006
|
+
}
|
|
12007
|
+
|
|
11915
12008
|
/**
|
|
11916
12009
|
* Request parameters for updateUser operation in UserProfileApi.
|
|
11917
12010
|
* @export
|
|
@@ -11957,6 +12050,17 @@ export class UserProfileApi extends BaseAPI {
|
|
|
11957
12050
|
return UserProfileApiFp(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
11958
12051
|
}
|
|
11959
12052
|
|
|
12053
|
+
/**
|
|
12054
|
+
*
|
|
12055
|
+
* @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
|
|
12056
|
+
* @param {*} [options] Override http request option.
|
|
12057
|
+
* @throws {RequiredError}
|
|
12058
|
+
* @memberof UserProfileApi
|
|
12059
|
+
*/
|
|
12060
|
+
public getProfilePicture(options?: RawAxiosRequestConfig) {
|
|
12061
|
+
return UserProfileApiFp(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
|
|
12062
|
+
}
|
|
12063
|
+
|
|
11960
12064
|
/**
|
|
11961
12065
|
*
|
|
11962
12066
|
* @summary Récupère les informations de l\'utilisateur connecté
|
|
@@ -11968,6 +12072,30 @@ export class UserProfileApi extends BaseAPI {
|
|
|
11968
12072
|
return UserProfileApiFp(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
|
|
11969
12073
|
}
|
|
11970
12074
|
|
|
12075
|
+
/**
|
|
12076
|
+
*
|
|
12077
|
+
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
12078
|
+
* @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
|
|
12079
|
+
* @param {*} [options] Override http request option.
|
|
12080
|
+
* @throws {RequiredError}
|
|
12081
|
+
* @memberof UserProfileApi
|
|
12082
|
+
*/
|
|
12083
|
+
public updateLevelBySports(requestParameters: UserProfileApiUpdateLevelBySportsRequest, options?: RawAxiosRequestConfig) {
|
|
12084
|
+
return UserProfileApiFp(this.configuration).updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
12085
|
+
}
|
|
12086
|
+
|
|
12087
|
+
/**
|
|
12088
|
+
*
|
|
12089
|
+
* @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
|
|
12090
|
+
* @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
|
|
12091
|
+
* @param {*} [options] Override http request option.
|
|
12092
|
+
* @throws {RequiredError}
|
|
12093
|
+
* @memberof UserProfileApi
|
|
12094
|
+
*/
|
|
12095
|
+
public updateProfilePicture(requestParameters: UserProfileApiUpdateProfilePictureRequest, options?: RawAxiosRequestConfig) {
|
|
12096
|
+
return UserProfileApiFp(this.configuration).updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
12097
|
+
}
|
|
12098
|
+
|
|
11971
12099
|
/**
|
|
11972
12100
|
*
|
|
11973
12101
|
* @summary Met à jour les données de l\'utilisateur connecté
|