@tennac-booking/sdk 1.0.60 → 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 -182
- package/README.md +57 -18
- package/api.ts +7712 -5584
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +3797 -1986
- package/dist/api.js +1071 -483
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +3797 -1986
- package/dist/esm/api.js +1052 -481
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/ClubResponse.md +0 -1
- package/docs/ClubSubscriptions.md +26 -0
- package/docs/ClubsManagerApi.md +6 -61
- package/docs/ClubsStaffApi.md +2 -2
- package/docs/{SubscriptionSessionRequestBody.md → CreatePlan201Response.md} +5 -5
- package/docs/CreateSubscriptionPlanRequest.md +10 -4
- package/docs/CreateSubscriptionPlanRequestDiscount.md +32 -0
- package/docs/DefaultApi.md +0 -54
- package/docs/{NotImplementedResponse.md → DeleteSubscriptionPlanResponse.md} +3 -3
- package/docs/DiscountType.md +14 -0
- package/docs/OffPeakRule.md +26 -0
- package/docs/PlanInterval.md +14 -0
- package/docs/PlayerSummary.md +2 -0
- package/docs/PublicSubscriptionPlanResponse.md +30 -0
- package/docs/{DeleteSlotsByClubInRange200Response.md → RequestPasswordReset200Response.md} +3 -3
- package/docs/ResetPasswordRequest.md +22 -0
- package/docs/StripeStripeDeletedProduct.md +25 -0
- package/docs/StripeStripePrice.md +63 -0
- package/docs/StripeStripePriceBillingScheme.md +10 -0
- package/docs/StripeStripePriceCurrencyOptions.md +28 -0
- package/docs/StripeStripePriceCurrencyOptionsCustomUnitAmount.md +24 -0
- package/docs/StripeStripePriceCurrencyOptionsTaxBehavior.md +12 -0
- package/docs/StripeStripePriceCurrencyOptionsTier.md +28 -0
- package/docs/StripeStripePriceCustomUnitAmount.md +24 -0
- package/docs/StripeStripePriceProduct.md +59 -0
- package/docs/StripeStripePriceRecurring.md +28 -0
- package/docs/StripeStripePriceRecurringInterval.md +14 -0
- package/docs/StripeStripePriceRecurringUsageType.md +10 -0
- package/docs/StripeStripePriceTaxBehavior.md +12 -0
- package/docs/StripeStripePriceTier.md +28 -0
- package/docs/StripeStripePriceTiersMode.md +10 -0
- package/docs/StripeStripePriceTransformQuantity.md +22 -0
- package/docs/StripeStripePriceTransformQuantityRound.md +10 -0
- package/docs/StripeStripePriceType.md +10 -0
- package/docs/StripeStripeProduct.md +59 -0
- package/docs/StripeStripeProductDefaultPrice.md +63 -0
- package/docs/StripeStripeProductMarketingFeature.md +20 -0
- package/docs/StripeStripeProductPackageDimensions.md +26 -0
- package/docs/StripeStripeProductTaxCode.md +27 -0
- package/docs/StripeStripeProductType.md +10 -0
- package/docs/StripeStripeResponseStripeStripePrice.md +64 -0
- package/docs/StripeStripeResponseStripeStripePriceAllOfLastResponse.md +30 -0
- package/docs/StripeStripeTaxCode.md +27 -0
- package/docs/{SubscribeToClubRequestBody.md → SubscribeRequestBody.md} +3 -3
- package/docs/SubscriptionPlanResponse.md +14 -2
- package/docs/SubscriptionsManagerApi.md +171 -0
- package/docs/SubscriptionsPublicApi.md +60 -0
- package/docs/SubscriptionsStaffApi.md +54 -0
- package/docs/SubscriptionsUserApi.md +222 -0
- package/docs/{GetCourtsByClub200Response.md → UpdatePlanRequest.md} +7 -5
- package/docs/UserClubSubscription.md +42 -0
- package/docs/UserSubscriptionsResponse.md +1 -1
- package/docs/UsersApi.md +104 -212
- package/docs/{DeleteClubResponse.md → VerifyEmailRequest.md} +5 -5
- package/index.ts +2 -2
- package/package.json +1 -1
- package/docs/SubscriptionSessionResponse.md +0 -20
package/dist/esm/api.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* openapi.json
|
|
5
|
-
* API
|
|
5
|
+
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.61
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -71,6 +71,17 @@ export const CreateClubRoleRequestRoleEnum = {
|
|
|
71
71
|
Manager: 'manager',
|
|
72
72
|
Staff: 'staff'
|
|
73
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @export
|
|
77
|
+
* @enum {string}
|
|
78
|
+
*/
|
|
79
|
+
export const DiscountType = {
|
|
80
|
+
None: 'none',
|
|
81
|
+
Free: 'free',
|
|
82
|
+
Percentage: 'percentage',
|
|
83
|
+
OffPeak: 'off_peak'
|
|
84
|
+
};
|
|
74
85
|
/**
|
|
75
86
|
*
|
|
76
87
|
* @export
|
|
@@ -94,6 +105,126 @@ export const PaymentMethod = {
|
|
|
94
105
|
Onsite: 'onsite',
|
|
95
106
|
Free: 'free'
|
|
96
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @export
|
|
111
|
+
* @enum {string}
|
|
112
|
+
*/
|
|
113
|
+
export const PlanInterval = {
|
|
114
|
+
Monthly: 'monthly',
|
|
115
|
+
Yearly: 'yearly',
|
|
116
|
+
Trimester: 'trimester',
|
|
117
|
+
Semester: 'semester'
|
|
118
|
+
};
|
|
119
|
+
export const StripeStripeDeletedProductObjectEnum = {
|
|
120
|
+
Product: 'product'
|
|
121
|
+
};
|
|
122
|
+
export const StripeStripePriceObjectEnum = {
|
|
123
|
+
Price: 'price'
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @export
|
|
128
|
+
* @enum {string}
|
|
129
|
+
*/
|
|
130
|
+
export const StripeStripePriceBillingScheme = {
|
|
131
|
+
PerUnit: 'per_unit',
|
|
132
|
+
Tiered: 'tiered'
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @export
|
|
137
|
+
* @enum {string}
|
|
138
|
+
*/
|
|
139
|
+
export const StripeStripePriceCurrencyOptionsTaxBehavior = {
|
|
140
|
+
Exclusive: 'exclusive',
|
|
141
|
+
Inclusive: 'inclusive',
|
|
142
|
+
Unspecified: 'unspecified'
|
|
143
|
+
};
|
|
144
|
+
export const StripeStripePriceProductObjectEnum = {
|
|
145
|
+
Product: 'product'
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @export
|
|
150
|
+
* @enum {string}
|
|
151
|
+
*/
|
|
152
|
+
export const StripeStripePriceRecurringInterval = {
|
|
153
|
+
Day: 'day',
|
|
154
|
+
Month: 'month',
|
|
155
|
+
Week: 'week',
|
|
156
|
+
Year: 'year'
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @export
|
|
161
|
+
* @enum {string}
|
|
162
|
+
*/
|
|
163
|
+
export const StripeStripePriceRecurringUsageType = {
|
|
164
|
+
Licensed: 'licensed',
|
|
165
|
+
Metered: 'metered'
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @export
|
|
170
|
+
* @enum {string}
|
|
171
|
+
*/
|
|
172
|
+
export const StripeStripePriceTaxBehavior = {
|
|
173
|
+
Exclusive: 'exclusive',
|
|
174
|
+
Inclusive: 'inclusive',
|
|
175
|
+
Unspecified: 'unspecified'
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @export
|
|
180
|
+
* @enum {string}
|
|
181
|
+
*/
|
|
182
|
+
export const StripeStripePriceTiersMode = {
|
|
183
|
+
Graduated: 'graduated',
|
|
184
|
+
Volume: 'volume'
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* @export
|
|
189
|
+
* @enum {string}
|
|
190
|
+
*/
|
|
191
|
+
export const StripeStripePriceTransformQuantityRound = {
|
|
192
|
+
Down: 'down',
|
|
193
|
+
Up: 'up'
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @export
|
|
198
|
+
* @enum {string}
|
|
199
|
+
*/
|
|
200
|
+
export const StripeStripePriceType = {
|
|
201
|
+
OneTime: 'one_time',
|
|
202
|
+
Recurring: 'recurring'
|
|
203
|
+
};
|
|
204
|
+
export const StripeStripeProductObjectEnum = {
|
|
205
|
+
Product: 'product'
|
|
206
|
+
};
|
|
207
|
+
export const StripeStripeProductDefaultPriceObjectEnum = {
|
|
208
|
+
Price: 'price'
|
|
209
|
+
};
|
|
210
|
+
export const StripeStripeProductTaxCodeObjectEnum = {
|
|
211
|
+
TaxCode: 'tax_code'
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @export
|
|
216
|
+
* @enum {string}
|
|
217
|
+
*/
|
|
218
|
+
export const StripeStripeProductType = {
|
|
219
|
+
Good: 'good',
|
|
220
|
+
Service: 'service'
|
|
221
|
+
};
|
|
222
|
+
export const StripeStripeResponseStripeStripePriceObjectEnum = {
|
|
223
|
+
Price: 'price'
|
|
224
|
+
};
|
|
225
|
+
export const StripeStripeTaxCodeObjectEnum = {
|
|
226
|
+
TaxCode: 'tax_code'
|
|
227
|
+
};
|
|
97
228
|
/**
|
|
98
229
|
*
|
|
99
230
|
* @export
|
|
@@ -3453,38 +3584,6 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3453
3584
|
options: localVarRequestOptions,
|
|
3454
3585
|
};
|
|
3455
3586
|
}),
|
|
3456
|
-
/**
|
|
3457
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
3458
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
3459
|
-
* @param {*} [options] Override http request option.
|
|
3460
|
-
* @throws {RequiredError}
|
|
3461
|
-
*/
|
|
3462
|
-
createSubscriptionPlanForClub: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
|
|
3463
|
-
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
3464
|
-
assertParamExists('createSubscriptionPlanForClub', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
|
|
3465
|
-
const localVarPath = `/api/clubs/subscription-plans`;
|
|
3466
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3467
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3468
|
-
let baseOptions;
|
|
3469
|
-
if (configuration) {
|
|
3470
|
-
baseOptions = configuration.baseOptions;
|
|
3471
|
-
}
|
|
3472
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3473
|
-
const localVarHeaderParameter = {};
|
|
3474
|
-
const localVarQueryParameter = {};
|
|
3475
|
-
// authentication bearerAuth required
|
|
3476
|
-
// http bearer authentication required
|
|
3477
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3478
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3479
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3480
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3481
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3482
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
3483
|
-
return {
|
|
3484
|
-
url: toPathString(localVarUrlObj),
|
|
3485
|
-
options: localVarRequestOptions,
|
|
3486
|
-
};
|
|
3487
|
-
}),
|
|
3488
3587
|
/**
|
|
3489
3588
|
*
|
|
3490
3589
|
* @param {string} actualityId
|
|
@@ -3970,21 +4069,6 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
3970
4069
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3971
4070
|
});
|
|
3972
4071
|
},
|
|
3973
|
-
/**
|
|
3974
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
3975
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
3976
|
-
* @param {*} [options] Override http request option.
|
|
3977
|
-
* @throws {RequiredError}
|
|
3978
|
-
*/
|
|
3979
|
-
createSubscriptionPlanForClub(createSubscriptionPlanRequest, options) {
|
|
3980
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3981
|
-
var _a, _b, _c;
|
|
3982
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(createSubscriptionPlanRequest, options);
|
|
3983
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3984
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.createSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3985
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3986
|
-
});
|
|
3987
|
-
},
|
|
3988
4072
|
/**
|
|
3989
4073
|
*
|
|
3990
4074
|
* @param {string} actualityId
|
|
@@ -4230,15 +4314,6 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
4230
4314
|
createSportForClub(requestParameters, options) {
|
|
4231
4315
|
return localVarFp.createSportForClub(requestParameters.createSportForClubRequest, options).then((request) => request(axios, basePath));
|
|
4232
4316
|
},
|
|
4233
|
-
/**
|
|
4234
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
4235
|
-
* @param {ClubsManagerApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
4236
|
-
* @param {*} [options] Override http request option.
|
|
4237
|
-
* @throws {RequiredError}
|
|
4238
|
-
*/
|
|
4239
|
-
createSubscriptionPlanForClub(requestParameters, options) {
|
|
4240
|
-
return localVarFp.createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
4241
|
-
},
|
|
4242
4317
|
/**
|
|
4243
4318
|
*
|
|
4244
4319
|
* @param {ClubsManagerApiDeleteActualityRequest} requestParameters Request parameters.
|
|
@@ -4415,16 +4490,6 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
4415
4490
|
createSportForClub(requestParameters, options) {
|
|
4416
4491
|
return ClubsManagerApiFp(this.configuration).createSportForClub(requestParameters.createSportForClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4417
4492
|
}
|
|
4418
|
-
/**
|
|
4419
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
4420
|
-
* @param {ClubsManagerApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
4421
|
-
* @param {*} [options] Override http request option.
|
|
4422
|
-
* @throws {RequiredError}
|
|
4423
|
-
* @memberof ClubsManagerApi
|
|
4424
|
-
*/
|
|
4425
|
-
createSubscriptionPlanForClub(requestParameters, options) {
|
|
4426
|
-
return ClubsManagerApiFp(this.configuration).createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4427
|
-
}
|
|
4428
4493
|
/**
|
|
4429
4494
|
*
|
|
4430
4495
|
* @param {ClubsManagerApiDeleteActualityRequest} requestParameters Request parameters.
|
|
@@ -5027,37 +5092,6 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
5027
5092
|
options: localVarRequestOptions,
|
|
5028
5093
|
};
|
|
5029
5094
|
}),
|
|
5030
|
-
/**
|
|
5031
|
-
* Supprime un club et toutes ses données associées
|
|
5032
|
-
* @param {string} id
|
|
5033
|
-
* @param {*} [options] Override http request option.
|
|
5034
|
-
* @throws {RequiredError}
|
|
5035
|
-
*/
|
|
5036
|
-
deleteClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
5037
|
-
// verify required parameter 'id' is not null or undefined
|
|
5038
|
-
assertParamExists('deleteClub', 'id', id);
|
|
5039
|
-
const localVarPath = `/api/clubs/{id}`
|
|
5040
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5041
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5042
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5043
|
-
let baseOptions;
|
|
5044
|
-
if (configuration) {
|
|
5045
|
-
baseOptions = configuration.baseOptions;
|
|
5046
|
-
}
|
|
5047
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5048
|
-
const localVarHeaderParameter = {};
|
|
5049
|
-
const localVarQueryParameter = {};
|
|
5050
|
-
// authentication bearerAuth required
|
|
5051
|
-
// http bearer authentication required
|
|
5052
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5053
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5054
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5055
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5056
|
-
return {
|
|
5057
|
-
url: toPathString(localVarUrlObj),
|
|
5058
|
-
options: localVarRequestOptions,
|
|
5059
|
-
};
|
|
5060
|
-
}),
|
|
5061
5095
|
};
|
|
5062
5096
|
};
|
|
5063
5097
|
/**
|
|
@@ -5082,21 +5116,6 @@ export const DefaultApiFp = function (configuration) {
|
|
|
5082
5116
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5083
5117
|
});
|
|
5084
5118
|
},
|
|
5085
|
-
/**
|
|
5086
|
-
* Supprime un club et toutes ses données associées
|
|
5087
|
-
* @param {string} id
|
|
5088
|
-
* @param {*} [options] Override http request option.
|
|
5089
|
-
* @throws {RequiredError}
|
|
5090
|
-
*/
|
|
5091
|
-
deleteClub(id, options) {
|
|
5092
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5093
|
-
var _a, _b, _c;
|
|
5094
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClub(id, options);
|
|
5095
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5096
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.deleteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5097
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5098
|
-
});
|
|
5099
|
-
},
|
|
5100
5119
|
};
|
|
5101
5120
|
};
|
|
5102
5121
|
/**
|
|
@@ -5115,15 +5134,6 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5115
5134
|
createClub(requestParameters, options) {
|
|
5116
5135
|
return localVarFp.createClub(requestParameters.createClubRequest, options).then((request) => request(axios, basePath));
|
|
5117
5136
|
},
|
|
5118
|
-
/**
|
|
5119
|
-
* Supprime un club et toutes ses données associées
|
|
5120
|
-
* @param {DefaultApiDeleteClubRequest} requestParameters Request parameters.
|
|
5121
|
-
* @param {*} [options] Override http request option.
|
|
5122
|
-
* @throws {RequiredError}
|
|
5123
|
-
*/
|
|
5124
|
-
deleteClub(requestParameters, options) {
|
|
5125
|
-
return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5126
|
-
},
|
|
5127
5137
|
};
|
|
5128
5138
|
};
|
|
5129
5139
|
/**
|
|
@@ -5143,16 +5153,6 @@ export class DefaultApi extends BaseAPI {
|
|
|
5143
5153
|
createClub(requestParameters, options) {
|
|
5144
5154
|
return DefaultApiFp(this.configuration).createClub(requestParameters.createClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5145
5155
|
}
|
|
5146
|
-
/**
|
|
5147
|
-
* Supprime un club et toutes ses données associées
|
|
5148
|
-
* @param {DefaultApiDeleteClubRequest} requestParameters Request parameters.
|
|
5149
|
-
* @param {*} [options] Override http request option.
|
|
5150
|
-
* @throws {RequiredError}
|
|
5151
|
-
* @memberof DefaultApi
|
|
5152
|
-
*/
|
|
5153
|
-
deleteClub(requestParameters, options) {
|
|
5154
|
-
return DefaultApiFp(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5155
|
-
}
|
|
5156
5156
|
}
|
|
5157
5157
|
/**
|
|
5158
5158
|
* EventsApi - axios parameter creator
|
|
@@ -6037,21 +6037,21 @@ export class SportsStaffApi extends BaseAPI {
|
|
|
6037
6037
|
}
|
|
6038
6038
|
}
|
|
6039
6039
|
/**
|
|
6040
|
-
*
|
|
6040
|
+
* SubscriptionsManagerApi - axios parameter creator
|
|
6041
6041
|
* @export
|
|
6042
6042
|
*/
|
|
6043
|
-
export const
|
|
6043
|
+
export const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
6044
6044
|
return {
|
|
6045
6045
|
/**
|
|
6046
|
-
*
|
|
6047
|
-
* @param {
|
|
6046
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6047
|
+
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
6048
6048
|
* @param {*} [options] Override http request option.
|
|
6049
6049
|
* @throws {RequiredError}
|
|
6050
6050
|
*/
|
|
6051
|
-
|
|
6052
|
-
// verify required parameter '
|
|
6053
|
-
assertParamExists('
|
|
6054
|
-
const localVarPath = `/api/
|
|
6051
|
+
createPlan: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
|
|
6052
|
+
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
6053
|
+
assertParamExists('createPlan', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
|
|
6054
|
+
const localVarPath = `/api/subscriptions/plans`;
|
|
6055
6055
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6056
6056
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6057
6057
|
let baseOptions;
|
|
@@ -6068,61 +6068,60 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6068
6068
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6069
6069
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6070
6070
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6071
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
6071
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
6072
6072
|
return {
|
|
6073
6073
|
url: toPathString(localVarUrlObj),
|
|
6074
6074
|
options: localVarRequestOptions,
|
|
6075
6075
|
};
|
|
6076
6076
|
}),
|
|
6077
6077
|
/**
|
|
6078
|
-
*
|
|
6079
|
-
* @param {
|
|
6078
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6079
|
+
* @param {string} productId
|
|
6080
6080
|
* @param {*} [options] Override http request option.
|
|
6081
6081
|
* @throws {RequiredError}
|
|
6082
6082
|
*/
|
|
6083
|
-
|
|
6084
|
-
// verify required parameter '
|
|
6085
|
-
assertParamExists('
|
|
6086
|
-
const localVarPath = `/api/
|
|
6083
|
+
deletePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
|
|
6084
|
+
// verify required parameter 'productId' is not null or undefined
|
|
6085
|
+
assertParamExists('deletePlan', 'productId', productId);
|
|
6086
|
+
const localVarPath = `/api/subscriptions/plans/{productId}`
|
|
6087
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
6087
6088
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6088
6089
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6089
6090
|
let baseOptions;
|
|
6090
6091
|
if (configuration) {
|
|
6091
6092
|
baseOptions = configuration.baseOptions;
|
|
6092
6093
|
}
|
|
6093
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6094
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6094
6095
|
const localVarHeaderParameter = {};
|
|
6095
6096
|
const localVarQueryParameter = {};
|
|
6096
6097
|
// authentication bearerAuth required
|
|
6097
6098
|
// http bearer authentication required
|
|
6098
6099
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6099
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6100
6100
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6101
6101
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6102
6102
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6103
|
-
localVarRequestOptions.data = serializeDataIfNeeded(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
6104
6103
|
return {
|
|
6105
6104
|
url: toPathString(localVarUrlObj),
|
|
6106
6105
|
options: localVarRequestOptions,
|
|
6107
6106
|
};
|
|
6108
6107
|
}),
|
|
6109
6108
|
/**
|
|
6110
|
-
*
|
|
6111
|
-
* @param {
|
|
6109
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6110
|
+
* @param {UpdatePlanRequest} updatePlanRequest
|
|
6112
6111
|
* @param {*} [options] Override http request option.
|
|
6113
6112
|
* @throws {RequiredError}
|
|
6114
6113
|
*/
|
|
6115
|
-
|
|
6116
|
-
// verify required parameter '
|
|
6117
|
-
assertParamExists('
|
|
6118
|
-
const localVarPath = `/api/
|
|
6114
|
+
updatePlan: (updatePlanRequest_1, ...args_1) => __awaiter(this, [updatePlanRequest_1, ...args_1], void 0, function* (updatePlanRequest, options = {}) {
|
|
6115
|
+
// verify required parameter 'updatePlanRequest' is not null or undefined
|
|
6116
|
+
assertParamExists('updatePlan', 'updatePlanRequest', updatePlanRequest);
|
|
6117
|
+
const localVarPath = `/api/subscriptions/plans`;
|
|
6119
6118
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6120
6119
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6121
6120
|
let baseOptions;
|
|
6122
6121
|
if (configuration) {
|
|
6123
6122
|
baseOptions = configuration.baseOptions;
|
|
6124
6123
|
}
|
|
6125
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6124
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6126
6125
|
const localVarHeaderParameter = {};
|
|
6127
6126
|
const localVarQueryParameter = {};
|
|
6128
6127
|
// authentication bearerAuth required
|
|
@@ -6132,64 +6131,651 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6132
6131
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6133
6132
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6134
6133
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6135
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
6134
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePlanRequest, localVarRequestOptions, configuration);
|
|
6136
6135
|
return {
|
|
6137
6136
|
url: toPathString(localVarUrlObj),
|
|
6138
6137
|
options: localVarRequestOptions,
|
|
6139
6138
|
};
|
|
6140
6139
|
}),
|
|
6140
|
+
};
|
|
6141
|
+
};
|
|
6142
|
+
/**
|
|
6143
|
+
* SubscriptionsManagerApi - functional programming interface
|
|
6144
|
+
* @export
|
|
6145
|
+
*/
|
|
6146
|
+
export const SubscriptionsManagerApiFp = function (configuration) {
|
|
6147
|
+
const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration);
|
|
6148
|
+
return {
|
|
6141
6149
|
/**
|
|
6142
|
-
*
|
|
6143
|
-
* @param {
|
|
6144
|
-
* @param {string} subscriptionId
|
|
6150
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6151
|
+
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
6145
6152
|
* @param {*} [options] Override http request option.
|
|
6146
6153
|
* @throws {RequiredError}
|
|
6147
6154
|
*/
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6158
|
-
let baseOptions;
|
|
6159
|
-
if (configuration) {
|
|
6160
|
-
baseOptions = configuration.baseOptions;
|
|
6161
|
-
}
|
|
6162
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6163
|
-
const localVarHeaderParameter = {};
|
|
6164
|
-
const localVarQueryParameter = {};
|
|
6165
|
-
// authentication bearerAuth required
|
|
6166
|
-
// http bearer authentication required
|
|
6167
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6168
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6169
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6170
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6171
|
-
return {
|
|
6172
|
-
url: toPathString(localVarUrlObj),
|
|
6173
|
-
options: localVarRequestOptions,
|
|
6174
|
-
};
|
|
6175
|
-
}),
|
|
6155
|
+
createPlan(createSubscriptionPlanRequest, options) {
|
|
6156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6157
|
+
var _a, _b, _c;
|
|
6158
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPlan(createSubscriptionPlanRequest, options);
|
|
6159
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6160
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.createPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6161
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6162
|
+
});
|
|
6163
|
+
},
|
|
6176
6164
|
/**
|
|
6177
|
-
*
|
|
6178
|
-
* @param {
|
|
6165
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6166
|
+
* @param {string} productId
|
|
6179
6167
|
* @param {*} [options] Override http request option.
|
|
6180
6168
|
* @throws {RequiredError}
|
|
6181
6169
|
*/
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6170
|
+
deletePlan(productId, options) {
|
|
6171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6172
|
+
var _a, _b, _c;
|
|
6173
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePlan(productId, options);
|
|
6174
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6175
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.deletePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6176
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6177
|
+
});
|
|
6178
|
+
},
|
|
6179
|
+
/**
|
|
6180
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6181
|
+
* @param {UpdatePlanRequest} updatePlanRequest
|
|
6182
|
+
* @param {*} [options] Override http request option.
|
|
6183
|
+
* @throws {RequiredError}
|
|
6184
|
+
*/
|
|
6185
|
+
updatePlan(updatePlanRequest, options) {
|
|
6186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6187
|
+
var _a, _b, _c;
|
|
6188
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlan(updatePlanRequest, options);
|
|
6189
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6190
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.updatePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6191
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6192
|
+
});
|
|
6193
|
+
},
|
|
6194
|
+
};
|
|
6195
|
+
};
|
|
6196
|
+
/**
|
|
6197
|
+
* SubscriptionsManagerApi - factory interface
|
|
6198
|
+
* @export
|
|
6199
|
+
*/
|
|
6200
|
+
export const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
|
|
6201
|
+
const localVarFp = SubscriptionsManagerApiFp(configuration);
|
|
6202
|
+
return {
|
|
6203
|
+
/**
|
|
6204
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6205
|
+
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
6206
|
+
* @param {*} [options] Override http request option.
|
|
6207
|
+
* @throws {RequiredError}
|
|
6208
|
+
*/
|
|
6209
|
+
createPlan(requestParameters, options) {
|
|
6210
|
+
return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
6211
|
+
},
|
|
6212
|
+
/**
|
|
6213
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6214
|
+
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
6215
|
+
* @param {*} [options] Override http request option.
|
|
6216
|
+
* @throws {RequiredError}
|
|
6217
|
+
*/
|
|
6218
|
+
deletePlan(requestParameters, options) {
|
|
6219
|
+
return localVarFp.deletePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
6220
|
+
},
|
|
6221
|
+
/**
|
|
6222
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6223
|
+
* @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
|
|
6224
|
+
* @param {*} [options] Override http request option.
|
|
6225
|
+
* @throws {RequiredError}
|
|
6226
|
+
*/
|
|
6227
|
+
updatePlan(requestParameters, options) {
|
|
6228
|
+
return localVarFp.updatePlan(requestParameters.updatePlanRequest, options).then((request) => request(axios, basePath));
|
|
6229
|
+
},
|
|
6230
|
+
};
|
|
6231
|
+
};
|
|
6232
|
+
/**
|
|
6233
|
+
* SubscriptionsManagerApi - object-oriented interface
|
|
6234
|
+
* @export
|
|
6235
|
+
* @class SubscriptionsManagerApi
|
|
6236
|
+
* @extends {BaseAPI}
|
|
6237
|
+
*/
|
|
6238
|
+
export class SubscriptionsManagerApi extends BaseAPI {
|
|
6239
|
+
/**
|
|
6240
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6241
|
+
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
6242
|
+
* @param {*} [options] Override http request option.
|
|
6243
|
+
* @throws {RequiredError}
|
|
6244
|
+
* @memberof SubscriptionsManagerApi
|
|
6245
|
+
*/
|
|
6246
|
+
createPlan(requestParameters, options) {
|
|
6247
|
+
return SubscriptionsManagerApiFp(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6248
|
+
}
|
|
6249
|
+
/**
|
|
6250
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6251
|
+
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
6252
|
+
* @param {*} [options] Override http request option.
|
|
6253
|
+
* @throws {RequiredError}
|
|
6254
|
+
* @memberof SubscriptionsManagerApi
|
|
6255
|
+
*/
|
|
6256
|
+
deletePlan(requestParameters, options) {
|
|
6257
|
+
return SubscriptionsManagerApiFp(this.configuration).deletePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
6258
|
+
}
|
|
6259
|
+
/**
|
|
6260
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6261
|
+
* @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
|
|
6262
|
+
* @param {*} [options] Override http request option.
|
|
6263
|
+
* @throws {RequiredError}
|
|
6264
|
+
* @memberof SubscriptionsManagerApi
|
|
6265
|
+
*/
|
|
6266
|
+
updatePlan(requestParameters, options) {
|
|
6267
|
+
return SubscriptionsManagerApiFp(this.configuration).updatePlan(requestParameters.updatePlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6268
|
+
}
|
|
6269
|
+
}
|
|
6270
|
+
/**
|
|
6271
|
+
* SubscriptionsPublicApi - axios parameter creator
|
|
6272
|
+
* @export
|
|
6273
|
+
*/
|
|
6274
|
+
export const SubscriptionsPublicApiAxiosParamCreator = function (configuration) {
|
|
6275
|
+
return {
|
|
6276
|
+
/**
|
|
6277
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6278
|
+
* @param {string} clubId
|
|
6279
|
+
* @param {*} [options] Override http request option.
|
|
6280
|
+
* @throws {RequiredError}
|
|
6281
|
+
*/
|
|
6282
|
+
getPublicPlans: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
6283
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6284
|
+
assertParamExists('getPublicPlans', 'clubId', clubId);
|
|
6285
|
+
const localVarPath = `/api/subscriptions/plans/{clubId}`
|
|
6286
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
6287
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6288
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6289
|
+
let baseOptions;
|
|
6290
|
+
if (configuration) {
|
|
6291
|
+
baseOptions = configuration.baseOptions;
|
|
6292
|
+
}
|
|
6293
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6294
|
+
const localVarHeaderParameter = {};
|
|
6295
|
+
const localVarQueryParameter = {};
|
|
6296
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6297
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6298
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6299
|
+
return {
|
|
6300
|
+
url: toPathString(localVarUrlObj),
|
|
6301
|
+
options: localVarRequestOptions,
|
|
6302
|
+
};
|
|
6303
|
+
}),
|
|
6304
|
+
};
|
|
6305
|
+
};
|
|
6306
|
+
/**
|
|
6307
|
+
* SubscriptionsPublicApi - functional programming interface
|
|
6308
|
+
* @export
|
|
6309
|
+
*/
|
|
6310
|
+
export const SubscriptionsPublicApiFp = function (configuration) {
|
|
6311
|
+
const localVarAxiosParamCreator = SubscriptionsPublicApiAxiosParamCreator(configuration);
|
|
6312
|
+
return {
|
|
6313
|
+
/**
|
|
6314
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6315
|
+
* @param {string} clubId
|
|
6316
|
+
* @param {*} [options] Override http request option.
|
|
6317
|
+
* @throws {RequiredError}
|
|
6318
|
+
*/
|
|
6319
|
+
getPublicPlans(clubId, options) {
|
|
6320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6321
|
+
var _a, _b, _c;
|
|
6322
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicPlans(clubId, options);
|
|
6323
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6324
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsPublicApi.getPublicPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6325
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6326
|
+
});
|
|
6327
|
+
},
|
|
6328
|
+
};
|
|
6329
|
+
};
|
|
6330
|
+
/**
|
|
6331
|
+
* SubscriptionsPublicApi - factory interface
|
|
6332
|
+
* @export
|
|
6333
|
+
*/
|
|
6334
|
+
export const SubscriptionsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6335
|
+
const localVarFp = SubscriptionsPublicApiFp(configuration);
|
|
6336
|
+
return {
|
|
6337
|
+
/**
|
|
6338
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6339
|
+
* @param {SubscriptionsPublicApiGetPublicPlansRequest} requestParameters Request parameters.
|
|
6340
|
+
* @param {*} [options] Override http request option.
|
|
6341
|
+
* @throws {RequiredError}
|
|
6342
|
+
*/
|
|
6343
|
+
getPublicPlans(requestParameters, options) {
|
|
6344
|
+
return localVarFp.getPublicPlans(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
6345
|
+
},
|
|
6346
|
+
};
|
|
6347
|
+
};
|
|
6348
|
+
/**
|
|
6349
|
+
* SubscriptionsPublicApi - object-oriented interface
|
|
6350
|
+
* @export
|
|
6351
|
+
* @class SubscriptionsPublicApi
|
|
6352
|
+
* @extends {BaseAPI}
|
|
6353
|
+
*/
|
|
6354
|
+
export class SubscriptionsPublicApi extends BaseAPI {
|
|
6355
|
+
/**
|
|
6356
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6357
|
+
* @param {SubscriptionsPublicApiGetPublicPlansRequest} requestParameters Request parameters.
|
|
6358
|
+
* @param {*} [options] Override http request option.
|
|
6359
|
+
* @throws {RequiredError}
|
|
6360
|
+
* @memberof SubscriptionsPublicApi
|
|
6361
|
+
*/
|
|
6362
|
+
getPublicPlans(requestParameters, options) {
|
|
6363
|
+
return SubscriptionsPublicApiFp(this.configuration).getPublicPlans(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
6364
|
+
}
|
|
6365
|
+
}
|
|
6366
|
+
/**
|
|
6367
|
+
* SubscriptionsStaffApi - axios parameter creator
|
|
6368
|
+
* @export
|
|
6369
|
+
*/
|
|
6370
|
+
export const SubscriptionsStaffApiAxiosParamCreator = function (configuration) {
|
|
6371
|
+
return {
|
|
6372
|
+
/**
|
|
6373
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6374
|
+
* @param {*} [options] Override http request option.
|
|
6375
|
+
* @throws {RequiredError}
|
|
6376
|
+
*/
|
|
6377
|
+
getClubPlans: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6378
|
+
const localVarPath = `/api/subscriptions/plans`;
|
|
6379
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6380
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6381
|
+
let baseOptions;
|
|
6382
|
+
if (configuration) {
|
|
6383
|
+
baseOptions = configuration.baseOptions;
|
|
6384
|
+
}
|
|
6385
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6386
|
+
const localVarHeaderParameter = {};
|
|
6387
|
+
const localVarQueryParameter = {};
|
|
6388
|
+
// authentication bearerAuth required
|
|
6389
|
+
// http bearer authentication required
|
|
6390
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6391
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6392
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6393
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6394
|
+
return {
|
|
6395
|
+
url: toPathString(localVarUrlObj),
|
|
6396
|
+
options: localVarRequestOptions,
|
|
6397
|
+
};
|
|
6398
|
+
}),
|
|
6399
|
+
};
|
|
6400
|
+
};
|
|
6401
|
+
/**
|
|
6402
|
+
* SubscriptionsStaffApi - functional programming interface
|
|
6403
|
+
* @export
|
|
6404
|
+
*/
|
|
6405
|
+
export const SubscriptionsStaffApiFp = function (configuration) {
|
|
6406
|
+
const localVarAxiosParamCreator = SubscriptionsStaffApiAxiosParamCreator(configuration);
|
|
6407
|
+
return {
|
|
6408
|
+
/**
|
|
6409
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6410
|
+
* @param {*} [options] Override http request option.
|
|
6411
|
+
* @throws {RequiredError}
|
|
6412
|
+
*/
|
|
6413
|
+
getClubPlans(options) {
|
|
6414
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6415
|
+
var _a, _b, _c;
|
|
6416
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlans(options);
|
|
6417
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6418
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsStaffApi.getClubPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6419
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6420
|
+
});
|
|
6421
|
+
},
|
|
6422
|
+
};
|
|
6423
|
+
};
|
|
6424
|
+
/**
|
|
6425
|
+
* SubscriptionsStaffApi - factory interface
|
|
6426
|
+
* @export
|
|
6427
|
+
*/
|
|
6428
|
+
export const SubscriptionsStaffApiFactory = function (configuration, basePath, axios) {
|
|
6429
|
+
const localVarFp = SubscriptionsStaffApiFp(configuration);
|
|
6430
|
+
return {
|
|
6431
|
+
/**
|
|
6432
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6433
|
+
* @param {*} [options] Override http request option.
|
|
6434
|
+
* @throws {RequiredError}
|
|
6435
|
+
*/
|
|
6436
|
+
getClubPlans(options) {
|
|
6437
|
+
return localVarFp.getClubPlans(options).then((request) => request(axios, basePath));
|
|
6438
|
+
},
|
|
6439
|
+
};
|
|
6440
|
+
};
|
|
6441
|
+
/**
|
|
6442
|
+
* SubscriptionsStaffApi - object-oriented interface
|
|
6443
|
+
* @export
|
|
6444
|
+
* @class SubscriptionsStaffApi
|
|
6445
|
+
* @extends {BaseAPI}
|
|
6446
|
+
*/
|
|
6447
|
+
export class SubscriptionsStaffApi extends BaseAPI {
|
|
6448
|
+
/**
|
|
6449
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6450
|
+
* @param {*} [options] Override http request option.
|
|
6451
|
+
* @throws {RequiredError}
|
|
6452
|
+
* @memberof SubscriptionsStaffApi
|
|
6453
|
+
*/
|
|
6454
|
+
getClubPlans(options) {
|
|
6455
|
+
return SubscriptionsStaffApiFp(this.configuration).getClubPlans(options).then((request) => request(this.axios, this.basePath));
|
|
6456
|
+
}
|
|
6457
|
+
}
|
|
6458
|
+
/**
|
|
6459
|
+
* SubscriptionsUserApi - axios parameter creator
|
|
6460
|
+
* @export
|
|
6461
|
+
*/
|
|
6462
|
+
export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
6463
|
+
return {
|
|
6464
|
+
/**
|
|
6465
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6466
|
+
* @param {string} clubId
|
|
6467
|
+
* @param {string} subscriptionId
|
|
6468
|
+
* @param {*} [options] Override http request option.
|
|
6469
|
+
* @throws {RequiredError}
|
|
6470
|
+
*/
|
|
6471
|
+
cancel: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
6472
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6473
|
+
assertParamExists('cancel', 'clubId', clubId);
|
|
6474
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
6475
|
+
assertParamExists('cancel', 'subscriptionId', subscriptionId);
|
|
6476
|
+
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}`
|
|
6477
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6478
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
6479
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6480
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6481
|
+
let baseOptions;
|
|
6482
|
+
if (configuration) {
|
|
6483
|
+
baseOptions = configuration.baseOptions;
|
|
6484
|
+
}
|
|
6485
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6486
|
+
const localVarHeaderParameter = {};
|
|
6487
|
+
const localVarQueryParameter = {};
|
|
6488
|
+
// authentication bearerAuth required
|
|
6489
|
+
// http bearer authentication required
|
|
6490
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6491
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6492
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6493
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6494
|
+
return {
|
|
6495
|
+
url: toPathString(localVarUrlObj),
|
|
6496
|
+
options: localVarRequestOptions,
|
|
6497
|
+
};
|
|
6498
|
+
}),
|
|
6499
|
+
/**
|
|
6500
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6501
|
+
* @param {*} [options] Override http request option.
|
|
6502
|
+
* @throws {RequiredError}
|
|
6503
|
+
*/
|
|
6504
|
+
mySubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6505
|
+
const localVarPath = `/api/subscriptions/me`;
|
|
6506
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6507
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6508
|
+
let baseOptions;
|
|
6509
|
+
if (configuration) {
|
|
6510
|
+
baseOptions = configuration.baseOptions;
|
|
6511
|
+
}
|
|
6512
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6513
|
+
const localVarHeaderParameter = {};
|
|
6514
|
+
const localVarQueryParameter = {};
|
|
6515
|
+
// authentication bearerAuth required
|
|
6516
|
+
// http bearer authentication required
|
|
6517
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6518
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6519
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6520
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6521
|
+
return {
|
|
6522
|
+
url: toPathString(localVarUrlObj),
|
|
6523
|
+
options: localVarRequestOptions,
|
|
6524
|
+
};
|
|
6525
|
+
}),
|
|
6526
|
+
/**
|
|
6527
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6528
|
+
* @param {string} clubId
|
|
6529
|
+
* @param {string} subscriptionId
|
|
6530
|
+
* @param {*} [options] Override http request option.
|
|
6531
|
+
* @throws {RequiredError}
|
|
6532
|
+
*/
|
|
6533
|
+
resume: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
6534
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6535
|
+
assertParamExists('resume', 'clubId', clubId);
|
|
6536
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
6537
|
+
assertParamExists('resume', 'subscriptionId', subscriptionId);
|
|
6538
|
+
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
6539
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6540
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
6541
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6542
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6543
|
+
let baseOptions;
|
|
6544
|
+
if (configuration) {
|
|
6545
|
+
baseOptions = configuration.baseOptions;
|
|
6546
|
+
}
|
|
6547
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6548
|
+
const localVarHeaderParameter = {};
|
|
6549
|
+
const localVarQueryParameter = {};
|
|
6550
|
+
// authentication bearerAuth required
|
|
6551
|
+
// http bearer authentication required
|
|
6552
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6553
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6554
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6555
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6556
|
+
return {
|
|
6557
|
+
url: toPathString(localVarUrlObj),
|
|
6558
|
+
options: localVarRequestOptions,
|
|
6559
|
+
};
|
|
6560
|
+
}),
|
|
6561
|
+
/**
|
|
6562
|
+
* S\'abonner à un plan (auth classique)
|
|
6563
|
+
* @param {SubscribeRequestBody} subscribeRequestBody
|
|
6564
|
+
* @param {*} [options] Override http request option.
|
|
6565
|
+
* @throws {RequiredError}
|
|
6566
|
+
*/
|
|
6567
|
+
subscribe: (subscribeRequestBody_1, ...args_1) => __awaiter(this, [subscribeRequestBody_1, ...args_1], void 0, function* (subscribeRequestBody, options = {}) {
|
|
6568
|
+
// verify required parameter 'subscribeRequestBody' is not null or undefined
|
|
6569
|
+
assertParamExists('subscribe', 'subscribeRequestBody', subscribeRequestBody);
|
|
6570
|
+
const localVarPath = `/api/subscriptions/subscribe`;
|
|
6571
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6572
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6573
|
+
let baseOptions;
|
|
6574
|
+
if (configuration) {
|
|
6575
|
+
baseOptions = configuration.baseOptions;
|
|
6576
|
+
}
|
|
6577
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6578
|
+
const localVarHeaderParameter = {};
|
|
6579
|
+
const localVarQueryParameter = {};
|
|
6580
|
+
// authentication bearerAuth required
|
|
6581
|
+
// http bearer authentication required
|
|
6582
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6583
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6584
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6585
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6586
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6587
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscribeRequestBody, localVarRequestOptions, configuration);
|
|
6588
|
+
return {
|
|
6589
|
+
url: toPathString(localVarUrlObj),
|
|
6590
|
+
options: localVarRequestOptions,
|
|
6591
|
+
};
|
|
6592
|
+
}),
|
|
6593
|
+
};
|
|
6594
|
+
};
|
|
6595
|
+
/**
|
|
6596
|
+
* SubscriptionsUserApi - functional programming interface
|
|
6597
|
+
* @export
|
|
6598
|
+
*/
|
|
6599
|
+
export const SubscriptionsUserApiFp = function (configuration) {
|
|
6600
|
+
const localVarAxiosParamCreator = SubscriptionsUserApiAxiosParamCreator(configuration);
|
|
6601
|
+
return {
|
|
6602
|
+
/**
|
|
6603
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6604
|
+
* @param {string} clubId
|
|
6605
|
+
* @param {string} subscriptionId
|
|
6606
|
+
* @param {*} [options] Override http request option.
|
|
6607
|
+
* @throws {RequiredError}
|
|
6608
|
+
*/
|
|
6609
|
+
cancel(clubId, subscriptionId, options) {
|
|
6610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6611
|
+
var _a, _b, _c;
|
|
6612
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(clubId, subscriptionId, options);
|
|
6613
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6614
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6615
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6616
|
+
});
|
|
6617
|
+
},
|
|
6618
|
+
/**
|
|
6619
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6620
|
+
* @param {*} [options] Override http request option.
|
|
6621
|
+
* @throws {RequiredError}
|
|
6622
|
+
*/
|
|
6623
|
+
mySubscriptions(options) {
|
|
6624
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6625
|
+
var _a, _b, _c;
|
|
6626
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mySubscriptions(options);
|
|
6627
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6628
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.mySubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6629
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6630
|
+
});
|
|
6631
|
+
},
|
|
6632
|
+
/**
|
|
6633
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6634
|
+
* @param {string} clubId
|
|
6635
|
+
* @param {string} subscriptionId
|
|
6636
|
+
* @param {*} [options] Override http request option.
|
|
6637
|
+
* @throws {RequiredError}
|
|
6638
|
+
*/
|
|
6639
|
+
resume(clubId, subscriptionId, options) {
|
|
6640
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6641
|
+
var _a, _b, _c;
|
|
6642
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resume(clubId, subscriptionId, options);
|
|
6643
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6644
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.resume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6645
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6646
|
+
});
|
|
6647
|
+
},
|
|
6648
|
+
/**
|
|
6649
|
+
* S\'abonner à un plan (auth classique)
|
|
6650
|
+
* @param {SubscribeRequestBody} subscribeRequestBody
|
|
6651
|
+
* @param {*} [options] Override http request option.
|
|
6652
|
+
* @throws {RequiredError}
|
|
6653
|
+
*/
|
|
6654
|
+
subscribe(subscribeRequestBody, options) {
|
|
6655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6656
|
+
var _a, _b, _c;
|
|
6657
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribe(subscribeRequestBody, options);
|
|
6658
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6659
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.subscribe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6660
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6661
|
+
});
|
|
6662
|
+
},
|
|
6663
|
+
};
|
|
6664
|
+
};
|
|
6665
|
+
/**
|
|
6666
|
+
* SubscriptionsUserApi - factory interface
|
|
6667
|
+
* @export
|
|
6668
|
+
*/
|
|
6669
|
+
export const SubscriptionsUserApiFactory = function (configuration, basePath, axios) {
|
|
6670
|
+
const localVarFp = SubscriptionsUserApiFp(configuration);
|
|
6671
|
+
return {
|
|
6672
|
+
/**
|
|
6673
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6674
|
+
* @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
|
|
6675
|
+
* @param {*} [options] Override http request option.
|
|
6676
|
+
* @throws {RequiredError}
|
|
6677
|
+
*/
|
|
6678
|
+
cancel(requestParameters, options) {
|
|
6679
|
+
return localVarFp.cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
6680
|
+
},
|
|
6681
|
+
/**
|
|
6682
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6683
|
+
* @param {*} [options] Override http request option.
|
|
6684
|
+
* @throws {RequiredError}
|
|
6685
|
+
*/
|
|
6686
|
+
mySubscriptions(options) {
|
|
6687
|
+
return localVarFp.mySubscriptions(options).then((request) => request(axios, basePath));
|
|
6688
|
+
},
|
|
6689
|
+
/**
|
|
6690
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6691
|
+
* @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
|
|
6692
|
+
* @param {*} [options] Override http request option.
|
|
6693
|
+
* @throws {RequiredError}
|
|
6694
|
+
*/
|
|
6695
|
+
resume(requestParameters, options) {
|
|
6696
|
+
return localVarFp.resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
6697
|
+
},
|
|
6698
|
+
/**
|
|
6699
|
+
* S\'abonner à un plan (auth classique)
|
|
6700
|
+
* @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
|
|
6701
|
+
* @param {*} [options] Override http request option.
|
|
6702
|
+
* @throws {RequiredError}
|
|
6703
|
+
*/
|
|
6704
|
+
subscribe(requestParameters, options) {
|
|
6705
|
+
return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
|
|
6706
|
+
},
|
|
6707
|
+
};
|
|
6708
|
+
};
|
|
6709
|
+
/**
|
|
6710
|
+
* SubscriptionsUserApi - object-oriented interface
|
|
6711
|
+
* @export
|
|
6712
|
+
* @class SubscriptionsUserApi
|
|
6713
|
+
* @extends {BaseAPI}
|
|
6714
|
+
*/
|
|
6715
|
+
export class SubscriptionsUserApi extends BaseAPI {
|
|
6716
|
+
/**
|
|
6717
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6718
|
+
* @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
|
|
6719
|
+
* @param {*} [options] Override http request option.
|
|
6720
|
+
* @throws {RequiredError}
|
|
6721
|
+
* @memberof SubscriptionsUserApi
|
|
6722
|
+
*/
|
|
6723
|
+
cancel(requestParameters, options) {
|
|
6724
|
+
return SubscriptionsUserApiFp(this.configuration).cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
6725
|
+
}
|
|
6726
|
+
/**
|
|
6727
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6728
|
+
* @param {*} [options] Override http request option.
|
|
6729
|
+
* @throws {RequiredError}
|
|
6730
|
+
* @memberof SubscriptionsUserApi
|
|
6731
|
+
*/
|
|
6732
|
+
mySubscriptions(options) {
|
|
6733
|
+
return SubscriptionsUserApiFp(this.configuration).mySubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
6734
|
+
}
|
|
6735
|
+
/**
|
|
6736
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6737
|
+
* @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
|
|
6738
|
+
* @param {*} [options] Override http request option.
|
|
6739
|
+
* @throws {RequiredError}
|
|
6740
|
+
* @memberof SubscriptionsUserApi
|
|
6741
|
+
*/
|
|
6742
|
+
resume(requestParameters, options) {
|
|
6743
|
+
return SubscriptionsUserApiFp(this.configuration).resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
6744
|
+
}
|
|
6745
|
+
/**
|
|
6746
|
+
* S\'abonner à un plan (auth classique)
|
|
6747
|
+
* @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
|
|
6748
|
+
* @param {*} [options] Override http request option.
|
|
6749
|
+
* @throws {RequiredError}
|
|
6750
|
+
* @memberof SubscriptionsUserApi
|
|
6751
|
+
*/
|
|
6752
|
+
subscribe(requestParameters, options) {
|
|
6753
|
+
return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6754
|
+
}
|
|
6755
|
+
}
|
|
6756
|
+
/**
|
|
6757
|
+
* UsersApi - axios parameter creator
|
|
6758
|
+
* @export
|
|
6759
|
+
*/
|
|
6760
|
+
export const UsersApiAxiosParamCreator = function (configuration) {
|
|
6761
|
+
return {
|
|
6762
|
+
/**
|
|
6763
|
+
*
|
|
6764
|
+
* @param {FavoriteClubRequestBody} favoriteClubRequestBody
|
|
6765
|
+
* @param {*} [options] Override http request option.
|
|
6766
|
+
* @throws {RequiredError}
|
|
6767
|
+
*/
|
|
6768
|
+
addFavoriteClub: (favoriteClubRequestBody_1, ...args_1) => __awaiter(this, [favoriteClubRequestBody_1, ...args_1], void 0, function* (favoriteClubRequestBody, options = {}) {
|
|
6769
|
+
// verify required parameter 'favoriteClubRequestBody' is not null or undefined
|
|
6770
|
+
assertParamExists('addFavoriteClub', 'favoriteClubRequestBody', favoriteClubRequestBody);
|
|
6771
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
6772
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6773
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6188
6774
|
let baseOptions;
|
|
6189
6775
|
if (configuration) {
|
|
6190
6776
|
baseOptions = configuration.baseOptions;
|
|
6191
6777
|
}
|
|
6192
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6778
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6193
6779
|
const localVarHeaderParameter = {};
|
|
6194
6780
|
const localVarQueryParameter = {};
|
|
6195
6781
|
// authentication bearerAuth required
|
|
@@ -6199,7 +6785,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6199
6785
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6200
6786
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6201
6787
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6202
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
6788
|
+
localVarRequestOptions.data = serializeDataIfNeeded(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
6203
6789
|
return {
|
|
6204
6790
|
url: toPathString(localVarUrlObj),
|
|
6205
6791
|
options: localVarRequestOptions,
|
|
@@ -6207,14 +6793,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6207
6793
|
}),
|
|
6208
6794
|
/**
|
|
6209
6795
|
*
|
|
6210
|
-
* @param {
|
|
6796
|
+
* @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
|
|
6211
6797
|
* @param {*} [options] Override http request option.
|
|
6212
6798
|
* @throws {RequiredError}
|
|
6213
6799
|
*/
|
|
6214
|
-
|
|
6215
|
-
// verify required parameter '
|
|
6216
|
-
assertParamExists('
|
|
6217
|
-
const localVarPath = `/api/users/
|
|
6800
|
+
addFavoritePlayer: (favoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [favoritePlayerRequestBody_1, ...args_1], void 0, function* (favoritePlayerRequestBody, options = {}) {
|
|
6801
|
+
// verify required parameter 'favoritePlayerRequestBody' is not null or undefined
|
|
6802
|
+
assertParamExists('addFavoritePlayer', 'favoritePlayerRequestBody', favoritePlayerRequestBody);
|
|
6803
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
6218
6804
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6219
6805
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6220
6806
|
let baseOptions;
|
|
@@ -6231,7 +6817,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6231
6817
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6232
6818
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6233
6819
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6234
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
6820
|
+
localVarRequestOptions.data = serializeDataIfNeeded(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
6235
6821
|
return {
|
|
6236
6822
|
url: toPathString(localVarUrlObj),
|
|
6237
6823
|
options: localVarRequestOptions,
|
|
@@ -6239,26 +6825,31 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6239
6825
|
}),
|
|
6240
6826
|
/**
|
|
6241
6827
|
*
|
|
6828
|
+
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
6242
6829
|
* @param {*} [options] Override http request option.
|
|
6243
6830
|
* @throws {RequiredError}
|
|
6244
6831
|
*/
|
|
6245
|
-
|
|
6246
|
-
|
|
6832
|
+
addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
|
|
6833
|
+
// verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
|
|
6834
|
+
assertParamExists('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
|
|
6835
|
+
const localVarPath = `/api/users/addPaymentMethodSetup`;
|
|
6247
6836
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6248
6837
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6249
6838
|
let baseOptions;
|
|
6250
6839
|
if (configuration) {
|
|
6251
6840
|
baseOptions = configuration.baseOptions;
|
|
6252
6841
|
}
|
|
6253
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6842
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6254
6843
|
const localVarHeaderParameter = {};
|
|
6255
6844
|
const localVarQueryParameter = {};
|
|
6256
6845
|
// authentication bearerAuth required
|
|
6257
6846
|
// http bearer authentication required
|
|
6258
6847
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6848
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6259
6849
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6260
6850
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6261
6851
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6852
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
6262
6853
|
return {
|
|
6263
6854
|
url: toPathString(localVarUrlObj),
|
|
6264
6855
|
options: localVarRequestOptions,
|
|
@@ -6266,30 +6857,31 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6266
6857
|
}),
|
|
6267
6858
|
/**
|
|
6268
6859
|
*
|
|
6269
|
-
* @param {
|
|
6860
|
+
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
6270
6861
|
* @param {*} [options] Override http request option.
|
|
6271
6862
|
* @throws {RequiredError}
|
|
6272
6863
|
*/
|
|
6273
|
-
|
|
6274
|
-
// verify required parameter '
|
|
6275
|
-
assertParamExists('
|
|
6276
|
-
const localVarPath = `/api/users/me/
|
|
6277
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
6864
|
+
changePassword: (changePasswordRequestBody_1, ...args_1) => __awaiter(this, [changePasswordRequestBody_1, ...args_1], void 0, function* (changePasswordRequestBody, options = {}) {
|
|
6865
|
+
// verify required parameter 'changePasswordRequestBody' is not null or undefined
|
|
6866
|
+
assertParamExists('changePassword', 'changePasswordRequestBody', changePasswordRequestBody);
|
|
6867
|
+
const localVarPath = `/api/users/me/password`;
|
|
6278
6868
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6279
6869
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6280
6870
|
let baseOptions;
|
|
6281
6871
|
if (configuration) {
|
|
6282
6872
|
baseOptions = configuration.baseOptions;
|
|
6283
6873
|
}
|
|
6284
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6874
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6285
6875
|
const localVarHeaderParameter = {};
|
|
6286
6876
|
const localVarQueryParameter = {};
|
|
6287
6877
|
// authentication bearerAuth required
|
|
6288
6878
|
// http bearer authentication required
|
|
6289
6879
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6880
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6290
6881
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6291
6882
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6292
6883
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6884
|
+
localVarRequestOptions.data = serializeDataIfNeeded(changePasswordRequestBody, localVarRequestOptions, configuration);
|
|
6293
6885
|
return {
|
|
6294
6886
|
url: toPathString(localVarUrlObj),
|
|
6295
6887
|
options: localVarRequestOptions,
|
|
@@ -6297,26 +6889,31 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6297
6889
|
}),
|
|
6298
6890
|
/**
|
|
6299
6891
|
*
|
|
6892
|
+
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
6300
6893
|
* @param {*} [options] Override http request option.
|
|
6301
6894
|
* @throws {RequiredError}
|
|
6302
6895
|
*/
|
|
6303
|
-
|
|
6304
|
-
|
|
6896
|
+
confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
|
|
6897
|
+
// verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
|
|
6898
|
+
assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
|
|
6899
|
+
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
6305
6900
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6306
6901
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6307
6902
|
let baseOptions;
|
|
6308
6903
|
if (configuration) {
|
|
6309
6904
|
baseOptions = configuration.baseOptions;
|
|
6310
6905
|
}
|
|
6311
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6906
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6312
6907
|
const localVarHeaderParameter = {};
|
|
6313
6908
|
const localVarQueryParameter = {};
|
|
6314
6909
|
// authentication bearerAuth required
|
|
6315
6910
|
// http bearer authentication required
|
|
6316
6911
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6912
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6317
6913
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6318
6914
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6319
6915
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6916
|
+
localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
6320
6917
|
return {
|
|
6321
6918
|
url: toPathString(localVarUrlObj),
|
|
6322
6919
|
options: localVarRequestOptions,
|
|
@@ -6327,8 +6924,8 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6327
6924
|
* @param {*} [options] Override http request option.
|
|
6328
6925
|
* @throws {RequiredError}
|
|
6329
6926
|
*/
|
|
6330
|
-
|
|
6331
|
-
const localVarPath = `/api/users
|
|
6927
|
+
getAllUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6928
|
+
const localVarPath = `/api/users`;
|
|
6332
6929
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6333
6930
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6334
6931
|
let baseOptions;
|
|
@@ -6351,11 +6948,15 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6351
6948
|
}),
|
|
6352
6949
|
/**
|
|
6353
6950
|
*
|
|
6951
|
+
* @param {string} bookingId
|
|
6354
6952
|
* @param {*} [options] Override http request option.
|
|
6355
6953
|
* @throws {RequiredError}
|
|
6356
6954
|
*/
|
|
6357
|
-
|
|
6358
|
-
|
|
6955
|
+
getBookingDetail: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
6956
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
6957
|
+
assertParamExists('getBookingDetail', 'bookingId', bookingId);
|
|
6958
|
+
const localVarPath = `/api/users/me/booking-detail/{bookingId}`
|
|
6959
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
6359
6960
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6360
6961
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6361
6962
|
let baseOptions;
|
|
@@ -6381,8 +6982,8 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6381
6982
|
* @param {*} [options] Override http request option.
|
|
6382
6983
|
* @throws {RequiredError}
|
|
6383
6984
|
*/
|
|
6384
|
-
|
|
6385
|
-
const localVarPath = `/api/users/me/
|
|
6985
|
+
getFavoriteClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6986
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
6386
6987
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6387
6988
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6388
6989
|
let baseOptions;
|
|
@@ -6408,8 +7009,8 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6408
7009
|
* @param {*} [options] Override http request option.
|
|
6409
7010
|
* @throws {RequiredError}
|
|
6410
7011
|
*/
|
|
6411
|
-
|
|
6412
|
-
const localVarPath = `/api/users/me`;
|
|
7012
|
+
getFavoritesPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7013
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
6413
7014
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6414
7015
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6415
7016
|
let baseOptions;
|
|
@@ -6432,13 +7033,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6432
7033
|
}),
|
|
6433
7034
|
/**
|
|
6434
7035
|
*
|
|
6435
|
-
* @param {number} [radiusInKm]
|
|
6436
|
-
* @param {number} [limit]
|
|
6437
7036
|
* @param {*} [options] Override http request option.
|
|
6438
7037
|
* @throws {RequiredError}
|
|
6439
7038
|
*/
|
|
6440
|
-
|
|
6441
|
-
const localVarPath = `/api/users/me/
|
|
7039
|
+
getFrequentlyPlayedWith: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7040
|
+
const localVarPath = `/api/users/me/frequentlyPlayedWith`;
|
|
6442
7041
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6443
7042
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6444
7043
|
let baseOptions;
|
|
@@ -6451,12 +7050,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6451
7050
|
// authentication bearerAuth required
|
|
6452
7051
|
// http bearer authentication required
|
|
6453
7052
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6454
|
-
if (radiusInKm !== undefined) {
|
|
6455
|
-
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
6456
|
-
}
|
|
6457
|
-
if (limit !== undefined) {
|
|
6458
|
-
localVarQueryParameter['limit'] = limit;
|
|
6459
|
-
}
|
|
6460
7053
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6461
7054
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6462
7055
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6467,15 +7060,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6467
7060
|
}),
|
|
6468
7061
|
/**
|
|
6469
7062
|
*
|
|
6470
|
-
* @param {number} [latitude]
|
|
6471
|
-
* @param {number} [longitude]
|
|
6472
|
-
* @param {number} [radiusInKm]
|
|
6473
|
-
* @param {number} [limit]
|
|
6474
7063
|
* @param {*} [options] Override http request option.
|
|
6475
7064
|
* @throws {RequiredError}
|
|
6476
7065
|
*/
|
|
6477
|
-
|
|
6478
|
-
const localVarPath = `/api/users/
|
|
7066
|
+
getFrequentlyVisitedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7067
|
+
const localVarPath = `/api/users/me/frequentlyVisitedClub`;
|
|
6479
7068
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6480
7069
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6481
7070
|
let baseOptions;
|
|
@@ -6485,18 +7074,36 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6485
7074
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6486
7075
|
const localVarHeaderParameter = {};
|
|
6487
7076
|
const localVarQueryParameter = {};
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
}
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
7077
|
+
// authentication bearerAuth required
|
|
7078
|
+
// http bearer authentication required
|
|
7079
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7080
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7081
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7082
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7083
|
+
return {
|
|
7084
|
+
url: toPathString(localVarUrlObj),
|
|
7085
|
+
options: localVarRequestOptions,
|
|
7086
|
+
};
|
|
7087
|
+
}),
|
|
7088
|
+
/**
|
|
7089
|
+
*
|
|
7090
|
+
* @param {*} [options] Override http request option.
|
|
7091
|
+
* @throws {RequiredError}
|
|
7092
|
+
*/
|
|
7093
|
+
getMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7094
|
+
const localVarPath = `/api/users/me`;
|
|
7095
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7096
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7097
|
+
let baseOptions;
|
|
7098
|
+
if (configuration) {
|
|
7099
|
+
baseOptions = configuration.baseOptions;
|
|
6499
7100
|
}
|
|
7101
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7102
|
+
const localVarHeaderParameter = {};
|
|
7103
|
+
const localVarQueryParameter = {};
|
|
7104
|
+
// authentication bearerAuth required
|
|
7105
|
+
// http bearer authentication required
|
|
7106
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6500
7107
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6501
7108
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6502
7109
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6512,8 +7119,8 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6512
7119
|
* @param {*} [options] Override http request option.
|
|
6513
7120
|
* @throws {RequiredError}
|
|
6514
7121
|
*/
|
|
6515
|
-
|
|
6516
|
-
const localVarPath = `/api/users/me/nearest-
|
|
7122
|
+
getNearestClubs: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
|
|
7123
|
+
const localVarPath = `/api/users/me/nearest-clubs`;
|
|
6517
7124
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6518
7125
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6519
7126
|
let baseOptions;
|
|
@@ -6549,8 +7156,8 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6549
7156
|
* @param {*} [options] Override http request option.
|
|
6550
7157
|
* @throws {RequiredError}
|
|
6551
7158
|
*/
|
|
6552
|
-
|
|
6553
|
-
const localVarPath = `/api/users/nearest-
|
|
7159
|
+
getNearestClubsFromCoordinates: (latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, limit, options = {}) {
|
|
7160
|
+
const localVarPath = `/api/users/nearest-clubs/coordinates`;
|
|
6554
7161
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6555
7162
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6556
7163
|
let baseOptions;
|
|
@@ -6582,13 +7189,13 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6582
7189
|
}),
|
|
6583
7190
|
/**
|
|
6584
7191
|
*
|
|
7192
|
+
* @param {number} [radiusInKm]
|
|
6585
7193
|
* @param {number} [limit]
|
|
6586
|
-
* @param {number} [skip]
|
|
6587
7194
|
* @param {*} [options] Override http request option.
|
|
6588
7195
|
* @throws {RequiredError}
|
|
6589
7196
|
*/
|
|
6590
|
-
|
|
6591
|
-
const localVarPath = `/api/users/me/
|
|
7197
|
+
getNearestUsers: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
|
|
7198
|
+
const localVarPath = `/api/users/me/nearest-players`;
|
|
6592
7199
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6593
7200
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6594
7201
|
let baseOptions;
|
|
@@ -6601,12 +7208,12 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6601
7208
|
// authentication bearerAuth required
|
|
6602
7209
|
// http bearer authentication required
|
|
6603
7210
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7211
|
+
if (radiusInKm !== undefined) {
|
|
7212
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7213
|
+
}
|
|
6604
7214
|
if (limit !== undefined) {
|
|
6605
7215
|
localVarQueryParameter['limit'] = limit;
|
|
6606
7216
|
}
|
|
6607
|
-
if (skip !== undefined) {
|
|
6608
|
-
localVarQueryParameter['skip'] = skip;
|
|
6609
|
-
}
|
|
6610
7217
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6611
7218
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6612
7219
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6617,15 +7224,15 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6617
7224
|
}),
|
|
6618
7225
|
/**
|
|
6619
7226
|
*
|
|
6620
|
-
* @param {
|
|
6621
|
-
* @param {
|
|
6622
|
-
* @
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
7227
|
+
* @param {number} [latitude]
|
|
7228
|
+
* @param {number} [longitude]
|
|
7229
|
+
* @param {number} [radiusInKm]
|
|
7230
|
+
* @param {number} [limit]
|
|
7231
|
+
* @param {*} [options] Override http request option.
|
|
7232
|
+
* @throws {RequiredError}
|
|
7233
|
+
*/
|
|
7234
|
+
getNearestUsersFromCoordinates: (latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, limit, options = {}) {
|
|
7235
|
+
const localVarPath = `/api/users/nearest-players/coordinates`;
|
|
6629
7236
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6630
7237
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6631
7238
|
let baseOptions;
|
|
@@ -6635,9 +7242,18 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6635
7242
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6636
7243
|
const localVarHeaderParameter = {};
|
|
6637
7244
|
const localVarQueryParameter = {};
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
7245
|
+
if (latitude !== undefined) {
|
|
7246
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
7247
|
+
}
|
|
7248
|
+
if (longitude !== undefined) {
|
|
7249
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
7250
|
+
}
|
|
7251
|
+
if (radiusInKm !== undefined) {
|
|
7252
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7253
|
+
}
|
|
7254
|
+
if (limit !== undefined) {
|
|
7255
|
+
localVarQueryParameter['limit'] = limit;
|
|
7256
|
+
}
|
|
6641
7257
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6642
7258
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6643
7259
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6648,11 +7264,13 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6648
7264
|
}),
|
|
6649
7265
|
/**
|
|
6650
7266
|
*
|
|
7267
|
+
* @param {number} [limit]
|
|
7268
|
+
* @param {number} [skip]
|
|
6651
7269
|
* @param {*} [options] Override http request option.
|
|
6652
7270
|
* @throws {RequiredError}
|
|
6653
7271
|
*/
|
|
6654
|
-
|
|
6655
|
-
const localVarPath = `/api/users/me/
|
|
7272
|
+
getUserBookings: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
7273
|
+
const localVarPath = `/api/users/me/bookings`;
|
|
6656
7274
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6657
7275
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6658
7276
|
let baseOptions;
|
|
@@ -6665,6 +7283,12 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6665
7283
|
// authentication bearerAuth required
|
|
6666
7284
|
// http bearer authentication required
|
|
6667
7285
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7286
|
+
if (limit !== undefined) {
|
|
7287
|
+
localVarQueryParameter['limit'] = limit;
|
|
7288
|
+
}
|
|
7289
|
+
if (skip !== undefined) {
|
|
7290
|
+
localVarQueryParameter['skip'] = skip;
|
|
7291
|
+
}
|
|
6668
7292
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6669
7293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6670
7294
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6675,31 +7299,30 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6675
7299
|
}),
|
|
6676
7300
|
/**
|
|
6677
7301
|
*
|
|
6678
|
-
* @param {
|
|
7302
|
+
* @param {string} id
|
|
6679
7303
|
* @param {*} [options] Override http request option.
|
|
6680
7304
|
* @throws {RequiredError}
|
|
6681
7305
|
*/
|
|
6682
|
-
|
|
6683
|
-
// verify required parameter '
|
|
6684
|
-
assertParamExists('
|
|
6685
|
-
const localVarPath = `/api/users/
|
|
7306
|
+
getUserProfileById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
7307
|
+
// verify required parameter 'id' is not null or undefined
|
|
7308
|
+
assertParamExists('getUserProfileById', 'id', id);
|
|
7309
|
+
const localVarPath = `/api/users/profile/{id}`
|
|
7310
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6686
7311
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6687
7312
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6688
7313
|
let baseOptions;
|
|
6689
7314
|
if (configuration) {
|
|
6690
7315
|
baseOptions = configuration.baseOptions;
|
|
6691
7316
|
}
|
|
6692
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
7317
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6693
7318
|
const localVarHeaderParameter = {};
|
|
6694
7319
|
const localVarQueryParameter = {};
|
|
6695
7320
|
// authentication bearerAuth required
|
|
6696
7321
|
// http bearer authentication required
|
|
6697
7322
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6698
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6699
7323
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6700
7324
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6701
7325
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6702
|
-
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionSessionRequestBody, localVarRequestOptions, configuration);
|
|
6703
7326
|
return {
|
|
6704
7327
|
url: toPathString(localVarUrlObj),
|
|
6705
7328
|
options: localVarRequestOptions,
|
|
@@ -6856,14 +7479,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6856
7479
|
}),
|
|
6857
7480
|
/**
|
|
6858
7481
|
*
|
|
6859
|
-
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
6860
7482
|
* @param {*} [options] Override http request option.
|
|
6861
7483
|
* @throws {RequiredError}
|
|
6862
7484
|
*/
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
assertParamExists('requestPasswordReset', 'passwordResetRequestBody', passwordResetRequestBody);
|
|
6866
|
-
const localVarPath = `/api/users/me/request-password-rest`;
|
|
7485
|
+
requestEmailVerification: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7486
|
+
const localVarPath = `/api/users/me/request-email-verification`;
|
|
6867
7487
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6868
7488
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6869
7489
|
let baseOptions;
|
|
@@ -6873,11 +7493,12 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6873
7493
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6874
7494
|
const localVarHeaderParameter = {};
|
|
6875
7495
|
const localVarQueryParameter = {};
|
|
6876
|
-
|
|
7496
|
+
// authentication bearerAuth required
|
|
7497
|
+
// http bearer authentication required
|
|
7498
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6877
7499
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6878
7500
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6879
7501
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6880
|
-
localVarRequestOptions.data = serializeDataIfNeeded(passwordResetRequestBody, localVarRequestOptions, configuration);
|
|
6881
7502
|
return {
|
|
6882
7503
|
url: toPathString(localVarUrlObj),
|
|
6883
7504
|
options: localVarRequestOptions,
|
|
@@ -6885,19 +7506,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6885
7506
|
}),
|
|
6886
7507
|
/**
|
|
6887
7508
|
*
|
|
6888
|
-
* @param {
|
|
6889
|
-
* @param {string} subscriptionId
|
|
7509
|
+
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
6890
7510
|
* @param {*} [options] Override http request option.
|
|
6891
7511
|
* @throws {RequiredError}
|
|
6892
7512
|
*/
|
|
6893
|
-
|
|
6894
|
-
// verify required parameter '
|
|
6895
|
-
assertParamExists('
|
|
6896
|
-
|
|
6897
|
-
assertParamExists('resumeSubscription', 'subscriptionId', subscriptionId);
|
|
6898
|
-
const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
6899
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6900
|
-
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
7513
|
+
requestPasswordReset: (passwordResetRequestBody_1, ...args_1) => __awaiter(this, [passwordResetRequestBody_1, ...args_1], void 0, function* (passwordResetRequestBody, options = {}) {
|
|
7514
|
+
// verify required parameter 'passwordResetRequestBody' is not null or undefined
|
|
7515
|
+
assertParamExists('requestPasswordReset', 'passwordResetRequestBody', passwordResetRequestBody);
|
|
7516
|
+
const localVarPath = `/api/users/request-password-reset`;
|
|
6901
7517
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6902
7518
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6903
7519
|
let baseOptions;
|
|
@@ -6907,12 +7523,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6907
7523
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6908
7524
|
const localVarHeaderParameter = {};
|
|
6909
7525
|
const localVarQueryParameter = {};
|
|
6910
|
-
|
|
6911
|
-
// http bearer authentication required
|
|
6912
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7526
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6913
7527
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6914
7528
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6915
7529
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7530
|
+
localVarRequestOptions.data = serializeDataIfNeeded(passwordResetRequestBody, localVarRequestOptions, configuration);
|
|
6916
7531
|
return {
|
|
6917
7532
|
url: toPathString(localVarUrlObj),
|
|
6918
7533
|
options: localVarRequestOptions,
|
|
@@ -6920,14 +7535,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6920
7535
|
}),
|
|
6921
7536
|
/**
|
|
6922
7537
|
*
|
|
6923
|
-
* @param {
|
|
7538
|
+
* @param {ResetPasswordRequest} resetPasswordRequest
|
|
6924
7539
|
* @param {*} [options] Override http request option.
|
|
6925
7540
|
* @throws {RequiredError}
|
|
6926
7541
|
*/
|
|
6927
|
-
|
|
6928
|
-
// verify required parameter '
|
|
6929
|
-
assertParamExists('
|
|
6930
|
-
const localVarPath = `/api/users/
|
|
7542
|
+
resetPassword: (resetPasswordRequest_1, ...args_1) => __awaiter(this, [resetPasswordRequest_1, ...args_1], void 0, function* (resetPasswordRequest, options = {}) {
|
|
7543
|
+
// verify required parameter 'resetPasswordRequest' is not null or undefined
|
|
7544
|
+
assertParamExists('resetPassword', 'resetPasswordRequest', resetPasswordRequest);
|
|
7545
|
+
const localVarPath = `/api/users/reset-password`;
|
|
6931
7546
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6932
7547
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6933
7548
|
let baseOptions;
|
|
@@ -6937,14 +7552,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6937
7552
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6938
7553
|
const localVarHeaderParameter = {};
|
|
6939
7554
|
const localVarQueryParameter = {};
|
|
6940
|
-
// authentication bearerAuth required
|
|
6941
|
-
// http bearer authentication required
|
|
6942
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6943
7555
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6944
7556
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6945
7557
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6946
7558
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6947
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
7559
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordRequest, localVarRequestOptions, configuration);
|
|
6948
7560
|
return {
|
|
6949
7561
|
url: toPathString(localVarUrlObj),
|
|
6950
7562
|
options: localVarRequestOptions,
|
|
@@ -6952,14 +7564,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6952
7564
|
}),
|
|
6953
7565
|
/**
|
|
6954
7566
|
*
|
|
6955
|
-
* @param {
|
|
7567
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
6956
7568
|
* @param {*} [options] Override http request option.
|
|
6957
7569
|
* @throws {RequiredError}
|
|
6958
7570
|
*/
|
|
6959
|
-
|
|
6960
|
-
// verify required parameter '
|
|
6961
|
-
assertParamExists('
|
|
6962
|
-
const localVarPath = `/api/users/
|
|
7571
|
+
setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
7572
|
+
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
7573
|
+
assertParamExists('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
7574
|
+
const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
|
|
6963
7575
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6964
7576
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6965
7577
|
let baseOptions;
|
|
@@ -6969,11 +7581,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6969
7581
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6970
7582
|
const localVarHeaderParameter = {};
|
|
6971
7583
|
const localVarQueryParameter = {};
|
|
7584
|
+
// authentication bearerAuth required
|
|
7585
|
+
// http bearer authentication required
|
|
7586
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6972
7587
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6973
7588
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6974
7589
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6975
7590
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6976
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
7591
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
6977
7592
|
return {
|
|
6978
7593
|
url: toPathString(localVarUrlObj),
|
|
6979
7594
|
options: localVarRequestOptions,
|
|
@@ -6981,14 +7596,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6981
7596
|
}),
|
|
6982
7597
|
/**
|
|
6983
7598
|
*
|
|
6984
|
-
* @param {
|
|
7599
|
+
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
6985
7600
|
* @param {*} [options] Override http request option.
|
|
6986
7601
|
* @throws {RequiredError}
|
|
6987
7602
|
*/
|
|
6988
|
-
|
|
6989
|
-
// verify required parameter '
|
|
6990
|
-
assertParamExists('
|
|
6991
|
-
const localVarPath = `/api/users/
|
|
7603
|
+
signInOrSignUpWithGoogle: (googleAuthRequestBody_1, ...args_1) => __awaiter(this, [googleAuthRequestBody_1, ...args_1], void 0, function* (googleAuthRequestBody, options = {}) {
|
|
7604
|
+
// verify required parameter 'googleAuthRequestBody' is not null or undefined
|
|
7605
|
+
assertParamExists('signInOrSignUpWithGoogle', 'googleAuthRequestBody', googleAuthRequestBody);
|
|
7606
|
+
const localVarPath = `/api/users/googleSignin`;
|
|
6992
7607
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6993
7608
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6994
7609
|
let baseOptions;
|
|
@@ -6998,14 +7613,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6998
7613
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6999
7614
|
const localVarHeaderParameter = {};
|
|
7000
7615
|
const localVarQueryParameter = {};
|
|
7001
|
-
// authentication bearerAuth required
|
|
7002
|
-
// http bearer authentication required
|
|
7003
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7004
7616
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7005
7617
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7006
7618
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7007
7619
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7008
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
7620
|
+
localVarRequestOptions.data = serializeDataIfNeeded(googleAuthRequestBody, localVarRequestOptions, configuration);
|
|
7009
7621
|
return {
|
|
7010
7622
|
url: toPathString(localVarUrlObj),
|
|
7011
7623
|
options: localVarRequestOptions,
|
|
@@ -7139,6 +7751,35 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7139
7751
|
options: localVarRequestOptions,
|
|
7140
7752
|
};
|
|
7141
7753
|
}),
|
|
7754
|
+
/**
|
|
7755
|
+
*
|
|
7756
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
7757
|
+
* @param {*} [options] Override http request option.
|
|
7758
|
+
* @throws {RequiredError}
|
|
7759
|
+
*/
|
|
7760
|
+
verifyEmail: (verifyEmailRequest_1, ...args_1) => __awaiter(this, [verifyEmailRequest_1, ...args_1], void 0, function* (verifyEmailRequest, options = {}) {
|
|
7761
|
+
// verify required parameter 'verifyEmailRequest' is not null or undefined
|
|
7762
|
+
assertParamExists('verifyEmail', 'verifyEmailRequest', verifyEmailRequest);
|
|
7763
|
+
const localVarPath = `/api/users/verify-email`;
|
|
7764
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7765
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7766
|
+
let baseOptions;
|
|
7767
|
+
if (configuration) {
|
|
7768
|
+
baseOptions = configuration.baseOptions;
|
|
7769
|
+
}
|
|
7770
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7771
|
+
const localVarHeaderParameter = {};
|
|
7772
|
+
const localVarQueryParameter = {};
|
|
7773
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7774
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7775
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7776
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7777
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailRequest, localVarRequestOptions, configuration);
|
|
7778
|
+
return {
|
|
7779
|
+
url: toPathString(localVarUrlObj),
|
|
7780
|
+
options: localVarRequestOptions,
|
|
7781
|
+
};
|
|
7782
|
+
}),
|
|
7142
7783
|
};
|
|
7143
7784
|
};
|
|
7144
7785
|
/**
|
|
@@ -7193,22 +7834,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
7193
7834
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7194
7835
|
});
|
|
7195
7836
|
},
|
|
7196
|
-
/**
|
|
7197
|
-
*
|
|
7198
|
-
* @param {string} clubId
|
|
7199
|
-
* @param {string} subscriptionId
|
|
7200
|
-
* @param {*} [options] Override http request option.
|
|
7201
|
-
* @throws {RequiredError}
|
|
7202
|
-
*/
|
|
7203
|
-
cancelSubscription(clubId, subscriptionId, options) {
|
|
7204
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7205
|
-
var _a, _b, _c;
|
|
7206
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSubscription(clubId, subscriptionId, options);
|
|
7207
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7208
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.cancelSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7209
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7210
|
-
});
|
|
7211
|
-
},
|
|
7212
7837
|
/**
|
|
7213
7838
|
*
|
|
7214
7839
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -7437,35 +8062,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
7437
8062
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7438
8063
|
});
|
|
7439
8064
|
},
|
|
7440
|
-
/**
|
|
7441
|
-
*
|
|
7442
|
-
* @param {*} [options] Override http request option.
|
|
7443
|
-
* @throws {RequiredError}
|
|
7444
|
-
*/
|
|
7445
|
-
getUserSubscriptions(options) {
|
|
7446
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7447
|
-
var _a, _b, _c;
|
|
7448
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserSubscriptions(options);
|
|
7449
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7450
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7451
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7452
|
-
});
|
|
7453
|
-
},
|
|
7454
|
-
/**
|
|
7455
|
-
*
|
|
7456
|
-
* @param {SubscriptionSessionRequestBody} subscriptionSessionRequestBody
|
|
7457
|
-
* @param {*} [options] Override http request option.
|
|
7458
|
-
* @throws {RequiredError}
|
|
7459
|
-
*/
|
|
7460
|
-
initiateSubscriptionSession(subscriptionSessionRequestBody, options) {
|
|
7461
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7462
|
-
var _a, _b, _c;
|
|
7463
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateSubscriptionSession(subscriptionSessionRequestBody, options);
|
|
7464
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7465
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.initiateSubscriptionSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7466
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7467
|
-
});
|
|
7468
|
-
},
|
|
7469
8065
|
/**
|
|
7470
8066
|
*
|
|
7471
8067
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -7543,77 +8139,75 @@ export const UsersApiFp = function (configuration) {
|
|
|
7543
8139
|
},
|
|
7544
8140
|
/**
|
|
7545
8141
|
*
|
|
7546
|
-
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
7547
8142
|
* @param {*} [options] Override http request option.
|
|
7548
8143
|
* @throws {RequiredError}
|
|
7549
8144
|
*/
|
|
7550
|
-
|
|
8145
|
+
requestEmailVerification(options) {
|
|
7551
8146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7552
8147
|
var _a, _b, _c;
|
|
7553
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8148
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestEmailVerification(options);
|
|
7554
8149
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7555
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.
|
|
8150
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.requestEmailVerification']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7556
8151
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7557
8152
|
});
|
|
7558
8153
|
},
|
|
7559
8154
|
/**
|
|
7560
8155
|
*
|
|
7561
|
-
* @param {
|
|
7562
|
-
* @param {string} subscriptionId
|
|
8156
|
+
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
7563
8157
|
* @param {*} [options] Override http request option.
|
|
7564
8158
|
* @throws {RequiredError}
|
|
7565
8159
|
*/
|
|
7566
|
-
|
|
8160
|
+
requestPasswordReset(passwordResetRequestBody, options) {
|
|
7567
8161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7568
8162
|
var _a, _b, _c;
|
|
7569
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestPasswordReset(passwordResetRequestBody, options);
|
|
7570
8164
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7571
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.
|
|
8165
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.requestPasswordReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7572
8166
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7573
8167
|
});
|
|
7574
8168
|
},
|
|
7575
8169
|
/**
|
|
7576
8170
|
*
|
|
7577
|
-
* @param {
|
|
8171
|
+
* @param {ResetPasswordRequest} resetPasswordRequest
|
|
7578
8172
|
* @param {*} [options] Override http request option.
|
|
7579
8173
|
* @throws {RequiredError}
|
|
7580
8174
|
*/
|
|
7581
|
-
|
|
8175
|
+
resetPassword(resetPasswordRequest, options) {
|
|
7582
8176
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7583
8177
|
var _a, _b, _c;
|
|
7584
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8178
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resetPassword(resetPasswordRequest, options);
|
|
7585
8179
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7586
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.
|
|
8180
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.resetPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7587
8181
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7588
8182
|
});
|
|
7589
8183
|
},
|
|
7590
8184
|
/**
|
|
7591
8185
|
*
|
|
7592
|
-
* @param {
|
|
8186
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
7593
8187
|
* @param {*} [options] Override http request option.
|
|
7594
8188
|
* @throws {RequiredError}
|
|
7595
8189
|
*/
|
|
7596
|
-
|
|
8190
|
+
setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
7597
8191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7598
8192
|
var _a, _b, _c;
|
|
7599
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8193
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
7600
8194
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7601
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.
|
|
8195
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7602
8196
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7603
8197
|
});
|
|
7604
8198
|
},
|
|
7605
8199
|
/**
|
|
7606
8200
|
*
|
|
7607
|
-
* @param {
|
|
8201
|
+
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
7608
8202
|
* @param {*} [options] Override http request option.
|
|
7609
8203
|
* @throws {RequiredError}
|
|
7610
8204
|
*/
|
|
7611
|
-
|
|
8205
|
+
signInOrSignUpWithGoogle(googleAuthRequestBody, options) {
|
|
7612
8206
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7613
8207
|
var _a, _b, _c;
|
|
7614
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8208
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.signInOrSignUpWithGoogle(googleAuthRequestBody, options);
|
|
7615
8209
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7616
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.
|
|
8210
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.signInOrSignUpWithGoogle']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7617
8211
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7618
8212
|
});
|
|
7619
8213
|
},
|
|
@@ -7677,6 +8271,21 @@ export const UsersApiFp = function (configuration) {
|
|
|
7677
8271
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7678
8272
|
});
|
|
7679
8273
|
},
|
|
8274
|
+
/**
|
|
8275
|
+
*
|
|
8276
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
8277
|
+
* @param {*} [options] Override http request option.
|
|
8278
|
+
* @throws {RequiredError}
|
|
8279
|
+
*/
|
|
8280
|
+
verifyEmail(verifyEmailRequest, options) {
|
|
8281
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8282
|
+
var _a, _b, _c;
|
|
8283
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyEmail(verifyEmailRequest, options);
|
|
8284
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8285
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.verifyEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8286
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8287
|
+
});
|
|
8288
|
+
},
|
|
7680
8289
|
};
|
|
7681
8290
|
};
|
|
7682
8291
|
/**
|
|
@@ -7713,15 +8322,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7713
8322
|
addPaymentMethodSetup(requestParameters, options) {
|
|
7714
8323
|
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
7715
8324
|
},
|
|
7716
|
-
/**
|
|
7717
|
-
*
|
|
7718
|
-
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
7719
|
-
* @param {*} [options] Override http request option.
|
|
7720
|
-
* @throws {RequiredError}
|
|
7721
|
-
*/
|
|
7722
|
-
cancelSubscription(requestParameters, options) {
|
|
7723
|
-
return localVarFp.cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
7724
|
-
},
|
|
7725
8325
|
/**
|
|
7726
8326
|
*
|
|
7727
8327
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -7851,23 +8451,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7851
8451
|
getUserProfileById(requestParameters, options) {
|
|
7852
8452
|
return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7853
8453
|
},
|
|
7854
|
-
/**
|
|
7855
|
-
*
|
|
7856
|
-
* @param {*} [options] Override http request option.
|
|
7857
|
-
* @throws {RequiredError}
|
|
7858
|
-
*/
|
|
7859
|
-
getUserSubscriptions(options) {
|
|
7860
|
-
return localVarFp.getUserSubscriptions(options).then((request) => request(axios, basePath));
|
|
7861
|
-
},
|
|
7862
|
-
/**
|
|
7863
|
-
*
|
|
7864
|
-
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
7865
|
-
* @param {*} [options] Override http request option.
|
|
7866
|
-
* @throws {RequiredError}
|
|
7867
|
-
*/
|
|
7868
|
-
initiateSubscriptionSession(requestParameters, options) {
|
|
7869
|
-
return localVarFp.initiateSubscriptionSession(requestParameters.subscriptionSessionRequestBody, options).then((request) => request(axios, basePath));
|
|
7870
|
-
},
|
|
7871
8454
|
/**
|
|
7872
8455
|
*
|
|
7873
8456
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -7915,48 +8498,47 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7915
8498
|
},
|
|
7916
8499
|
/**
|
|
7917
8500
|
*
|
|
7918
|
-
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
7919
8501
|
* @param {*} [options] Override http request option.
|
|
7920
8502
|
* @throws {RequiredError}
|
|
7921
8503
|
*/
|
|
7922
|
-
|
|
7923
|
-
return localVarFp.
|
|
8504
|
+
requestEmailVerification(options) {
|
|
8505
|
+
return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
|
|
7924
8506
|
},
|
|
7925
8507
|
/**
|
|
7926
8508
|
*
|
|
7927
|
-
* @param {
|
|
8509
|
+
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
7928
8510
|
* @param {*} [options] Override http request option.
|
|
7929
8511
|
* @throws {RequiredError}
|
|
7930
8512
|
*/
|
|
7931
|
-
|
|
7932
|
-
return localVarFp.
|
|
8513
|
+
requestPasswordReset(requestParameters, options) {
|
|
8514
|
+
return localVarFp.requestPasswordReset(requestParameters.passwordResetRequestBody, options).then((request) => request(axios, basePath));
|
|
7933
8515
|
},
|
|
7934
8516
|
/**
|
|
7935
8517
|
*
|
|
7936
|
-
* @param {
|
|
8518
|
+
* @param {UsersApiResetPasswordRequest} requestParameters Request parameters.
|
|
7937
8519
|
* @param {*} [options] Override http request option.
|
|
7938
8520
|
* @throws {RequiredError}
|
|
7939
8521
|
*/
|
|
7940
|
-
|
|
7941
|
-
return localVarFp.
|
|
8522
|
+
resetPassword(requestParameters, options) {
|
|
8523
|
+
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
7942
8524
|
},
|
|
7943
8525
|
/**
|
|
7944
8526
|
*
|
|
7945
|
-
* @param {
|
|
8527
|
+
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
7946
8528
|
* @param {*} [options] Override http request option.
|
|
7947
8529
|
* @throws {RequiredError}
|
|
7948
8530
|
*/
|
|
7949
|
-
|
|
7950
|
-
return localVarFp.
|
|
8531
|
+
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
8532
|
+
return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
7951
8533
|
},
|
|
7952
8534
|
/**
|
|
7953
8535
|
*
|
|
7954
|
-
* @param {
|
|
8536
|
+
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
7955
8537
|
* @param {*} [options] Override http request option.
|
|
7956
8538
|
* @throws {RequiredError}
|
|
7957
8539
|
*/
|
|
7958
|
-
|
|
7959
|
-
return localVarFp.
|
|
8540
|
+
signInOrSignUpWithGoogle(requestParameters, options) {
|
|
8541
|
+
return localVarFp.signInOrSignUpWithGoogle(requestParameters.googleAuthRequestBody, options).then((request) => request(axios, basePath));
|
|
7960
8542
|
},
|
|
7961
8543
|
/**
|
|
7962
8544
|
*
|
|
@@ -7994,6 +8576,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7994
8576
|
updateProfilePicture(requestParameters, options) {
|
|
7995
8577
|
return localVarFp.updateProfilePicture(requestParameters.profilePictureUpdateRequestBody, options).then((request) => request(axios, basePath));
|
|
7996
8578
|
},
|
|
8579
|
+
/**
|
|
8580
|
+
*
|
|
8581
|
+
* @param {UsersApiVerifyEmailRequest} requestParameters Request parameters.
|
|
8582
|
+
* @param {*} [options] Override http request option.
|
|
8583
|
+
* @throws {RequiredError}
|
|
8584
|
+
*/
|
|
8585
|
+
verifyEmail(requestParameters, options) {
|
|
8586
|
+
return localVarFp.verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
8587
|
+
},
|
|
7997
8588
|
};
|
|
7998
8589
|
};
|
|
7999
8590
|
/**
|
|
@@ -8033,16 +8624,6 @@ export class UsersApi extends BaseAPI {
|
|
|
8033
8624
|
addPaymentMethodSetup(requestParameters, options) {
|
|
8034
8625
|
return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8035
8626
|
}
|
|
8036
|
-
/**
|
|
8037
|
-
*
|
|
8038
|
-
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
8039
|
-
* @param {*} [options] Override http request option.
|
|
8040
|
-
* @throws {RequiredError}
|
|
8041
|
-
* @memberof UsersApi
|
|
8042
|
-
*/
|
|
8043
|
-
cancelSubscription(requestParameters, options) {
|
|
8044
|
-
return UsersApiFp(this.configuration).cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
8045
|
-
}
|
|
8046
8627
|
/**
|
|
8047
8628
|
*
|
|
8048
8629
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -8187,25 +8768,6 @@ export class UsersApi extends BaseAPI {
|
|
|
8187
8768
|
getUserProfileById(requestParameters, options) {
|
|
8188
8769
|
return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
8189
8770
|
}
|
|
8190
|
-
/**
|
|
8191
|
-
*
|
|
8192
|
-
* @param {*} [options] Override http request option.
|
|
8193
|
-
* @throws {RequiredError}
|
|
8194
|
-
* @memberof UsersApi
|
|
8195
|
-
*/
|
|
8196
|
-
getUserSubscriptions(options) {
|
|
8197
|
-
return UsersApiFp(this.configuration).getUserSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
8198
|
-
}
|
|
8199
|
-
/**
|
|
8200
|
-
*
|
|
8201
|
-
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
8202
|
-
* @param {*} [options] Override http request option.
|
|
8203
|
-
* @throws {RequiredError}
|
|
8204
|
-
* @memberof UsersApi
|
|
8205
|
-
*/
|
|
8206
|
-
initiateSubscriptionSession(requestParameters, options) {
|
|
8207
|
-
return UsersApiFp(this.configuration).initiateSubscriptionSession(requestParameters.subscriptionSessionRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8208
|
-
}
|
|
8209
8771
|
/**
|
|
8210
8772
|
*
|
|
8211
8773
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -8258,53 +8820,52 @@ export class UsersApi extends BaseAPI {
|
|
|
8258
8820
|
}
|
|
8259
8821
|
/**
|
|
8260
8822
|
*
|
|
8261
|
-
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
8262
8823
|
* @param {*} [options] Override http request option.
|
|
8263
8824
|
* @throws {RequiredError}
|
|
8264
8825
|
* @memberof UsersApi
|
|
8265
8826
|
*/
|
|
8266
|
-
|
|
8267
|
-
return UsersApiFp(this.configuration).
|
|
8827
|
+
requestEmailVerification(options) {
|
|
8828
|
+
return UsersApiFp(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
|
|
8268
8829
|
}
|
|
8269
8830
|
/**
|
|
8270
8831
|
*
|
|
8271
|
-
* @param {
|
|
8832
|
+
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
8272
8833
|
* @param {*} [options] Override http request option.
|
|
8273
8834
|
* @throws {RequiredError}
|
|
8274
8835
|
* @memberof UsersApi
|
|
8275
8836
|
*/
|
|
8276
|
-
|
|
8277
|
-
return UsersApiFp(this.configuration).
|
|
8837
|
+
requestPasswordReset(requestParameters, options) {
|
|
8838
|
+
return UsersApiFp(this.configuration).requestPasswordReset(requestParameters.passwordResetRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8278
8839
|
}
|
|
8279
8840
|
/**
|
|
8280
8841
|
*
|
|
8281
|
-
* @param {
|
|
8842
|
+
* @param {UsersApiResetPasswordRequest} requestParameters Request parameters.
|
|
8282
8843
|
* @param {*} [options] Override http request option.
|
|
8283
8844
|
* @throws {RequiredError}
|
|
8284
8845
|
* @memberof UsersApi
|
|
8285
8846
|
*/
|
|
8286
|
-
|
|
8287
|
-
return UsersApiFp(this.configuration).
|
|
8847
|
+
resetPassword(requestParameters, options) {
|
|
8848
|
+
return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8288
8849
|
}
|
|
8289
8850
|
/**
|
|
8290
8851
|
*
|
|
8291
|
-
* @param {
|
|
8852
|
+
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
8292
8853
|
* @param {*} [options] Override http request option.
|
|
8293
8854
|
* @throws {RequiredError}
|
|
8294
8855
|
* @memberof UsersApi
|
|
8295
8856
|
*/
|
|
8296
|
-
|
|
8297
|
-
return UsersApiFp(this.configuration).
|
|
8857
|
+
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
8858
|
+
return UsersApiFp(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8298
8859
|
}
|
|
8299
8860
|
/**
|
|
8300
8861
|
*
|
|
8301
|
-
* @param {
|
|
8862
|
+
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
8302
8863
|
* @param {*} [options] Override http request option.
|
|
8303
8864
|
* @throws {RequiredError}
|
|
8304
8865
|
* @memberof UsersApi
|
|
8305
8866
|
*/
|
|
8306
|
-
|
|
8307
|
-
return UsersApiFp(this.configuration).
|
|
8867
|
+
signInOrSignUpWithGoogle(requestParameters, options) {
|
|
8868
|
+
return UsersApiFp(this.configuration).signInOrSignUpWithGoogle(requestParameters.googleAuthRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8308
8869
|
}
|
|
8309
8870
|
/**
|
|
8310
8871
|
*
|
|
@@ -8346,4 +8907,14 @@ export class UsersApi extends BaseAPI {
|
|
|
8346
8907
|
updateProfilePicture(requestParameters, options) {
|
|
8347
8908
|
return UsersApiFp(this.configuration).updateProfilePicture(requestParameters.profilePictureUpdateRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8348
8909
|
}
|
|
8910
|
+
/**
|
|
8911
|
+
*
|
|
8912
|
+
* @param {UsersApiVerifyEmailRequest} requestParameters Request parameters.
|
|
8913
|
+
* @param {*} [options] Override http request option.
|
|
8914
|
+
* @throws {RequiredError}
|
|
8915
|
+
* @memberof UsersApi
|
|
8916
|
+
*/
|
|
8917
|
+
verifyEmail(requestParameters, options) {
|
|
8918
|
+
return UsersApiFp(this.configuration).verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8919
|
+
}
|
|
8349
8920
|
}
|