@tennac-booking/sdk 1.0.12 → 1.0.13
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 +16 -1
- package/README.md +26 -2
- package/api.ts +1471 -95
- package/dist/api.d.ts +990 -54
- package/dist/api.js +711 -12
- package/dist/esm/api.d.ts +990 -54
- package/dist/esm/api.js +710 -11
- package/docs/ActiveClub.md +22 -0
- package/docs/ActiveClubListResponse.md +20 -0
- package/docs/ClubSlotsApi.md +53 -0
- package/docs/ClubsApi.md +46 -0
- package/docs/GetActiveClubs200Response.md +20 -0
- package/docs/{GetUserRolesInClubs200Response.md → GetUserRolesResponse.md} +4 -4
- package/docs/GetUserRolesResponseRolesInner.md +28 -0
- package/docs/GetUserSubscriptionsResponse.md +22 -0
- package/docs/GoogleSignInRequestBody.md +20 -0
- package/docs/GoogleSignInResponse.md +30 -0
- package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
- package/docs/InitiateSubscriptionSessionResponse.md +22 -0
- package/docs/SubscribeToClubRequestBody.md +22 -0
- package/docs/SubscriptionResponse.md +36 -0
- package/docs/UpdateCustomerRequestBody.md +26 -0
- package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
- package/docs/UpdateCustomerResponse.md +22 -0
- package/docs/UpdateCustomerResponseCustomer.md +28 -0
- package/docs/UsersApi.md +428 -5
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -23,6 +23,38 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface ActiveClub
|
|
30
|
+
*/
|
|
31
|
+
export interface ActiveClub {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ActiveClub
|
|
36
|
+
*/
|
|
37
|
+
'_id'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ActiveClub
|
|
42
|
+
*/
|
|
43
|
+
'name'?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface ActiveClubListResponse
|
|
49
|
+
*/
|
|
50
|
+
export interface ActiveClubListResponse {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<ActiveClub>}
|
|
54
|
+
* @memberof ActiveClubListResponse
|
|
55
|
+
*/
|
|
56
|
+
'clubs'?: Array<ActiveClub>;
|
|
57
|
+
}
|
|
26
58
|
/**
|
|
27
59
|
*
|
|
28
60
|
* @export
|
|
@@ -1237,6 +1269,19 @@ export interface GenerateSlotsForNextThreeWeeks201Response {
|
|
|
1237
1269
|
*/
|
|
1238
1270
|
'message'?: string;
|
|
1239
1271
|
}
|
|
1272
|
+
/**
|
|
1273
|
+
*
|
|
1274
|
+
* @export
|
|
1275
|
+
* @interface GetActiveClubs200Response
|
|
1276
|
+
*/
|
|
1277
|
+
export interface GetActiveClubs200Response {
|
|
1278
|
+
/**
|
|
1279
|
+
*
|
|
1280
|
+
* @type {Array<ActiveClub>}
|
|
1281
|
+
* @memberof GetActiveClubs200Response
|
|
1282
|
+
*/
|
|
1283
|
+
'clubs'?: Array<ActiveClub>;
|
|
1284
|
+
}
|
|
1240
1285
|
/**
|
|
1241
1286
|
*
|
|
1242
1287
|
* @export
|
|
@@ -1266,15 +1311,177 @@ export interface GetClubSettingsRequest {
|
|
|
1266
1311
|
/**
|
|
1267
1312
|
*
|
|
1268
1313
|
* @export
|
|
1269
|
-
* @interface
|
|
1314
|
+
* @interface GetUserRolesResponse
|
|
1315
|
+
*/
|
|
1316
|
+
export interface GetUserRolesResponse {
|
|
1317
|
+
/**
|
|
1318
|
+
*
|
|
1319
|
+
* @type {Array<GetUserRolesResponseRolesInner>}
|
|
1320
|
+
* @memberof GetUserRolesResponse
|
|
1321
|
+
*/
|
|
1322
|
+
'roles'?: Array<GetUserRolesResponseRolesInner>;
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
*
|
|
1326
|
+
* @export
|
|
1327
|
+
* @interface GetUserRolesResponseRolesInner
|
|
1328
|
+
*/
|
|
1329
|
+
export interface GetUserRolesResponseRolesInner {
|
|
1330
|
+
/**
|
|
1331
|
+
* ID du club
|
|
1332
|
+
* @type {string}
|
|
1333
|
+
* @memberof GetUserRolesResponseRolesInner
|
|
1334
|
+
*/
|
|
1335
|
+
'clubId'?: string;
|
|
1336
|
+
/**
|
|
1337
|
+
* Nom du club
|
|
1338
|
+
* @type {string}
|
|
1339
|
+
* @memberof GetUserRolesResponseRolesInner
|
|
1340
|
+
*/
|
|
1341
|
+
'clubName'?: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* ID du rôle
|
|
1344
|
+
* @type {string}
|
|
1345
|
+
* @memberof GetUserRolesResponseRolesInner
|
|
1346
|
+
*/
|
|
1347
|
+
'roleId'?: string;
|
|
1348
|
+
/**
|
|
1349
|
+
* Nom du rôle
|
|
1350
|
+
* @type {string}
|
|
1351
|
+
* @memberof GetUserRolesResponseRolesInner
|
|
1352
|
+
*/
|
|
1353
|
+
'roleName'?: string;
|
|
1354
|
+
/**
|
|
1355
|
+
* Permissions associées au rôle
|
|
1356
|
+
* @type {Array<string>}
|
|
1357
|
+
* @memberof GetUserRolesResponseRolesInner
|
|
1358
|
+
*/
|
|
1359
|
+
'permissions'?: Array<string>;
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
*
|
|
1363
|
+
* @export
|
|
1364
|
+
* @interface GetUserSubscriptionsResponse
|
|
1365
|
+
*/
|
|
1366
|
+
export interface GetUserSubscriptionsResponse {
|
|
1367
|
+
/**
|
|
1368
|
+
*
|
|
1369
|
+
* @type {Array<SubscriptionResponse>}
|
|
1370
|
+
* @memberof GetUserSubscriptionsResponse
|
|
1371
|
+
*/
|
|
1372
|
+
'subscriptions'?: Array<SubscriptionResponse>;
|
|
1373
|
+
/**
|
|
1374
|
+
* Nombre total d\'abonnements
|
|
1375
|
+
* @type {number}
|
|
1376
|
+
* @memberof GetUserSubscriptionsResponse
|
|
1377
|
+
*/
|
|
1378
|
+
'total'?: number;
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
*
|
|
1382
|
+
* @export
|
|
1383
|
+
* @interface GoogleSignInRequestBody
|
|
1384
|
+
*/
|
|
1385
|
+
export interface GoogleSignInRequestBody {
|
|
1386
|
+
/**
|
|
1387
|
+
* Token JWT Google
|
|
1388
|
+
* @type {string}
|
|
1389
|
+
* @memberof GoogleSignInRequestBody
|
|
1390
|
+
*/
|
|
1391
|
+
'credential': string;
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
*
|
|
1395
|
+
* @export
|
|
1396
|
+
* @interface GoogleSignInResponse
|
|
1270
1397
|
*/
|
|
1271
|
-
export interface
|
|
1398
|
+
export interface GoogleSignInResponse {
|
|
1399
|
+
/**
|
|
1400
|
+
* Token d\'accès JWT
|
|
1401
|
+
* @type {string}
|
|
1402
|
+
* @memberof GoogleSignInResponse
|
|
1403
|
+
*/
|
|
1404
|
+
'token'?: string;
|
|
1405
|
+
/**
|
|
1406
|
+
* Token de rafraîchissement
|
|
1407
|
+
* @type {string}
|
|
1408
|
+
* @memberof GoogleSignInResponse
|
|
1409
|
+
*/
|
|
1410
|
+
'refreshToken'?: string;
|
|
1411
|
+
/**
|
|
1412
|
+
* Durée de la session en secondes
|
|
1413
|
+
* @type {number}
|
|
1414
|
+
* @memberof GoogleSignInResponse
|
|
1415
|
+
*/
|
|
1416
|
+
'sessionDuration'?: number;
|
|
1417
|
+
/**
|
|
1418
|
+
* Timestamp de fin de session
|
|
1419
|
+
* @type {number}
|
|
1420
|
+
* @memberof GoogleSignInResponse
|
|
1421
|
+
*/
|
|
1422
|
+
'sessionEnd'?: number;
|
|
1272
1423
|
/**
|
|
1273
1424
|
*
|
|
1274
|
-
* @type {
|
|
1275
|
-
* @memberof
|
|
1425
|
+
* @type {UserResponse}
|
|
1426
|
+
* @memberof GoogleSignInResponse
|
|
1427
|
+
*/
|
|
1428
|
+
'user'?: UserResponse;
|
|
1429
|
+
/**
|
|
1430
|
+
* Indique si c\'est un nouvel utilisateur
|
|
1431
|
+
* @type {boolean}
|
|
1432
|
+
* @memberof GoogleSignInResponse
|
|
1433
|
+
*/
|
|
1434
|
+
'isNewUser'?: boolean;
|
|
1435
|
+
}
|
|
1436
|
+
/**
|
|
1437
|
+
*
|
|
1438
|
+
* @export
|
|
1439
|
+
* @interface InitiateSubscriptionSessionRequestBody
|
|
1440
|
+
*/
|
|
1441
|
+
export interface InitiateSubscriptionSessionRequestBody {
|
|
1442
|
+
/**
|
|
1443
|
+
* ID du club
|
|
1444
|
+
* @type {string}
|
|
1445
|
+
* @memberof InitiateSubscriptionSessionRequestBody
|
|
1446
|
+
*/
|
|
1447
|
+
'clubId': string;
|
|
1448
|
+
/**
|
|
1449
|
+
* ID du prix d\'abonnement
|
|
1450
|
+
* @type {string}
|
|
1451
|
+
* @memberof InitiateSubscriptionSessionRequestBody
|
|
1452
|
+
*/
|
|
1453
|
+
'priceId': string;
|
|
1454
|
+
/**
|
|
1455
|
+
* URL de redirection en cas de succès
|
|
1456
|
+
* @type {string}
|
|
1457
|
+
* @memberof InitiateSubscriptionSessionRequestBody
|
|
1458
|
+
*/
|
|
1459
|
+
'successUrl'?: string;
|
|
1460
|
+
/**
|
|
1461
|
+
* URL de redirection en cas d\'annulation
|
|
1462
|
+
* @type {string}
|
|
1463
|
+
* @memberof InitiateSubscriptionSessionRequestBody
|
|
1464
|
+
*/
|
|
1465
|
+
'cancelUrl'?: string;
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
*
|
|
1469
|
+
* @export
|
|
1470
|
+
* @interface InitiateSubscriptionSessionResponse
|
|
1471
|
+
*/
|
|
1472
|
+
export interface InitiateSubscriptionSessionResponse {
|
|
1473
|
+
/**
|
|
1474
|
+
* ID de la session Stripe
|
|
1475
|
+
* @type {string}
|
|
1476
|
+
* @memberof InitiateSubscriptionSessionResponse
|
|
1477
|
+
*/
|
|
1478
|
+
'sessionId'?: string;
|
|
1479
|
+
/**
|
|
1480
|
+
* URL de la session de paiement
|
|
1481
|
+
* @type {string}
|
|
1482
|
+
* @memberof InitiateSubscriptionSessionResponse
|
|
1276
1483
|
*/
|
|
1277
|
-
'
|
|
1484
|
+
'url'?: string;
|
|
1278
1485
|
}
|
|
1279
1486
|
/**
|
|
1280
1487
|
*
|
|
@@ -1820,6 +2027,25 @@ export const StripeStatus = {
|
|
|
1820
2027
|
export type StripeStatus = typeof StripeStatus[keyof typeof StripeStatus];
|
|
1821
2028
|
|
|
1822
2029
|
|
|
2030
|
+
/**
|
|
2031
|
+
*
|
|
2032
|
+
* @export
|
|
2033
|
+
* @interface SubscribeToClubRequestBody
|
|
2034
|
+
*/
|
|
2035
|
+
export interface SubscribeToClubRequestBody {
|
|
2036
|
+
/**
|
|
2037
|
+
* ID du club
|
|
2038
|
+
* @type {string}
|
|
2039
|
+
* @memberof SubscribeToClubRequestBody
|
|
2040
|
+
*/
|
|
2041
|
+
'clubId': string;
|
|
2042
|
+
/**
|
|
2043
|
+
* ID du rôle dans le club
|
|
2044
|
+
* @type {string}
|
|
2045
|
+
* @memberof SubscribeToClubRequestBody
|
|
2046
|
+
*/
|
|
2047
|
+
'roleId': string;
|
|
2048
|
+
}
|
|
1823
2049
|
/**
|
|
1824
2050
|
*
|
|
1825
2051
|
* @export
|
|
@@ -1942,6 +2168,80 @@ export interface SubscriptionPlanResponse {
|
|
|
1942
2168
|
*/
|
|
1943
2169
|
'prices'?: Array<PriceResponse>;
|
|
1944
2170
|
}
|
|
2171
|
+
/**
|
|
2172
|
+
*
|
|
2173
|
+
* @export
|
|
2174
|
+
* @interface SubscriptionResponse
|
|
2175
|
+
*/
|
|
2176
|
+
export interface SubscriptionResponse {
|
|
2177
|
+
/**
|
|
2178
|
+
* ID de l\'abonnement
|
|
2179
|
+
* @type {string}
|
|
2180
|
+
* @memberof SubscriptionResponse
|
|
2181
|
+
*/
|
|
2182
|
+
'id'?: string;
|
|
2183
|
+
/**
|
|
2184
|
+
* ID de l\'utilisateur
|
|
2185
|
+
* @type {string}
|
|
2186
|
+
* @memberof SubscriptionResponse
|
|
2187
|
+
*/
|
|
2188
|
+
'userId'?: string;
|
|
2189
|
+
/**
|
|
2190
|
+
* ID du club
|
|
2191
|
+
* @type {string}
|
|
2192
|
+
* @memberof SubscriptionResponse
|
|
2193
|
+
*/
|
|
2194
|
+
'clubId'?: string;
|
|
2195
|
+
/**
|
|
2196
|
+
* ID de l\'abonnement Stripe
|
|
2197
|
+
* @type {string}
|
|
2198
|
+
* @memberof SubscriptionResponse
|
|
2199
|
+
*/
|
|
2200
|
+
'stripeSubscriptionId'?: string;
|
|
2201
|
+
/**
|
|
2202
|
+
* Statut de l\'abonnement
|
|
2203
|
+
* @type {string}
|
|
2204
|
+
* @memberof SubscriptionResponse
|
|
2205
|
+
*/
|
|
2206
|
+
'status'?: SubscriptionResponseStatusEnum;
|
|
2207
|
+
/**
|
|
2208
|
+
* Début de la période courante
|
|
2209
|
+
* @type {string}
|
|
2210
|
+
* @memberof SubscriptionResponse
|
|
2211
|
+
*/
|
|
2212
|
+
'currentPeriodStart'?: string;
|
|
2213
|
+
/**
|
|
2214
|
+
* Fin de la période courante
|
|
2215
|
+
* @type {string}
|
|
2216
|
+
* @memberof SubscriptionResponse
|
|
2217
|
+
*/
|
|
2218
|
+
'currentPeriodEnd'?: string;
|
|
2219
|
+
/**
|
|
2220
|
+
*
|
|
2221
|
+
* @type {string}
|
|
2222
|
+
* @memberof SubscriptionResponse
|
|
2223
|
+
*/
|
|
2224
|
+
'createdAt'?: string;
|
|
2225
|
+
/**
|
|
2226
|
+
*
|
|
2227
|
+
* @type {string}
|
|
2228
|
+
* @memberof SubscriptionResponse
|
|
2229
|
+
*/
|
|
2230
|
+
'updatedAt'?: string;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
export const SubscriptionResponseStatusEnum = {
|
|
2234
|
+
Active: 'active',
|
|
2235
|
+
Canceled: 'canceled',
|
|
2236
|
+
Incomplete: 'incomplete',
|
|
2237
|
+
IncompleteExpired: 'incomplete_expired',
|
|
2238
|
+
PastDue: 'past_due',
|
|
2239
|
+
Trialing: 'trialing',
|
|
2240
|
+
Unpaid: 'unpaid'
|
|
2241
|
+
} as const;
|
|
2242
|
+
|
|
2243
|
+
export type SubscriptionResponseStatusEnum = typeof SubscriptionResponseStatusEnum[keyof typeof SubscriptionResponseStatusEnum];
|
|
2244
|
+
|
|
1945
2245
|
/**
|
|
1946
2246
|
*
|
|
1947
2247
|
* @export
|
|
@@ -2043,100 +2343,230 @@ export interface UpdateClubRoleRequestBody {
|
|
|
2043
2343
|
/**
|
|
2044
2344
|
*
|
|
2045
2345
|
* @export
|
|
2046
|
-
* @interface
|
|
2346
|
+
* @interface UpdateCustomerRequestBody
|
|
2047
2347
|
*/
|
|
2048
|
-
export interface
|
|
2348
|
+
export interface UpdateCustomerRequestBody {
|
|
2049
2349
|
/**
|
|
2050
|
-
*
|
|
2350
|
+
* Nom du client
|
|
2051
2351
|
* @type {string}
|
|
2052
|
-
* @memberof
|
|
2352
|
+
* @memberof UpdateCustomerRequestBody
|
|
2053
2353
|
*/
|
|
2054
|
-
'
|
|
2354
|
+
'name'?: string;
|
|
2355
|
+
/**
|
|
2356
|
+
* Email du client
|
|
2357
|
+
* @type {string}
|
|
2358
|
+
* @memberof UpdateCustomerRequestBody
|
|
2359
|
+
*/
|
|
2360
|
+
'email'?: string;
|
|
2361
|
+
/**
|
|
2362
|
+
* Téléphone du client
|
|
2363
|
+
* @type {string}
|
|
2364
|
+
* @memberof UpdateCustomerRequestBody
|
|
2365
|
+
*/
|
|
2366
|
+
'phone'?: string;
|
|
2367
|
+
/**
|
|
2368
|
+
*
|
|
2369
|
+
* @type {UpdateCustomerRequestBodyAddress}
|
|
2370
|
+
* @memberof UpdateCustomerRequestBody
|
|
2371
|
+
*/
|
|
2372
|
+
'address'?: UpdateCustomerRequestBodyAddress;
|
|
2055
2373
|
}
|
|
2056
2374
|
/**
|
|
2057
2375
|
*
|
|
2058
2376
|
* @export
|
|
2059
|
-
* @interface
|
|
2377
|
+
* @interface UpdateCustomerRequestBodyAddress
|
|
2060
2378
|
*/
|
|
2061
|
-
export interface
|
|
2379
|
+
export interface UpdateCustomerRequestBodyAddress {
|
|
2062
2380
|
/**
|
|
2063
2381
|
*
|
|
2064
2382
|
* @type {string}
|
|
2065
|
-
* @memberof
|
|
2383
|
+
* @memberof UpdateCustomerRequestBodyAddress
|
|
2066
2384
|
*/
|
|
2067
|
-
'
|
|
2385
|
+
'line1'?: string;
|
|
2068
2386
|
/**
|
|
2069
2387
|
*
|
|
2070
2388
|
* @type {string}
|
|
2071
|
-
* @memberof
|
|
2389
|
+
* @memberof UpdateCustomerRequestBodyAddress
|
|
2072
2390
|
*/
|
|
2073
|
-
'
|
|
2391
|
+
'line2'?: string;
|
|
2074
2392
|
/**
|
|
2075
2393
|
*
|
|
2076
|
-
* @type {
|
|
2077
|
-
* @memberof
|
|
2394
|
+
* @type {string}
|
|
2395
|
+
* @memberof UpdateCustomerRequestBodyAddress
|
|
2078
2396
|
*/
|
|
2079
|
-
'
|
|
2397
|
+
'city'?: string;
|
|
2398
|
+
/**
|
|
2399
|
+
*
|
|
2400
|
+
* @type {string}
|
|
2401
|
+
* @memberof UpdateCustomerRequestBodyAddress
|
|
2402
|
+
*/
|
|
2403
|
+
'state'?: string;
|
|
2404
|
+
/**
|
|
2405
|
+
*
|
|
2406
|
+
* @type {string}
|
|
2407
|
+
* @memberof UpdateCustomerRequestBodyAddress
|
|
2408
|
+
*/
|
|
2409
|
+
'postal_code'?: string;
|
|
2410
|
+
/**
|
|
2411
|
+
*
|
|
2412
|
+
* @type {string}
|
|
2413
|
+
* @memberof UpdateCustomerRequestBodyAddress
|
|
2414
|
+
*/
|
|
2415
|
+
'country'?: string;
|
|
2080
2416
|
}
|
|
2081
2417
|
/**
|
|
2082
2418
|
*
|
|
2083
2419
|
* @export
|
|
2084
|
-
* @interface
|
|
2420
|
+
* @interface UpdateCustomerResponse
|
|
2085
2421
|
*/
|
|
2086
|
-
export interface
|
|
2422
|
+
export interface UpdateCustomerResponse {
|
|
2087
2423
|
/**
|
|
2088
|
-
*
|
|
2424
|
+
* Message de confirmation
|
|
2089
2425
|
* @type {string}
|
|
2090
|
-
* @memberof
|
|
2426
|
+
* @memberof UpdateCustomerResponse
|
|
2091
2427
|
*/
|
|
2092
2428
|
'message'?: string;
|
|
2093
2429
|
/**
|
|
2094
2430
|
*
|
|
2095
|
-
* @type {
|
|
2096
|
-
* @memberof
|
|
2431
|
+
* @type {UpdateCustomerResponseCustomer}
|
|
2432
|
+
* @memberof UpdateCustomerResponse
|
|
2097
2433
|
*/
|
|
2098
|
-
'
|
|
2434
|
+
'customer'?: UpdateCustomerResponseCustomer;
|
|
2099
2435
|
}
|
|
2100
2436
|
/**
|
|
2101
2437
|
*
|
|
2102
2438
|
* @export
|
|
2103
|
-
* @interface
|
|
2439
|
+
* @interface UpdateCustomerResponseCustomer
|
|
2104
2440
|
*/
|
|
2105
|
-
export interface
|
|
2441
|
+
export interface UpdateCustomerResponseCustomer {
|
|
2106
2442
|
/**
|
|
2107
2443
|
*
|
|
2108
2444
|
* @type {string}
|
|
2109
|
-
* @memberof
|
|
2110
|
-
*/
|
|
2111
|
-
'username'?: string;
|
|
2112
|
-
/**
|
|
2113
|
-
*
|
|
2114
|
-
* @type {string}
|
|
2115
|
-
* @memberof UpdateUserRequestBody
|
|
2445
|
+
* @memberof UpdateCustomerResponseCustomer
|
|
2116
2446
|
*/
|
|
2117
|
-
'
|
|
2447
|
+
'id'?: string;
|
|
2118
2448
|
/**
|
|
2119
2449
|
*
|
|
2120
2450
|
* @type {string}
|
|
2121
|
-
* @memberof
|
|
2451
|
+
* @memberof UpdateCustomerResponseCustomer
|
|
2122
2452
|
*/
|
|
2123
|
-
'
|
|
2453
|
+
'name'?: string;
|
|
2124
2454
|
/**
|
|
2125
2455
|
*
|
|
2126
2456
|
* @type {string}
|
|
2127
|
-
* @memberof
|
|
2457
|
+
* @memberof UpdateCustomerResponseCustomer
|
|
2128
2458
|
*/
|
|
2129
2459
|
'email'?: string;
|
|
2130
2460
|
/**
|
|
2131
2461
|
*
|
|
2132
2462
|
* @type {string}
|
|
2133
|
-
* @memberof
|
|
2463
|
+
* @memberof UpdateCustomerResponseCustomer
|
|
2134
2464
|
*/
|
|
2135
2465
|
'phone'?: string;
|
|
2136
2466
|
/**
|
|
2137
2467
|
*
|
|
2138
|
-
* @type {
|
|
2139
|
-
* @memberof
|
|
2468
|
+
* @type {object}
|
|
2469
|
+
* @memberof UpdateCustomerResponseCustomer
|
|
2470
|
+
*/
|
|
2471
|
+
'address'?: object;
|
|
2472
|
+
}
|
|
2473
|
+
/**
|
|
2474
|
+
*
|
|
2475
|
+
* @export
|
|
2476
|
+
* @interface UpdateSportRequest
|
|
2477
|
+
*/
|
|
2478
|
+
export interface UpdateSportRequest {
|
|
2479
|
+
/**
|
|
2480
|
+
*
|
|
2481
|
+
* @type {string}
|
|
2482
|
+
* @memberof UpdateSportRequest
|
|
2483
|
+
*/
|
|
2484
|
+
'key'?: string;
|
|
2485
|
+
}
|
|
2486
|
+
/**
|
|
2487
|
+
*
|
|
2488
|
+
* @export
|
|
2489
|
+
* @interface UpdateSubscriptionPlanRequest
|
|
2490
|
+
*/
|
|
2491
|
+
export interface UpdateSubscriptionPlanRequest {
|
|
2492
|
+
/**
|
|
2493
|
+
*
|
|
2494
|
+
* @type {string}
|
|
2495
|
+
* @memberof UpdateSubscriptionPlanRequest
|
|
2496
|
+
*/
|
|
2497
|
+
'name'?: string;
|
|
2498
|
+
/**
|
|
2499
|
+
*
|
|
2500
|
+
* @type {string}
|
|
2501
|
+
* @memberof UpdateSubscriptionPlanRequest
|
|
2502
|
+
*/
|
|
2503
|
+
'description'?: string;
|
|
2504
|
+
/**
|
|
2505
|
+
*
|
|
2506
|
+
* @type {object}
|
|
2507
|
+
* @memberof UpdateSubscriptionPlanRequest
|
|
2508
|
+
*/
|
|
2509
|
+
'metadata'?: object;
|
|
2510
|
+
}
|
|
2511
|
+
/**
|
|
2512
|
+
*
|
|
2513
|
+
* @export
|
|
2514
|
+
* @interface UpdateSubscriptionPlanResponse
|
|
2515
|
+
*/
|
|
2516
|
+
export interface UpdateSubscriptionPlanResponse {
|
|
2517
|
+
/**
|
|
2518
|
+
*
|
|
2519
|
+
* @type {string}
|
|
2520
|
+
* @memberof UpdateSubscriptionPlanResponse
|
|
2521
|
+
*/
|
|
2522
|
+
'message'?: string;
|
|
2523
|
+
/**
|
|
2524
|
+
*
|
|
2525
|
+
* @type {SubscriptionPlanResponse}
|
|
2526
|
+
* @memberof UpdateSubscriptionPlanResponse
|
|
2527
|
+
*/
|
|
2528
|
+
'plan'?: SubscriptionPlanResponse;
|
|
2529
|
+
}
|
|
2530
|
+
/**
|
|
2531
|
+
*
|
|
2532
|
+
* @export
|
|
2533
|
+
* @interface UpdateUserRequestBody
|
|
2534
|
+
*/
|
|
2535
|
+
export interface UpdateUserRequestBody {
|
|
2536
|
+
/**
|
|
2537
|
+
*
|
|
2538
|
+
* @type {string}
|
|
2539
|
+
* @memberof UpdateUserRequestBody
|
|
2540
|
+
*/
|
|
2541
|
+
'username'?: string;
|
|
2542
|
+
/**
|
|
2543
|
+
*
|
|
2544
|
+
* @type {string}
|
|
2545
|
+
* @memberof UpdateUserRequestBody
|
|
2546
|
+
*/
|
|
2547
|
+
'firstName'?: string;
|
|
2548
|
+
/**
|
|
2549
|
+
*
|
|
2550
|
+
* @type {string}
|
|
2551
|
+
* @memberof UpdateUserRequestBody
|
|
2552
|
+
*/
|
|
2553
|
+
'lastName'?: string;
|
|
2554
|
+
/**
|
|
2555
|
+
*
|
|
2556
|
+
* @type {string}
|
|
2557
|
+
* @memberof UpdateUserRequestBody
|
|
2558
|
+
*/
|
|
2559
|
+
'email'?: string;
|
|
2560
|
+
/**
|
|
2561
|
+
*
|
|
2562
|
+
* @type {string}
|
|
2563
|
+
* @memberof UpdateUserRequestBody
|
|
2564
|
+
*/
|
|
2565
|
+
'phone'?: string;
|
|
2566
|
+
/**
|
|
2567
|
+
*
|
|
2568
|
+
* @type {string}
|
|
2569
|
+
* @memberof UpdateUserRequestBody
|
|
2140
2570
|
*/
|
|
2141
2571
|
'profilePicture'?: string;
|
|
2142
2572
|
/**
|
|
@@ -3702,6 +4132,44 @@ export const ClubSlotsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3702
4132
|
|
|
3703
4133
|
|
|
3704
4134
|
|
|
4135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4137
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4138
|
+
|
|
4139
|
+
return {
|
|
4140
|
+
url: toPathString(localVarUrlObj),
|
|
4141
|
+
options: localVarRequestOptions,
|
|
4142
|
+
};
|
|
4143
|
+
},
|
|
4144
|
+
/**
|
|
4145
|
+
*
|
|
4146
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
4147
|
+
* @param {string} clubID ID du club
|
|
4148
|
+
* @param {*} [options] Override http request option.
|
|
4149
|
+
* @throws {RequiredError}
|
|
4150
|
+
*/
|
|
4151
|
+
getAvailableSlotsByClub: async (clubID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4152
|
+
// verify required parameter 'clubID' is not null or undefined
|
|
4153
|
+
assertParamExists('getAvailableSlotsByClub', 'clubID', clubID)
|
|
4154
|
+
const localVarPath = `/api/clubs/{clubID}/availableSlots/`
|
|
4155
|
+
.replace(`{${"clubID"}}`, encodeURIComponent(String(clubID)));
|
|
4156
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4157
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4158
|
+
let baseOptions;
|
|
4159
|
+
if (configuration) {
|
|
4160
|
+
baseOptions = configuration.baseOptions;
|
|
4161
|
+
}
|
|
4162
|
+
|
|
4163
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4164
|
+
const localVarHeaderParameter = {} as any;
|
|
4165
|
+
const localVarQueryParameter = {} as any;
|
|
4166
|
+
|
|
4167
|
+
// authentication bearerAuth required
|
|
4168
|
+
// http bearer authentication required
|
|
4169
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4170
|
+
|
|
4171
|
+
|
|
4172
|
+
|
|
3705
4173
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3706
4174
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3707
4175
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3903,6 +4371,19 @@ export const ClubSlotsApiFp = function(configuration?: Configuration) {
|
|
|
3903
4371
|
const localVarOperationServerBasePath = operationServerMap['ClubSlotsApi.generateSlotsForNextThreeWeeks']?.[localVarOperationServerIndex]?.url;
|
|
3904
4372
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3905
4373
|
},
|
|
4374
|
+
/**
|
|
4375
|
+
*
|
|
4376
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
4377
|
+
* @param {string} clubID ID du club
|
|
4378
|
+
* @param {*} [options] Override http request option.
|
|
4379
|
+
* @throws {RequiredError}
|
|
4380
|
+
*/
|
|
4381
|
+
async getAvailableSlotsByClub(clubID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SlotsResponse>> {
|
|
4382
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAvailableSlotsByClub(clubID, options);
|
|
4383
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4384
|
+
const localVarOperationServerBasePath = operationServerMap['ClubSlotsApi.getAvailableSlotsByClub']?.[localVarOperationServerIndex]?.url;
|
|
4385
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4386
|
+
},
|
|
3906
4387
|
/**
|
|
3907
4388
|
*
|
|
3908
4389
|
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
@@ -3979,6 +4460,16 @@ export const ClubSlotsApiFactory = function (configuration?: Configuration, base
|
|
|
3979
4460
|
generateSlotsForNextThreeWeeks(requestParameters: ClubSlotsApiGenerateSlotsForNextThreeWeeksRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenerateSlotsForNextThreeWeeks201Response> {
|
|
3980
4461
|
return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
3981
4462
|
},
|
|
4463
|
+
/**
|
|
4464
|
+
*
|
|
4465
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
4466
|
+
* @param {ClubSlotsApiGetAvailableSlotsByClubRequest} requestParameters Request parameters.
|
|
4467
|
+
* @param {*} [options] Override http request option.
|
|
4468
|
+
* @throws {RequiredError}
|
|
4469
|
+
*/
|
|
4470
|
+
getAvailableSlotsByClub(requestParameters: ClubSlotsApiGetAvailableSlotsByClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<SlotsResponse> {
|
|
4471
|
+
return localVarFp.getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(axios, basePath));
|
|
4472
|
+
},
|
|
3982
4473
|
/**
|
|
3983
4474
|
*
|
|
3984
4475
|
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
@@ -4054,6 +4545,20 @@ export interface ClubSlotsApiGenerateSlotsForNextThreeWeeksRequest {
|
|
|
4054
4545
|
readonly id: string
|
|
4055
4546
|
}
|
|
4056
4547
|
|
|
4548
|
+
/**
|
|
4549
|
+
* Request parameters for getAvailableSlotsByClub operation in ClubSlotsApi.
|
|
4550
|
+
* @export
|
|
4551
|
+
* @interface ClubSlotsApiGetAvailableSlotsByClubRequest
|
|
4552
|
+
*/
|
|
4553
|
+
export interface ClubSlotsApiGetAvailableSlotsByClubRequest {
|
|
4554
|
+
/**
|
|
4555
|
+
* ID du club
|
|
4556
|
+
* @type {string}
|
|
4557
|
+
* @memberof ClubSlotsApiGetAvailableSlotsByClub
|
|
4558
|
+
*/
|
|
4559
|
+
readonly clubID: string
|
|
4560
|
+
}
|
|
4561
|
+
|
|
4057
4562
|
/**
|
|
4058
4563
|
* Request parameters for getAvailableSlotsBySports operation in ClubSlotsApi.
|
|
4059
4564
|
* @export
|
|
@@ -4176,6 +4681,18 @@ export class ClubSlotsApi extends BaseAPI {
|
|
|
4176
4681
|
return ClubSlotsApiFp(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4177
4682
|
}
|
|
4178
4683
|
|
|
4684
|
+
/**
|
|
4685
|
+
*
|
|
4686
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
4687
|
+
* @param {ClubSlotsApiGetAvailableSlotsByClubRequest} requestParameters Request parameters.
|
|
4688
|
+
* @param {*} [options] Override http request option.
|
|
4689
|
+
* @throws {RequiredError}
|
|
4690
|
+
* @memberof ClubSlotsApi
|
|
4691
|
+
*/
|
|
4692
|
+
public getAvailableSlotsByClub(requestParameters: ClubSlotsApiGetAvailableSlotsByClubRequest, options?: RawAxiosRequestConfig) {
|
|
4693
|
+
return ClubSlotsApiFp(this.configuration).getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(this.axios, this.basePath));
|
|
4694
|
+
}
|
|
4695
|
+
|
|
4179
4696
|
/**
|
|
4180
4697
|
*
|
|
4181
4698
|
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
@@ -5323,6 +5840,40 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5323
5840
|
|
|
5324
5841
|
|
|
5325
5842
|
|
|
5843
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5844
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5845
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5846
|
+
|
|
5847
|
+
return {
|
|
5848
|
+
url: toPathString(localVarUrlObj),
|
|
5849
|
+
options: localVarRequestOptions,
|
|
5850
|
+
};
|
|
5851
|
+
},
|
|
5852
|
+
/**
|
|
5853
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
5854
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
5855
|
+
* @param {*} [options] Override http request option.
|
|
5856
|
+
* @throws {RequiredError}
|
|
5857
|
+
*/
|
|
5858
|
+
getActiveClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5859
|
+
const localVarPath = `/api/clubs/activeClubs/`;
|
|
5860
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5861
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5862
|
+
let baseOptions;
|
|
5863
|
+
if (configuration) {
|
|
5864
|
+
baseOptions = configuration.baseOptions;
|
|
5865
|
+
}
|
|
5866
|
+
|
|
5867
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5868
|
+
const localVarHeaderParameter = {} as any;
|
|
5869
|
+
const localVarQueryParameter = {} as any;
|
|
5870
|
+
|
|
5871
|
+
// authentication bearerAuth required
|
|
5872
|
+
// http bearer authentication required
|
|
5873
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5874
|
+
|
|
5875
|
+
|
|
5876
|
+
|
|
5326
5877
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5327
5878
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5328
5879
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -5574,6 +6125,18 @@ export const ClubsApiFp = function(configuration?: Configuration) {
|
|
|
5574
6125
|
const localVarOperationServerBasePath = operationServerMap['ClubsApi.deleteClub']?.[localVarOperationServerIndex]?.url;
|
|
5575
6126
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5576
6127
|
},
|
|
6128
|
+
/**
|
|
6129
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
6130
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
6131
|
+
* @param {*} [options] Override http request option.
|
|
6132
|
+
* @throws {RequiredError}
|
|
6133
|
+
*/
|
|
6134
|
+
async getActiveClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActiveClubs200Response>> {
|
|
6135
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getActiveClubs(options);
|
|
6136
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6137
|
+
const localVarOperationServerBasePath = operationServerMap['ClubsApi.getActiveClubs']?.[localVarOperationServerIndex]?.url;
|
|
6138
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6139
|
+
},
|
|
5577
6140
|
/**
|
|
5578
6141
|
*
|
|
5579
6142
|
* @summary Récupérer tous les clubs
|
|
@@ -5679,6 +6242,15 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
|
|
|
5679
6242
|
deleteClub(requestParameters: ClubsApiDeleteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteClub200Response> {
|
|
5680
6243
|
return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5681
6244
|
},
|
|
6245
|
+
/**
|
|
6246
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
6247
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
6248
|
+
* @param {*} [options] Override http request option.
|
|
6249
|
+
* @throws {RequiredError}
|
|
6250
|
+
*/
|
|
6251
|
+
getActiveClubs(options?: RawAxiosRequestConfig): AxiosPromise<GetActiveClubs200Response> {
|
|
6252
|
+
return localVarFp.getActiveClubs(options).then((request) => request(axios, basePath));
|
|
6253
|
+
},
|
|
5682
6254
|
/**
|
|
5683
6255
|
*
|
|
5684
6256
|
* @summary Récupérer tous les clubs
|
|
@@ -5886,6 +6458,17 @@ export class ClubsApi extends BaseAPI {
|
|
|
5886
6458
|
return ClubsApiFp(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5887
6459
|
}
|
|
5888
6460
|
|
|
6461
|
+
/**
|
|
6462
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
6463
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
6464
|
+
* @param {*} [options] Override http request option.
|
|
6465
|
+
* @throws {RequiredError}
|
|
6466
|
+
* @memberof ClubsApi
|
|
6467
|
+
*/
|
|
6468
|
+
public getActiveClubs(options?: RawAxiosRequestConfig) {
|
|
6469
|
+
return ClubsApiFp(this.configuration).getActiveClubs(options).then((request) => request(this.axios, this.basePath));
|
|
6470
|
+
}
|
|
6471
|
+
|
|
5889
6472
|
/**
|
|
5890
6473
|
*
|
|
5891
6474
|
* @summary Récupérer tous les clubs
|
|
@@ -6361,15 +6944,20 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6361
6944
|
return {
|
|
6362
6945
|
/**
|
|
6363
6946
|
*
|
|
6364
|
-
* @summary
|
|
6365
|
-
* @param {
|
|
6947
|
+
* @summary Annule un abonnement utilisateur
|
|
6948
|
+
* @param {string} clubId ID du club
|
|
6949
|
+
* @param {string} subscriptionId ID de l\'abonnement à annuler
|
|
6366
6950
|
* @param {*} [options] Override http request option.
|
|
6367
6951
|
* @throws {RequiredError}
|
|
6368
6952
|
*/
|
|
6369
|
-
|
|
6370
|
-
// verify required parameter '
|
|
6371
|
-
assertParamExists('
|
|
6372
|
-
|
|
6953
|
+
cancelSubscription: async (clubId: string, subscriptionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6954
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6955
|
+
assertParamExists('cancelSubscription', 'clubId', clubId)
|
|
6956
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
6957
|
+
assertParamExists('cancelSubscription', 'subscriptionId', subscriptionId)
|
|
6958
|
+
const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}`
|
|
6959
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6960
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
6373
6961
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6374
6962
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6375
6963
|
let baseOptions;
|
|
@@ -6377,7 +6965,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6377
6965
|
baseOptions = configuration.baseOptions;
|
|
6378
6966
|
}
|
|
6379
6967
|
|
|
6380
|
-
const localVarRequestOptions = { method: '
|
|
6968
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
6381
6969
|
const localVarHeaderParameter = {} as any;
|
|
6382
6970
|
const localVarQueryParameter = {} as any;
|
|
6383
6971
|
|
|
@@ -6387,12 +6975,9 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6387
6975
|
|
|
6388
6976
|
|
|
6389
6977
|
|
|
6390
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6391
|
-
|
|
6392
6978
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6393
6979
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6394
6980
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6395
|
-
localVarRequestOptions.data = serializeDataIfNeeded(changePasswordRequestBody, localVarRequestOptions, configuration)
|
|
6396
6981
|
|
|
6397
6982
|
return {
|
|
6398
6983
|
url: toPathString(localVarUrlObj),
|
|
@@ -6401,12 +6986,15 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6401
6986
|
},
|
|
6402
6987
|
/**
|
|
6403
6988
|
*
|
|
6404
|
-
* @summary
|
|
6989
|
+
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
6990
|
+
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
6405
6991
|
* @param {*} [options] Override http request option.
|
|
6406
6992
|
* @throws {RequiredError}
|
|
6407
6993
|
*/
|
|
6408
|
-
|
|
6409
|
-
|
|
6994
|
+
changePassword: async (changePasswordRequestBody: ChangePasswordRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6995
|
+
// verify required parameter 'changePasswordRequestBody' is not null or undefined
|
|
6996
|
+
assertParamExists('changePassword', 'changePasswordRequestBody', changePasswordRequestBody)
|
|
6997
|
+
const localVarPath = `/api/users/me/password`;
|
|
6410
6998
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6411
6999
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6412
7000
|
let baseOptions;
|
|
@@ -6414,7 +7002,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6414
7002
|
baseOptions = configuration.baseOptions;
|
|
6415
7003
|
}
|
|
6416
7004
|
|
|
6417
|
-
const localVarRequestOptions = { method: '
|
|
7005
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
6418
7006
|
const localVarHeaderParameter = {} as any;
|
|
6419
7007
|
const localVarQueryParameter = {} as any;
|
|
6420
7008
|
|
|
@@ -6424,9 +7012,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6424
7012
|
|
|
6425
7013
|
|
|
6426
7014
|
|
|
7015
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7016
|
+
|
|
6427
7017
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6428
7018
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6429
7019
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7020
|
+
localVarRequestOptions.data = serializeDataIfNeeded(changePasswordRequestBody, localVarRequestOptions, configuration)
|
|
6430
7021
|
|
|
6431
7022
|
return {
|
|
6432
7023
|
url: toPathString(localVarUrlObj),
|
|
@@ -6435,12 +7026,24 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6435
7026
|
},
|
|
6436
7027
|
/**
|
|
6437
7028
|
*
|
|
6438
|
-
* @summary Récupère
|
|
7029
|
+
* @summary Récupère la liste des utilisateurs avec filtres et pagination
|
|
7030
|
+
* @param {number} [limit] Nombre maximum d\'utilisateurs à retourner
|
|
7031
|
+
* @param {number} [skip] Nombre d\'utilisateurs à ignorer (pagination)
|
|
7032
|
+
* @param {string} [search] Recherche dans firstName, lastName, email
|
|
7033
|
+
* @param {string} [sport] Filtre par sport
|
|
7034
|
+
* @param {string} [matchType] Filtre par type de match
|
|
7035
|
+
* @param {string} [niveau] Filtre par niveau
|
|
7036
|
+
* @param {string} [rank] Filtre par rang
|
|
7037
|
+
* @param {GetAllUsersIsLookingForPartnerEnum} [isLookingForPartner] Filtre par disponibilité pour partenaire
|
|
7038
|
+
* @param {string} [username] Filtre par nom d\'utilisateur
|
|
7039
|
+
* @param {string} [email] Filtre par email
|
|
7040
|
+
* @param {string} [description] Filtre par description
|
|
7041
|
+
* @param {string} [gender] Filtre par genre
|
|
6439
7042
|
* @param {*} [options] Override http request option.
|
|
6440
7043
|
* @throws {RequiredError}
|
|
6441
7044
|
*/
|
|
6442
|
-
|
|
6443
|
-
const localVarPath = `/api/users
|
|
7045
|
+
getAllUsers: async (limit?: number, skip?: number, search?: string, sport?: string, matchType?: string, niveau?: string, rank?: string, isLookingForPartner?: GetAllUsersIsLookingForPartnerEnum, username?: string, email?: string, description?: string, gender?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7046
|
+
const localVarPath = `/api/users`;
|
|
6444
7047
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6445
7048
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6446
7049
|
let baseOptions;
|
|
@@ -6456,24 +7059,106 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6456
7059
|
// http bearer authentication required
|
|
6457
7060
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6458
7061
|
|
|
7062
|
+
if (limit !== undefined) {
|
|
7063
|
+
localVarQueryParameter['limit'] = limit;
|
|
7064
|
+
}
|
|
6459
7065
|
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7066
|
+
if (skip !== undefined) {
|
|
7067
|
+
localVarQueryParameter['skip'] = skip;
|
|
7068
|
+
}
|
|
6464
7069
|
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
7070
|
+
if (search !== undefined) {
|
|
7071
|
+
localVarQueryParameter['search'] = search;
|
|
7072
|
+
}
|
|
7073
|
+
|
|
7074
|
+
if (sport !== undefined) {
|
|
7075
|
+
localVarQueryParameter['sport'] = sport;
|
|
7076
|
+
}
|
|
7077
|
+
|
|
7078
|
+
if (matchType !== undefined) {
|
|
7079
|
+
localVarQueryParameter['matchType'] = matchType;
|
|
7080
|
+
}
|
|
7081
|
+
|
|
7082
|
+
if (niveau !== undefined) {
|
|
7083
|
+
localVarQueryParameter['niveau'] = niveau;
|
|
7084
|
+
}
|
|
7085
|
+
|
|
7086
|
+
if (rank !== undefined) {
|
|
7087
|
+
localVarQueryParameter['rank'] = rank;
|
|
7088
|
+
}
|
|
7089
|
+
|
|
7090
|
+
if (isLookingForPartner !== undefined) {
|
|
7091
|
+
localVarQueryParameter['isLookingForPartner'] = isLookingForPartner;
|
|
7092
|
+
}
|
|
7093
|
+
|
|
7094
|
+
if (username !== undefined) {
|
|
7095
|
+
localVarQueryParameter['username'] = username;
|
|
7096
|
+
}
|
|
7097
|
+
|
|
7098
|
+
if (email !== undefined) {
|
|
7099
|
+
localVarQueryParameter['email'] = email;
|
|
7100
|
+
}
|
|
7101
|
+
|
|
7102
|
+
if (description !== undefined) {
|
|
7103
|
+
localVarQueryParameter['description'] = description;
|
|
7104
|
+
}
|
|
7105
|
+
|
|
7106
|
+
if (gender !== undefined) {
|
|
7107
|
+
localVarQueryParameter['gender'] = gender;
|
|
7108
|
+
}
|
|
7109
|
+
|
|
7110
|
+
|
|
7111
|
+
|
|
7112
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7113
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7114
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7115
|
+
|
|
7116
|
+
return {
|
|
7117
|
+
url: toPathString(localVarUrlObj),
|
|
7118
|
+
options: localVarRequestOptions,
|
|
7119
|
+
};
|
|
7120
|
+
},
|
|
7121
|
+
/**
|
|
7122
|
+
*
|
|
7123
|
+
* @summary Récupère les informations de l\'utilisateur connecté
|
|
7124
|
+
* @param {*} [options] Override http request option.
|
|
7125
|
+
* @throws {RequiredError}
|
|
7126
|
+
*/
|
|
7127
|
+
getUserInfo: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7128
|
+
const localVarPath = `/api/users/me`;
|
|
7129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7130
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7131
|
+
let baseOptions;
|
|
7132
|
+
if (configuration) {
|
|
7133
|
+
baseOptions = configuration.baseOptions;
|
|
7134
|
+
}
|
|
7135
|
+
|
|
7136
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7137
|
+
const localVarHeaderParameter = {} as any;
|
|
7138
|
+
const localVarQueryParameter = {} as any;
|
|
7139
|
+
|
|
7140
|
+
// authentication bearerAuth required
|
|
7141
|
+
// http bearer authentication required
|
|
7142
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7143
|
+
|
|
7144
|
+
|
|
7145
|
+
|
|
7146
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7147
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7148
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7149
|
+
|
|
7150
|
+
return {
|
|
7151
|
+
url: toPathString(localVarUrlObj),
|
|
7152
|
+
options: localVarRequestOptions,
|
|
7153
|
+
};
|
|
7154
|
+
},
|
|
7155
|
+
/**
|
|
7156
|
+
*
|
|
7157
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
7158
|
+
* @param {*} [options] Override http request option.
|
|
7159
|
+
* @throws {RequiredError}
|
|
7160
|
+
*/
|
|
7161
|
+
getUserRolesInClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6477
7162
|
const localVarPath = `/api/users/me/roles`;
|
|
6478
7163
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6479
7164
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6501,6 +7186,80 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6501
7186
|
options: localVarRequestOptions,
|
|
6502
7187
|
};
|
|
6503
7188
|
},
|
|
7189
|
+
/**
|
|
7190
|
+
*
|
|
7191
|
+
* @summary Récupère les abonnements de l\'utilisateur connecté
|
|
7192
|
+
* @param {*} [options] Override http request option.
|
|
7193
|
+
* @throws {RequiredError}
|
|
7194
|
+
*/
|
|
7195
|
+
getUserSubscriptions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7196
|
+
const localVarPath = `/api/users/me/subscriptions`;
|
|
7197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7198
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7199
|
+
let baseOptions;
|
|
7200
|
+
if (configuration) {
|
|
7201
|
+
baseOptions = configuration.baseOptions;
|
|
7202
|
+
}
|
|
7203
|
+
|
|
7204
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7205
|
+
const localVarHeaderParameter = {} as any;
|
|
7206
|
+
const localVarQueryParameter = {} as any;
|
|
7207
|
+
|
|
7208
|
+
// authentication bearerAuth required
|
|
7209
|
+
// http bearer authentication required
|
|
7210
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7211
|
+
|
|
7212
|
+
|
|
7213
|
+
|
|
7214
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7215
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7216
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7217
|
+
|
|
7218
|
+
return {
|
|
7219
|
+
url: toPathString(localVarUrlObj),
|
|
7220
|
+
options: localVarRequestOptions,
|
|
7221
|
+
};
|
|
7222
|
+
},
|
|
7223
|
+
/**
|
|
7224
|
+
*
|
|
7225
|
+
* @summary Initie une session d\'abonnement Stripe
|
|
7226
|
+
* @param {InitiateSubscriptionSessionRequestBody} initiateSubscriptionSessionRequestBody
|
|
7227
|
+
* @param {*} [options] Override http request option.
|
|
7228
|
+
* @throws {RequiredError}
|
|
7229
|
+
*/
|
|
7230
|
+
initiateSubscriptionSession: async (initiateSubscriptionSessionRequestBody: InitiateSubscriptionSessionRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7231
|
+
// verify required parameter 'initiateSubscriptionSessionRequestBody' is not null or undefined
|
|
7232
|
+
assertParamExists('initiateSubscriptionSession', 'initiateSubscriptionSessionRequestBody', initiateSubscriptionSessionRequestBody)
|
|
7233
|
+
const localVarPath = `/api/users/me/subscription-session`;
|
|
7234
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7235
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7236
|
+
let baseOptions;
|
|
7237
|
+
if (configuration) {
|
|
7238
|
+
baseOptions = configuration.baseOptions;
|
|
7239
|
+
}
|
|
7240
|
+
|
|
7241
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7242
|
+
const localVarHeaderParameter = {} as any;
|
|
7243
|
+
const localVarQueryParameter = {} as any;
|
|
7244
|
+
|
|
7245
|
+
// authentication bearerAuth required
|
|
7246
|
+
// http bearer authentication required
|
|
7247
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7248
|
+
|
|
7249
|
+
|
|
7250
|
+
|
|
7251
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7252
|
+
|
|
7253
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7254
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7255
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7256
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initiateSubscriptionSessionRequestBody, localVarRequestOptions, configuration)
|
|
7257
|
+
|
|
7258
|
+
return {
|
|
7259
|
+
url: toPathString(localVarUrlObj),
|
|
7260
|
+
options: localVarRequestOptions,
|
|
7261
|
+
};
|
|
7262
|
+
},
|
|
6504
7263
|
/**
|
|
6505
7264
|
*
|
|
6506
7265
|
* @summary Authentifie un utilisateur
|
|
@@ -6621,6 +7380,168 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6621
7380
|
options: localVarRequestOptions,
|
|
6622
7381
|
};
|
|
6623
7382
|
},
|
|
7383
|
+
/**
|
|
7384
|
+
*
|
|
7385
|
+
* @summary Réactive un abonnement utilisateur
|
|
7386
|
+
* @param {string} clubId ID du club
|
|
7387
|
+
* @param {string} subscriptionId ID de l\'abonnement à réactiver
|
|
7388
|
+
* @param {*} [options] Override http request option.
|
|
7389
|
+
* @throws {RequiredError}
|
|
7390
|
+
*/
|
|
7391
|
+
resumeSubscription: async (clubId: string, subscriptionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7392
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
7393
|
+
assertParamExists('resumeSubscription', 'clubId', clubId)
|
|
7394
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
7395
|
+
assertParamExists('resumeSubscription', 'subscriptionId', subscriptionId)
|
|
7396
|
+
const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
7397
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
7398
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
7399
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7400
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7401
|
+
let baseOptions;
|
|
7402
|
+
if (configuration) {
|
|
7403
|
+
baseOptions = configuration.baseOptions;
|
|
7404
|
+
}
|
|
7405
|
+
|
|
7406
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7407
|
+
const localVarHeaderParameter = {} as any;
|
|
7408
|
+
const localVarQueryParameter = {} as any;
|
|
7409
|
+
|
|
7410
|
+
// authentication bearerAuth required
|
|
7411
|
+
// http bearer authentication required
|
|
7412
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7413
|
+
|
|
7414
|
+
|
|
7415
|
+
|
|
7416
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7417
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7418
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7419
|
+
|
|
7420
|
+
return {
|
|
7421
|
+
url: toPathString(localVarUrlObj),
|
|
7422
|
+
options: localVarRequestOptions,
|
|
7423
|
+
};
|
|
7424
|
+
},
|
|
7425
|
+
/**
|
|
7426
|
+
*
|
|
7427
|
+
* @summary Authentifie ou crée un utilisateur via Google OAuth
|
|
7428
|
+
* @param {GoogleSignInRequestBody} googleSignInRequestBody
|
|
7429
|
+
* @param {*} [options] Override http request option.
|
|
7430
|
+
* @throws {RequiredError}
|
|
7431
|
+
*/
|
|
7432
|
+
signInOrSignUpWithGoogle: async (googleSignInRequestBody: GoogleSignInRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7433
|
+
// verify required parameter 'googleSignInRequestBody' is not null or undefined
|
|
7434
|
+
assertParamExists('signInOrSignUpWithGoogle', 'googleSignInRequestBody', googleSignInRequestBody)
|
|
7435
|
+
const localVarPath = `/api/users/googleSignin`;
|
|
7436
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7437
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7438
|
+
let baseOptions;
|
|
7439
|
+
if (configuration) {
|
|
7440
|
+
baseOptions = configuration.baseOptions;
|
|
7441
|
+
}
|
|
7442
|
+
|
|
7443
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7444
|
+
const localVarHeaderParameter = {} as any;
|
|
7445
|
+
const localVarQueryParameter = {} as any;
|
|
7446
|
+
|
|
7447
|
+
// authentication bearerAuth required
|
|
7448
|
+
// http bearer authentication required
|
|
7449
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7450
|
+
|
|
7451
|
+
|
|
7452
|
+
|
|
7453
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7454
|
+
|
|
7455
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7456
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7457
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7458
|
+
localVarRequestOptions.data = serializeDataIfNeeded(googleSignInRequestBody, localVarRequestOptions, configuration)
|
|
7459
|
+
|
|
7460
|
+
return {
|
|
7461
|
+
url: toPathString(localVarUrlObj),
|
|
7462
|
+
options: localVarRequestOptions,
|
|
7463
|
+
};
|
|
7464
|
+
},
|
|
7465
|
+
/**
|
|
7466
|
+
*
|
|
7467
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
7468
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
7469
|
+
* @param {*} [options] Override http request option.
|
|
7470
|
+
* @throws {RequiredError}
|
|
7471
|
+
*/
|
|
7472
|
+
subscribeToClub: async (subscribeToClubRequestBody: SubscribeToClubRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7473
|
+
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
7474
|
+
assertParamExists('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody)
|
|
7475
|
+
const localVarPath = `/api/users/me/subscribe`;
|
|
7476
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7477
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7478
|
+
let baseOptions;
|
|
7479
|
+
if (configuration) {
|
|
7480
|
+
baseOptions = configuration.baseOptions;
|
|
7481
|
+
}
|
|
7482
|
+
|
|
7483
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7484
|
+
const localVarHeaderParameter = {} as any;
|
|
7485
|
+
const localVarQueryParameter = {} as any;
|
|
7486
|
+
|
|
7487
|
+
// authentication bearerAuth required
|
|
7488
|
+
// http bearer authentication required
|
|
7489
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7490
|
+
|
|
7491
|
+
|
|
7492
|
+
|
|
7493
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7494
|
+
|
|
7495
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7496
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7497
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7498
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscribeToClubRequestBody, localVarRequestOptions, configuration)
|
|
7499
|
+
|
|
7500
|
+
return {
|
|
7501
|
+
url: toPathString(localVarUrlObj),
|
|
7502
|
+
options: localVarRequestOptions,
|
|
7503
|
+
};
|
|
7504
|
+
},
|
|
7505
|
+
/**
|
|
7506
|
+
*
|
|
7507
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
7508
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
7509
|
+
* @param {*} [options] Override http request option.
|
|
7510
|
+
* @throws {RequiredError}
|
|
7511
|
+
*/
|
|
7512
|
+
updateCustomer: async (updateCustomerRequestBody: UpdateCustomerRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7513
|
+
// verify required parameter 'updateCustomerRequestBody' is not null or undefined
|
|
7514
|
+
assertParamExists('updateCustomer', 'updateCustomerRequestBody', updateCustomerRequestBody)
|
|
7515
|
+
const localVarPath = `/api/users/me/customer`;
|
|
7516
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7517
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7518
|
+
let baseOptions;
|
|
7519
|
+
if (configuration) {
|
|
7520
|
+
baseOptions = configuration.baseOptions;
|
|
7521
|
+
}
|
|
7522
|
+
|
|
7523
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
7524
|
+
const localVarHeaderParameter = {} as any;
|
|
7525
|
+
const localVarQueryParameter = {} as any;
|
|
7526
|
+
|
|
7527
|
+
// authentication bearerAuth required
|
|
7528
|
+
// http bearer authentication required
|
|
7529
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7530
|
+
|
|
7531
|
+
|
|
7532
|
+
|
|
7533
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7534
|
+
|
|
7535
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7536
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7537
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7538
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequestBody, localVarRequestOptions, configuration)
|
|
7539
|
+
|
|
7540
|
+
return {
|
|
7541
|
+
url: toPathString(localVarUrlObj),
|
|
7542
|
+
options: localVarRequestOptions,
|
|
7543
|
+
};
|
|
7544
|
+
},
|
|
6624
7545
|
/**
|
|
6625
7546
|
*
|
|
6626
7547
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -6671,6 +7592,20 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6671
7592
|
export const UsersApiFp = function(configuration?: Configuration) {
|
|
6672
7593
|
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
|
|
6673
7594
|
return {
|
|
7595
|
+
/**
|
|
7596
|
+
*
|
|
7597
|
+
* @summary Annule un abonnement utilisateur
|
|
7598
|
+
* @param {string} clubId ID du club
|
|
7599
|
+
* @param {string} subscriptionId ID de l\'abonnement à annuler
|
|
7600
|
+
* @param {*} [options] Override http request option.
|
|
7601
|
+
* @throws {RequiredError}
|
|
7602
|
+
*/
|
|
7603
|
+
async cancelSubscription(clubId: string, subscriptionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionResponse>> {
|
|
7604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSubscription(clubId, subscriptionId, options);
|
|
7605
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7606
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.cancelSubscription']?.[localVarOperationServerIndex]?.url;
|
|
7607
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7608
|
+
},
|
|
6674
7609
|
/**
|
|
6675
7610
|
*
|
|
6676
7611
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -6681,43 +7616,80 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
6681
7616
|
async changePassword(changePasswordRequestBody: ChangePasswordRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChangePasswordResponse>> {
|
|
6682
7617
|
const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordRequestBody, options);
|
|
6683
7618
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6684
|
-
const localVarOperationServerBasePath = operationServerMap['UsersApi.changePassword']?.[localVarOperationServerIndex]?.url;
|
|
7619
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.changePassword']?.[localVarOperationServerIndex]?.url;
|
|
7620
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7621
|
+
},
|
|
7622
|
+
/**
|
|
7623
|
+
*
|
|
7624
|
+
* @summary Récupère la liste des utilisateurs avec filtres et pagination
|
|
7625
|
+
* @param {number} [limit] Nombre maximum d\'utilisateurs à retourner
|
|
7626
|
+
* @param {number} [skip] Nombre d\'utilisateurs à ignorer (pagination)
|
|
7627
|
+
* @param {string} [search] Recherche dans firstName, lastName, email
|
|
7628
|
+
* @param {string} [sport] Filtre par sport
|
|
7629
|
+
* @param {string} [matchType] Filtre par type de match
|
|
7630
|
+
* @param {string} [niveau] Filtre par niveau
|
|
7631
|
+
* @param {string} [rank] Filtre par rang
|
|
7632
|
+
* @param {GetAllUsersIsLookingForPartnerEnum} [isLookingForPartner] Filtre par disponibilité pour partenaire
|
|
7633
|
+
* @param {string} [username] Filtre par nom d\'utilisateur
|
|
7634
|
+
* @param {string} [email] Filtre par email
|
|
7635
|
+
* @param {string} [description] Filtre par description
|
|
7636
|
+
* @param {string} [gender] Filtre par genre
|
|
7637
|
+
* @param {*} [options] Override http request option.
|
|
7638
|
+
* @throws {RequiredError}
|
|
7639
|
+
*/
|
|
7640
|
+
async getAllUsers(limit?: number, skip?: number, search?: string, sport?: string, matchType?: string, niveau?: string, rank?: string, isLookingForPartner?: GetAllUsersIsLookingForPartnerEnum, username?: string, email?: string, description?: string, gender?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponse>>> {
|
|
7641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(limit, skip, search, sport, matchType, niveau, rank, isLookingForPartner, username, email, description, gender, options);
|
|
7642
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7643
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.getAllUsers']?.[localVarOperationServerIndex]?.url;
|
|
7644
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7645
|
+
},
|
|
7646
|
+
/**
|
|
7647
|
+
*
|
|
7648
|
+
* @summary Récupère les informations de l\'utilisateur connecté
|
|
7649
|
+
* @param {*} [options] Override http request option.
|
|
7650
|
+
* @throws {RequiredError}
|
|
7651
|
+
*/
|
|
7652
|
+
async getUserInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponse>> {
|
|
7653
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserInfo(options);
|
|
7654
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7655
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserInfo']?.[localVarOperationServerIndex]?.url;
|
|
6685
7656
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6686
7657
|
},
|
|
6687
7658
|
/**
|
|
6688
7659
|
*
|
|
6689
|
-
* @summary Récupère
|
|
7660
|
+
* @summary Récupère les rôles de l\'utilisateur dans les clubs
|
|
6690
7661
|
* @param {*} [options] Override http request option.
|
|
6691
7662
|
* @throws {RequiredError}
|
|
6692
7663
|
*/
|
|
6693
|
-
async
|
|
6694
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7664
|
+
async getUserRolesInClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserRolesResponse>> {
|
|
7665
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserRolesInClubs(options);
|
|
6695
7666
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6696
|
-
const localVarOperationServerBasePath = operationServerMap['UsersApi.
|
|
7667
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserRolesInClubs']?.[localVarOperationServerIndex]?.url;
|
|
6697
7668
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6698
7669
|
},
|
|
6699
7670
|
/**
|
|
6700
7671
|
*
|
|
6701
|
-
* @summary Récupère les
|
|
7672
|
+
* @summary Récupère les abonnements de l\'utilisateur connecté
|
|
6702
7673
|
* @param {*} [options] Override http request option.
|
|
6703
7674
|
* @throws {RequiredError}
|
|
6704
7675
|
*/
|
|
6705
|
-
async
|
|
6706
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7676
|
+
async getUserSubscriptions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserSubscriptionsResponse>> {
|
|
7677
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserSubscriptions(options);
|
|
6707
7678
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6708
|
-
const localVarOperationServerBasePath = operationServerMap['UsersApi.
|
|
7679
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserSubscriptions']?.[localVarOperationServerIndex]?.url;
|
|
6709
7680
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6710
7681
|
},
|
|
6711
7682
|
/**
|
|
6712
7683
|
*
|
|
6713
|
-
* @summary
|
|
7684
|
+
* @summary Initie une session d\'abonnement Stripe
|
|
7685
|
+
* @param {InitiateSubscriptionSessionRequestBody} initiateSubscriptionSessionRequestBody
|
|
6714
7686
|
* @param {*} [options] Override http request option.
|
|
6715
7687
|
* @throws {RequiredError}
|
|
6716
7688
|
*/
|
|
6717
|
-
async
|
|
6718
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7689
|
+
async initiateSubscriptionSession(initiateSubscriptionSessionRequestBody: InitiateSubscriptionSessionRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateSubscriptionSessionResponse>> {
|
|
7690
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateSubscriptionSession(initiateSubscriptionSessionRequestBody, options);
|
|
6719
7691
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6720
|
-
const localVarOperationServerBasePath = operationServerMap['UsersApi.
|
|
7692
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.initiateSubscriptionSession']?.[localVarOperationServerIndex]?.url;
|
|
6721
7693
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6722
7694
|
},
|
|
6723
7695
|
/**
|
|
@@ -6759,6 +7731,59 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
6759
7731
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.register']?.[localVarOperationServerIndex]?.url;
|
|
6760
7732
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6761
7733
|
},
|
|
7734
|
+
/**
|
|
7735
|
+
*
|
|
7736
|
+
* @summary Réactive un abonnement utilisateur
|
|
7737
|
+
* @param {string} clubId ID du club
|
|
7738
|
+
* @param {string} subscriptionId ID de l\'abonnement à réactiver
|
|
7739
|
+
* @param {*} [options] Override http request option.
|
|
7740
|
+
* @throws {RequiredError}
|
|
7741
|
+
*/
|
|
7742
|
+
async resumeSubscription(clubId: string, subscriptionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionResponse>> {
|
|
7743
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resumeSubscription(clubId, subscriptionId, options);
|
|
7744
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7745
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.resumeSubscription']?.[localVarOperationServerIndex]?.url;
|
|
7746
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7747
|
+
},
|
|
7748
|
+
/**
|
|
7749
|
+
*
|
|
7750
|
+
* @summary Authentifie ou crée un utilisateur via Google OAuth
|
|
7751
|
+
* @param {GoogleSignInRequestBody} googleSignInRequestBody
|
|
7752
|
+
* @param {*} [options] Override http request option.
|
|
7753
|
+
* @throws {RequiredError}
|
|
7754
|
+
*/
|
|
7755
|
+
async signInOrSignUpWithGoogle(googleSignInRequestBody: GoogleSignInRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GoogleSignInResponse>> {
|
|
7756
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.signInOrSignUpWithGoogle(googleSignInRequestBody, options);
|
|
7757
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7758
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.signInOrSignUpWithGoogle']?.[localVarOperationServerIndex]?.url;
|
|
7759
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7760
|
+
},
|
|
7761
|
+
/**
|
|
7762
|
+
*
|
|
7763
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
7764
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
7765
|
+
* @param {*} [options] Override http request option.
|
|
7766
|
+
* @throws {RequiredError}
|
|
7767
|
+
*/
|
|
7768
|
+
async subscribeToClub(subscribeToClubRequestBody: SubscribeToClubRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionResponse>> {
|
|
7769
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
|
|
7770
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7771
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.subscribeToClub']?.[localVarOperationServerIndex]?.url;
|
|
7772
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7773
|
+
},
|
|
7774
|
+
/**
|
|
7775
|
+
*
|
|
7776
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
7777
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
7778
|
+
* @param {*} [options] Override http request option.
|
|
7779
|
+
* @throws {RequiredError}
|
|
7780
|
+
*/
|
|
7781
|
+
async updateCustomer(updateCustomerRequestBody: UpdateCustomerRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponse>> {
|
|
7782
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
|
|
7783
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7784
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.updateCustomer']?.[localVarOperationServerIndex]?.url;
|
|
7785
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7786
|
+
},
|
|
6762
7787
|
/**
|
|
6763
7788
|
*
|
|
6764
7789
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -6782,6 +7807,16 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
6782
7807
|
export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6783
7808
|
const localVarFp = UsersApiFp(configuration)
|
|
6784
7809
|
return {
|
|
7810
|
+
/**
|
|
7811
|
+
*
|
|
7812
|
+
* @summary Annule un abonnement utilisateur
|
|
7813
|
+
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
7814
|
+
* @param {*} [options] Override http request option.
|
|
7815
|
+
* @throws {RequiredError}
|
|
7816
|
+
*/
|
|
7817
|
+
cancelSubscription(requestParameters: UsersApiCancelSubscriptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionResponse> {
|
|
7818
|
+
return localVarFp.cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
7819
|
+
},
|
|
6785
7820
|
/**
|
|
6786
7821
|
*
|
|
6787
7822
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -6794,12 +7829,13 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
6794
7829
|
},
|
|
6795
7830
|
/**
|
|
6796
7831
|
*
|
|
6797
|
-
* @summary Récupère la liste des utilisateurs
|
|
7832
|
+
* @summary Récupère la liste des utilisateurs avec filtres et pagination
|
|
7833
|
+
* @param {UsersApiGetAllUsersRequest} requestParameters Request parameters.
|
|
6798
7834
|
* @param {*} [options] Override http request option.
|
|
6799
7835
|
* @throws {RequiredError}
|
|
6800
7836
|
*/
|
|
6801
|
-
getAllUsers(options?: RawAxiosRequestConfig): AxiosPromise<Array<UserResponse>> {
|
|
6802
|
-
return localVarFp.getAllUsers(options).then((request) => request(axios, basePath));
|
|
7837
|
+
getAllUsers(requestParameters: UsersApiGetAllUsersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserResponse>> {
|
|
7838
|
+
return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, requestParameters.sport, requestParameters.matchType, requestParameters.niveau, requestParameters.rank, requestParameters.isLookingForPartner, requestParameters.username, requestParameters.email, requestParameters.description, requestParameters.gender, options).then((request) => request(axios, basePath));
|
|
6803
7839
|
},
|
|
6804
7840
|
/**
|
|
6805
7841
|
*
|
|
@@ -6816,9 +7852,28 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
6816
7852
|
* @param {*} [options] Override http request option.
|
|
6817
7853
|
* @throws {RequiredError}
|
|
6818
7854
|
*/
|
|
6819
|
-
getUserRolesInClubs(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7855
|
+
getUserRolesInClubs(options?: RawAxiosRequestConfig): AxiosPromise<GetUserRolesResponse> {
|
|
6820
7856
|
return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
|
|
6821
7857
|
},
|
|
7858
|
+
/**
|
|
7859
|
+
*
|
|
7860
|
+
* @summary Récupère les abonnements de l\'utilisateur connecté
|
|
7861
|
+
* @param {*} [options] Override http request option.
|
|
7862
|
+
* @throws {RequiredError}
|
|
7863
|
+
*/
|
|
7864
|
+
getUserSubscriptions(options?: RawAxiosRequestConfig): AxiosPromise<GetUserSubscriptionsResponse> {
|
|
7865
|
+
return localVarFp.getUserSubscriptions(options).then((request) => request(axios, basePath));
|
|
7866
|
+
},
|
|
7867
|
+
/**
|
|
7868
|
+
*
|
|
7869
|
+
* @summary Initie une session d\'abonnement Stripe
|
|
7870
|
+
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
7871
|
+
* @param {*} [options] Override http request option.
|
|
7872
|
+
* @throws {RequiredError}
|
|
7873
|
+
*/
|
|
7874
|
+
initiateSubscriptionSession(requestParameters: UsersApiInitiateSubscriptionSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<InitiateSubscriptionSessionResponse> {
|
|
7875
|
+
return localVarFp.initiateSubscriptionSession(requestParameters.initiateSubscriptionSessionRequestBody, options).then((request) => request(axios, basePath));
|
|
7876
|
+
},
|
|
6822
7877
|
/**
|
|
6823
7878
|
*
|
|
6824
7879
|
* @summary Authentifie un utilisateur
|
|
@@ -6849,6 +7904,46 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
6849
7904
|
register(requestParameters: UsersApiRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserResponse> {
|
|
6850
7905
|
return localVarFp.register(requestParameters.registerRequestBody, options).then((request) => request(axios, basePath));
|
|
6851
7906
|
},
|
|
7907
|
+
/**
|
|
7908
|
+
*
|
|
7909
|
+
* @summary Réactive un abonnement utilisateur
|
|
7910
|
+
* @param {UsersApiResumeSubscriptionRequest} requestParameters Request parameters.
|
|
7911
|
+
* @param {*} [options] Override http request option.
|
|
7912
|
+
* @throws {RequiredError}
|
|
7913
|
+
*/
|
|
7914
|
+
resumeSubscription(requestParameters: UsersApiResumeSubscriptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionResponse> {
|
|
7915
|
+
return localVarFp.resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
7916
|
+
},
|
|
7917
|
+
/**
|
|
7918
|
+
*
|
|
7919
|
+
* @summary Authentifie ou crée un utilisateur via Google OAuth
|
|
7920
|
+
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
7921
|
+
* @param {*} [options] Override http request option.
|
|
7922
|
+
* @throws {RequiredError}
|
|
7923
|
+
*/
|
|
7924
|
+
signInOrSignUpWithGoogle(requestParameters: UsersApiSignInOrSignUpWithGoogleRequest, options?: RawAxiosRequestConfig): AxiosPromise<GoogleSignInResponse> {
|
|
7925
|
+
return localVarFp.signInOrSignUpWithGoogle(requestParameters.googleSignInRequestBody, options).then((request) => request(axios, basePath));
|
|
7926
|
+
},
|
|
7927
|
+
/**
|
|
7928
|
+
*
|
|
7929
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
7930
|
+
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
7931
|
+
* @param {*} [options] Override http request option.
|
|
7932
|
+
* @throws {RequiredError}
|
|
7933
|
+
*/
|
|
7934
|
+
subscribeToClub(requestParameters: UsersApiSubscribeToClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionResponse> {
|
|
7935
|
+
return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
|
|
7936
|
+
},
|
|
7937
|
+
/**
|
|
7938
|
+
*
|
|
7939
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
7940
|
+
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
7941
|
+
* @param {*} [options] Override http request option.
|
|
7942
|
+
* @throws {RequiredError}
|
|
7943
|
+
*/
|
|
7944
|
+
updateCustomer(requestParameters: UsersApiUpdateCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateCustomerResponse> {
|
|
7945
|
+
return localVarFp.updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(axios, basePath));
|
|
7946
|
+
},
|
|
6852
7947
|
/**
|
|
6853
7948
|
*
|
|
6854
7949
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -6862,6 +7957,27 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
6862
7957
|
};
|
|
6863
7958
|
};
|
|
6864
7959
|
|
|
7960
|
+
/**
|
|
7961
|
+
* Request parameters for cancelSubscription operation in UsersApi.
|
|
7962
|
+
* @export
|
|
7963
|
+
* @interface UsersApiCancelSubscriptionRequest
|
|
7964
|
+
*/
|
|
7965
|
+
export interface UsersApiCancelSubscriptionRequest {
|
|
7966
|
+
/**
|
|
7967
|
+
* ID du club
|
|
7968
|
+
* @type {string}
|
|
7969
|
+
* @memberof UsersApiCancelSubscription
|
|
7970
|
+
*/
|
|
7971
|
+
readonly clubId: string
|
|
7972
|
+
|
|
7973
|
+
/**
|
|
7974
|
+
* ID de l\'abonnement à annuler
|
|
7975
|
+
* @type {string}
|
|
7976
|
+
* @memberof UsersApiCancelSubscription
|
|
7977
|
+
*/
|
|
7978
|
+
readonly subscriptionId: string
|
|
7979
|
+
}
|
|
7980
|
+
|
|
6865
7981
|
/**
|
|
6866
7982
|
* Request parameters for changePassword operation in UsersApi.
|
|
6867
7983
|
* @export
|
|
@@ -6876,6 +7992,111 @@ export interface UsersApiChangePasswordRequest {
|
|
|
6876
7992
|
readonly changePasswordRequestBody: ChangePasswordRequestBody
|
|
6877
7993
|
}
|
|
6878
7994
|
|
|
7995
|
+
/**
|
|
7996
|
+
* Request parameters for getAllUsers operation in UsersApi.
|
|
7997
|
+
* @export
|
|
7998
|
+
* @interface UsersApiGetAllUsersRequest
|
|
7999
|
+
*/
|
|
8000
|
+
export interface UsersApiGetAllUsersRequest {
|
|
8001
|
+
/**
|
|
8002
|
+
* Nombre maximum d\'utilisateurs à retourner
|
|
8003
|
+
* @type {number}
|
|
8004
|
+
* @memberof UsersApiGetAllUsers
|
|
8005
|
+
*/
|
|
8006
|
+
readonly limit?: number
|
|
8007
|
+
|
|
8008
|
+
/**
|
|
8009
|
+
* Nombre d\'utilisateurs à ignorer (pagination)
|
|
8010
|
+
* @type {number}
|
|
8011
|
+
* @memberof UsersApiGetAllUsers
|
|
8012
|
+
*/
|
|
8013
|
+
readonly skip?: number
|
|
8014
|
+
|
|
8015
|
+
/**
|
|
8016
|
+
* Recherche dans firstName, lastName, email
|
|
8017
|
+
* @type {string}
|
|
8018
|
+
* @memberof UsersApiGetAllUsers
|
|
8019
|
+
*/
|
|
8020
|
+
readonly search?: string
|
|
8021
|
+
|
|
8022
|
+
/**
|
|
8023
|
+
* Filtre par sport
|
|
8024
|
+
* @type {string}
|
|
8025
|
+
* @memberof UsersApiGetAllUsers
|
|
8026
|
+
*/
|
|
8027
|
+
readonly sport?: string
|
|
8028
|
+
|
|
8029
|
+
/**
|
|
8030
|
+
* Filtre par type de match
|
|
8031
|
+
* @type {string}
|
|
8032
|
+
* @memberof UsersApiGetAllUsers
|
|
8033
|
+
*/
|
|
8034
|
+
readonly matchType?: string
|
|
8035
|
+
|
|
8036
|
+
/**
|
|
8037
|
+
* Filtre par niveau
|
|
8038
|
+
* @type {string}
|
|
8039
|
+
* @memberof UsersApiGetAllUsers
|
|
8040
|
+
*/
|
|
8041
|
+
readonly niveau?: string
|
|
8042
|
+
|
|
8043
|
+
/**
|
|
8044
|
+
* Filtre par rang
|
|
8045
|
+
* @type {string}
|
|
8046
|
+
* @memberof UsersApiGetAllUsers
|
|
8047
|
+
*/
|
|
8048
|
+
readonly rank?: string
|
|
8049
|
+
|
|
8050
|
+
/**
|
|
8051
|
+
* Filtre par disponibilité pour partenaire
|
|
8052
|
+
* @type {'true' | 'false'}
|
|
8053
|
+
* @memberof UsersApiGetAllUsers
|
|
8054
|
+
*/
|
|
8055
|
+
readonly isLookingForPartner?: GetAllUsersIsLookingForPartnerEnum
|
|
8056
|
+
|
|
8057
|
+
/**
|
|
8058
|
+
* Filtre par nom d\'utilisateur
|
|
8059
|
+
* @type {string}
|
|
8060
|
+
* @memberof UsersApiGetAllUsers
|
|
8061
|
+
*/
|
|
8062
|
+
readonly username?: string
|
|
8063
|
+
|
|
8064
|
+
/**
|
|
8065
|
+
* Filtre par email
|
|
8066
|
+
* @type {string}
|
|
8067
|
+
* @memberof UsersApiGetAllUsers
|
|
8068
|
+
*/
|
|
8069
|
+
readonly email?: string
|
|
8070
|
+
|
|
8071
|
+
/**
|
|
8072
|
+
* Filtre par description
|
|
8073
|
+
* @type {string}
|
|
8074
|
+
* @memberof UsersApiGetAllUsers
|
|
8075
|
+
*/
|
|
8076
|
+
readonly description?: string
|
|
8077
|
+
|
|
8078
|
+
/**
|
|
8079
|
+
* Filtre par genre
|
|
8080
|
+
* @type {string}
|
|
8081
|
+
* @memberof UsersApiGetAllUsers
|
|
8082
|
+
*/
|
|
8083
|
+
readonly gender?: string
|
|
8084
|
+
}
|
|
8085
|
+
|
|
8086
|
+
/**
|
|
8087
|
+
* Request parameters for initiateSubscriptionSession operation in UsersApi.
|
|
8088
|
+
* @export
|
|
8089
|
+
* @interface UsersApiInitiateSubscriptionSessionRequest
|
|
8090
|
+
*/
|
|
8091
|
+
export interface UsersApiInitiateSubscriptionSessionRequest {
|
|
8092
|
+
/**
|
|
8093
|
+
*
|
|
8094
|
+
* @type {InitiateSubscriptionSessionRequestBody}
|
|
8095
|
+
* @memberof UsersApiInitiateSubscriptionSession
|
|
8096
|
+
*/
|
|
8097
|
+
readonly initiateSubscriptionSessionRequestBody: InitiateSubscriptionSessionRequestBody
|
|
8098
|
+
}
|
|
8099
|
+
|
|
6879
8100
|
/**
|
|
6880
8101
|
* Request parameters for login operation in UsersApi.
|
|
6881
8102
|
* @export
|
|
@@ -6918,6 +8139,69 @@ export interface UsersApiRegisterRequest {
|
|
|
6918
8139
|
readonly registerRequestBody: RegisterRequestBody
|
|
6919
8140
|
}
|
|
6920
8141
|
|
|
8142
|
+
/**
|
|
8143
|
+
* Request parameters for resumeSubscription operation in UsersApi.
|
|
8144
|
+
* @export
|
|
8145
|
+
* @interface UsersApiResumeSubscriptionRequest
|
|
8146
|
+
*/
|
|
8147
|
+
export interface UsersApiResumeSubscriptionRequest {
|
|
8148
|
+
/**
|
|
8149
|
+
* ID du club
|
|
8150
|
+
* @type {string}
|
|
8151
|
+
* @memberof UsersApiResumeSubscription
|
|
8152
|
+
*/
|
|
8153
|
+
readonly clubId: string
|
|
8154
|
+
|
|
8155
|
+
/**
|
|
8156
|
+
* ID de l\'abonnement à réactiver
|
|
8157
|
+
* @type {string}
|
|
8158
|
+
* @memberof UsersApiResumeSubscription
|
|
8159
|
+
*/
|
|
8160
|
+
readonly subscriptionId: string
|
|
8161
|
+
}
|
|
8162
|
+
|
|
8163
|
+
/**
|
|
8164
|
+
* Request parameters for signInOrSignUpWithGoogle operation in UsersApi.
|
|
8165
|
+
* @export
|
|
8166
|
+
* @interface UsersApiSignInOrSignUpWithGoogleRequest
|
|
8167
|
+
*/
|
|
8168
|
+
export interface UsersApiSignInOrSignUpWithGoogleRequest {
|
|
8169
|
+
/**
|
|
8170
|
+
*
|
|
8171
|
+
* @type {GoogleSignInRequestBody}
|
|
8172
|
+
* @memberof UsersApiSignInOrSignUpWithGoogle
|
|
8173
|
+
*/
|
|
8174
|
+
readonly googleSignInRequestBody: GoogleSignInRequestBody
|
|
8175
|
+
}
|
|
8176
|
+
|
|
8177
|
+
/**
|
|
8178
|
+
* Request parameters for subscribeToClub operation in UsersApi.
|
|
8179
|
+
* @export
|
|
8180
|
+
* @interface UsersApiSubscribeToClubRequest
|
|
8181
|
+
*/
|
|
8182
|
+
export interface UsersApiSubscribeToClubRequest {
|
|
8183
|
+
/**
|
|
8184
|
+
*
|
|
8185
|
+
* @type {SubscribeToClubRequestBody}
|
|
8186
|
+
* @memberof UsersApiSubscribeToClub
|
|
8187
|
+
*/
|
|
8188
|
+
readonly subscribeToClubRequestBody: SubscribeToClubRequestBody
|
|
8189
|
+
}
|
|
8190
|
+
|
|
8191
|
+
/**
|
|
8192
|
+
* Request parameters for updateCustomer operation in UsersApi.
|
|
8193
|
+
* @export
|
|
8194
|
+
* @interface UsersApiUpdateCustomerRequest
|
|
8195
|
+
*/
|
|
8196
|
+
export interface UsersApiUpdateCustomerRequest {
|
|
8197
|
+
/**
|
|
8198
|
+
*
|
|
8199
|
+
* @type {UpdateCustomerRequestBody}
|
|
8200
|
+
* @memberof UsersApiUpdateCustomer
|
|
8201
|
+
*/
|
|
8202
|
+
readonly updateCustomerRequestBody: UpdateCustomerRequestBody
|
|
8203
|
+
}
|
|
8204
|
+
|
|
6921
8205
|
/**
|
|
6922
8206
|
* Request parameters for updateUser operation in UsersApi.
|
|
6923
8207
|
* @export
|
|
@@ -6939,6 +8223,18 @@ export interface UsersApiUpdateUserRequest {
|
|
|
6939
8223
|
* @extends {BaseAPI}
|
|
6940
8224
|
*/
|
|
6941
8225
|
export class UsersApi extends BaseAPI {
|
|
8226
|
+
/**
|
|
8227
|
+
*
|
|
8228
|
+
* @summary Annule un abonnement utilisateur
|
|
8229
|
+
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
8230
|
+
* @param {*} [options] Override http request option.
|
|
8231
|
+
* @throws {RequiredError}
|
|
8232
|
+
* @memberof UsersApi
|
|
8233
|
+
*/
|
|
8234
|
+
public cancelSubscription(requestParameters: UsersApiCancelSubscriptionRequest, options?: RawAxiosRequestConfig) {
|
|
8235
|
+
return UsersApiFp(this.configuration).cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
8236
|
+
}
|
|
8237
|
+
|
|
6942
8238
|
/**
|
|
6943
8239
|
*
|
|
6944
8240
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -6953,13 +8249,14 @@ export class UsersApi extends BaseAPI {
|
|
|
6953
8249
|
|
|
6954
8250
|
/**
|
|
6955
8251
|
*
|
|
6956
|
-
* @summary Récupère la liste des utilisateurs
|
|
8252
|
+
* @summary Récupère la liste des utilisateurs avec filtres et pagination
|
|
8253
|
+
* @param {UsersApiGetAllUsersRequest} requestParameters Request parameters.
|
|
6957
8254
|
* @param {*} [options] Override http request option.
|
|
6958
8255
|
* @throws {RequiredError}
|
|
6959
8256
|
* @memberof UsersApi
|
|
6960
8257
|
*/
|
|
6961
|
-
public getAllUsers(options?: RawAxiosRequestConfig) {
|
|
6962
|
-
return UsersApiFp(this.configuration).getAllUsers(options).then((request) => request(this.axios, this.basePath));
|
|
8258
|
+
public getAllUsers(requestParameters: UsersApiGetAllUsersRequest = {}, options?: RawAxiosRequestConfig) {
|
|
8259
|
+
return UsersApiFp(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, requestParameters.sport, requestParameters.matchType, requestParameters.niveau, requestParameters.rank, requestParameters.isLookingForPartner, requestParameters.username, requestParameters.email, requestParameters.description, requestParameters.gender, options).then((request) => request(this.axios, this.basePath));
|
|
6963
8260
|
}
|
|
6964
8261
|
|
|
6965
8262
|
/**
|
|
@@ -6984,6 +8281,29 @@ export class UsersApi extends BaseAPI {
|
|
|
6984
8281
|
return UsersApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
6985
8282
|
}
|
|
6986
8283
|
|
|
8284
|
+
/**
|
|
8285
|
+
*
|
|
8286
|
+
* @summary Récupère les abonnements de l\'utilisateur connecté
|
|
8287
|
+
* @param {*} [options] Override http request option.
|
|
8288
|
+
* @throws {RequiredError}
|
|
8289
|
+
* @memberof UsersApi
|
|
8290
|
+
*/
|
|
8291
|
+
public getUserSubscriptions(options?: RawAxiosRequestConfig) {
|
|
8292
|
+
return UsersApiFp(this.configuration).getUserSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
8293
|
+
}
|
|
8294
|
+
|
|
8295
|
+
/**
|
|
8296
|
+
*
|
|
8297
|
+
* @summary Initie une session d\'abonnement Stripe
|
|
8298
|
+
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
8299
|
+
* @param {*} [options] Override http request option.
|
|
8300
|
+
* @throws {RequiredError}
|
|
8301
|
+
* @memberof UsersApi
|
|
8302
|
+
*/
|
|
8303
|
+
public initiateSubscriptionSession(requestParameters: UsersApiInitiateSubscriptionSessionRequest, options?: RawAxiosRequestConfig) {
|
|
8304
|
+
return UsersApiFp(this.configuration).initiateSubscriptionSession(requestParameters.initiateSubscriptionSessionRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8305
|
+
}
|
|
8306
|
+
|
|
6987
8307
|
/**
|
|
6988
8308
|
*
|
|
6989
8309
|
* @summary Authentifie un utilisateur
|
|
@@ -7020,6 +8340,54 @@ export class UsersApi extends BaseAPI {
|
|
|
7020
8340
|
return UsersApiFp(this.configuration).register(requestParameters.registerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7021
8341
|
}
|
|
7022
8342
|
|
|
8343
|
+
/**
|
|
8344
|
+
*
|
|
8345
|
+
* @summary Réactive un abonnement utilisateur
|
|
8346
|
+
* @param {UsersApiResumeSubscriptionRequest} requestParameters Request parameters.
|
|
8347
|
+
* @param {*} [options] Override http request option.
|
|
8348
|
+
* @throws {RequiredError}
|
|
8349
|
+
* @memberof UsersApi
|
|
8350
|
+
*/
|
|
8351
|
+
public resumeSubscription(requestParameters: UsersApiResumeSubscriptionRequest, options?: RawAxiosRequestConfig) {
|
|
8352
|
+
return UsersApiFp(this.configuration).resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
8353
|
+
}
|
|
8354
|
+
|
|
8355
|
+
/**
|
|
8356
|
+
*
|
|
8357
|
+
* @summary Authentifie ou crée un utilisateur via Google OAuth
|
|
8358
|
+
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
8359
|
+
* @param {*} [options] Override http request option.
|
|
8360
|
+
* @throws {RequiredError}
|
|
8361
|
+
* @memberof UsersApi
|
|
8362
|
+
*/
|
|
8363
|
+
public signInOrSignUpWithGoogle(requestParameters: UsersApiSignInOrSignUpWithGoogleRequest, options?: RawAxiosRequestConfig) {
|
|
8364
|
+
return UsersApiFp(this.configuration).signInOrSignUpWithGoogle(requestParameters.googleSignInRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8365
|
+
}
|
|
8366
|
+
|
|
8367
|
+
/**
|
|
8368
|
+
*
|
|
8369
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
8370
|
+
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
8371
|
+
* @param {*} [options] Override http request option.
|
|
8372
|
+
* @throws {RequiredError}
|
|
8373
|
+
* @memberof UsersApi
|
|
8374
|
+
*/
|
|
8375
|
+
public subscribeToClub(requestParameters: UsersApiSubscribeToClubRequest, options?: RawAxiosRequestConfig) {
|
|
8376
|
+
return UsersApiFp(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8377
|
+
}
|
|
8378
|
+
|
|
8379
|
+
/**
|
|
8380
|
+
*
|
|
8381
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
8382
|
+
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
8383
|
+
* @param {*} [options] Override http request option.
|
|
8384
|
+
* @throws {RequiredError}
|
|
8385
|
+
* @memberof UsersApi
|
|
8386
|
+
*/
|
|
8387
|
+
public updateCustomer(requestParameters: UsersApiUpdateCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
8388
|
+
return UsersApiFp(this.configuration).updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8389
|
+
}
|
|
8390
|
+
|
|
7023
8391
|
/**
|
|
7024
8392
|
*
|
|
7025
8393
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -7033,5 +8401,13 @@ export class UsersApi extends BaseAPI {
|
|
|
7033
8401
|
}
|
|
7034
8402
|
}
|
|
7035
8403
|
|
|
8404
|
+
/**
|
|
8405
|
+
* @export
|
|
8406
|
+
*/
|
|
8407
|
+
export const GetAllUsersIsLookingForPartnerEnum = {
|
|
8408
|
+
True: 'true',
|
|
8409
|
+
False: 'false'
|
|
8410
|
+
} as const;
|
|
8411
|
+
export type GetAllUsersIsLookingForPartnerEnum = typeof GetAllUsersIsLookingForPartnerEnum[keyof typeof GetAllUsersIsLookingForPartnerEnum];
|
|
7036
8412
|
|
|
7037
8413
|
|