@tennac-booking/sdk 1.0.61 → 1.0.62
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 +220 -217
- package/README.md +10 -4
- package/api.ts +415 -60
- package/dist/api.d.ts +410 -176
- package/dist/api.js +197 -13
- package/dist/esm/api.d.ts +410 -176
- package/dist/esm/api.js +197 -13
- package/docs/ClubSubscriptions.md +26 -0
- package/docs/ClubsManagerApi.md +6 -6
- package/docs/PlayerSummary.md +2 -0
- package/docs/{NotImplementedResponse.md → RequestPasswordReset200Response.md} +3 -3
- package/docs/ResetPasswordRequest.md +22 -0
- package/docs/UpdatePlanRequest.md +0 -2
- package/docs/UserClubSubscription.md +42 -0
- package/docs/UserSubscriptionsResponse.md +1 -1
- package/docs/UsersApi.md +156 -8
- package/docs/{DeleteSlotsByClubInRange200Response.md → VerifyEmailRequest.md} +5 -5
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1342,6 +1342,37 @@ export interface ClubSettingsResponse {
|
|
|
1342
1342
|
*/
|
|
1343
1343
|
'updatedAt': string;
|
|
1344
1344
|
}
|
|
1345
|
+
/**
|
|
1346
|
+
*
|
|
1347
|
+
* @export
|
|
1348
|
+
* @interface ClubSubscriptions
|
|
1349
|
+
*/
|
|
1350
|
+
export interface ClubSubscriptions {
|
|
1351
|
+
/**
|
|
1352
|
+
*
|
|
1353
|
+
* @type {Array<UserClubSubscription>}
|
|
1354
|
+
* @memberof ClubSubscriptions
|
|
1355
|
+
*/
|
|
1356
|
+
'subscriptions': Array<UserClubSubscription>;
|
|
1357
|
+
/**
|
|
1358
|
+
*
|
|
1359
|
+
* @type {string}
|
|
1360
|
+
* @memberof ClubSubscriptions
|
|
1361
|
+
*/
|
|
1362
|
+
'picture': string | null;
|
|
1363
|
+
/**
|
|
1364
|
+
*
|
|
1365
|
+
* @type {string}
|
|
1366
|
+
* @memberof ClubSubscriptions
|
|
1367
|
+
*/
|
|
1368
|
+
'clubName': string | null;
|
|
1369
|
+
/**
|
|
1370
|
+
*
|
|
1371
|
+
* @type {string}
|
|
1372
|
+
* @memberof ClubSubscriptions
|
|
1373
|
+
*/
|
|
1374
|
+
'clubId': string | null;
|
|
1375
|
+
}
|
|
1345
1376
|
/**
|
|
1346
1377
|
*
|
|
1347
1378
|
* @export
|
|
@@ -2080,19 +2111,6 @@ export interface DeleteEventResponse {
|
|
|
2080
2111
|
*/
|
|
2081
2112
|
'message': string;
|
|
2082
2113
|
}
|
|
2083
|
-
/**
|
|
2084
|
-
*
|
|
2085
|
-
* @export
|
|
2086
|
-
* @interface DeleteSlotsByClubInRange200Response
|
|
2087
|
-
*/
|
|
2088
|
-
export interface DeleteSlotsByClubInRange200Response {
|
|
2089
|
-
/**
|
|
2090
|
-
*
|
|
2091
|
-
* @type {string}
|
|
2092
|
-
* @memberof DeleteSlotsByClubInRange200Response
|
|
2093
|
-
*/
|
|
2094
|
-
'message': string;
|
|
2095
|
-
}
|
|
2096
2114
|
/**
|
|
2097
2115
|
*
|
|
2098
2116
|
* @export
|
|
@@ -3235,19 +3253,6 @@ export interface NoShowFeeResponse {
|
|
|
3235
3253
|
*/
|
|
3236
3254
|
'creatorChargeResult'?: CreatorChargeResult;
|
|
3237
3255
|
}
|
|
3238
|
-
/**
|
|
3239
|
-
*
|
|
3240
|
-
* @export
|
|
3241
|
-
* @interface NotImplementedResponse
|
|
3242
|
-
*/
|
|
3243
|
-
export interface NotImplementedResponse {
|
|
3244
|
-
/**
|
|
3245
|
-
*
|
|
3246
|
-
* @type {string}
|
|
3247
|
-
* @memberof NotImplementedResponse
|
|
3248
|
-
*/
|
|
3249
|
-
'message': string;
|
|
3250
|
-
}
|
|
3251
3256
|
/**
|
|
3252
3257
|
*
|
|
3253
3258
|
* @export
|
|
@@ -3636,6 +3641,12 @@ export interface PlayerSummary {
|
|
|
3636
3641
|
* @memberof PlayerSummary
|
|
3637
3642
|
*/
|
|
3638
3643
|
'lastName': string;
|
|
3644
|
+
/**
|
|
3645
|
+
*
|
|
3646
|
+
* @type {string}
|
|
3647
|
+
* @memberof PlayerSummary
|
|
3648
|
+
*/
|
|
3649
|
+
'description'?: string | null;
|
|
3639
3650
|
/**
|
|
3640
3651
|
*
|
|
3641
3652
|
* @type {string}
|
|
@@ -3976,6 +3987,38 @@ export interface RegisterRequestBody {
|
|
|
3976
3987
|
*/
|
|
3977
3988
|
'profilePicture'?: string;
|
|
3978
3989
|
}
|
|
3990
|
+
/**
|
|
3991
|
+
*
|
|
3992
|
+
* @export
|
|
3993
|
+
* @interface RequestPasswordReset200Response
|
|
3994
|
+
*/
|
|
3995
|
+
export interface RequestPasswordReset200Response {
|
|
3996
|
+
/**
|
|
3997
|
+
*
|
|
3998
|
+
* @type {string}
|
|
3999
|
+
* @memberof RequestPasswordReset200Response
|
|
4000
|
+
*/
|
|
4001
|
+
'message': string;
|
|
4002
|
+
}
|
|
4003
|
+
/**
|
|
4004
|
+
*
|
|
4005
|
+
* @export
|
|
4006
|
+
* @interface ResetPasswordRequest
|
|
4007
|
+
*/
|
|
4008
|
+
export interface ResetPasswordRequest {
|
|
4009
|
+
/**
|
|
4010
|
+
*
|
|
4011
|
+
* @type {string}
|
|
4012
|
+
* @memberof ResetPasswordRequest
|
|
4013
|
+
*/
|
|
4014
|
+
'newPassword'?: string;
|
|
4015
|
+
/**
|
|
4016
|
+
*
|
|
4017
|
+
* @type {string}
|
|
4018
|
+
* @memberof ResetPasswordRequest
|
|
4019
|
+
*/
|
|
4020
|
+
'token'?: string;
|
|
4021
|
+
}
|
|
3979
4022
|
/**
|
|
3980
4023
|
*
|
|
3981
4024
|
* @export
|
|
@@ -5998,12 +6041,6 @@ export interface UpdateLevelBySportsRequestBody {
|
|
|
5998
6041
|
* @interface UpdatePlanRequest
|
|
5999
6042
|
*/
|
|
6000
6043
|
export interface UpdatePlanRequest {
|
|
6001
|
-
/**
|
|
6002
|
-
*
|
|
6003
|
-
* @type {string}
|
|
6004
|
-
* @memberof UpdatePlanRequest
|
|
6005
|
-
*/
|
|
6006
|
-
'clubId'?: string;
|
|
6007
6044
|
/**
|
|
6008
6045
|
*
|
|
6009
6046
|
* @type {number}
|
|
@@ -6221,6 +6258,87 @@ export const UpdateUserRequestBodyLocationTypeEnum = {
|
|
|
6221
6258
|
|
|
6222
6259
|
export type UpdateUserRequestBodyLocationTypeEnum = typeof UpdateUserRequestBodyLocationTypeEnum[keyof typeof UpdateUserRequestBodyLocationTypeEnum];
|
|
6223
6260
|
|
|
6261
|
+
/**
|
|
6262
|
+
*
|
|
6263
|
+
* @export
|
|
6264
|
+
* @interface UserClubSubscription
|
|
6265
|
+
*/
|
|
6266
|
+
export interface UserClubSubscription {
|
|
6267
|
+
/**
|
|
6268
|
+
*
|
|
6269
|
+
* @type {string}
|
|
6270
|
+
* @memberof UserClubSubscription
|
|
6271
|
+
*/
|
|
6272
|
+
'id': string;
|
|
6273
|
+
/**
|
|
6274
|
+
*
|
|
6275
|
+
* @type {string}
|
|
6276
|
+
* @memberof UserClubSubscription
|
|
6277
|
+
*/
|
|
6278
|
+
'status': string;
|
|
6279
|
+
/**
|
|
6280
|
+
*
|
|
6281
|
+
* @type {number}
|
|
6282
|
+
* @memberof UserClubSubscription
|
|
6283
|
+
*/
|
|
6284
|
+
'currentPeriodStart': number | null;
|
|
6285
|
+
/**
|
|
6286
|
+
*
|
|
6287
|
+
* @type {number}
|
|
6288
|
+
* @memberof UserClubSubscription
|
|
6289
|
+
*/
|
|
6290
|
+
'currentPeriodEnd': number | null;
|
|
6291
|
+
/**
|
|
6292
|
+
*
|
|
6293
|
+
* @type {number}
|
|
6294
|
+
* @memberof UserClubSubscription
|
|
6295
|
+
*/
|
|
6296
|
+
'cancelAt': number | null;
|
|
6297
|
+
/**
|
|
6298
|
+
*
|
|
6299
|
+
* @type {number}
|
|
6300
|
+
* @memberof UserClubSubscription
|
|
6301
|
+
*/
|
|
6302
|
+
'canceledAt': number | null;
|
|
6303
|
+
/**
|
|
6304
|
+
*
|
|
6305
|
+
* @type {string}
|
|
6306
|
+
* @memberof UserClubSubscription
|
|
6307
|
+
*/
|
|
6308
|
+
'priceId': string | null;
|
|
6309
|
+
/**
|
|
6310
|
+
*
|
|
6311
|
+
* @type {string}
|
|
6312
|
+
* @memberof UserClubSubscription
|
|
6313
|
+
*/
|
|
6314
|
+
'planId': string | null;
|
|
6315
|
+
/**
|
|
6316
|
+
*
|
|
6317
|
+
* @type {string}
|
|
6318
|
+
* @memberof UserClubSubscription
|
|
6319
|
+
*/
|
|
6320
|
+
'planName': string | null;
|
|
6321
|
+
/**
|
|
6322
|
+
*
|
|
6323
|
+
* @type {number}
|
|
6324
|
+
* @memberof UserClubSubscription
|
|
6325
|
+
*/
|
|
6326
|
+
'amountInCents': number | null;
|
|
6327
|
+
/**
|
|
6328
|
+
*
|
|
6329
|
+
* @type {string}
|
|
6330
|
+
* @memberof UserClubSubscription
|
|
6331
|
+
*/
|
|
6332
|
+
'currency': string | null;
|
|
6333
|
+
/**
|
|
6334
|
+
*
|
|
6335
|
+
* @type {PlanInterval}
|
|
6336
|
+
* @memberof UserClubSubscription
|
|
6337
|
+
*/
|
|
6338
|
+
'interval': PlanInterval | null;
|
|
6339
|
+
}
|
|
6340
|
+
|
|
6341
|
+
|
|
6224
6342
|
/**
|
|
6225
6343
|
*
|
|
6226
6344
|
* @export
|
|
@@ -6559,11 +6677,24 @@ export interface UserRolesResponse {
|
|
|
6559
6677
|
*/
|
|
6560
6678
|
export interface UserSubscriptionsResponse {
|
|
6561
6679
|
/**
|
|
6562
|
-
*
|
|
6563
|
-
* @type {
|
|
6680
|
+
*
|
|
6681
|
+
* @type {Array<ClubSubscriptions>}
|
|
6564
6682
|
* @memberof UserSubscriptionsResponse
|
|
6565
6683
|
*/
|
|
6566
|
-
'subscriptions':
|
|
6684
|
+
'subscriptions': Array<ClubSubscriptions>;
|
|
6685
|
+
}
|
|
6686
|
+
/**
|
|
6687
|
+
*
|
|
6688
|
+
* @export
|
|
6689
|
+
* @interface VerifyEmailRequest
|
|
6690
|
+
*/
|
|
6691
|
+
export interface VerifyEmailRequest {
|
|
6692
|
+
/**
|
|
6693
|
+
*
|
|
6694
|
+
* @type {string}
|
|
6695
|
+
* @memberof VerifyEmailRequest
|
|
6696
|
+
*/
|
|
6697
|
+
'token'?: string;
|
|
6567
6698
|
}
|
|
6568
6699
|
/**
|
|
6569
6700
|
*
|
|
@@ -11246,7 +11377,7 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
|
|
|
11246
11377
|
* @param {*} [options] Override http request option.
|
|
11247
11378
|
* @throws {RequiredError}
|
|
11248
11379
|
*/
|
|
11249
|
-
async deleteActuality(actualityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
11380
|
+
async deleteActuality(actualityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
|
|
11250
11381
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActuality(actualityId, options);
|
|
11251
11382
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11252
11383
|
const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.deleteActuality']?.[localVarOperationServerIndex]?.url;
|
|
@@ -11269,7 +11400,7 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
|
|
|
11269
11400
|
* @param {*} [options] Override http request option.
|
|
11270
11401
|
* @throws {RequiredError}
|
|
11271
11402
|
*/
|
|
11272
|
-
async deleteSlotsByClubInRange(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
11403
|
+
async deleteSlotsByClubInRange(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
|
|
11273
11404
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSlotsByClubInRange(options);
|
|
11274
11405
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11275
11406
|
const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.deleteSlotsByClubInRange']?.[localVarOperationServerIndex]?.url;
|
|
@@ -11305,7 +11436,7 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
|
|
|
11305
11436
|
* @param {*} [options] Override http request option.
|
|
11306
11437
|
* @throws {RequiredError}
|
|
11307
11438
|
*/
|
|
11308
|
-
async restoreSubscriptionPlanForClub(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
11439
|
+
async restoreSubscriptionPlanForClub(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
|
|
11309
11440
|
const localVarAxiosArgs = await localVarAxiosParamCreator.restoreSubscriptionPlanForClub(productId, options);
|
|
11310
11441
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11311
11442
|
const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.restoreSubscriptionPlanForClub']?.[localVarOperationServerIndex]?.url;
|
|
@@ -11456,7 +11587,7 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
|
|
|
11456
11587
|
* @param {*} [options] Override http request option.
|
|
11457
11588
|
* @throws {RequiredError}
|
|
11458
11589
|
*/
|
|
11459
|
-
deleteActuality(requestParameters: ClubsManagerApiDeleteActualityRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
11590
|
+
deleteActuality(requestParameters: ClubsManagerApiDeleteActualityRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
|
|
11460
11591
|
return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
|
|
11461
11592
|
},
|
|
11462
11593
|
/**
|
|
@@ -11473,7 +11604,7 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
|
|
|
11473
11604
|
* @param {*} [options] Override http request option.
|
|
11474
11605
|
* @throws {RequiredError}
|
|
11475
11606
|
*/
|
|
11476
|
-
deleteSlotsByClubInRange(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
11607
|
+
deleteSlotsByClubInRange(options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
|
|
11477
11608
|
return localVarFp.deleteSlotsByClubInRange(options).then((request) => request(axios, basePath));
|
|
11478
11609
|
},
|
|
11479
11610
|
/**
|
|
@@ -11500,7 +11631,7 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
|
|
|
11500
11631
|
* @param {*} [options] Override http request option.
|
|
11501
11632
|
* @throws {RequiredError}
|
|
11502
11633
|
*/
|
|
11503
|
-
restoreSubscriptionPlanForClub(requestParameters: ClubsManagerApiRestoreSubscriptionPlanForClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
11634
|
+
restoreSubscriptionPlanForClub(requestParameters: ClubsManagerApiRestoreSubscriptionPlanForClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
|
|
11504
11635
|
return localVarFp.restoreSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
11505
11636
|
},
|
|
11506
11637
|
/**
|
|
@@ -15499,6 +15630,39 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15499
15630
|
|
|
15500
15631
|
|
|
15501
15632
|
|
|
15633
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15634
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15635
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15636
|
+
|
|
15637
|
+
return {
|
|
15638
|
+
url: toPathString(localVarUrlObj),
|
|
15639
|
+
options: localVarRequestOptions,
|
|
15640
|
+
};
|
|
15641
|
+
},
|
|
15642
|
+
/**
|
|
15643
|
+
*
|
|
15644
|
+
* @param {*} [options] Override http request option.
|
|
15645
|
+
* @throws {RequiredError}
|
|
15646
|
+
*/
|
|
15647
|
+
requestEmailVerification: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15648
|
+
const localVarPath = `/api/users/me/request-email-verification`;
|
|
15649
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15650
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15651
|
+
let baseOptions;
|
|
15652
|
+
if (configuration) {
|
|
15653
|
+
baseOptions = configuration.baseOptions;
|
|
15654
|
+
}
|
|
15655
|
+
|
|
15656
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15657
|
+
const localVarHeaderParameter = {} as any;
|
|
15658
|
+
const localVarQueryParameter = {} as any;
|
|
15659
|
+
|
|
15660
|
+
// authentication bearerAuth required
|
|
15661
|
+
// http bearer authentication required
|
|
15662
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15663
|
+
|
|
15664
|
+
|
|
15665
|
+
|
|
15502
15666
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15503
15667
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15504
15668
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -15517,7 +15681,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15517
15681
|
requestPasswordReset: async (passwordResetRequestBody: PasswordResetRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15518
15682
|
// verify required parameter 'passwordResetRequestBody' is not null or undefined
|
|
15519
15683
|
assertParamExists('requestPasswordReset', 'passwordResetRequestBody', passwordResetRequestBody)
|
|
15520
|
-
const localVarPath = `/api/users/
|
|
15684
|
+
const localVarPath = `/api/users/request-password-reset`;
|
|
15521
15685
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15522
15686
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15523
15687
|
let baseOptions;
|
|
@@ -15543,16 +15707,51 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15543
15707
|
options: localVarRequestOptions,
|
|
15544
15708
|
};
|
|
15545
15709
|
},
|
|
15710
|
+
/**
|
|
15711
|
+
*
|
|
15712
|
+
* @param {ResetPasswordRequest} resetPasswordRequest
|
|
15713
|
+
* @param {*} [options] Override http request option.
|
|
15714
|
+
* @throws {RequiredError}
|
|
15715
|
+
*/
|
|
15716
|
+
resetPassword: async (resetPasswordRequest: ResetPasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15717
|
+
// verify required parameter 'resetPasswordRequest' is not null or undefined
|
|
15718
|
+
assertParamExists('resetPassword', 'resetPasswordRequest', resetPasswordRequest)
|
|
15719
|
+
const localVarPath = `/api/users/reset-password`;
|
|
15720
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15721
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15722
|
+
let baseOptions;
|
|
15723
|
+
if (configuration) {
|
|
15724
|
+
baseOptions = configuration.baseOptions;
|
|
15725
|
+
}
|
|
15726
|
+
|
|
15727
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15728
|
+
const localVarHeaderParameter = {} as any;
|
|
15729
|
+
const localVarQueryParameter = {} as any;
|
|
15730
|
+
|
|
15731
|
+
|
|
15732
|
+
|
|
15733
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15734
|
+
|
|
15735
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15736
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15737
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15738
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordRequest, localVarRequestOptions, configuration)
|
|
15739
|
+
|
|
15740
|
+
return {
|
|
15741
|
+
url: toPathString(localVarUrlObj),
|
|
15742
|
+
options: localVarRequestOptions,
|
|
15743
|
+
};
|
|
15744
|
+
},
|
|
15546
15745
|
/**
|
|
15547
15746
|
*
|
|
15548
15747
|
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
15549
15748
|
* @param {*} [options] Override http request option.
|
|
15550
15749
|
* @throws {RequiredError}
|
|
15551
15750
|
*/
|
|
15552
|
-
|
|
15751
|
+
setupOffSessionPaymentMethod: async (setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15553
15752
|
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
15554
|
-
assertParamExists('
|
|
15555
|
-
const localVarPath = `/api/users/
|
|
15753
|
+
assertParamExists('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody)
|
|
15754
|
+
const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
|
|
15556
15755
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15557
15756
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15558
15757
|
let baseOptions;
|
|
@@ -15768,6 +15967,41 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15768
15967
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15769
15968
|
localVarRequestOptions.data = serializeDataIfNeeded(profilePictureUpdateRequestBody, localVarRequestOptions, configuration)
|
|
15770
15969
|
|
|
15970
|
+
return {
|
|
15971
|
+
url: toPathString(localVarUrlObj),
|
|
15972
|
+
options: localVarRequestOptions,
|
|
15973
|
+
};
|
|
15974
|
+
},
|
|
15975
|
+
/**
|
|
15976
|
+
*
|
|
15977
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
15978
|
+
* @param {*} [options] Override http request option.
|
|
15979
|
+
* @throws {RequiredError}
|
|
15980
|
+
*/
|
|
15981
|
+
verifyEmail: async (verifyEmailRequest: VerifyEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15982
|
+
// verify required parameter 'verifyEmailRequest' is not null or undefined
|
|
15983
|
+
assertParamExists('verifyEmail', 'verifyEmailRequest', verifyEmailRequest)
|
|
15984
|
+
const localVarPath = `/api/users/verify-email`;
|
|
15985
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15986
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15987
|
+
let baseOptions;
|
|
15988
|
+
if (configuration) {
|
|
15989
|
+
baseOptions = configuration.baseOptions;
|
|
15990
|
+
}
|
|
15991
|
+
|
|
15992
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15993
|
+
const localVarHeaderParameter = {} as any;
|
|
15994
|
+
const localVarQueryParameter = {} as any;
|
|
15995
|
+
|
|
15996
|
+
|
|
15997
|
+
|
|
15998
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15999
|
+
|
|
16000
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16001
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16002
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16003
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailRequest, localVarRequestOptions, configuration)
|
|
16004
|
+
|
|
15771
16005
|
return {
|
|
15772
16006
|
url: toPathString(localVarUrlObj),
|
|
15773
16007
|
options: localVarRequestOptions,
|
|
@@ -16062,28 +16296,51 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
16062
16296
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.removeFavoritePlayer']?.[localVarOperationServerIndex]?.url;
|
|
16063
16297
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16064
16298
|
},
|
|
16299
|
+
/**
|
|
16300
|
+
*
|
|
16301
|
+
* @param {*} [options] Override http request option.
|
|
16302
|
+
* @throws {RequiredError}
|
|
16303
|
+
*/
|
|
16304
|
+
async requestEmailVerification(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
|
|
16305
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.requestEmailVerification(options);
|
|
16306
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16307
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.requestEmailVerification']?.[localVarOperationServerIndex]?.url;
|
|
16308
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16309
|
+
},
|
|
16065
16310
|
/**
|
|
16066
16311
|
*
|
|
16067
16312
|
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
16068
16313
|
* @param {*} [options] Override http request option.
|
|
16069
16314
|
* @throws {RequiredError}
|
|
16070
16315
|
*/
|
|
16071
|
-
async requestPasswordReset(passwordResetRequestBody: PasswordResetRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
16316
|
+
async requestPasswordReset(passwordResetRequestBody: PasswordResetRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
|
|
16072
16317
|
const localVarAxiosArgs = await localVarAxiosParamCreator.requestPasswordReset(passwordResetRequestBody, options);
|
|
16073
16318
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16074
16319
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.requestPasswordReset']?.[localVarOperationServerIndex]?.url;
|
|
16075
16320
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16076
16321
|
},
|
|
16322
|
+
/**
|
|
16323
|
+
*
|
|
16324
|
+
* @param {ResetPasswordRequest} resetPasswordRequest
|
|
16325
|
+
* @param {*} [options] Override http request option.
|
|
16326
|
+
* @throws {RequiredError}
|
|
16327
|
+
*/
|
|
16328
|
+
async resetPassword(resetPasswordRequest: ResetPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
|
|
16329
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetPassword(resetPasswordRequest, options);
|
|
16330
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16331
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.resetPassword']?.[localVarOperationServerIndex]?.url;
|
|
16332
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16333
|
+
},
|
|
16077
16334
|
/**
|
|
16078
16335
|
*
|
|
16079
16336
|
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
16080
16337
|
* @param {*} [options] Override http request option.
|
|
16081
16338
|
* @throws {RequiredError}
|
|
16082
16339
|
*/
|
|
16083
|
-
async
|
|
16084
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
16340
|
+
async setupOffSessionPaymentMethod(setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetupPaymentMethodResponse>> {
|
|
16341
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
16085
16342
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16086
|
-
const localVarOperationServerBasePath = operationServerMap['UsersApi.
|
|
16343
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.setupOffSessionPaymentMethod']?.[localVarOperationServerIndex]?.url;
|
|
16087
16344
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16088
16345
|
},
|
|
16089
16346
|
/**
|
|
@@ -16146,6 +16403,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
16146
16403
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.updateProfilePicture']?.[localVarOperationServerIndex]?.url;
|
|
16147
16404
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16148
16405
|
},
|
|
16406
|
+
/**
|
|
16407
|
+
*
|
|
16408
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
16409
|
+
* @param {*} [options] Override http request option.
|
|
16410
|
+
* @throws {RequiredError}
|
|
16411
|
+
*/
|
|
16412
|
+
async verifyEmail(verifyEmailRequest: VerifyEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
|
|
16413
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyEmail(verifyEmailRequest, options);
|
|
16414
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16415
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.verifyEmail']?.[localVarOperationServerIndex]?.url;
|
|
16416
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16417
|
+
},
|
|
16149
16418
|
}
|
|
16150
16419
|
};
|
|
16151
16420
|
|
|
@@ -16357,23 +16626,40 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
16357
16626
|
removeFavoritePlayer(requestParameters: UsersApiRemoveFavoritePlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayerMutationResponse> {
|
|
16358
16627
|
return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
|
|
16359
16628
|
},
|
|
16629
|
+
/**
|
|
16630
|
+
*
|
|
16631
|
+
* @param {*} [options] Override http request option.
|
|
16632
|
+
* @throws {RequiredError}
|
|
16633
|
+
*/
|
|
16634
|
+
requestEmailVerification(options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
|
|
16635
|
+
return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
|
|
16636
|
+
},
|
|
16360
16637
|
/**
|
|
16361
16638
|
*
|
|
16362
16639
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
16363
16640
|
* @param {*} [options] Override http request option.
|
|
16364
16641
|
* @throws {RequiredError}
|
|
16365
16642
|
*/
|
|
16366
|
-
requestPasswordReset(requestParameters: UsersApiRequestPasswordResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
16643
|
+
requestPasswordReset(requestParameters: UsersApiRequestPasswordResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
|
|
16367
16644
|
return localVarFp.requestPasswordReset(requestParameters.passwordResetRequestBody, options).then((request) => request(axios, basePath));
|
|
16368
16645
|
},
|
|
16369
16646
|
/**
|
|
16370
16647
|
*
|
|
16371
|
-
* @param {
|
|
16648
|
+
* @param {UsersApiResetPasswordRequest} requestParameters Request parameters.
|
|
16372
16649
|
* @param {*} [options] Override http request option.
|
|
16373
16650
|
* @throws {RequiredError}
|
|
16374
16651
|
*/
|
|
16375
|
-
|
|
16376
|
-
return localVarFp.
|
|
16652
|
+
resetPassword(requestParameters: UsersApiResetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
|
|
16653
|
+
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
16654
|
+
},
|
|
16655
|
+
/**
|
|
16656
|
+
*
|
|
16657
|
+
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
16658
|
+
* @param {*} [options] Override http request option.
|
|
16659
|
+
* @throws {RequiredError}
|
|
16660
|
+
*/
|
|
16661
|
+
setupOffSessionPaymentMethod(requestParameters: UsersApiSetupOffSessionPaymentMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetupPaymentMethodResponse> {
|
|
16662
|
+
return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
16377
16663
|
},
|
|
16378
16664
|
/**
|
|
16379
16665
|
*
|
|
@@ -16420,6 +16706,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
16420
16706
|
updateProfilePicture(requestParameters: UsersApiUpdateProfilePictureRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProfilePictureResponse> {
|
|
16421
16707
|
return localVarFp.updateProfilePicture(requestParameters.profilePictureUpdateRequestBody, options).then((request) => request(axios, basePath));
|
|
16422
16708
|
},
|
|
16709
|
+
/**
|
|
16710
|
+
*
|
|
16711
|
+
* @param {UsersApiVerifyEmailRequest} requestParameters Request parameters.
|
|
16712
|
+
* @param {*} [options] Override http request option.
|
|
16713
|
+
* @throws {RequiredError}
|
|
16714
|
+
*/
|
|
16715
|
+
verifyEmail(requestParameters: UsersApiVerifyEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
|
|
16716
|
+
return localVarFp.verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
16717
|
+
},
|
|
16423
16718
|
};
|
|
16424
16719
|
};
|
|
16425
16720
|
|
|
@@ -16739,15 +17034,29 @@ export interface UsersApiRequestPasswordResetRequest {
|
|
|
16739
17034
|
}
|
|
16740
17035
|
|
|
16741
17036
|
/**
|
|
16742
|
-
* Request parameters for
|
|
17037
|
+
* Request parameters for resetPassword operation in UsersApi.
|
|
17038
|
+
* @export
|
|
17039
|
+
* @interface UsersApiResetPasswordRequest
|
|
17040
|
+
*/
|
|
17041
|
+
export interface UsersApiResetPasswordRequest {
|
|
17042
|
+
/**
|
|
17043
|
+
*
|
|
17044
|
+
* @type {ResetPasswordRequest}
|
|
17045
|
+
* @memberof UsersApiResetPassword
|
|
17046
|
+
*/
|
|
17047
|
+
readonly resetPasswordRequest: ResetPasswordRequest
|
|
17048
|
+
}
|
|
17049
|
+
|
|
17050
|
+
/**
|
|
17051
|
+
* Request parameters for setupOffSessionPaymentMethod operation in UsersApi.
|
|
16743
17052
|
* @export
|
|
16744
|
-
* @interface
|
|
17053
|
+
* @interface UsersApiSetupOffSessionPaymentMethodRequest
|
|
16745
17054
|
*/
|
|
16746
|
-
export interface
|
|
17055
|
+
export interface UsersApiSetupOffSessionPaymentMethodRequest {
|
|
16747
17056
|
/**
|
|
16748
17057
|
*
|
|
16749
17058
|
* @type {SetupPaymentMethodRequestBody}
|
|
16750
|
-
* @memberof
|
|
17059
|
+
* @memberof UsersApiSetupOffSessionPaymentMethod
|
|
16751
17060
|
*/
|
|
16752
17061
|
readonly setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody
|
|
16753
17062
|
}
|
|
@@ -16822,6 +17131,20 @@ export interface UsersApiUpdateProfilePictureRequest {
|
|
|
16822
17131
|
readonly profilePictureUpdateRequestBody: ProfilePictureUpdateRequestBody
|
|
16823
17132
|
}
|
|
16824
17133
|
|
|
17134
|
+
/**
|
|
17135
|
+
* Request parameters for verifyEmail operation in UsersApi.
|
|
17136
|
+
* @export
|
|
17137
|
+
* @interface UsersApiVerifyEmailRequest
|
|
17138
|
+
*/
|
|
17139
|
+
export interface UsersApiVerifyEmailRequest {
|
|
17140
|
+
/**
|
|
17141
|
+
*
|
|
17142
|
+
* @type {VerifyEmailRequest}
|
|
17143
|
+
* @memberof UsersApiVerifyEmail
|
|
17144
|
+
*/
|
|
17145
|
+
readonly verifyEmailRequest: VerifyEmailRequest
|
|
17146
|
+
}
|
|
17147
|
+
|
|
16825
17148
|
/**
|
|
16826
17149
|
* UsersApi - object-oriented interface
|
|
16827
17150
|
* @export
|
|
@@ -17076,6 +17399,16 @@ export class UsersApi extends BaseAPI {
|
|
|
17076
17399
|
return UsersApiFp(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
|
|
17077
17400
|
}
|
|
17078
17401
|
|
|
17402
|
+
/**
|
|
17403
|
+
*
|
|
17404
|
+
* @param {*} [options] Override http request option.
|
|
17405
|
+
* @throws {RequiredError}
|
|
17406
|
+
* @memberof UsersApi
|
|
17407
|
+
*/
|
|
17408
|
+
public requestEmailVerification(options?: RawAxiosRequestConfig) {
|
|
17409
|
+
return UsersApiFp(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
|
|
17410
|
+
}
|
|
17411
|
+
|
|
17079
17412
|
/**
|
|
17080
17413
|
*
|
|
17081
17414
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -17089,13 +17422,24 @@ export class UsersApi extends BaseAPI {
|
|
|
17089
17422
|
|
|
17090
17423
|
/**
|
|
17091
17424
|
*
|
|
17092
|
-
* @param {
|
|
17425
|
+
* @param {UsersApiResetPasswordRequest} requestParameters Request parameters.
|
|
17093
17426
|
* @param {*} [options] Override http request option.
|
|
17094
17427
|
* @throws {RequiredError}
|
|
17095
17428
|
* @memberof UsersApi
|
|
17096
17429
|
*/
|
|
17097
|
-
public
|
|
17098
|
-
return UsersApiFp(this.configuration).
|
|
17430
|
+
public resetPassword(requestParameters: UsersApiResetPasswordRequest, options?: RawAxiosRequestConfig) {
|
|
17431
|
+
return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17432
|
+
}
|
|
17433
|
+
|
|
17434
|
+
/**
|
|
17435
|
+
*
|
|
17436
|
+
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
17437
|
+
* @param {*} [options] Override http request option.
|
|
17438
|
+
* @throws {RequiredError}
|
|
17439
|
+
* @memberof UsersApi
|
|
17440
|
+
*/
|
|
17441
|
+
public setupOffSessionPaymentMethod(requestParameters: UsersApiSetupOffSessionPaymentMethodRequest, options?: RawAxiosRequestConfig) {
|
|
17442
|
+
return UsersApiFp(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
17099
17443
|
}
|
|
17100
17444
|
|
|
17101
17445
|
/**
|
|
@@ -17152,6 +17496,17 @@ export class UsersApi extends BaseAPI {
|
|
|
17152
17496
|
public updateProfilePicture(requestParameters: UsersApiUpdateProfilePictureRequest, options?: RawAxiosRequestConfig) {
|
|
17153
17497
|
return UsersApiFp(this.configuration).updateProfilePicture(requestParameters.profilePictureUpdateRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
17154
17498
|
}
|
|
17499
|
+
|
|
17500
|
+
/**
|
|
17501
|
+
*
|
|
17502
|
+
* @param {UsersApiVerifyEmailRequest} requestParameters Request parameters.
|
|
17503
|
+
* @param {*} [options] Override http request option.
|
|
17504
|
+
* @throws {RequiredError}
|
|
17505
|
+
* @memberof UsersApi
|
|
17506
|
+
*/
|
|
17507
|
+
public verifyEmail(requestParameters: UsersApiVerifyEmailRequest, options?: RawAxiosRequestConfig) {
|
|
17508
|
+
return UsersApiFp(this.configuration).verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17509
|
+
}
|
|
17155
17510
|
}
|
|
17156
17511
|
|
|
17157
17512
|
|