@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/dist/esm/api.js
CHANGED
|
@@ -77,6 +77,15 @@ export const StripeStatus = {
|
|
|
77
77
|
Refunded: 'refunded',
|
|
78
78
|
Canceled: 'canceled'
|
|
79
79
|
};
|
|
80
|
+
export const SubscriptionResponseStatusEnum = {
|
|
81
|
+
Active: 'active',
|
|
82
|
+
Canceled: 'canceled',
|
|
83
|
+
Incomplete: 'incomplete',
|
|
84
|
+
IncompleteExpired: 'incomplete_expired',
|
|
85
|
+
PastDue: 'past_due',
|
|
86
|
+
Trialing: 'trialing',
|
|
87
|
+
Unpaid: 'unpaid'
|
|
88
|
+
};
|
|
80
89
|
/**
|
|
81
90
|
* BookingsApi - axios parameter creator
|
|
82
91
|
* @export
|
|
@@ -1207,6 +1216,38 @@ export const ClubSlotsApiAxiosParamCreator = function (configuration) {
|
|
|
1207
1216
|
options: localVarRequestOptions,
|
|
1208
1217
|
};
|
|
1209
1218
|
}),
|
|
1219
|
+
/**
|
|
1220
|
+
*
|
|
1221
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
1222
|
+
* @param {string} clubID ID du club
|
|
1223
|
+
* @param {*} [options] Override http request option.
|
|
1224
|
+
* @throws {RequiredError}
|
|
1225
|
+
*/
|
|
1226
|
+
getAvailableSlotsByClub: (clubID_1, ...args_1) => __awaiter(this, [clubID_1, ...args_1], void 0, function* (clubID, options = {}) {
|
|
1227
|
+
// verify required parameter 'clubID' is not null or undefined
|
|
1228
|
+
assertParamExists('getAvailableSlotsByClub', 'clubID', clubID);
|
|
1229
|
+
const localVarPath = `/api/clubs/{clubID}/availableSlots/`
|
|
1230
|
+
.replace(`{${"clubID"}}`, encodeURIComponent(String(clubID)));
|
|
1231
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1232
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1233
|
+
let baseOptions;
|
|
1234
|
+
if (configuration) {
|
|
1235
|
+
baseOptions = configuration.baseOptions;
|
|
1236
|
+
}
|
|
1237
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1238
|
+
const localVarHeaderParameter = {};
|
|
1239
|
+
const localVarQueryParameter = {};
|
|
1240
|
+
// authentication bearerAuth required
|
|
1241
|
+
// http bearer authentication required
|
|
1242
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1243
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1244
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1245
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1246
|
+
return {
|
|
1247
|
+
url: toPathString(localVarUrlObj),
|
|
1248
|
+
options: localVarRequestOptions,
|
|
1249
|
+
};
|
|
1250
|
+
}),
|
|
1210
1251
|
/**
|
|
1211
1252
|
*
|
|
1212
1253
|
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
@@ -1382,6 +1423,22 @@ export const ClubSlotsApiFp = function (configuration) {
|
|
|
1382
1423
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1383
1424
|
});
|
|
1384
1425
|
},
|
|
1426
|
+
/**
|
|
1427
|
+
*
|
|
1428
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
1429
|
+
* @param {string} clubID ID du club
|
|
1430
|
+
* @param {*} [options] Override http request option.
|
|
1431
|
+
* @throws {RequiredError}
|
|
1432
|
+
*/
|
|
1433
|
+
getAvailableSlotsByClub(clubID, options) {
|
|
1434
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1435
|
+
var _a, _b, _c;
|
|
1436
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsByClub(clubID, options);
|
|
1437
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1438
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSlotsApi.getAvailableSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1439
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1440
|
+
});
|
|
1441
|
+
},
|
|
1385
1442
|
/**
|
|
1386
1443
|
*
|
|
1387
1444
|
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
@@ -1466,6 +1523,16 @@ export const ClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
|
1466
1523
|
generateSlotsForNextThreeWeeks(requestParameters, options) {
|
|
1467
1524
|
return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1468
1525
|
},
|
|
1526
|
+
/**
|
|
1527
|
+
*
|
|
1528
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
1529
|
+
* @param {ClubSlotsApiGetAvailableSlotsByClubRequest} requestParameters Request parameters.
|
|
1530
|
+
* @param {*} [options] Override http request option.
|
|
1531
|
+
* @throws {RequiredError}
|
|
1532
|
+
*/
|
|
1533
|
+
getAvailableSlotsByClub(requestParameters, options) {
|
|
1534
|
+
return localVarFp.getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(axios, basePath));
|
|
1535
|
+
},
|
|
1469
1536
|
/**
|
|
1470
1537
|
*
|
|
1471
1538
|
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
@@ -1527,6 +1594,17 @@ export class ClubSlotsApi extends BaseAPI {
|
|
|
1527
1594
|
generateSlotsForNextThreeWeeks(requestParameters, options) {
|
|
1528
1595
|
return ClubSlotsApiFp(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1529
1596
|
}
|
|
1597
|
+
/**
|
|
1598
|
+
*
|
|
1599
|
+
* @summary Obtenir tous les créneaux disponibles pour un club
|
|
1600
|
+
* @param {ClubSlotsApiGetAvailableSlotsByClubRequest} requestParameters Request parameters.
|
|
1601
|
+
* @param {*} [options] Override http request option.
|
|
1602
|
+
* @throws {RequiredError}
|
|
1603
|
+
* @memberof ClubSlotsApi
|
|
1604
|
+
*/
|
|
1605
|
+
getAvailableSlotsByClub(requestParameters, options) {
|
|
1606
|
+
return ClubSlotsApiFp(this.configuration).getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(this.axios, this.basePath));
|
|
1607
|
+
}
|
|
1530
1608
|
/**
|
|
1531
1609
|
*
|
|
1532
1610
|
* @summary Obtenir tous les slots disponibles pour un sport dans un club
|
|
@@ -2412,6 +2490,34 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
2412
2490
|
options: localVarRequestOptions,
|
|
2413
2491
|
};
|
|
2414
2492
|
}),
|
|
2493
|
+
/**
|
|
2494
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
2495
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
2496
|
+
* @param {*} [options] Override http request option.
|
|
2497
|
+
* @throws {RequiredError}
|
|
2498
|
+
*/
|
|
2499
|
+
getActiveClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2500
|
+
const localVarPath = `/api/clubs/activeClubs/`;
|
|
2501
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2502
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2503
|
+
let baseOptions;
|
|
2504
|
+
if (configuration) {
|
|
2505
|
+
baseOptions = configuration.baseOptions;
|
|
2506
|
+
}
|
|
2507
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2508
|
+
const localVarHeaderParameter = {};
|
|
2509
|
+
const localVarQueryParameter = {};
|
|
2510
|
+
// authentication bearerAuth required
|
|
2511
|
+
// http bearer authentication required
|
|
2512
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2513
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2514
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2515
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2516
|
+
return {
|
|
2517
|
+
url: toPathString(localVarUrlObj),
|
|
2518
|
+
options: localVarRequestOptions,
|
|
2519
|
+
};
|
|
2520
|
+
}),
|
|
2415
2521
|
/**
|
|
2416
2522
|
*
|
|
2417
2523
|
* @summary Récupérer tous les clubs
|
|
@@ -2631,6 +2737,21 @@ export const ClubsApiFp = function (configuration) {
|
|
|
2631
2737
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2632
2738
|
});
|
|
2633
2739
|
},
|
|
2740
|
+
/**
|
|
2741
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
2742
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
2743
|
+
* @param {*} [options] Override http request option.
|
|
2744
|
+
* @throws {RequiredError}
|
|
2745
|
+
*/
|
|
2746
|
+
getActiveClubs(options) {
|
|
2747
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2748
|
+
var _a, _b, _c;
|
|
2749
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getActiveClubs(options);
|
|
2750
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2751
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getActiveClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2752
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2753
|
+
});
|
|
2754
|
+
},
|
|
2634
2755
|
/**
|
|
2635
2756
|
*
|
|
2636
2757
|
* @summary Récupérer tous les clubs
|
|
@@ -2750,6 +2871,15 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
2750
2871
|
deleteClub(requestParameters, options) {
|
|
2751
2872
|
return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2752
2873
|
},
|
|
2874
|
+
/**
|
|
2875
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
2876
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
2877
|
+
* @param {*} [options] Override http request option.
|
|
2878
|
+
* @throws {RequiredError}
|
|
2879
|
+
*/
|
|
2880
|
+
getActiveClubs(options) {
|
|
2881
|
+
return localVarFp.getActiveClubs(options).then((request) => request(axios, basePath));
|
|
2882
|
+
},
|
|
2753
2883
|
/**
|
|
2754
2884
|
*
|
|
2755
2885
|
* @summary Récupérer tous les clubs
|
|
@@ -2841,6 +2971,16 @@ export class ClubsApi extends BaseAPI {
|
|
|
2841
2971
|
deleteClub(requestParameters, options) {
|
|
2842
2972
|
return ClubsApiFp(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2843
2973
|
}
|
|
2974
|
+
/**
|
|
2975
|
+
* Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
2976
|
+
* @summary Obtenir la liste des clubs actifs (seulement id et nom)
|
|
2977
|
+
* @param {*} [options] Override http request option.
|
|
2978
|
+
* @throws {RequiredError}
|
|
2979
|
+
* @memberof ClubsApi
|
|
2980
|
+
*/
|
|
2981
|
+
getActiveClubs(options) {
|
|
2982
|
+
return ClubsApiFp(this.configuration).getActiveClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2983
|
+
}
|
|
2844
2984
|
/**
|
|
2845
2985
|
*
|
|
2846
2986
|
* @summary Récupérer tous les clubs
|
|
@@ -3220,6 +3360,42 @@ export class SportsApi extends BaseAPI {
|
|
|
3220
3360
|
*/
|
|
3221
3361
|
export const UsersApiAxiosParamCreator = function (configuration) {
|
|
3222
3362
|
return {
|
|
3363
|
+
/**
|
|
3364
|
+
*
|
|
3365
|
+
* @summary Annule un abonnement utilisateur
|
|
3366
|
+
* @param {string} clubId ID du club
|
|
3367
|
+
* @param {string} subscriptionId ID de l\'abonnement à annuler
|
|
3368
|
+
* @param {*} [options] Override http request option.
|
|
3369
|
+
* @throws {RequiredError}
|
|
3370
|
+
*/
|
|
3371
|
+
cancelSubscription: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
3372
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
3373
|
+
assertParamExists('cancelSubscription', 'clubId', clubId);
|
|
3374
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
3375
|
+
assertParamExists('cancelSubscription', 'subscriptionId', subscriptionId);
|
|
3376
|
+
const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}`
|
|
3377
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
3378
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
3379
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3380
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3381
|
+
let baseOptions;
|
|
3382
|
+
if (configuration) {
|
|
3383
|
+
baseOptions = configuration.baseOptions;
|
|
3384
|
+
}
|
|
3385
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3386
|
+
const localVarHeaderParameter = {};
|
|
3387
|
+
const localVarQueryParameter = {};
|
|
3388
|
+
// authentication bearerAuth required
|
|
3389
|
+
// http bearer authentication required
|
|
3390
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3391
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3392
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3393
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3394
|
+
return {
|
|
3395
|
+
url: toPathString(localVarUrlObj),
|
|
3396
|
+
options: localVarRequestOptions,
|
|
3397
|
+
};
|
|
3398
|
+
}),
|
|
3223
3399
|
/**
|
|
3224
3400
|
*
|
|
3225
3401
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -3255,11 +3431,23 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
3255
3431
|
}),
|
|
3256
3432
|
/**
|
|
3257
3433
|
*
|
|
3258
|
-
* @summary Récupère la liste des utilisateurs
|
|
3434
|
+
* @summary Récupère la liste des utilisateurs avec filtres et pagination
|
|
3435
|
+
* @param {number} [limit] Nombre maximum d\'utilisateurs à retourner
|
|
3436
|
+
* @param {number} [skip] Nombre d\'utilisateurs à ignorer (pagination)
|
|
3437
|
+
* @param {string} [search] Recherche dans firstName, lastName, email
|
|
3438
|
+
* @param {string} [sport] Filtre par sport
|
|
3439
|
+
* @param {string} [matchType] Filtre par type de match
|
|
3440
|
+
* @param {string} [niveau] Filtre par niveau
|
|
3441
|
+
* @param {string} [rank] Filtre par rang
|
|
3442
|
+
* @param {GetAllUsersIsLookingForPartnerEnum} [isLookingForPartner] Filtre par disponibilité pour partenaire
|
|
3443
|
+
* @param {string} [username] Filtre par nom d\'utilisateur
|
|
3444
|
+
* @param {string} [email] Filtre par email
|
|
3445
|
+
* @param {string} [description] Filtre par description
|
|
3446
|
+
* @param {string} [gender] Filtre par genre
|
|
3259
3447
|
* @param {*} [options] Override http request option.
|
|
3260
3448
|
* @throws {RequiredError}
|
|
3261
3449
|
*/
|
|
3262
|
-
getAllUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3450
|
+
getAllUsers: (limit_1, skip_1, search_1, sport_1, matchType_1, niveau_1, rank_1, isLookingForPartner_1, username_1, email_1, description_1, gender_1, ...args_1) => __awaiter(this, [limit_1, skip_1, search_1, sport_1, matchType_1, niveau_1, rank_1, isLookingForPartner_1, username_1, email_1, description_1, gender_1, ...args_1], void 0, function* (limit, skip, search, sport, matchType, niveau, rank, isLookingForPartner, username, email, description, gender, options = {}) {
|
|
3263
3451
|
const localVarPath = `/api/users`;
|
|
3264
3452
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3265
3453
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3273,6 +3461,42 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
3273
3461
|
// authentication bearerAuth required
|
|
3274
3462
|
// http bearer authentication required
|
|
3275
3463
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3464
|
+
if (limit !== undefined) {
|
|
3465
|
+
localVarQueryParameter['limit'] = limit;
|
|
3466
|
+
}
|
|
3467
|
+
if (skip !== undefined) {
|
|
3468
|
+
localVarQueryParameter['skip'] = skip;
|
|
3469
|
+
}
|
|
3470
|
+
if (search !== undefined) {
|
|
3471
|
+
localVarQueryParameter['search'] = search;
|
|
3472
|
+
}
|
|
3473
|
+
if (sport !== undefined) {
|
|
3474
|
+
localVarQueryParameter['sport'] = sport;
|
|
3475
|
+
}
|
|
3476
|
+
if (matchType !== undefined) {
|
|
3477
|
+
localVarQueryParameter['matchType'] = matchType;
|
|
3478
|
+
}
|
|
3479
|
+
if (niveau !== undefined) {
|
|
3480
|
+
localVarQueryParameter['niveau'] = niveau;
|
|
3481
|
+
}
|
|
3482
|
+
if (rank !== undefined) {
|
|
3483
|
+
localVarQueryParameter['rank'] = rank;
|
|
3484
|
+
}
|
|
3485
|
+
if (isLookingForPartner !== undefined) {
|
|
3486
|
+
localVarQueryParameter['isLookingForPartner'] = isLookingForPartner;
|
|
3487
|
+
}
|
|
3488
|
+
if (username !== undefined) {
|
|
3489
|
+
localVarQueryParameter['username'] = username;
|
|
3490
|
+
}
|
|
3491
|
+
if (email !== undefined) {
|
|
3492
|
+
localVarQueryParameter['email'] = email;
|
|
3493
|
+
}
|
|
3494
|
+
if (description !== undefined) {
|
|
3495
|
+
localVarQueryParameter['description'] = description;
|
|
3496
|
+
}
|
|
3497
|
+
if (gender !== undefined) {
|
|
3498
|
+
localVarQueryParameter['gender'] = gender;
|
|
3499
|
+
}
|
|
3276
3500
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3277
3501
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3278
3502
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3337,6 +3561,67 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
3337
3561
|
options: localVarRequestOptions,
|
|
3338
3562
|
};
|
|
3339
3563
|
}),
|
|
3564
|
+
/**
|
|
3565
|
+
*
|
|
3566
|
+
* @summary Récupère les abonnements de l\'utilisateur connecté
|
|
3567
|
+
* @param {*} [options] Override http request option.
|
|
3568
|
+
* @throws {RequiredError}
|
|
3569
|
+
*/
|
|
3570
|
+
getUserSubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3571
|
+
const localVarPath = `/api/users/me/subscriptions`;
|
|
3572
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3573
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3574
|
+
let baseOptions;
|
|
3575
|
+
if (configuration) {
|
|
3576
|
+
baseOptions = configuration.baseOptions;
|
|
3577
|
+
}
|
|
3578
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3579
|
+
const localVarHeaderParameter = {};
|
|
3580
|
+
const localVarQueryParameter = {};
|
|
3581
|
+
// authentication bearerAuth required
|
|
3582
|
+
// http bearer authentication required
|
|
3583
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3584
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3585
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3586
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3587
|
+
return {
|
|
3588
|
+
url: toPathString(localVarUrlObj),
|
|
3589
|
+
options: localVarRequestOptions,
|
|
3590
|
+
};
|
|
3591
|
+
}),
|
|
3592
|
+
/**
|
|
3593
|
+
*
|
|
3594
|
+
* @summary Initie une session d\'abonnement Stripe
|
|
3595
|
+
* @param {InitiateSubscriptionSessionRequestBody} initiateSubscriptionSessionRequestBody
|
|
3596
|
+
* @param {*} [options] Override http request option.
|
|
3597
|
+
* @throws {RequiredError}
|
|
3598
|
+
*/
|
|
3599
|
+
initiateSubscriptionSession: (initiateSubscriptionSessionRequestBody_1, ...args_1) => __awaiter(this, [initiateSubscriptionSessionRequestBody_1, ...args_1], void 0, function* (initiateSubscriptionSessionRequestBody, options = {}) {
|
|
3600
|
+
// verify required parameter 'initiateSubscriptionSessionRequestBody' is not null or undefined
|
|
3601
|
+
assertParamExists('initiateSubscriptionSession', 'initiateSubscriptionSessionRequestBody', initiateSubscriptionSessionRequestBody);
|
|
3602
|
+
const localVarPath = `/api/users/me/subscription-session`;
|
|
3603
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3604
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3605
|
+
let baseOptions;
|
|
3606
|
+
if (configuration) {
|
|
3607
|
+
baseOptions = configuration.baseOptions;
|
|
3608
|
+
}
|
|
3609
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3610
|
+
const localVarHeaderParameter = {};
|
|
3611
|
+
const localVarQueryParameter = {};
|
|
3612
|
+
// authentication bearerAuth required
|
|
3613
|
+
// http bearer authentication required
|
|
3614
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3615
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3616
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3617
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3618
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3619
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initiateSubscriptionSessionRequestBody, localVarRequestOptions, configuration);
|
|
3620
|
+
return {
|
|
3621
|
+
url: toPathString(localVarUrlObj),
|
|
3622
|
+
options: localVarRequestOptions,
|
|
3623
|
+
};
|
|
3624
|
+
}),
|
|
3340
3625
|
/**
|
|
3341
3626
|
*
|
|
3342
3627
|
* @summary Authentifie un utilisateur
|
|
@@ -3436,6 +3721,141 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
3436
3721
|
options: localVarRequestOptions,
|
|
3437
3722
|
};
|
|
3438
3723
|
}),
|
|
3724
|
+
/**
|
|
3725
|
+
*
|
|
3726
|
+
* @summary Réactive un abonnement utilisateur
|
|
3727
|
+
* @param {string} clubId ID du club
|
|
3728
|
+
* @param {string} subscriptionId ID de l\'abonnement à réactiver
|
|
3729
|
+
* @param {*} [options] Override http request option.
|
|
3730
|
+
* @throws {RequiredError}
|
|
3731
|
+
*/
|
|
3732
|
+
resumeSubscription: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
3733
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
3734
|
+
assertParamExists('resumeSubscription', 'clubId', clubId);
|
|
3735
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
3736
|
+
assertParamExists('resumeSubscription', 'subscriptionId', subscriptionId);
|
|
3737
|
+
const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
3738
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
3739
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
3740
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3741
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3742
|
+
let baseOptions;
|
|
3743
|
+
if (configuration) {
|
|
3744
|
+
baseOptions = configuration.baseOptions;
|
|
3745
|
+
}
|
|
3746
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3747
|
+
const localVarHeaderParameter = {};
|
|
3748
|
+
const localVarQueryParameter = {};
|
|
3749
|
+
// authentication bearerAuth required
|
|
3750
|
+
// http bearer authentication required
|
|
3751
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3752
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3753
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3754
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3755
|
+
return {
|
|
3756
|
+
url: toPathString(localVarUrlObj),
|
|
3757
|
+
options: localVarRequestOptions,
|
|
3758
|
+
};
|
|
3759
|
+
}),
|
|
3760
|
+
/**
|
|
3761
|
+
*
|
|
3762
|
+
* @summary Authentifie ou crée un utilisateur via Google OAuth
|
|
3763
|
+
* @param {GoogleSignInRequestBody} googleSignInRequestBody
|
|
3764
|
+
* @param {*} [options] Override http request option.
|
|
3765
|
+
* @throws {RequiredError}
|
|
3766
|
+
*/
|
|
3767
|
+
signInOrSignUpWithGoogle: (googleSignInRequestBody_1, ...args_1) => __awaiter(this, [googleSignInRequestBody_1, ...args_1], void 0, function* (googleSignInRequestBody, options = {}) {
|
|
3768
|
+
// verify required parameter 'googleSignInRequestBody' is not null or undefined
|
|
3769
|
+
assertParamExists('signInOrSignUpWithGoogle', 'googleSignInRequestBody', googleSignInRequestBody);
|
|
3770
|
+
const localVarPath = `/api/users/googleSignin`;
|
|
3771
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3772
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3773
|
+
let baseOptions;
|
|
3774
|
+
if (configuration) {
|
|
3775
|
+
baseOptions = configuration.baseOptions;
|
|
3776
|
+
}
|
|
3777
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3778
|
+
const localVarHeaderParameter = {};
|
|
3779
|
+
const localVarQueryParameter = {};
|
|
3780
|
+
// authentication bearerAuth required
|
|
3781
|
+
// http bearer authentication required
|
|
3782
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3783
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3784
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3785
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3786
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3787
|
+
localVarRequestOptions.data = serializeDataIfNeeded(googleSignInRequestBody, localVarRequestOptions, configuration);
|
|
3788
|
+
return {
|
|
3789
|
+
url: toPathString(localVarUrlObj),
|
|
3790
|
+
options: localVarRequestOptions,
|
|
3791
|
+
};
|
|
3792
|
+
}),
|
|
3793
|
+
/**
|
|
3794
|
+
*
|
|
3795
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
3796
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
3797
|
+
* @param {*} [options] Override http request option.
|
|
3798
|
+
* @throws {RequiredError}
|
|
3799
|
+
*/
|
|
3800
|
+
subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
|
|
3801
|
+
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
3802
|
+
assertParamExists('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
|
|
3803
|
+
const localVarPath = `/api/users/me/subscribe`;
|
|
3804
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3805
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3806
|
+
let baseOptions;
|
|
3807
|
+
if (configuration) {
|
|
3808
|
+
baseOptions = configuration.baseOptions;
|
|
3809
|
+
}
|
|
3810
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3811
|
+
const localVarHeaderParameter = {};
|
|
3812
|
+
const localVarQueryParameter = {};
|
|
3813
|
+
// authentication bearerAuth required
|
|
3814
|
+
// http bearer authentication required
|
|
3815
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3816
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3817
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3818
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3819
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3820
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscribeToClubRequestBody, localVarRequestOptions, configuration);
|
|
3821
|
+
return {
|
|
3822
|
+
url: toPathString(localVarUrlObj),
|
|
3823
|
+
options: localVarRequestOptions,
|
|
3824
|
+
};
|
|
3825
|
+
}),
|
|
3826
|
+
/**
|
|
3827
|
+
*
|
|
3828
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
3829
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
3830
|
+
* @param {*} [options] Override http request option.
|
|
3831
|
+
* @throws {RequiredError}
|
|
3832
|
+
*/
|
|
3833
|
+
updateCustomer: (updateCustomerRequestBody_1, ...args_1) => __awaiter(this, [updateCustomerRequestBody_1, ...args_1], void 0, function* (updateCustomerRequestBody, options = {}) {
|
|
3834
|
+
// verify required parameter 'updateCustomerRequestBody' is not null or undefined
|
|
3835
|
+
assertParamExists('updateCustomer', 'updateCustomerRequestBody', updateCustomerRequestBody);
|
|
3836
|
+
const localVarPath = `/api/users/me/customer`;
|
|
3837
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3838
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3839
|
+
let baseOptions;
|
|
3840
|
+
if (configuration) {
|
|
3841
|
+
baseOptions = configuration.baseOptions;
|
|
3842
|
+
}
|
|
3843
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3844
|
+
const localVarHeaderParameter = {};
|
|
3845
|
+
const localVarQueryParameter = {};
|
|
3846
|
+
// authentication bearerAuth required
|
|
3847
|
+
// http bearer authentication required
|
|
3848
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3849
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3850
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3851
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3852
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3853
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequestBody, localVarRequestOptions, configuration);
|
|
3854
|
+
return {
|
|
3855
|
+
url: toPathString(localVarUrlObj),
|
|
3856
|
+
options: localVarRequestOptions,
|
|
3857
|
+
};
|
|
3858
|
+
}),
|
|
3439
3859
|
/**
|
|
3440
3860
|
*
|
|
3441
3861
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -3478,6 +3898,23 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
3478
3898
|
export const UsersApiFp = function (configuration) {
|
|
3479
3899
|
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration);
|
|
3480
3900
|
return {
|
|
3901
|
+
/**
|
|
3902
|
+
*
|
|
3903
|
+
* @summary Annule un abonnement utilisateur
|
|
3904
|
+
* @param {string} clubId ID du club
|
|
3905
|
+
* @param {string} subscriptionId ID de l\'abonnement à annuler
|
|
3906
|
+
* @param {*} [options] Override http request option.
|
|
3907
|
+
* @throws {RequiredError}
|
|
3908
|
+
*/
|
|
3909
|
+
cancelSubscription(clubId, subscriptionId, options) {
|
|
3910
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3911
|
+
var _a, _b, _c;
|
|
3912
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSubscription(clubId, subscriptionId, options);
|
|
3913
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3914
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.cancelSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3915
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3916
|
+
});
|
|
3917
|
+
},
|
|
3481
3918
|
/**
|
|
3482
3919
|
*
|
|
3483
3920
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -3496,14 +3933,26 @@ export const UsersApiFp = function (configuration) {
|
|
|
3496
3933
|
},
|
|
3497
3934
|
/**
|
|
3498
3935
|
*
|
|
3499
|
-
* @summary Récupère la liste des utilisateurs
|
|
3936
|
+
* @summary Récupère la liste des utilisateurs avec filtres et pagination
|
|
3937
|
+
* @param {number} [limit] Nombre maximum d\'utilisateurs à retourner
|
|
3938
|
+
* @param {number} [skip] Nombre d\'utilisateurs à ignorer (pagination)
|
|
3939
|
+
* @param {string} [search] Recherche dans firstName, lastName, email
|
|
3940
|
+
* @param {string} [sport] Filtre par sport
|
|
3941
|
+
* @param {string} [matchType] Filtre par type de match
|
|
3942
|
+
* @param {string} [niveau] Filtre par niveau
|
|
3943
|
+
* @param {string} [rank] Filtre par rang
|
|
3944
|
+
* @param {GetAllUsersIsLookingForPartnerEnum} [isLookingForPartner] Filtre par disponibilité pour partenaire
|
|
3945
|
+
* @param {string} [username] Filtre par nom d\'utilisateur
|
|
3946
|
+
* @param {string} [email] Filtre par email
|
|
3947
|
+
* @param {string} [description] Filtre par description
|
|
3948
|
+
* @param {string} [gender] Filtre par genre
|
|
3500
3949
|
* @param {*} [options] Override http request option.
|
|
3501
3950
|
* @throws {RequiredError}
|
|
3502
3951
|
*/
|
|
3503
|
-
getAllUsers(options) {
|
|
3952
|
+
getAllUsers(limit, skip, search, sport, matchType, niveau, rank, isLookingForPartner, username, email, description, gender, options) {
|
|
3504
3953
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3505
3954
|
var _a, _b, _c;
|
|
3506
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllUsers(options);
|
|
3955
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllUsers(limit, skip, search, sport, matchType, niveau, rank, isLookingForPartner, username, email, description, gender, options);
|
|
3507
3956
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3508
3957
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getAllUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3509
3958
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3539,6 +3988,37 @@ export const UsersApiFp = function (configuration) {
|
|
|
3539
3988
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3540
3989
|
});
|
|
3541
3990
|
},
|
|
3991
|
+
/**
|
|
3992
|
+
*
|
|
3993
|
+
* @summary Récupère les abonnements de l\'utilisateur connecté
|
|
3994
|
+
* @param {*} [options] Override http request option.
|
|
3995
|
+
* @throws {RequiredError}
|
|
3996
|
+
*/
|
|
3997
|
+
getUserSubscriptions(options) {
|
|
3998
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3999
|
+
var _a, _b, _c;
|
|
4000
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserSubscriptions(options);
|
|
4001
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4002
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4003
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4004
|
+
});
|
|
4005
|
+
},
|
|
4006
|
+
/**
|
|
4007
|
+
*
|
|
4008
|
+
* @summary Initie une session d\'abonnement Stripe
|
|
4009
|
+
* @param {InitiateSubscriptionSessionRequestBody} initiateSubscriptionSessionRequestBody
|
|
4010
|
+
* @param {*} [options] Override http request option.
|
|
4011
|
+
* @throws {RequiredError}
|
|
4012
|
+
*/
|
|
4013
|
+
initiateSubscriptionSession(initiateSubscriptionSessionRequestBody, options) {
|
|
4014
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4015
|
+
var _a, _b, _c;
|
|
4016
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateSubscriptionSession(initiateSubscriptionSessionRequestBody, options);
|
|
4017
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4018
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.initiateSubscriptionSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4019
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4020
|
+
});
|
|
4021
|
+
},
|
|
3542
4022
|
/**
|
|
3543
4023
|
*
|
|
3544
4024
|
* @summary Authentifie un utilisateur
|
|
@@ -3587,6 +4067,71 @@ export const UsersApiFp = function (configuration) {
|
|
|
3587
4067
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3588
4068
|
});
|
|
3589
4069
|
},
|
|
4070
|
+
/**
|
|
4071
|
+
*
|
|
4072
|
+
* @summary Réactive un abonnement utilisateur
|
|
4073
|
+
* @param {string} clubId ID du club
|
|
4074
|
+
* @param {string} subscriptionId ID de l\'abonnement à réactiver
|
|
4075
|
+
* @param {*} [options] Override http request option.
|
|
4076
|
+
* @throws {RequiredError}
|
|
4077
|
+
*/
|
|
4078
|
+
resumeSubscription(clubId, subscriptionId, options) {
|
|
4079
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4080
|
+
var _a, _b, _c;
|
|
4081
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resumeSubscription(clubId, subscriptionId, options);
|
|
4082
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4083
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.resumeSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4084
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4085
|
+
});
|
|
4086
|
+
},
|
|
4087
|
+
/**
|
|
4088
|
+
*
|
|
4089
|
+
* @summary Authentifie ou crée un utilisateur via Google OAuth
|
|
4090
|
+
* @param {GoogleSignInRequestBody} googleSignInRequestBody
|
|
4091
|
+
* @param {*} [options] Override http request option.
|
|
4092
|
+
* @throws {RequiredError}
|
|
4093
|
+
*/
|
|
4094
|
+
signInOrSignUpWithGoogle(googleSignInRequestBody, options) {
|
|
4095
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4096
|
+
var _a, _b, _c;
|
|
4097
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.signInOrSignUpWithGoogle(googleSignInRequestBody, options);
|
|
4098
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4099
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.signInOrSignUpWithGoogle']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4100
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4101
|
+
});
|
|
4102
|
+
},
|
|
4103
|
+
/**
|
|
4104
|
+
*
|
|
4105
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
4106
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
4107
|
+
* @param {*} [options] Override http request option.
|
|
4108
|
+
* @throws {RequiredError}
|
|
4109
|
+
*/
|
|
4110
|
+
subscribeToClub(subscribeToClubRequestBody, options) {
|
|
4111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4112
|
+
var _a, _b, _c;
|
|
4113
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
|
|
4114
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4115
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4116
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4117
|
+
});
|
|
4118
|
+
},
|
|
4119
|
+
/**
|
|
4120
|
+
*
|
|
4121
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
4122
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
4123
|
+
* @param {*} [options] Override http request option.
|
|
4124
|
+
* @throws {RequiredError}
|
|
4125
|
+
*/
|
|
4126
|
+
updateCustomer(updateCustomerRequestBody, options) {
|
|
4127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4128
|
+
var _a, _b, _c;
|
|
4129
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
|
|
4130
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4131
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4132
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4133
|
+
});
|
|
4134
|
+
},
|
|
3590
4135
|
/**
|
|
3591
4136
|
*
|
|
3592
4137
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -3612,6 +4157,16 @@ export const UsersApiFp = function (configuration) {
|
|
|
3612
4157
|
export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
3613
4158
|
const localVarFp = UsersApiFp(configuration);
|
|
3614
4159
|
return {
|
|
4160
|
+
/**
|
|
4161
|
+
*
|
|
4162
|
+
* @summary Annule un abonnement utilisateur
|
|
4163
|
+
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
4164
|
+
* @param {*} [options] Override http request option.
|
|
4165
|
+
* @throws {RequiredError}
|
|
4166
|
+
*/
|
|
4167
|
+
cancelSubscription(requestParameters, options) {
|
|
4168
|
+
return localVarFp.cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
4169
|
+
},
|
|
3615
4170
|
/**
|
|
3616
4171
|
*
|
|
3617
4172
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -3624,12 +4179,13 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
3624
4179
|
},
|
|
3625
4180
|
/**
|
|
3626
4181
|
*
|
|
3627
|
-
* @summary Récupère la liste des utilisateurs
|
|
4182
|
+
* @summary Récupère la liste des utilisateurs avec filtres et pagination
|
|
4183
|
+
* @param {UsersApiGetAllUsersRequest} requestParameters Request parameters.
|
|
3628
4184
|
* @param {*} [options] Override http request option.
|
|
3629
4185
|
* @throws {RequiredError}
|
|
3630
4186
|
*/
|
|
3631
|
-
getAllUsers(options) {
|
|
3632
|
-
return localVarFp.getAllUsers(options).then((request) => request(axios, basePath));
|
|
4187
|
+
getAllUsers(requestParameters = {}, options) {
|
|
4188
|
+
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));
|
|
3633
4189
|
},
|
|
3634
4190
|
/**
|
|
3635
4191
|
*
|
|
@@ -3649,6 +4205,25 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
3649
4205
|
getUserRolesInClubs(options) {
|
|
3650
4206
|
return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
|
|
3651
4207
|
},
|
|
4208
|
+
/**
|
|
4209
|
+
*
|
|
4210
|
+
* @summary Récupère les abonnements de l\'utilisateur connecté
|
|
4211
|
+
* @param {*} [options] Override http request option.
|
|
4212
|
+
* @throws {RequiredError}
|
|
4213
|
+
*/
|
|
4214
|
+
getUserSubscriptions(options) {
|
|
4215
|
+
return localVarFp.getUserSubscriptions(options).then((request) => request(axios, basePath));
|
|
4216
|
+
},
|
|
4217
|
+
/**
|
|
4218
|
+
*
|
|
4219
|
+
* @summary Initie une session d\'abonnement Stripe
|
|
4220
|
+
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
4221
|
+
* @param {*} [options] Override http request option.
|
|
4222
|
+
* @throws {RequiredError}
|
|
4223
|
+
*/
|
|
4224
|
+
initiateSubscriptionSession(requestParameters, options) {
|
|
4225
|
+
return localVarFp.initiateSubscriptionSession(requestParameters.initiateSubscriptionSessionRequestBody, options).then((request) => request(axios, basePath));
|
|
4226
|
+
},
|
|
3652
4227
|
/**
|
|
3653
4228
|
*
|
|
3654
4229
|
* @summary Authentifie un utilisateur
|
|
@@ -3679,6 +4254,46 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
3679
4254
|
register(requestParameters, options) {
|
|
3680
4255
|
return localVarFp.register(requestParameters.registerRequestBody, options).then((request) => request(axios, basePath));
|
|
3681
4256
|
},
|
|
4257
|
+
/**
|
|
4258
|
+
*
|
|
4259
|
+
* @summary Réactive un abonnement utilisateur
|
|
4260
|
+
* @param {UsersApiResumeSubscriptionRequest} requestParameters Request parameters.
|
|
4261
|
+
* @param {*} [options] Override http request option.
|
|
4262
|
+
* @throws {RequiredError}
|
|
4263
|
+
*/
|
|
4264
|
+
resumeSubscription(requestParameters, options) {
|
|
4265
|
+
return localVarFp.resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
4266
|
+
},
|
|
4267
|
+
/**
|
|
4268
|
+
*
|
|
4269
|
+
* @summary Authentifie ou crée un utilisateur via Google OAuth
|
|
4270
|
+
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
4271
|
+
* @param {*} [options] Override http request option.
|
|
4272
|
+
* @throws {RequiredError}
|
|
4273
|
+
*/
|
|
4274
|
+
signInOrSignUpWithGoogle(requestParameters, options) {
|
|
4275
|
+
return localVarFp.signInOrSignUpWithGoogle(requestParameters.googleSignInRequestBody, options).then((request) => request(axios, basePath));
|
|
4276
|
+
},
|
|
4277
|
+
/**
|
|
4278
|
+
*
|
|
4279
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
4280
|
+
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
4281
|
+
* @param {*} [options] Override http request option.
|
|
4282
|
+
* @throws {RequiredError}
|
|
4283
|
+
*/
|
|
4284
|
+
subscribeToClub(requestParameters, options) {
|
|
4285
|
+
return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
|
|
4286
|
+
},
|
|
4287
|
+
/**
|
|
4288
|
+
*
|
|
4289
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
4290
|
+
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
4291
|
+
* @param {*} [options] Override http request option.
|
|
4292
|
+
* @throws {RequiredError}
|
|
4293
|
+
*/
|
|
4294
|
+
updateCustomer(requestParameters, options) {
|
|
4295
|
+
return localVarFp.updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(axios, basePath));
|
|
4296
|
+
},
|
|
3682
4297
|
/**
|
|
3683
4298
|
*
|
|
3684
4299
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -3698,6 +4313,17 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
3698
4313
|
* @extends {BaseAPI}
|
|
3699
4314
|
*/
|
|
3700
4315
|
export class UsersApi extends BaseAPI {
|
|
4316
|
+
/**
|
|
4317
|
+
*
|
|
4318
|
+
* @summary Annule un abonnement utilisateur
|
|
4319
|
+
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
4320
|
+
* @param {*} [options] Override http request option.
|
|
4321
|
+
* @throws {RequiredError}
|
|
4322
|
+
* @memberof UsersApi
|
|
4323
|
+
*/
|
|
4324
|
+
cancelSubscription(requestParameters, options) {
|
|
4325
|
+
return UsersApiFp(this.configuration).cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
4326
|
+
}
|
|
3701
4327
|
/**
|
|
3702
4328
|
*
|
|
3703
4329
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -3711,13 +4337,14 @@ export class UsersApi extends BaseAPI {
|
|
|
3711
4337
|
}
|
|
3712
4338
|
/**
|
|
3713
4339
|
*
|
|
3714
|
-
* @summary Récupère la liste des utilisateurs
|
|
4340
|
+
* @summary Récupère la liste des utilisateurs avec filtres et pagination
|
|
4341
|
+
* @param {UsersApiGetAllUsersRequest} requestParameters Request parameters.
|
|
3715
4342
|
* @param {*} [options] Override http request option.
|
|
3716
4343
|
* @throws {RequiredError}
|
|
3717
4344
|
* @memberof UsersApi
|
|
3718
4345
|
*/
|
|
3719
|
-
getAllUsers(options) {
|
|
3720
|
-
return UsersApiFp(this.configuration).getAllUsers(options).then((request) => request(this.axios, this.basePath));
|
|
4346
|
+
getAllUsers(requestParameters = {}, options) {
|
|
4347
|
+
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));
|
|
3721
4348
|
}
|
|
3722
4349
|
/**
|
|
3723
4350
|
*
|
|
@@ -3739,6 +4366,27 @@ export class UsersApi extends BaseAPI {
|
|
|
3739
4366
|
getUserRolesInClubs(options) {
|
|
3740
4367
|
return UsersApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
3741
4368
|
}
|
|
4369
|
+
/**
|
|
4370
|
+
*
|
|
4371
|
+
* @summary Récupère les abonnements de l\'utilisateur connecté
|
|
4372
|
+
* @param {*} [options] Override http request option.
|
|
4373
|
+
* @throws {RequiredError}
|
|
4374
|
+
* @memberof UsersApi
|
|
4375
|
+
*/
|
|
4376
|
+
getUserSubscriptions(options) {
|
|
4377
|
+
return UsersApiFp(this.configuration).getUserSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
4378
|
+
}
|
|
4379
|
+
/**
|
|
4380
|
+
*
|
|
4381
|
+
* @summary Initie une session d\'abonnement Stripe
|
|
4382
|
+
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
4383
|
+
* @param {*} [options] Override http request option.
|
|
4384
|
+
* @throws {RequiredError}
|
|
4385
|
+
* @memberof UsersApi
|
|
4386
|
+
*/
|
|
4387
|
+
initiateSubscriptionSession(requestParameters, options) {
|
|
4388
|
+
return UsersApiFp(this.configuration).initiateSubscriptionSession(requestParameters.initiateSubscriptionSessionRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4389
|
+
}
|
|
3742
4390
|
/**
|
|
3743
4391
|
*
|
|
3744
4392
|
* @summary Authentifie un utilisateur
|
|
@@ -3772,6 +4420,50 @@ export class UsersApi extends BaseAPI {
|
|
|
3772
4420
|
register(requestParameters, options) {
|
|
3773
4421
|
return UsersApiFp(this.configuration).register(requestParameters.registerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3774
4422
|
}
|
|
4423
|
+
/**
|
|
4424
|
+
*
|
|
4425
|
+
* @summary Réactive un abonnement utilisateur
|
|
4426
|
+
* @param {UsersApiResumeSubscriptionRequest} requestParameters Request parameters.
|
|
4427
|
+
* @param {*} [options] Override http request option.
|
|
4428
|
+
* @throws {RequiredError}
|
|
4429
|
+
* @memberof UsersApi
|
|
4430
|
+
*/
|
|
4431
|
+
resumeSubscription(requestParameters, options) {
|
|
4432
|
+
return UsersApiFp(this.configuration).resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
4433
|
+
}
|
|
4434
|
+
/**
|
|
4435
|
+
*
|
|
4436
|
+
* @summary Authentifie ou crée un utilisateur via Google OAuth
|
|
4437
|
+
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
4438
|
+
* @param {*} [options] Override http request option.
|
|
4439
|
+
* @throws {RequiredError}
|
|
4440
|
+
* @memberof UsersApi
|
|
4441
|
+
*/
|
|
4442
|
+
signInOrSignUpWithGoogle(requestParameters, options) {
|
|
4443
|
+
return UsersApiFp(this.configuration).signInOrSignUpWithGoogle(requestParameters.googleSignInRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4444
|
+
}
|
|
4445
|
+
/**
|
|
4446
|
+
*
|
|
4447
|
+
* @summary Abonne l\'utilisateur connecté à un club
|
|
4448
|
+
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
4449
|
+
* @param {*} [options] Override http request option.
|
|
4450
|
+
* @throws {RequiredError}
|
|
4451
|
+
* @memberof UsersApi
|
|
4452
|
+
*/
|
|
4453
|
+
subscribeToClub(requestParameters, options) {
|
|
4454
|
+
return UsersApiFp(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4455
|
+
}
|
|
4456
|
+
/**
|
|
4457
|
+
*
|
|
4458
|
+
* @summary Met à jour le Customer Stripe de l\'utilisateur
|
|
4459
|
+
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
4460
|
+
* @param {*} [options] Override http request option.
|
|
4461
|
+
* @throws {RequiredError}
|
|
4462
|
+
* @memberof UsersApi
|
|
4463
|
+
*/
|
|
4464
|
+
updateCustomer(requestParameters, options) {
|
|
4465
|
+
return UsersApiFp(this.configuration).updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4466
|
+
}
|
|
3775
4467
|
/**
|
|
3776
4468
|
*
|
|
3777
4469
|
* @summary Met à jour les données de l\'utilisateur connecté
|
|
@@ -3784,3 +4476,10 @@ export class UsersApi extends BaseAPI {
|
|
|
3784
4476
|
return UsersApiFp(this.configuration).updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3785
4477
|
}
|
|
3786
4478
|
}
|
|
4479
|
+
/**
|
|
4480
|
+
* @export
|
|
4481
|
+
*/
|
|
4482
|
+
export const GetAllUsersIsLookingForPartnerEnum = {
|
|
4483
|
+
True: 'true',
|
|
4484
|
+
False: 'false'
|
|
4485
|
+
};
|