@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/api.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* openapi.json
|
|
6
|
-
* API
|
|
6
|
+
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.61
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,8 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
25
|
+
exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateUserRequestBodyLocationTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.PlanInterval = exports.PaymentMethod = exports.IUserLocationTypeEnum = exports.Gender = exports.DiscountType = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = void 0;
|
|
27
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsManagerApi = void 0;
|
|
27
28
|
const axios_1 = require("axios");
|
|
28
29
|
// Some imports not used depending on template conditions
|
|
29
30
|
// @ts-ignore
|
|
@@ -75,6 +76,17 @@ exports.CreateClubRoleRequestRoleEnum = {
|
|
|
75
76
|
Manager: 'manager',
|
|
76
77
|
Staff: 'staff'
|
|
77
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @export
|
|
82
|
+
* @enum {string}
|
|
83
|
+
*/
|
|
84
|
+
exports.DiscountType = {
|
|
85
|
+
None: 'none',
|
|
86
|
+
Free: 'free',
|
|
87
|
+
Percentage: 'percentage',
|
|
88
|
+
OffPeak: 'off_peak'
|
|
89
|
+
};
|
|
78
90
|
/**
|
|
79
91
|
*
|
|
80
92
|
* @export
|
|
@@ -98,6 +110,126 @@ exports.PaymentMethod = {
|
|
|
98
110
|
Onsite: 'onsite',
|
|
99
111
|
Free: 'free'
|
|
100
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @export
|
|
116
|
+
* @enum {string}
|
|
117
|
+
*/
|
|
118
|
+
exports.PlanInterval = {
|
|
119
|
+
Monthly: 'monthly',
|
|
120
|
+
Yearly: 'yearly',
|
|
121
|
+
Trimester: 'trimester',
|
|
122
|
+
Semester: 'semester'
|
|
123
|
+
};
|
|
124
|
+
exports.StripeStripeDeletedProductObjectEnum = {
|
|
125
|
+
Product: 'product'
|
|
126
|
+
};
|
|
127
|
+
exports.StripeStripePriceObjectEnum = {
|
|
128
|
+
Price: 'price'
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @export
|
|
133
|
+
* @enum {string}
|
|
134
|
+
*/
|
|
135
|
+
exports.StripeStripePriceBillingScheme = {
|
|
136
|
+
PerUnit: 'per_unit',
|
|
137
|
+
Tiered: 'tiered'
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @export
|
|
142
|
+
* @enum {string}
|
|
143
|
+
*/
|
|
144
|
+
exports.StripeStripePriceCurrencyOptionsTaxBehavior = {
|
|
145
|
+
Exclusive: 'exclusive',
|
|
146
|
+
Inclusive: 'inclusive',
|
|
147
|
+
Unspecified: 'unspecified'
|
|
148
|
+
};
|
|
149
|
+
exports.StripeStripePriceProductObjectEnum = {
|
|
150
|
+
Product: 'product'
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @export
|
|
155
|
+
* @enum {string}
|
|
156
|
+
*/
|
|
157
|
+
exports.StripeStripePriceRecurringInterval = {
|
|
158
|
+
Day: 'day',
|
|
159
|
+
Month: 'month',
|
|
160
|
+
Week: 'week',
|
|
161
|
+
Year: 'year'
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @export
|
|
166
|
+
* @enum {string}
|
|
167
|
+
*/
|
|
168
|
+
exports.StripeStripePriceRecurringUsageType = {
|
|
169
|
+
Licensed: 'licensed',
|
|
170
|
+
Metered: 'metered'
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @export
|
|
175
|
+
* @enum {string}
|
|
176
|
+
*/
|
|
177
|
+
exports.StripeStripePriceTaxBehavior = {
|
|
178
|
+
Exclusive: 'exclusive',
|
|
179
|
+
Inclusive: 'inclusive',
|
|
180
|
+
Unspecified: 'unspecified'
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @export
|
|
185
|
+
* @enum {string}
|
|
186
|
+
*/
|
|
187
|
+
exports.StripeStripePriceTiersMode = {
|
|
188
|
+
Graduated: 'graduated',
|
|
189
|
+
Volume: 'volume'
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @export
|
|
194
|
+
* @enum {string}
|
|
195
|
+
*/
|
|
196
|
+
exports.StripeStripePriceTransformQuantityRound = {
|
|
197
|
+
Down: 'down',
|
|
198
|
+
Up: 'up'
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @export
|
|
203
|
+
* @enum {string}
|
|
204
|
+
*/
|
|
205
|
+
exports.StripeStripePriceType = {
|
|
206
|
+
OneTime: 'one_time',
|
|
207
|
+
Recurring: 'recurring'
|
|
208
|
+
};
|
|
209
|
+
exports.StripeStripeProductObjectEnum = {
|
|
210
|
+
Product: 'product'
|
|
211
|
+
};
|
|
212
|
+
exports.StripeStripeProductDefaultPriceObjectEnum = {
|
|
213
|
+
Price: 'price'
|
|
214
|
+
};
|
|
215
|
+
exports.StripeStripeProductTaxCodeObjectEnum = {
|
|
216
|
+
TaxCode: 'tax_code'
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @export
|
|
221
|
+
* @enum {string}
|
|
222
|
+
*/
|
|
223
|
+
exports.StripeStripeProductType = {
|
|
224
|
+
Good: 'good',
|
|
225
|
+
Service: 'service'
|
|
226
|
+
};
|
|
227
|
+
exports.StripeStripeResponseStripeStripePriceObjectEnum = {
|
|
228
|
+
Price: 'price'
|
|
229
|
+
};
|
|
230
|
+
exports.StripeStripeTaxCodeObjectEnum = {
|
|
231
|
+
TaxCode: 'tax_code'
|
|
232
|
+
};
|
|
101
233
|
/**
|
|
102
234
|
*
|
|
103
235
|
* @export
|
|
@@ -3497,38 +3629,6 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3497
3629
|
options: localVarRequestOptions,
|
|
3498
3630
|
};
|
|
3499
3631
|
}),
|
|
3500
|
-
/**
|
|
3501
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
3502
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
3503
|
-
* @param {*} [options] Override http request option.
|
|
3504
|
-
* @throws {RequiredError}
|
|
3505
|
-
*/
|
|
3506
|
-
createSubscriptionPlanForClub: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
|
|
3507
|
-
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
3508
|
-
(0, common_1.assertParamExists)('createSubscriptionPlanForClub', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
|
|
3509
|
-
const localVarPath = `/api/clubs/subscription-plans`;
|
|
3510
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3511
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3512
|
-
let baseOptions;
|
|
3513
|
-
if (configuration) {
|
|
3514
|
-
baseOptions = configuration.baseOptions;
|
|
3515
|
-
}
|
|
3516
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3517
|
-
const localVarHeaderParameter = {};
|
|
3518
|
-
const localVarQueryParameter = {};
|
|
3519
|
-
// authentication bearerAuth required
|
|
3520
|
-
// http bearer authentication required
|
|
3521
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3522
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3523
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3524
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3525
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3526
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
3527
|
-
return {
|
|
3528
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3529
|
-
options: localVarRequestOptions,
|
|
3530
|
-
};
|
|
3531
|
-
}),
|
|
3532
3632
|
/**
|
|
3533
3633
|
*
|
|
3534
3634
|
* @param {string} actualityId
|
|
@@ -4015,21 +4115,6 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
4015
4115
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4016
4116
|
});
|
|
4017
4117
|
},
|
|
4018
|
-
/**
|
|
4019
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
4020
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
4021
|
-
* @param {*} [options] Override http request option.
|
|
4022
|
-
* @throws {RequiredError}
|
|
4023
|
-
*/
|
|
4024
|
-
createSubscriptionPlanForClub(createSubscriptionPlanRequest, options) {
|
|
4025
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4026
|
-
var _a, _b, _c;
|
|
4027
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(createSubscriptionPlanRequest, options);
|
|
4028
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4029
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.createSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4030
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4031
|
-
});
|
|
4032
|
-
},
|
|
4033
4118
|
/**
|
|
4034
4119
|
*
|
|
4035
4120
|
* @param {string} actualityId
|
|
@@ -4276,15 +4361,6 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
4276
4361
|
createSportForClub(requestParameters, options) {
|
|
4277
4362
|
return localVarFp.createSportForClub(requestParameters.createSportForClubRequest, options).then((request) => request(axios, basePath));
|
|
4278
4363
|
},
|
|
4279
|
-
/**
|
|
4280
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
4281
|
-
* @param {ClubsManagerApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
4282
|
-
* @param {*} [options] Override http request option.
|
|
4283
|
-
* @throws {RequiredError}
|
|
4284
|
-
*/
|
|
4285
|
-
createSubscriptionPlanForClub(requestParameters, options) {
|
|
4286
|
-
return localVarFp.createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
4287
|
-
},
|
|
4288
4364
|
/**
|
|
4289
4365
|
*
|
|
4290
4366
|
* @param {ClubsManagerApiDeleteActualityRequest} requestParameters Request parameters.
|
|
@@ -4462,16 +4538,6 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
4462
4538
|
createSportForClub(requestParameters, options) {
|
|
4463
4539
|
return (0, exports.ClubsManagerApiFp)(this.configuration).createSportForClub(requestParameters.createSportForClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4464
4540
|
}
|
|
4465
|
-
/**
|
|
4466
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
4467
|
-
* @param {ClubsManagerApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
4468
|
-
* @param {*} [options] Override http request option.
|
|
4469
|
-
* @throws {RequiredError}
|
|
4470
|
-
* @memberof ClubsManagerApi
|
|
4471
|
-
*/
|
|
4472
|
-
createSubscriptionPlanForClub(requestParameters, options) {
|
|
4473
|
-
return (0, exports.ClubsManagerApiFp)(this.configuration).createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4474
|
-
}
|
|
4475
4541
|
/**
|
|
4476
4542
|
*
|
|
4477
4543
|
* @param {ClubsManagerApiDeleteActualityRequest} requestParameters Request parameters.
|
|
@@ -5079,37 +5145,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
5079
5145
|
options: localVarRequestOptions,
|
|
5080
5146
|
};
|
|
5081
5147
|
}),
|
|
5082
|
-
/**
|
|
5083
|
-
* Supprime un club et toutes ses données associées
|
|
5084
|
-
* @param {string} id
|
|
5085
|
-
* @param {*} [options] Override http request option.
|
|
5086
|
-
* @throws {RequiredError}
|
|
5087
|
-
*/
|
|
5088
|
-
deleteClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
5089
|
-
// verify required parameter 'id' is not null or undefined
|
|
5090
|
-
(0, common_1.assertParamExists)('deleteClub', 'id', id);
|
|
5091
|
-
const localVarPath = `/api/clubs/{id}`
|
|
5092
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5093
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5094
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5095
|
-
let baseOptions;
|
|
5096
|
-
if (configuration) {
|
|
5097
|
-
baseOptions = configuration.baseOptions;
|
|
5098
|
-
}
|
|
5099
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5100
|
-
const localVarHeaderParameter = {};
|
|
5101
|
-
const localVarQueryParameter = {};
|
|
5102
|
-
// authentication bearerAuth required
|
|
5103
|
-
// http bearer authentication required
|
|
5104
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5105
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5106
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5107
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5108
|
-
return {
|
|
5109
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5110
|
-
options: localVarRequestOptions,
|
|
5111
|
-
};
|
|
5112
|
-
}),
|
|
5113
5148
|
};
|
|
5114
5149
|
};
|
|
5115
5150
|
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
@@ -5135,21 +5170,6 @@ const DefaultApiFp = function (configuration) {
|
|
|
5135
5170
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5136
5171
|
});
|
|
5137
5172
|
},
|
|
5138
|
-
/**
|
|
5139
|
-
* Supprime un club et toutes ses données associées
|
|
5140
|
-
* @param {string} id
|
|
5141
|
-
* @param {*} [options] Override http request option.
|
|
5142
|
-
* @throws {RequiredError}
|
|
5143
|
-
*/
|
|
5144
|
-
deleteClub(id, options) {
|
|
5145
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5146
|
-
var _a, _b, _c;
|
|
5147
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClub(id, options);
|
|
5148
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5149
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.deleteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5150
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5151
|
-
});
|
|
5152
|
-
},
|
|
5153
5173
|
};
|
|
5154
5174
|
};
|
|
5155
5175
|
exports.DefaultApiFp = DefaultApiFp;
|
|
@@ -5169,15 +5189,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5169
5189
|
createClub(requestParameters, options) {
|
|
5170
5190
|
return localVarFp.createClub(requestParameters.createClubRequest, options).then((request) => request(axios, basePath));
|
|
5171
5191
|
},
|
|
5172
|
-
/**
|
|
5173
|
-
* Supprime un club et toutes ses données associées
|
|
5174
|
-
* @param {DefaultApiDeleteClubRequest} requestParameters Request parameters.
|
|
5175
|
-
* @param {*} [options] Override http request option.
|
|
5176
|
-
* @throws {RequiredError}
|
|
5177
|
-
*/
|
|
5178
|
-
deleteClub(requestParameters, options) {
|
|
5179
|
-
return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5180
|
-
},
|
|
5181
5192
|
};
|
|
5182
5193
|
};
|
|
5183
5194
|
exports.DefaultApiFactory = DefaultApiFactory;
|
|
@@ -5198,16 +5209,6 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5198
5209
|
createClub(requestParameters, options) {
|
|
5199
5210
|
return (0, exports.DefaultApiFp)(this.configuration).createClub(requestParameters.createClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5200
5211
|
}
|
|
5201
|
-
/**
|
|
5202
|
-
* Supprime un club et toutes ses données associées
|
|
5203
|
-
* @param {DefaultApiDeleteClubRequest} requestParameters Request parameters.
|
|
5204
|
-
* @param {*} [options] Override http request option.
|
|
5205
|
-
* @throws {RequiredError}
|
|
5206
|
-
* @memberof DefaultApi
|
|
5207
|
-
*/
|
|
5208
|
-
deleteClub(requestParameters, options) {
|
|
5209
|
-
return (0, exports.DefaultApiFp)(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5210
|
-
}
|
|
5211
5212
|
}
|
|
5212
5213
|
exports.DefaultApi = DefaultApi;
|
|
5213
5214
|
/**
|
|
@@ -6113,21 +6114,21 @@ class SportsStaffApi extends base_1.BaseAPI {
|
|
|
6113
6114
|
}
|
|
6114
6115
|
exports.SportsStaffApi = SportsStaffApi;
|
|
6115
6116
|
/**
|
|
6116
|
-
*
|
|
6117
|
+
* SubscriptionsManagerApi - axios parameter creator
|
|
6117
6118
|
* @export
|
|
6118
6119
|
*/
|
|
6119
|
-
const
|
|
6120
|
+
const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
6120
6121
|
return {
|
|
6121
6122
|
/**
|
|
6122
|
-
*
|
|
6123
|
-
* @param {
|
|
6123
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6124
|
+
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
6124
6125
|
* @param {*} [options] Override http request option.
|
|
6125
6126
|
* @throws {RequiredError}
|
|
6126
6127
|
*/
|
|
6127
|
-
|
|
6128
|
-
// verify required parameter '
|
|
6129
|
-
(0, common_1.assertParamExists)('
|
|
6130
|
-
const localVarPath = `/api/
|
|
6128
|
+
createPlan: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
|
|
6129
|
+
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
6130
|
+
(0, common_1.assertParamExists)('createPlan', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
|
|
6131
|
+
const localVarPath = `/api/subscriptions/plans`;
|
|
6131
6132
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6132
6133
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6133
6134
|
let baseOptions;
|
|
@@ -6144,61 +6145,60 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6144
6145
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6145
6146
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6146
6147
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6147
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6148
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
6148
6149
|
return {
|
|
6149
6150
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6150
6151
|
options: localVarRequestOptions,
|
|
6151
6152
|
};
|
|
6152
6153
|
}),
|
|
6153
6154
|
/**
|
|
6154
|
-
*
|
|
6155
|
-
* @param {
|
|
6155
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6156
|
+
* @param {string} productId
|
|
6156
6157
|
* @param {*} [options] Override http request option.
|
|
6157
6158
|
* @throws {RequiredError}
|
|
6158
6159
|
*/
|
|
6159
|
-
|
|
6160
|
-
// verify required parameter '
|
|
6161
|
-
(0, common_1.assertParamExists)('
|
|
6162
|
-
const localVarPath = `/api/
|
|
6160
|
+
deletePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
|
|
6161
|
+
// verify required parameter 'productId' is not null or undefined
|
|
6162
|
+
(0, common_1.assertParamExists)('deletePlan', 'productId', productId);
|
|
6163
|
+
const localVarPath = `/api/subscriptions/plans/{productId}`
|
|
6164
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
6163
6165
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6164
6166
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6165
6167
|
let baseOptions;
|
|
6166
6168
|
if (configuration) {
|
|
6167
6169
|
baseOptions = configuration.baseOptions;
|
|
6168
6170
|
}
|
|
6169
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6171
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6170
6172
|
const localVarHeaderParameter = {};
|
|
6171
6173
|
const localVarQueryParameter = {};
|
|
6172
6174
|
// authentication bearerAuth required
|
|
6173
6175
|
// http bearer authentication required
|
|
6174
6176
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6175
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6176
6177
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6177
6178
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6178
6179
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6179
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
6180
6180
|
return {
|
|
6181
6181
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6182
6182
|
options: localVarRequestOptions,
|
|
6183
6183
|
};
|
|
6184
6184
|
}),
|
|
6185
6185
|
/**
|
|
6186
|
-
*
|
|
6187
|
-
* @param {
|
|
6186
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6187
|
+
* @param {UpdatePlanRequest} updatePlanRequest
|
|
6188
6188
|
* @param {*} [options] Override http request option.
|
|
6189
6189
|
* @throws {RequiredError}
|
|
6190
6190
|
*/
|
|
6191
|
-
|
|
6192
|
-
// verify required parameter '
|
|
6193
|
-
(0, common_1.assertParamExists)('
|
|
6194
|
-
const localVarPath = `/api/
|
|
6191
|
+
updatePlan: (updatePlanRequest_1, ...args_1) => __awaiter(this, [updatePlanRequest_1, ...args_1], void 0, function* (updatePlanRequest, options = {}) {
|
|
6192
|
+
// verify required parameter 'updatePlanRequest' is not null or undefined
|
|
6193
|
+
(0, common_1.assertParamExists)('updatePlan', 'updatePlanRequest', updatePlanRequest);
|
|
6194
|
+
const localVarPath = `/api/subscriptions/plans`;
|
|
6195
6195
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6196
6196
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6197
6197
|
let baseOptions;
|
|
6198
6198
|
if (configuration) {
|
|
6199
6199
|
baseOptions = configuration.baseOptions;
|
|
6200
6200
|
}
|
|
6201
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6201
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6202
6202
|
const localVarHeaderParameter = {};
|
|
6203
6203
|
const localVarQueryParameter = {};
|
|
6204
6204
|
// authentication bearerAuth required
|
|
@@ -6208,64 +6208,667 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6208
6208
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6209
6209
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6210
6210
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6211
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6211
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePlanRequest, localVarRequestOptions, configuration);
|
|
6212
6212
|
return {
|
|
6213
6213
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6214
6214
|
options: localVarRequestOptions,
|
|
6215
6215
|
};
|
|
6216
6216
|
}),
|
|
6217
|
+
};
|
|
6218
|
+
};
|
|
6219
|
+
exports.SubscriptionsManagerApiAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator;
|
|
6220
|
+
/**
|
|
6221
|
+
* SubscriptionsManagerApi - functional programming interface
|
|
6222
|
+
* @export
|
|
6223
|
+
*/
|
|
6224
|
+
const SubscriptionsManagerApiFp = function (configuration) {
|
|
6225
|
+
const localVarAxiosParamCreator = (0, exports.SubscriptionsManagerApiAxiosParamCreator)(configuration);
|
|
6226
|
+
return {
|
|
6217
6227
|
/**
|
|
6218
|
-
*
|
|
6219
|
-
* @param {
|
|
6220
|
-
* @param {string} subscriptionId
|
|
6228
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6229
|
+
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
6221
6230
|
* @param {*} [options] Override http request option.
|
|
6222
6231
|
* @throws {RequiredError}
|
|
6223
6232
|
*/
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6234
|
-
let baseOptions;
|
|
6235
|
-
if (configuration) {
|
|
6236
|
-
baseOptions = configuration.baseOptions;
|
|
6237
|
-
}
|
|
6238
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6239
|
-
const localVarHeaderParameter = {};
|
|
6240
|
-
const localVarQueryParameter = {};
|
|
6241
|
-
// authentication bearerAuth required
|
|
6242
|
-
// http bearer authentication required
|
|
6243
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6244
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6245
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6246
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6247
|
-
return {
|
|
6248
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6249
|
-
options: localVarRequestOptions,
|
|
6250
|
-
};
|
|
6251
|
-
}),
|
|
6233
|
+
createPlan(createSubscriptionPlanRequest, options) {
|
|
6234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6235
|
+
var _a, _b, _c;
|
|
6236
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPlan(createSubscriptionPlanRequest, options);
|
|
6237
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6238
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsManagerApi.createPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6239
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6240
|
+
});
|
|
6241
|
+
},
|
|
6252
6242
|
/**
|
|
6253
|
-
*
|
|
6254
|
-
* @param {
|
|
6243
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6244
|
+
* @param {string} productId
|
|
6255
6245
|
* @param {*} [options] Override http request option.
|
|
6256
6246
|
* @throws {RequiredError}
|
|
6257
6247
|
*/
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6248
|
+
deletePlan(productId, options) {
|
|
6249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6250
|
+
var _a, _b, _c;
|
|
6251
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePlan(productId, options);
|
|
6252
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6253
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsManagerApi.deletePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6254
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6255
|
+
});
|
|
6256
|
+
},
|
|
6257
|
+
/**
|
|
6258
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6259
|
+
* @param {UpdatePlanRequest} updatePlanRequest
|
|
6260
|
+
* @param {*} [options] Override http request option.
|
|
6261
|
+
* @throws {RequiredError}
|
|
6262
|
+
*/
|
|
6263
|
+
updatePlan(updatePlanRequest, options) {
|
|
6264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6265
|
+
var _a, _b, _c;
|
|
6266
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlan(updatePlanRequest, options);
|
|
6267
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6268
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsManagerApi.updatePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6269
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6270
|
+
});
|
|
6271
|
+
},
|
|
6272
|
+
};
|
|
6273
|
+
};
|
|
6274
|
+
exports.SubscriptionsManagerApiFp = SubscriptionsManagerApiFp;
|
|
6275
|
+
/**
|
|
6276
|
+
* SubscriptionsManagerApi - factory interface
|
|
6277
|
+
* @export
|
|
6278
|
+
*/
|
|
6279
|
+
const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
|
|
6280
|
+
const localVarFp = (0, exports.SubscriptionsManagerApiFp)(configuration);
|
|
6281
|
+
return {
|
|
6282
|
+
/**
|
|
6283
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6284
|
+
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
6285
|
+
* @param {*} [options] Override http request option.
|
|
6286
|
+
* @throws {RequiredError}
|
|
6287
|
+
*/
|
|
6288
|
+
createPlan(requestParameters, options) {
|
|
6289
|
+
return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
6290
|
+
},
|
|
6291
|
+
/**
|
|
6292
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6293
|
+
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
6294
|
+
* @param {*} [options] Override http request option.
|
|
6295
|
+
* @throws {RequiredError}
|
|
6296
|
+
*/
|
|
6297
|
+
deletePlan(requestParameters, options) {
|
|
6298
|
+
return localVarFp.deletePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
6299
|
+
},
|
|
6300
|
+
/**
|
|
6301
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6302
|
+
* @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
|
|
6303
|
+
* @param {*} [options] Override http request option.
|
|
6304
|
+
* @throws {RequiredError}
|
|
6305
|
+
*/
|
|
6306
|
+
updatePlan(requestParameters, options) {
|
|
6307
|
+
return localVarFp.updatePlan(requestParameters.updatePlanRequest, options).then((request) => request(axios, basePath));
|
|
6308
|
+
},
|
|
6309
|
+
};
|
|
6310
|
+
};
|
|
6311
|
+
exports.SubscriptionsManagerApiFactory = SubscriptionsManagerApiFactory;
|
|
6312
|
+
/**
|
|
6313
|
+
* SubscriptionsManagerApi - object-oriented interface
|
|
6314
|
+
* @export
|
|
6315
|
+
* @class SubscriptionsManagerApi
|
|
6316
|
+
* @extends {BaseAPI}
|
|
6317
|
+
*/
|
|
6318
|
+
class SubscriptionsManagerApi extends base_1.BaseAPI {
|
|
6319
|
+
/**
|
|
6320
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6321
|
+
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
6322
|
+
* @param {*} [options] Override http request option.
|
|
6323
|
+
* @throws {RequiredError}
|
|
6324
|
+
* @memberof SubscriptionsManagerApi
|
|
6325
|
+
*/
|
|
6326
|
+
createPlan(requestParameters, options) {
|
|
6327
|
+
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6328
|
+
}
|
|
6329
|
+
/**
|
|
6330
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6331
|
+
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
6332
|
+
* @param {*} [options] Override http request option.
|
|
6333
|
+
* @throws {RequiredError}
|
|
6334
|
+
* @memberof SubscriptionsManagerApi
|
|
6335
|
+
*/
|
|
6336
|
+
deletePlan(requestParameters, options) {
|
|
6337
|
+
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).deletePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
6338
|
+
}
|
|
6339
|
+
/**
|
|
6340
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6341
|
+
* @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
|
|
6342
|
+
* @param {*} [options] Override http request option.
|
|
6343
|
+
* @throws {RequiredError}
|
|
6344
|
+
* @memberof SubscriptionsManagerApi
|
|
6345
|
+
*/
|
|
6346
|
+
updatePlan(requestParameters, options) {
|
|
6347
|
+
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).updatePlan(requestParameters.updatePlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6348
|
+
}
|
|
6349
|
+
}
|
|
6350
|
+
exports.SubscriptionsManagerApi = SubscriptionsManagerApi;
|
|
6351
|
+
/**
|
|
6352
|
+
* SubscriptionsPublicApi - axios parameter creator
|
|
6353
|
+
* @export
|
|
6354
|
+
*/
|
|
6355
|
+
const SubscriptionsPublicApiAxiosParamCreator = function (configuration) {
|
|
6356
|
+
return {
|
|
6357
|
+
/**
|
|
6358
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6359
|
+
* @param {string} clubId
|
|
6360
|
+
* @param {*} [options] Override http request option.
|
|
6361
|
+
* @throws {RequiredError}
|
|
6362
|
+
*/
|
|
6363
|
+
getPublicPlans: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
6364
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6365
|
+
(0, common_1.assertParamExists)('getPublicPlans', 'clubId', clubId);
|
|
6366
|
+
const localVarPath = `/api/subscriptions/plans/{clubId}`
|
|
6367
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
6368
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6369
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6370
|
+
let baseOptions;
|
|
6371
|
+
if (configuration) {
|
|
6372
|
+
baseOptions = configuration.baseOptions;
|
|
6373
|
+
}
|
|
6374
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6375
|
+
const localVarHeaderParameter = {};
|
|
6376
|
+
const localVarQueryParameter = {};
|
|
6377
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6378
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6379
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6380
|
+
return {
|
|
6381
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6382
|
+
options: localVarRequestOptions,
|
|
6383
|
+
};
|
|
6384
|
+
}),
|
|
6385
|
+
};
|
|
6386
|
+
};
|
|
6387
|
+
exports.SubscriptionsPublicApiAxiosParamCreator = SubscriptionsPublicApiAxiosParamCreator;
|
|
6388
|
+
/**
|
|
6389
|
+
* SubscriptionsPublicApi - functional programming interface
|
|
6390
|
+
* @export
|
|
6391
|
+
*/
|
|
6392
|
+
const SubscriptionsPublicApiFp = function (configuration) {
|
|
6393
|
+
const localVarAxiosParamCreator = (0, exports.SubscriptionsPublicApiAxiosParamCreator)(configuration);
|
|
6394
|
+
return {
|
|
6395
|
+
/**
|
|
6396
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6397
|
+
* @param {string} clubId
|
|
6398
|
+
* @param {*} [options] Override http request option.
|
|
6399
|
+
* @throws {RequiredError}
|
|
6400
|
+
*/
|
|
6401
|
+
getPublicPlans(clubId, options) {
|
|
6402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6403
|
+
var _a, _b, _c;
|
|
6404
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicPlans(clubId, options);
|
|
6405
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6406
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsPublicApi.getPublicPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6407
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6408
|
+
});
|
|
6409
|
+
},
|
|
6410
|
+
};
|
|
6411
|
+
};
|
|
6412
|
+
exports.SubscriptionsPublicApiFp = SubscriptionsPublicApiFp;
|
|
6413
|
+
/**
|
|
6414
|
+
* SubscriptionsPublicApi - factory interface
|
|
6415
|
+
* @export
|
|
6416
|
+
*/
|
|
6417
|
+
const SubscriptionsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6418
|
+
const localVarFp = (0, exports.SubscriptionsPublicApiFp)(configuration);
|
|
6419
|
+
return {
|
|
6420
|
+
/**
|
|
6421
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6422
|
+
* @param {SubscriptionsPublicApiGetPublicPlansRequest} requestParameters Request parameters.
|
|
6423
|
+
* @param {*} [options] Override http request option.
|
|
6424
|
+
* @throws {RequiredError}
|
|
6425
|
+
*/
|
|
6426
|
+
getPublicPlans(requestParameters, options) {
|
|
6427
|
+
return localVarFp.getPublicPlans(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
6428
|
+
},
|
|
6429
|
+
};
|
|
6430
|
+
};
|
|
6431
|
+
exports.SubscriptionsPublicApiFactory = SubscriptionsPublicApiFactory;
|
|
6432
|
+
/**
|
|
6433
|
+
* SubscriptionsPublicApi - object-oriented interface
|
|
6434
|
+
* @export
|
|
6435
|
+
* @class SubscriptionsPublicApi
|
|
6436
|
+
* @extends {BaseAPI}
|
|
6437
|
+
*/
|
|
6438
|
+
class SubscriptionsPublicApi extends base_1.BaseAPI {
|
|
6439
|
+
/**
|
|
6440
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6441
|
+
* @param {SubscriptionsPublicApiGetPublicPlansRequest} requestParameters Request parameters.
|
|
6442
|
+
* @param {*} [options] Override http request option.
|
|
6443
|
+
* @throws {RequiredError}
|
|
6444
|
+
* @memberof SubscriptionsPublicApi
|
|
6445
|
+
*/
|
|
6446
|
+
getPublicPlans(requestParameters, options) {
|
|
6447
|
+
return (0, exports.SubscriptionsPublicApiFp)(this.configuration).getPublicPlans(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
6448
|
+
}
|
|
6449
|
+
}
|
|
6450
|
+
exports.SubscriptionsPublicApi = SubscriptionsPublicApi;
|
|
6451
|
+
/**
|
|
6452
|
+
* SubscriptionsStaffApi - axios parameter creator
|
|
6453
|
+
* @export
|
|
6454
|
+
*/
|
|
6455
|
+
const SubscriptionsStaffApiAxiosParamCreator = function (configuration) {
|
|
6456
|
+
return {
|
|
6457
|
+
/**
|
|
6458
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6459
|
+
* @param {*} [options] Override http request option.
|
|
6460
|
+
* @throws {RequiredError}
|
|
6461
|
+
*/
|
|
6462
|
+
getClubPlans: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6463
|
+
const localVarPath = `/api/subscriptions/plans`;
|
|
6464
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6465
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6466
|
+
let baseOptions;
|
|
6467
|
+
if (configuration) {
|
|
6468
|
+
baseOptions = configuration.baseOptions;
|
|
6469
|
+
}
|
|
6470
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6471
|
+
const localVarHeaderParameter = {};
|
|
6472
|
+
const localVarQueryParameter = {};
|
|
6473
|
+
// authentication bearerAuth required
|
|
6474
|
+
// http bearer authentication required
|
|
6475
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6476
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6477
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6478
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6479
|
+
return {
|
|
6480
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6481
|
+
options: localVarRequestOptions,
|
|
6482
|
+
};
|
|
6483
|
+
}),
|
|
6484
|
+
};
|
|
6485
|
+
};
|
|
6486
|
+
exports.SubscriptionsStaffApiAxiosParamCreator = SubscriptionsStaffApiAxiosParamCreator;
|
|
6487
|
+
/**
|
|
6488
|
+
* SubscriptionsStaffApi - functional programming interface
|
|
6489
|
+
* @export
|
|
6490
|
+
*/
|
|
6491
|
+
const SubscriptionsStaffApiFp = function (configuration) {
|
|
6492
|
+
const localVarAxiosParamCreator = (0, exports.SubscriptionsStaffApiAxiosParamCreator)(configuration);
|
|
6493
|
+
return {
|
|
6494
|
+
/**
|
|
6495
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6496
|
+
* @param {*} [options] Override http request option.
|
|
6497
|
+
* @throws {RequiredError}
|
|
6498
|
+
*/
|
|
6499
|
+
getClubPlans(options) {
|
|
6500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6501
|
+
var _a, _b, _c;
|
|
6502
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlans(options);
|
|
6503
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6504
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsStaffApi.getClubPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6505
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6506
|
+
});
|
|
6507
|
+
},
|
|
6508
|
+
};
|
|
6509
|
+
};
|
|
6510
|
+
exports.SubscriptionsStaffApiFp = SubscriptionsStaffApiFp;
|
|
6511
|
+
/**
|
|
6512
|
+
* SubscriptionsStaffApi - factory interface
|
|
6513
|
+
* @export
|
|
6514
|
+
*/
|
|
6515
|
+
const SubscriptionsStaffApiFactory = function (configuration, basePath, axios) {
|
|
6516
|
+
const localVarFp = (0, exports.SubscriptionsStaffApiFp)(configuration);
|
|
6517
|
+
return {
|
|
6518
|
+
/**
|
|
6519
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6520
|
+
* @param {*} [options] Override http request option.
|
|
6521
|
+
* @throws {RequiredError}
|
|
6522
|
+
*/
|
|
6523
|
+
getClubPlans(options) {
|
|
6524
|
+
return localVarFp.getClubPlans(options).then((request) => request(axios, basePath));
|
|
6525
|
+
},
|
|
6526
|
+
};
|
|
6527
|
+
};
|
|
6528
|
+
exports.SubscriptionsStaffApiFactory = SubscriptionsStaffApiFactory;
|
|
6529
|
+
/**
|
|
6530
|
+
* SubscriptionsStaffApi - object-oriented interface
|
|
6531
|
+
* @export
|
|
6532
|
+
* @class SubscriptionsStaffApi
|
|
6533
|
+
* @extends {BaseAPI}
|
|
6534
|
+
*/
|
|
6535
|
+
class SubscriptionsStaffApi extends base_1.BaseAPI {
|
|
6536
|
+
/**
|
|
6537
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6538
|
+
* @param {*} [options] Override http request option.
|
|
6539
|
+
* @throws {RequiredError}
|
|
6540
|
+
* @memberof SubscriptionsStaffApi
|
|
6541
|
+
*/
|
|
6542
|
+
getClubPlans(options) {
|
|
6543
|
+
return (0, exports.SubscriptionsStaffApiFp)(this.configuration).getClubPlans(options).then((request) => request(this.axios, this.basePath));
|
|
6544
|
+
}
|
|
6545
|
+
}
|
|
6546
|
+
exports.SubscriptionsStaffApi = SubscriptionsStaffApi;
|
|
6547
|
+
/**
|
|
6548
|
+
* SubscriptionsUserApi - axios parameter creator
|
|
6549
|
+
* @export
|
|
6550
|
+
*/
|
|
6551
|
+
const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
6552
|
+
return {
|
|
6553
|
+
/**
|
|
6554
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6555
|
+
* @param {string} clubId
|
|
6556
|
+
* @param {string} subscriptionId
|
|
6557
|
+
* @param {*} [options] Override http request option.
|
|
6558
|
+
* @throws {RequiredError}
|
|
6559
|
+
*/
|
|
6560
|
+
cancel: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
6561
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6562
|
+
(0, common_1.assertParamExists)('cancel', 'clubId', clubId);
|
|
6563
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
6564
|
+
(0, common_1.assertParamExists)('cancel', 'subscriptionId', subscriptionId);
|
|
6565
|
+
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}`
|
|
6566
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6567
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
6568
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6569
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6570
|
+
let baseOptions;
|
|
6571
|
+
if (configuration) {
|
|
6572
|
+
baseOptions = configuration.baseOptions;
|
|
6573
|
+
}
|
|
6574
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6575
|
+
const localVarHeaderParameter = {};
|
|
6576
|
+
const localVarQueryParameter = {};
|
|
6577
|
+
// authentication bearerAuth required
|
|
6578
|
+
// http bearer authentication required
|
|
6579
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6580
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6581
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6582
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6583
|
+
return {
|
|
6584
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6585
|
+
options: localVarRequestOptions,
|
|
6586
|
+
};
|
|
6587
|
+
}),
|
|
6588
|
+
/**
|
|
6589
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6590
|
+
* @param {*} [options] Override http request option.
|
|
6591
|
+
* @throws {RequiredError}
|
|
6592
|
+
*/
|
|
6593
|
+
mySubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6594
|
+
const localVarPath = `/api/subscriptions/me`;
|
|
6595
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6596
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6597
|
+
let baseOptions;
|
|
6598
|
+
if (configuration) {
|
|
6599
|
+
baseOptions = configuration.baseOptions;
|
|
6600
|
+
}
|
|
6601
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6602
|
+
const localVarHeaderParameter = {};
|
|
6603
|
+
const localVarQueryParameter = {};
|
|
6604
|
+
// authentication bearerAuth required
|
|
6605
|
+
// http bearer authentication required
|
|
6606
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6607
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6608
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6609
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6610
|
+
return {
|
|
6611
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6612
|
+
options: localVarRequestOptions,
|
|
6613
|
+
};
|
|
6614
|
+
}),
|
|
6615
|
+
/**
|
|
6616
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6617
|
+
* @param {string} clubId
|
|
6618
|
+
* @param {string} subscriptionId
|
|
6619
|
+
* @param {*} [options] Override http request option.
|
|
6620
|
+
* @throws {RequiredError}
|
|
6621
|
+
*/
|
|
6622
|
+
resume: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
6623
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6624
|
+
(0, common_1.assertParamExists)('resume', 'clubId', clubId);
|
|
6625
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
6626
|
+
(0, common_1.assertParamExists)('resume', 'subscriptionId', subscriptionId);
|
|
6627
|
+
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
6628
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6629
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
6630
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6631
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6632
|
+
let baseOptions;
|
|
6633
|
+
if (configuration) {
|
|
6634
|
+
baseOptions = configuration.baseOptions;
|
|
6635
|
+
}
|
|
6636
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6637
|
+
const localVarHeaderParameter = {};
|
|
6638
|
+
const localVarQueryParameter = {};
|
|
6639
|
+
// authentication bearerAuth required
|
|
6640
|
+
// http bearer authentication required
|
|
6641
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6642
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6643
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6644
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6645
|
+
return {
|
|
6646
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6647
|
+
options: localVarRequestOptions,
|
|
6648
|
+
};
|
|
6649
|
+
}),
|
|
6650
|
+
/**
|
|
6651
|
+
* S\'abonner à un plan (auth classique)
|
|
6652
|
+
* @param {SubscribeRequestBody} subscribeRequestBody
|
|
6653
|
+
* @param {*} [options] Override http request option.
|
|
6654
|
+
* @throws {RequiredError}
|
|
6655
|
+
*/
|
|
6656
|
+
subscribe: (subscribeRequestBody_1, ...args_1) => __awaiter(this, [subscribeRequestBody_1, ...args_1], void 0, function* (subscribeRequestBody, options = {}) {
|
|
6657
|
+
// verify required parameter 'subscribeRequestBody' is not null or undefined
|
|
6658
|
+
(0, common_1.assertParamExists)('subscribe', 'subscribeRequestBody', subscribeRequestBody);
|
|
6659
|
+
const localVarPath = `/api/subscriptions/subscribe`;
|
|
6660
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6661
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6662
|
+
let baseOptions;
|
|
6663
|
+
if (configuration) {
|
|
6664
|
+
baseOptions = configuration.baseOptions;
|
|
6665
|
+
}
|
|
6666
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6667
|
+
const localVarHeaderParameter = {};
|
|
6668
|
+
const localVarQueryParameter = {};
|
|
6669
|
+
// authentication bearerAuth required
|
|
6670
|
+
// http bearer authentication required
|
|
6671
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6672
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6673
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6675
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6676
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscribeRequestBody, localVarRequestOptions, configuration);
|
|
6677
|
+
return {
|
|
6678
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6679
|
+
options: localVarRequestOptions,
|
|
6680
|
+
};
|
|
6681
|
+
}),
|
|
6682
|
+
};
|
|
6683
|
+
};
|
|
6684
|
+
exports.SubscriptionsUserApiAxiosParamCreator = SubscriptionsUserApiAxiosParamCreator;
|
|
6685
|
+
/**
|
|
6686
|
+
* SubscriptionsUserApi - functional programming interface
|
|
6687
|
+
* @export
|
|
6688
|
+
*/
|
|
6689
|
+
const SubscriptionsUserApiFp = function (configuration) {
|
|
6690
|
+
const localVarAxiosParamCreator = (0, exports.SubscriptionsUserApiAxiosParamCreator)(configuration);
|
|
6691
|
+
return {
|
|
6692
|
+
/**
|
|
6693
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6694
|
+
* @param {string} clubId
|
|
6695
|
+
* @param {string} subscriptionId
|
|
6696
|
+
* @param {*} [options] Override http request option.
|
|
6697
|
+
* @throws {RequiredError}
|
|
6698
|
+
*/
|
|
6699
|
+
cancel(clubId, subscriptionId, options) {
|
|
6700
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6701
|
+
var _a, _b, _c;
|
|
6702
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(clubId, subscriptionId, options);
|
|
6703
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6704
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6705
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6706
|
+
});
|
|
6707
|
+
},
|
|
6708
|
+
/**
|
|
6709
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6710
|
+
* @param {*} [options] Override http request option.
|
|
6711
|
+
* @throws {RequiredError}
|
|
6712
|
+
*/
|
|
6713
|
+
mySubscriptions(options) {
|
|
6714
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6715
|
+
var _a, _b, _c;
|
|
6716
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mySubscriptions(options);
|
|
6717
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6718
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.mySubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6719
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6720
|
+
});
|
|
6721
|
+
},
|
|
6722
|
+
/**
|
|
6723
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6724
|
+
* @param {string} clubId
|
|
6725
|
+
* @param {string} subscriptionId
|
|
6726
|
+
* @param {*} [options] Override http request option.
|
|
6727
|
+
* @throws {RequiredError}
|
|
6728
|
+
*/
|
|
6729
|
+
resume(clubId, subscriptionId, options) {
|
|
6730
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6731
|
+
var _a, _b, _c;
|
|
6732
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resume(clubId, subscriptionId, options);
|
|
6733
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6734
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.resume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6735
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6736
|
+
});
|
|
6737
|
+
},
|
|
6738
|
+
/**
|
|
6739
|
+
* S\'abonner à un plan (auth classique)
|
|
6740
|
+
* @param {SubscribeRequestBody} subscribeRequestBody
|
|
6741
|
+
* @param {*} [options] Override http request option.
|
|
6742
|
+
* @throws {RequiredError}
|
|
6743
|
+
*/
|
|
6744
|
+
subscribe(subscribeRequestBody, options) {
|
|
6745
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6746
|
+
var _a, _b, _c;
|
|
6747
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribe(subscribeRequestBody, options);
|
|
6748
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6749
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.subscribe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6750
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6751
|
+
});
|
|
6752
|
+
},
|
|
6753
|
+
};
|
|
6754
|
+
};
|
|
6755
|
+
exports.SubscriptionsUserApiFp = SubscriptionsUserApiFp;
|
|
6756
|
+
/**
|
|
6757
|
+
* SubscriptionsUserApi - factory interface
|
|
6758
|
+
* @export
|
|
6759
|
+
*/
|
|
6760
|
+
const SubscriptionsUserApiFactory = function (configuration, basePath, axios) {
|
|
6761
|
+
const localVarFp = (0, exports.SubscriptionsUserApiFp)(configuration);
|
|
6762
|
+
return {
|
|
6763
|
+
/**
|
|
6764
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6765
|
+
* @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
|
|
6766
|
+
* @param {*} [options] Override http request option.
|
|
6767
|
+
* @throws {RequiredError}
|
|
6768
|
+
*/
|
|
6769
|
+
cancel(requestParameters, options) {
|
|
6770
|
+
return localVarFp.cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
6771
|
+
},
|
|
6772
|
+
/**
|
|
6773
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6774
|
+
* @param {*} [options] Override http request option.
|
|
6775
|
+
* @throws {RequiredError}
|
|
6776
|
+
*/
|
|
6777
|
+
mySubscriptions(options) {
|
|
6778
|
+
return localVarFp.mySubscriptions(options).then((request) => request(axios, basePath));
|
|
6779
|
+
},
|
|
6780
|
+
/**
|
|
6781
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6782
|
+
* @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
|
|
6783
|
+
* @param {*} [options] Override http request option.
|
|
6784
|
+
* @throws {RequiredError}
|
|
6785
|
+
*/
|
|
6786
|
+
resume(requestParameters, options) {
|
|
6787
|
+
return localVarFp.resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
6788
|
+
},
|
|
6789
|
+
/**
|
|
6790
|
+
* S\'abonner à un plan (auth classique)
|
|
6791
|
+
* @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
|
|
6792
|
+
* @param {*} [options] Override http request option.
|
|
6793
|
+
* @throws {RequiredError}
|
|
6794
|
+
*/
|
|
6795
|
+
subscribe(requestParameters, options) {
|
|
6796
|
+
return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
|
|
6797
|
+
},
|
|
6798
|
+
};
|
|
6799
|
+
};
|
|
6800
|
+
exports.SubscriptionsUserApiFactory = SubscriptionsUserApiFactory;
|
|
6801
|
+
/**
|
|
6802
|
+
* SubscriptionsUserApi - object-oriented interface
|
|
6803
|
+
* @export
|
|
6804
|
+
* @class SubscriptionsUserApi
|
|
6805
|
+
* @extends {BaseAPI}
|
|
6806
|
+
*/
|
|
6807
|
+
class SubscriptionsUserApi extends base_1.BaseAPI {
|
|
6808
|
+
/**
|
|
6809
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6810
|
+
* @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
|
|
6811
|
+
* @param {*} [options] Override http request option.
|
|
6812
|
+
* @throws {RequiredError}
|
|
6813
|
+
* @memberof SubscriptionsUserApi
|
|
6814
|
+
*/
|
|
6815
|
+
cancel(requestParameters, options) {
|
|
6816
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
6817
|
+
}
|
|
6818
|
+
/**
|
|
6819
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6820
|
+
* @param {*} [options] Override http request option.
|
|
6821
|
+
* @throws {RequiredError}
|
|
6822
|
+
* @memberof SubscriptionsUserApi
|
|
6823
|
+
*/
|
|
6824
|
+
mySubscriptions(options) {
|
|
6825
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).mySubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
6826
|
+
}
|
|
6827
|
+
/**
|
|
6828
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6829
|
+
* @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
|
|
6830
|
+
* @param {*} [options] Override http request option.
|
|
6831
|
+
* @throws {RequiredError}
|
|
6832
|
+
* @memberof SubscriptionsUserApi
|
|
6833
|
+
*/
|
|
6834
|
+
resume(requestParameters, options) {
|
|
6835
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
6836
|
+
}
|
|
6837
|
+
/**
|
|
6838
|
+
* S\'abonner à un plan (auth classique)
|
|
6839
|
+
* @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
|
|
6840
|
+
* @param {*} [options] Override http request option.
|
|
6841
|
+
* @throws {RequiredError}
|
|
6842
|
+
* @memberof SubscriptionsUserApi
|
|
6843
|
+
*/
|
|
6844
|
+
subscribe(requestParameters, options) {
|
|
6845
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6846
|
+
}
|
|
6847
|
+
}
|
|
6848
|
+
exports.SubscriptionsUserApi = SubscriptionsUserApi;
|
|
6849
|
+
/**
|
|
6850
|
+
* UsersApi - axios parameter creator
|
|
6851
|
+
* @export
|
|
6852
|
+
*/
|
|
6853
|
+
const UsersApiAxiosParamCreator = function (configuration) {
|
|
6854
|
+
return {
|
|
6855
|
+
/**
|
|
6856
|
+
*
|
|
6857
|
+
* @param {FavoriteClubRequestBody} favoriteClubRequestBody
|
|
6858
|
+
* @param {*} [options] Override http request option.
|
|
6859
|
+
* @throws {RequiredError}
|
|
6860
|
+
*/
|
|
6861
|
+
addFavoriteClub: (favoriteClubRequestBody_1, ...args_1) => __awaiter(this, [favoriteClubRequestBody_1, ...args_1], void 0, function* (favoriteClubRequestBody, options = {}) {
|
|
6862
|
+
// verify required parameter 'favoriteClubRequestBody' is not null or undefined
|
|
6863
|
+
(0, common_1.assertParamExists)('addFavoriteClub', 'favoriteClubRequestBody', favoriteClubRequestBody);
|
|
6864
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
6865
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6866
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6264
6867
|
let baseOptions;
|
|
6265
6868
|
if (configuration) {
|
|
6266
6869
|
baseOptions = configuration.baseOptions;
|
|
6267
6870
|
}
|
|
6268
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6871
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6269
6872
|
const localVarHeaderParameter = {};
|
|
6270
6873
|
const localVarQueryParameter = {};
|
|
6271
6874
|
// authentication bearerAuth required
|
|
@@ -6275,7 +6878,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6275
6878
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6276
6879
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6277
6880
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6278
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6881
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
6279
6882
|
return {
|
|
6280
6883
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6281
6884
|
options: localVarRequestOptions,
|
|
@@ -6283,14 +6886,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6283
6886
|
}),
|
|
6284
6887
|
/**
|
|
6285
6888
|
*
|
|
6286
|
-
* @param {
|
|
6889
|
+
* @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
|
|
6287
6890
|
* @param {*} [options] Override http request option.
|
|
6288
6891
|
* @throws {RequiredError}
|
|
6289
6892
|
*/
|
|
6290
|
-
|
|
6291
|
-
// verify required parameter '
|
|
6292
|
-
(0, common_1.assertParamExists)('
|
|
6293
|
-
const localVarPath = `/api/users/
|
|
6893
|
+
addFavoritePlayer: (favoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [favoritePlayerRequestBody_1, ...args_1], void 0, function* (favoritePlayerRequestBody, options = {}) {
|
|
6894
|
+
// verify required parameter 'favoritePlayerRequestBody' is not null or undefined
|
|
6895
|
+
(0, common_1.assertParamExists)('addFavoritePlayer', 'favoritePlayerRequestBody', favoritePlayerRequestBody);
|
|
6896
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
6294
6897
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6295
6898
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6296
6899
|
let baseOptions;
|
|
@@ -6307,7 +6910,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6307
6910
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6308
6911
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6309
6912
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6310
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6913
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
6311
6914
|
return {
|
|
6312
6915
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6313
6916
|
options: localVarRequestOptions,
|
|
@@ -6315,26 +6918,31 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6315
6918
|
}),
|
|
6316
6919
|
/**
|
|
6317
6920
|
*
|
|
6921
|
+
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
6318
6922
|
* @param {*} [options] Override http request option.
|
|
6319
6923
|
* @throws {RequiredError}
|
|
6320
6924
|
*/
|
|
6321
|
-
|
|
6322
|
-
|
|
6925
|
+
addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
|
|
6926
|
+
// verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
|
|
6927
|
+
(0, common_1.assertParamExists)('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
|
|
6928
|
+
const localVarPath = `/api/users/addPaymentMethodSetup`;
|
|
6323
6929
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6324
6930
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6325
6931
|
let baseOptions;
|
|
6326
6932
|
if (configuration) {
|
|
6327
6933
|
baseOptions = configuration.baseOptions;
|
|
6328
6934
|
}
|
|
6329
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6935
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6330
6936
|
const localVarHeaderParameter = {};
|
|
6331
6937
|
const localVarQueryParameter = {};
|
|
6332
6938
|
// authentication bearerAuth required
|
|
6333
6939
|
// http bearer authentication required
|
|
6334
6940
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6941
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6335
6942
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6336
6943
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6337
6944
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6945
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
6338
6946
|
return {
|
|
6339
6947
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6340
6948
|
options: localVarRequestOptions,
|
|
@@ -6342,30 +6950,31 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6342
6950
|
}),
|
|
6343
6951
|
/**
|
|
6344
6952
|
*
|
|
6345
|
-
* @param {
|
|
6953
|
+
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
6346
6954
|
* @param {*} [options] Override http request option.
|
|
6347
6955
|
* @throws {RequiredError}
|
|
6348
6956
|
*/
|
|
6349
|
-
|
|
6350
|
-
// verify required parameter '
|
|
6351
|
-
(0, common_1.assertParamExists)('
|
|
6352
|
-
const localVarPath = `/api/users/me/
|
|
6353
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
6957
|
+
changePassword: (changePasswordRequestBody_1, ...args_1) => __awaiter(this, [changePasswordRequestBody_1, ...args_1], void 0, function* (changePasswordRequestBody, options = {}) {
|
|
6958
|
+
// verify required parameter 'changePasswordRequestBody' is not null or undefined
|
|
6959
|
+
(0, common_1.assertParamExists)('changePassword', 'changePasswordRequestBody', changePasswordRequestBody);
|
|
6960
|
+
const localVarPath = `/api/users/me/password`;
|
|
6354
6961
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6355
6962
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6356
6963
|
let baseOptions;
|
|
6357
6964
|
if (configuration) {
|
|
6358
6965
|
baseOptions = configuration.baseOptions;
|
|
6359
6966
|
}
|
|
6360
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6967
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6361
6968
|
const localVarHeaderParameter = {};
|
|
6362
6969
|
const localVarQueryParameter = {};
|
|
6363
6970
|
// authentication bearerAuth required
|
|
6364
6971
|
// http bearer authentication required
|
|
6365
6972
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6973
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6366
6974
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6367
6975
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6368
6976
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6977
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(changePasswordRequestBody, localVarRequestOptions, configuration);
|
|
6369
6978
|
return {
|
|
6370
6979
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6371
6980
|
options: localVarRequestOptions,
|
|
@@ -6373,26 +6982,31 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6373
6982
|
}),
|
|
6374
6983
|
/**
|
|
6375
6984
|
*
|
|
6985
|
+
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
6376
6986
|
* @param {*} [options] Override http request option.
|
|
6377
6987
|
* @throws {RequiredError}
|
|
6378
6988
|
*/
|
|
6379
|
-
|
|
6380
|
-
|
|
6989
|
+
confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
|
|
6990
|
+
// verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
|
|
6991
|
+
(0, common_1.assertParamExists)('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
|
|
6992
|
+
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
6381
6993
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6382
6994
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6383
6995
|
let baseOptions;
|
|
6384
6996
|
if (configuration) {
|
|
6385
6997
|
baseOptions = configuration.baseOptions;
|
|
6386
6998
|
}
|
|
6387
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6999
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6388
7000
|
const localVarHeaderParameter = {};
|
|
6389
7001
|
const localVarQueryParameter = {};
|
|
6390
7002
|
// authentication bearerAuth required
|
|
6391
7003
|
// http bearer authentication required
|
|
6392
7004
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7005
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6393
7006
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6394
7007
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6395
7008
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7009
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
6396
7010
|
return {
|
|
6397
7011
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6398
7012
|
options: localVarRequestOptions,
|
|
@@ -6403,8 +7017,8 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6403
7017
|
* @param {*} [options] Override http request option.
|
|
6404
7018
|
* @throws {RequiredError}
|
|
6405
7019
|
*/
|
|
6406
|
-
|
|
6407
|
-
const localVarPath = `/api/users
|
|
7020
|
+
getAllUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7021
|
+
const localVarPath = `/api/users`;
|
|
6408
7022
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6409
7023
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6410
7024
|
let baseOptions;
|
|
@@ -6427,11 +7041,15 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6427
7041
|
}),
|
|
6428
7042
|
/**
|
|
6429
7043
|
*
|
|
7044
|
+
* @param {string} bookingId
|
|
6430
7045
|
* @param {*} [options] Override http request option.
|
|
6431
7046
|
* @throws {RequiredError}
|
|
6432
7047
|
*/
|
|
6433
|
-
|
|
6434
|
-
|
|
7048
|
+
getBookingDetail: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
7049
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
7050
|
+
(0, common_1.assertParamExists)('getBookingDetail', 'bookingId', bookingId);
|
|
7051
|
+
const localVarPath = `/api/users/me/booking-detail/{bookingId}`
|
|
7052
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
6435
7053
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6436
7054
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6437
7055
|
let baseOptions;
|
|
@@ -6457,8 +7075,8 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6457
7075
|
* @param {*} [options] Override http request option.
|
|
6458
7076
|
* @throws {RequiredError}
|
|
6459
7077
|
*/
|
|
6460
|
-
|
|
6461
|
-
const localVarPath = `/api/users/me/
|
|
7078
|
+
getFavoriteClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7079
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
6462
7080
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6463
7081
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6464
7082
|
let baseOptions;
|
|
@@ -6484,8 +7102,8 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6484
7102
|
* @param {*} [options] Override http request option.
|
|
6485
7103
|
* @throws {RequiredError}
|
|
6486
7104
|
*/
|
|
6487
|
-
|
|
6488
|
-
const localVarPath = `/api/users/me`;
|
|
7105
|
+
getFavoritesPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7106
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
6489
7107
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6490
7108
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6491
7109
|
let baseOptions;
|
|
@@ -6508,13 +7126,11 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6508
7126
|
}),
|
|
6509
7127
|
/**
|
|
6510
7128
|
*
|
|
6511
|
-
* @param {number} [radiusInKm]
|
|
6512
|
-
* @param {number} [limit]
|
|
6513
7129
|
* @param {*} [options] Override http request option.
|
|
6514
7130
|
* @throws {RequiredError}
|
|
6515
7131
|
*/
|
|
6516
|
-
|
|
6517
|
-
const localVarPath = `/api/users/me/
|
|
7132
|
+
getFrequentlyPlayedWith: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7133
|
+
const localVarPath = `/api/users/me/frequentlyPlayedWith`;
|
|
6518
7134
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6519
7135
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6520
7136
|
let baseOptions;
|
|
@@ -6527,12 +7143,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6527
7143
|
// authentication bearerAuth required
|
|
6528
7144
|
// http bearer authentication required
|
|
6529
7145
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6530
|
-
if (radiusInKm !== undefined) {
|
|
6531
|
-
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
6532
|
-
}
|
|
6533
|
-
if (limit !== undefined) {
|
|
6534
|
-
localVarQueryParameter['limit'] = limit;
|
|
6535
|
-
}
|
|
6536
7146
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6537
7147
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6538
7148
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6543,15 +7153,11 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6543
7153
|
}),
|
|
6544
7154
|
/**
|
|
6545
7155
|
*
|
|
6546
|
-
* @param {number} [latitude]
|
|
6547
|
-
* @param {number} [longitude]
|
|
6548
|
-
* @param {number} [radiusInKm]
|
|
6549
|
-
* @param {number} [limit]
|
|
6550
7156
|
* @param {*} [options] Override http request option.
|
|
6551
7157
|
* @throws {RequiredError}
|
|
6552
7158
|
*/
|
|
6553
|
-
|
|
6554
|
-
const localVarPath = `/api/users/
|
|
7159
|
+
getFrequentlyVisitedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7160
|
+
const localVarPath = `/api/users/me/frequentlyVisitedClub`;
|
|
6555
7161
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6556
7162
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6557
7163
|
let baseOptions;
|
|
@@ -6561,18 +7167,36 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6561
7167
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6562
7168
|
const localVarHeaderParameter = {};
|
|
6563
7169
|
const localVarQueryParameter = {};
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
}
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
7170
|
+
// authentication bearerAuth required
|
|
7171
|
+
// http bearer authentication required
|
|
7172
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7173
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7174
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7175
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7176
|
+
return {
|
|
7177
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7178
|
+
options: localVarRequestOptions,
|
|
7179
|
+
};
|
|
7180
|
+
}),
|
|
7181
|
+
/**
|
|
7182
|
+
*
|
|
7183
|
+
* @param {*} [options] Override http request option.
|
|
7184
|
+
* @throws {RequiredError}
|
|
7185
|
+
*/
|
|
7186
|
+
getMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7187
|
+
const localVarPath = `/api/users/me`;
|
|
7188
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7189
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7190
|
+
let baseOptions;
|
|
7191
|
+
if (configuration) {
|
|
7192
|
+
baseOptions = configuration.baseOptions;
|
|
6575
7193
|
}
|
|
7194
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7195
|
+
const localVarHeaderParameter = {};
|
|
7196
|
+
const localVarQueryParameter = {};
|
|
7197
|
+
// authentication bearerAuth required
|
|
7198
|
+
// http bearer authentication required
|
|
7199
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6576
7200
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6577
7201
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6578
7202
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6588,8 +7212,8 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6588
7212
|
* @param {*} [options] Override http request option.
|
|
6589
7213
|
* @throws {RequiredError}
|
|
6590
7214
|
*/
|
|
6591
|
-
|
|
6592
|
-
const localVarPath = `/api/users/me/nearest-
|
|
7215
|
+
getNearestClubs: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
|
|
7216
|
+
const localVarPath = `/api/users/me/nearest-clubs`;
|
|
6593
7217
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6594
7218
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6595
7219
|
let baseOptions;
|
|
@@ -6625,8 +7249,8 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6625
7249
|
* @param {*} [options] Override http request option.
|
|
6626
7250
|
* @throws {RequiredError}
|
|
6627
7251
|
*/
|
|
6628
|
-
|
|
6629
|
-
const localVarPath = `/api/users/nearest-
|
|
7252
|
+
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 = {}) {
|
|
7253
|
+
const localVarPath = `/api/users/nearest-clubs/coordinates`;
|
|
6630
7254
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6631
7255
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6632
7256
|
let baseOptions;
|
|
@@ -6658,13 +7282,13 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6658
7282
|
}),
|
|
6659
7283
|
/**
|
|
6660
7284
|
*
|
|
7285
|
+
* @param {number} [radiusInKm]
|
|
6661
7286
|
* @param {number} [limit]
|
|
6662
|
-
* @param {number} [skip]
|
|
6663
7287
|
* @param {*} [options] Override http request option.
|
|
6664
7288
|
* @throws {RequiredError}
|
|
6665
7289
|
*/
|
|
6666
|
-
|
|
6667
|
-
const localVarPath = `/api/users/me/
|
|
7290
|
+
getNearestUsers: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
|
|
7291
|
+
const localVarPath = `/api/users/me/nearest-players`;
|
|
6668
7292
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6669
7293
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6670
7294
|
let baseOptions;
|
|
@@ -6677,12 +7301,12 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6677
7301
|
// authentication bearerAuth required
|
|
6678
7302
|
// http bearer authentication required
|
|
6679
7303
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7304
|
+
if (radiusInKm !== undefined) {
|
|
7305
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7306
|
+
}
|
|
6680
7307
|
if (limit !== undefined) {
|
|
6681
7308
|
localVarQueryParameter['limit'] = limit;
|
|
6682
7309
|
}
|
|
6683
|
-
if (skip !== undefined) {
|
|
6684
|
-
localVarQueryParameter['skip'] = skip;
|
|
6685
|
-
}
|
|
6686
7310
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6687
7311
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6688
7312
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6693,15 +7317,15 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6693
7317
|
}),
|
|
6694
7318
|
/**
|
|
6695
7319
|
*
|
|
6696
|
-
* @param {
|
|
6697
|
-
* @param {
|
|
6698
|
-
* @
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
7320
|
+
* @param {number} [latitude]
|
|
7321
|
+
* @param {number} [longitude]
|
|
7322
|
+
* @param {number} [radiusInKm]
|
|
7323
|
+
* @param {number} [limit]
|
|
7324
|
+
* @param {*} [options] Override http request option.
|
|
7325
|
+
* @throws {RequiredError}
|
|
7326
|
+
*/
|
|
7327
|
+
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 = {}) {
|
|
7328
|
+
const localVarPath = `/api/users/nearest-players/coordinates`;
|
|
6705
7329
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6706
7330
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6707
7331
|
let baseOptions;
|
|
@@ -6711,9 +7335,18 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6711
7335
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6712
7336
|
const localVarHeaderParameter = {};
|
|
6713
7337
|
const localVarQueryParameter = {};
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
7338
|
+
if (latitude !== undefined) {
|
|
7339
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
7340
|
+
}
|
|
7341
|
+
if (longitude !== undefined) {
|
|
7342
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
7343
|
+
}
|
|
7344
|
+
if (radiusInKm !== undefined) {
|
|
7345
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7346
|
+
}
|
|
7347
|
+
if (limit !== undefined) {
|
|
7348
|
+
localVarQueryParameter['limit'] = limit;
|
|
7349
|
+
}
|
|
6717
7350
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6718
7351
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6719
7352
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6724,11 +7357,13 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6724
7357
|
}),
|
|
6725
7358
|
/**
|
|
6726
7359
|
*
|
|
7360
|
+
* @param {number} [limit]
|
|
7361
|
+
* @param {number} [skip]
|
|
6727
7362
|
* @param {*} [options] Override http request option.
|
|
6728
7363
|
* @throws {RequiredError}
|
|
6729
7364
|
*/
|
|
6730
|
-
|
|
6731
|
-
const localVarPath = `/api/users/me/
|
|
7365
|
+
getUserBookings: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
7366
|
+
const localVarPath = `/api/users/me/bookings`;
|
|
6732
7367
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6733
7368
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6734
7369
|
let baseOptions;
|
|
@@ -6741,6 +7376,12 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6741
7376
|
// authentication bearerAuth required
|
|
6742
7377
|
// http bearer authentication required
|
|
6743
7378
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7379
|
+
if (limit !== undefined) {
|
|
7380
|
+
localVarQueryParameter['limit'] = limit;
|
|
7381
|
+
}
|
|
7382
|
+
if (skip !== undefined) {
|
|
7383
|
+
localVarQueryParameter['skip'] = skip;
|
|
7384
|
+
}
|
|
6744
7385
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6745
7386
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6746
7387
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6751,31 +7392,30 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6751
7392
|
}),
|
|
6752
7393
|
/**
|
|
6753
7394
|
*
|
|
6754
|
-
* @param {
|
|
7395
|
+
* @param {string} id
|
|
6755
7396
|
* @param {*} [options] Override http request option.
|
|
6756
7397
|
* @throws {RequiredError}
|
|
6757
7398
|
*/
|
|
6758
|
-
|
|
6759
|
-
// verify required parameter '
|
|
6760
|
-
(0, common_1.assertParamExists)('
|
|
6761
|
-
const localVarPath = `/api/users/
|
|
7399
|
+
getUserProfileById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
7400
|
+
// verify required parameter 'id' is not null or undefined
|
|
7401
|
+
(0, common_1.assertParamExists)('getUserProfileById', 'id', id);
|
|
7402
|
+
const localVarPath = `/api/users/profile/{id}`
|
|
7403
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6762
7404
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6763
7405
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6764
7406
|
let baseOptions;
|
|
6765
7407
|
if (configuration) {
|
|
6766
7408
|
baseOptions = configuration.baseOptions;
|
|
6767
7409
|
}
|
|
6768
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
7410
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6769
7411
|
const localVarHeaderParameter = {};
|
|
6770
7412
|
const localVarQueryParameter = {};
|
|
6771
7413
|
// authentication bearerAuth required
|
|
6772
7414
|
// http bearer authentication required
|
|
6773
7415
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6774
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6775
7416
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6776
7417
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6777
7418
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6778
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscriptionSessionRequestBody, localVarRequestOptions, configuration);
|
|
6779
7419
|
return {
|
|
6780
7420
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6781
7421
|
options: localVarRequestOptions,
|
|
@@ -6932,14 +7572,11 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6932
7572
|
}),
|
|
6933
7573
|
/**
|
|
6934
7574
|
*
|
|
6935
|
-
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
6936
7575
|
* @param {*} [options] Override http request option.
|
|
6937
7576
|
* @throws {RequiredError}
|
|
6938
7577
|
*/
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
(0, common_1.assertParamExists)('requestPasswordReset', 'passwordResetRequestBody', passwordResetRequestBody);
|
|
6942
|
-
const localVarPath = `/api/users/me/request-password-rest`;
|
|
7578
|
+
requestEmailVerification: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7579
|
+
const localVarPath = `/api/users/me/request-email-verification`;
|
|
6943
7580
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6944
7581
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6945
7582
|
let baseOptions;
|
|
@@ -6949,11 +7586,12 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6949
7586
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6950
7587
|
const localVarHeaderParameter = {};
|
|
6951
7588
|
const localVarQueryParameter = {};
|
|
6952
|
-
|
|
7589
|
+
// authentication bearerAuth required
|
|
7590
|
+
// http bearer authentication required
|
|
7591
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6953
7592
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6954
7593
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6955
7594
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6956
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(passwordResetRequestBody, localVarRequestOptions, configuration);
|
|
6957
7595
|
return {
|
|
6958
7596
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6959
7597
|
options: localVarRequestOptions,
|
|
@@ -6961,19 +7599,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6961
7599
|
}),
|
|
6962
7600
|
/**
|
|
6963
7601
|
*
|
|
6964
|
-
* @param {
|
|
6965
|
-
* @param {string} subscriptionId
|
|
7602
|
+
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
6966
7603
|
* @param {*} [options] Override http request option.
|
|
6967
7604
|
* @throws {RequiredError}
|
|
6968
7605
|
*/
|
|
6969
|
-
|
|
6970
|
-
// verify required parameter '
|
|
6971
|
-
(0, common_1.assertParamExists)('
|
|
6972
|
-
|
|
6973
|
-
(0, common_1.assertParamExists)('resumeSubscription', 'subscriptionId', subscriptionId);
|
|
6974
|
-
const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
6975
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6976
|
-
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
7606
|
+
requestPasswordReset: (passwordResetRequestBody_1, ...args_1) => __awaiter(this, [passwordResetRequestBody_1, ...args_1], void 0, function* (passwordResetRequestBody, options = {}) {
|
|
7607
|
+
// verify required parameter 'passwordResetRequestBody' is not null or undefined
|
|
7608
|
+
(0, common_1.assertParamExists)('requestPasswordReset', 'passwordResetRequestBody', passwordResetRequestBody);
|
|
7609
|
+
const localVarPath = `/api/users/request-password-reset`;
|
|
6977
7610
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6978
7611
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6979
7612
|
let baseOptions;
|
|
@@ -6983,12 +7616,11 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6983
7616
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6984
7617
|
const localVarHeaderParameter = {};
|
|
6985
7618
|
const localVarQueryParameter = {};
|
|
6986
|
-
|
|
6987
|
-
// http bearer authentication required
|
|
6988
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7619
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6989
7620
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6990
7621
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6991
7622
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7623
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(passwordResetRequestBody, localVarRequestOptions, configuration);
|
|
6992
7624
|
return {
|
|
6993
7625
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6994
7626
|
options: localVarRequestOptions,
|
|
@@ -6996,14 +7628,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6996
7628
|
}),
|
|
6997
7629
|
/**
|
|
6998
7630
|
*
|
|
6999
|
-
* @param {
|
|
7631
|
+
* @param {ResetPasswordRequest} resetPasswordRequest
|
|
7000
7632
|
* @param {*} [options] Override http request option.
|
|
7001
7633
|
* @throws {RequiredError}
|
|
7002
7634
|
*/
|
|
7003
|
-
|
|
7004
|
-
// verify required parameter '
|
|
7005
|
-
(0, common_1.assertParamExists)('
|
|
7006
|
-
const localVarPath = `/api/users/
|
|
7635
|
+
resetPassword: (resetPasswordRequest_1, ...args_1) => __awaiter(this, [resetPasswordRequest_1, ...args_1], void 0, function* (resetPasswordRequest, options = {}) {
|
|
7636
|
+
// verify required parameter 'resetPasswordRequest' is not null or undefined
|
|
7637
|
+
(0, common_1.assertParamExists)('resetPassword', 'resetPasswordRequest', resetPasswordRequest);
|
|
7638
|
+
const localVarPath = `/api/users/reset-password`;
|
|
7007
7639
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7008
7640
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7009
7641
|
let baseOptions;
|
|
@@ -7013,14 +7645,11 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7013
7645
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7014
7646
|
const localVarHeaderParameter = {};
|
|
7015
7647
|
const localVarQueryParameter = {};
|
|
7016
|
-
// authentication bearerAuth required
|
|
7017
|
-
// http bearer authentication required
|
|
7018
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7019
7648
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7020
7649
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7021
7650
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7022
7651
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7023
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
7652
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resetPasswordRequest, localVarRequestOptions, configuration);
|
|
7024
7653
|
return {
|
|
7025
7654
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7026
7655
|
options: localVarRequestOptions,
|
|
@@ -7028,14 +7657,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7028
7657
|
}),
|
|
7029
7658
|
/**
|
|
7030
7659
|
*
|
|
7031
|
-
* @param {
|
|
7660
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
7032
7661
|
* @param {*} [options] Override http request option.
|
|
7033
7662
|
* @throws {RequiredError}
|
|
7034
7663
|
*/
|
|
7035
|
-
|
|
7036
|
-
// verify required parameter '
|
|
7037
|
-
(0, common_1.assertParamExists)('
|
|
7038
|
-
const localVarPath = `/api/users/
|
|
7664
|
+
setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
7665
|
+
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
7666
|
+
(0, common_1.assertParamExists)('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
7667
|
+
const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
|
|
7039
7668
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7040
7669
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7041
7670
|
let baseOptions;
|
|
@@ -7045,11 +7674,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7045
7674
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7046
7675
|
const localVarHeaderParameter = {};
|
|
7047
7676
|
const localVarQueryParameter = {};
|
|
7677
|
+
// authentication bearerAuth required
|
|
7678
|
+
// http bearer authentication required
|
|
7679
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7048
7680
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7049
7681
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7050
7682
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7051
7683
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7052
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
7684
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
7053
7685
|
return {
|
|
7054
7686
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7055
7687
|
options: localVarRequestOptions,
|
|
@@ -7057,14 +7689,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7057
7689
|
}),
|
|
7058
7690
|
/**
|
|
7059
7691
|
*
|
|
7060
|
-
* @param {
|
|
7692
|
+
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
7061
7693
|
* @param {*} [options] Override http request option.
|
|
7062
7694
|
* @throws {RequiredError}
|
|
7063
7695
|
*/
|
|
7064
|
-
|
|
7065
|
-
// verify required parameter '
|
|
7066
|
-
(0, common_1.assertParamExists)('
|
|
7067
|
-
const localVarPath = `/api/users/
|
|
7696
|
+
signInOrSignUpWithGoogle: (googleAuthRequestBody_1, ...args_1) => __awaiter(this, [googleAuthRequestBody_1, ...args_1], void 0, function* (googleAuthRequestBody, options = {}) {
|
|
7697
|
+
// verify required parameter 'googleAuthRequestBody' is not null or undefined
|
|
7698
|
+
(0, common_1.assertParamExists)('signInOrSignUpWithGoogle', 'googleAuthRequestBody', googleAuthRequestBody);
|
|
7699
|
+
const localVarPath = `/api/users/googleSignin`;
|
|
7068
7700
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7069
7701
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7070
7702
|
let baseOptions;
|
|
@@ -7074,14 +7706,11 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7074
7706
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7075
7707
|
const localVarHeaderParameter = {};
|
|
7076
7708
|
const localVarQueryParameter = {};
|
|
7077
|
-
// authentication bearerAuth required
|
|
7078
|
-
// http bearer authentication required
|
|
7079
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7080
7709
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7081
7710
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7082
7711
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7083
7712
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7084
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
7713
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(googleAuthRequestBody, localVarRequestOptions, configuration);
|
|
7085
7714
|
return {
|
|
7086
7715
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7087
7716
|
options: localVarRequestOptions,
|
|
@@ -7215,6 +7844,35 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7215
7844
|
options: localVarRequestOptions,
|
|
7216
7845
|
};
|
|
7217
7846
|
}),
|
|
7847
|
+
/**
|
|
7848
|
+
*
|
|
7849
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
7850
|
+
* @param {*} [options] Override http request option.
|
|
7851
|
+
* @throws {RequiredError}
|
|
7852
|
+
*/
|
|
7853
|
+
verifyEmail: (verifyEmailRequest_1, ...args_1) => __awaiter(this, [verifyEmailRequest_1, ...args_1], void 0, function* (verifyEmailRequest, options = {}) {
|
|
7854
|
+
// verify required parameter 'verifyEmailRequest' is not null or undefined
|
|
7855
|
+
(0, common_1.assertParamExists)('verifyEmail', 'verifyEmailRequest', verifyEmailRequest);
|
|
7856
|
+
const localVarPath = `/api/users/verify-email`;
|
|
7857
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7858
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7859
|
+
let baseOptions;
|
|
7860
|
+
if (configuration) {
|
|
7861
|
+
baseOptions = configuration.baseOptions;
|
|
7862
|
+
}
|
|
7863
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7864
|
+
const localVarHeaderParameter = {};
|
|
7865
|
+
const localVarQueryParameter = {};
|
|
7866
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7867
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7868
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7869
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7870
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyEmailRequest, localVarRequestOptions, configuration);
|
|
7871
|
+
return {
|
|
7872
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7873
|
+
options: localVarRequestOptions,
|
|
7874
|
+
};
|
|
7875
|
+
}),
|
|
7218
7876
|
};
|
|
7219
7877
|
};
|
|
7220
7878
|
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
@@ -7270,22 +7928,6 @@ const UsersApiFp = function (configuration) {
|
|
|
7270
7928
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7271
7929
|
});
|
|
7272
7930
|
},
|
|
7273
|
-
/**
|
|
7274
|
-
*
|
|
7275
|
-
* @param {string} clubId
|
|
7276
|
-
* @param {string} subscriptionId
|
|
7277
|
-
* @param {*} [options] Override http request option.
|
|
7278
|
-
* @throws {RequiredError}
|
|
7279
|
-
*/
|
|
7280
|
-
cancelSubscription(clubId, subscriptionId, options) {
|
|
7281
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7282
|
-
var _a, _b, _c;
|
|
7283
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSubscription(clubId, subscriptionId, options);
|
|
7284
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7285
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.cancelSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7286
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7287
|
-
});
|
|
7288
|
-
},
|
|
7289
7931
|
/**
|
|
7290
7932
|
*
|
|
7291
7933
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -7514,35 +8156,6 @@ const UsersApiFp = function (configuration) {
|
|
|
7514
8156
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7515
8157
|
});
|
|
7516
8158
|
},
|
|
7517
|
-
/**
|
|
7518
|
-
*
|
|
7519
|
-
* @param {*} [options] Override http request option.
|
|
7520
|
-
* @throws {RequiredError}
|
|
7521
|
-
*/
|
|
7522
|
-
getUserSubscriptions(options) {
|
|
7523
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7524
|
-
var _a, _b, _c;
|
|
7525
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserSubscriptions(options);
|
|
7526
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7527
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7528
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7529
|
-
});
|
|
7530
|
-
},
|
|
7531
|
-
/**
|
|
7532
|
-
*
|
|
7533
|
-
* @param {SubscriptionSessionRequestBody} subscriptionSessionRequestBody
|
|
7534
|
-
* @param {*} [options] Override http request option.
|
|
7535
|
-
* @throws {RequiredError}
|
|
7536
|
-
*/
|
|
7537
|
-
initiateSubscriptionSession(subscriptionSessionRequestBody, options) {
|
|
7538
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7539
|
-
var _a, _b, _c;
|
|
7540
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateSubscriptionSession(subscriptionSessionRequestBody, options);
|
|
7541
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7542
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.initiateSubscriptionSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7543
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7544
|
-
});
|
|
7545
|
-
},
|
|
7546
8159
|
/**
|
|
7547
8160
|
*
|
|
7548
8161
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -7620,77 +8233,75 @@ const UsersApiFp = function (configuration) {
|
|
|
7620
8233
|
},
|
|
7621
8234
|
/**
|
|
7622
8235
|
*
|
|
7623
|
-
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
7624
8236
|
* @param {*} [options] Override http request option.
|
|
7625
8237
|
* @throws {RequiredError}
|
|
7626
8238
|
*/
|
|
7627
|
-
|
|
8239
|
+
requestEmailVerification(options) {
|
|
7628
8240
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7629
8241
|
var _a, _b, _c;
|
|
7630
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8242
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestEmailVerification(options);
|
|
7631
8243
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7632
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.
|
|
8244
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.requestEmailVerification']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7633
8245
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7634
8246
|
});
|
|
7635
8247
|
},
|
|
7636
8248
|
/**
|
|
7637
8249
|
*
|
|
7638
|
-
* @param {
|
|
7639
|
-
* @param {string} subscriptionId
|
|
8250
|
+
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
7640
8251
|
* @param {*} [options] Override http request option.
|
|
7641
8252
|
* @throws {RequiredError}
|
|
7642
8253
|
*/
|
|
7643
|
-
|
|
8254
|
+
requestPasswordReset(passwordResetRequestBody, options) {
|
|
7644
8255
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7645
8256
|
var _a, _b, _c;
|
|
7646
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8257
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestPasswordReset(passwordResetRequestBody, options);
|
|
7647
8258
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7648
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.
|
|
8259
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.requestPasswordReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7649
8260
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7650
8261
|
});
|
|
7651
8262
|
},
|
|
7652
8263
|
/**
|
|
7653
8264
|
*
|
|
7654
|
-
* @param {
|
|
8265
|
+
* @param {ResetPasswordRequest} resetPasswordRequest
|
|
7655
8266
|
* @param {*} [options] Override http request option.
|
|
7656
8267
|
* @throws {RequiredError}
|
|
7657
8268
|
*/
|
|
7658
|
-
|
|
8269
|
+
resetPassword(resetPasswordRequest, options) {
|
|
7659
8270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7660
8271
|
var _a, _b, _c;
|
|
7661
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8272
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resetPassword(resetPasswordRequest, options);
|
|
7662
8273
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7663
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.
|
|
8274
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.resetPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7664
8275
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7665
8276
|
});
|
|
7666
8277
|
},
|
|
7667
8278
|
/**
|
|
7668
8279
|
*
|
|
7669
|
-
* @param {
|
|
8280
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
7670
8281
|
* @param {*} [options] Override http request option.
|
|
7671
8282
|
* @throws {RequiredError}
|
|
7672
8283
|
*/
|
|
7673
|
-
|
|
8284
|
+
setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
7674
8285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7675
8286
|
var _a, _b, _c;
|
|
7676
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8287
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
7677
8288
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7678
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.
|
|
8289
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7679
8290
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7680
8291
|
});
|
|
7681
8292
|
},
|
|
7682
8293
|
/**
|
|
7683
8294
|
*
|
|
7684
|
-
* @param {
|
|
8295
|
+
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
7685
8296
|
* @param {*} [options] Override http request option.
|
|
7686
8297
|
* @throws {RequiredError}
|
|
7687
8298
|
*/
|
|
7688
|
-
|
|
8299
|
+
signInOrSignUpWithGoogle(googleAuthRequestBody, options) {
|
|
7689
8300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7690
8301
|
var _a, _b, _c;
|
|
7691
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8302
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.signInOrSignUpWithGoogle(googleAuthRequestBody, options);
|
|
7692
8303
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7693
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.
|
|
8304
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.signInOrSignUpWithGoogle']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7694
8305
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7695
8306
|
});
|
|
7696
8307
|
},
|
|
@@ -7754,6 +8365,21 @@ const UsersApiFp = function (configuration) {
|
|
|
7754
8365
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7755
8366
|
});
|
|
7756
8367
|
},
|
|
8368
|
+
/**
|
|
8369
|
+
*
|
|
8370
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
8371
|
+
* @param {*} [options] Override http request option.
|
|
8372
|
+
* @throws {RequiredError}
|
|
8373
|
+
*/
|
|
8374
|
+
verifyEmail(verifyEmailRequest, options) {
|
|
8375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8376
|
+
var _a, _b, _c;
|
|
8377
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyEmail(verifyEmailRequest, options);
|
|
8378
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8379
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.verifyEmail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8380
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8381
|
+
});
|
|
8382
|
+
},
|
|
7757
8383
|
};
|
|
7758
8384
|
};
|
|
7759
8385
|
exports.UsersApiFp = UsersApiFp;
|
|
@@ -7791,15 +8417,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7791
8417
|
addPaymentMethodSetup(requestParameters, options) {
|
|
7792
8418
|
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
7793
8419
|
},
|
|
7794
|
-
/**
|
|
7795
|
-
*
|
|
7796
|
-
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
7797
|
-
* @param {*} [options] Override http request option.
|
|
7798
|
-
* @throws {RequiredError}
|
|
7799
|
-
*/
|
|
7800
|
-
cancelSubscription(requestParameters, options) {
|
|
7801
|
-
return localVarFp.cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
7802
|
-
},
|
|
7803
8420
|
/**
|
|
7804
8421
|
*
|
|
7805
8422
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -7929,23 +8546,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7929
8546
|
getUserProfileById(requestParameters, options) {
|
|
7930
8547
|
return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7931
8548
|
},
|
|
7932
|
-
/**
|
|
7933
|
-
*
|
|
7934
|
-
* @param {*} [options] Override http request option.
|
|
7935
|
-
* @throws {RequiredError}
|
|
7936
|
-
*/
|
|
7937
|
-
getUserSubscriptions(options) {
|
|
7938
|
-
return localVarFp.getUserSubscriptions(options).then((request) => request(axios, basePath));
|
|
7939
|
-
},
|
|
7940
|
-
/**
|
|
7941
|
-
*
|
|
7942
|
-
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
7943
|
-
* @param {*} [options] Override http request option.
|
|
7944
|
-
* @throws {RequiredError}
|
|
7945
|
-
*/
|
|
7946
|
-
initiateSubscriptionSession(requestParameters, options) {
|
|
7947
|
-
return localVarFp.initiateSubscriptionSession(requestParameters.subscriptionSessionRequestBody, options).then((request) => request(axios, basePath));
|
|
7948
|
-
},
|
|
7949
8549
|
/**
|
|
7950
8550
|
*
|
|
7951
8551
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -7993,48 +8593,47 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7993
8593
|
},
|
|
7994
8594
|
/**
|
|
7995
8595
|
*
|
|
7996
|
-
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
7997
8596
|
* @param {*} [options] Override http request option.
|
|
7998
8597
|
* @throws {RequiredError}
|
|
7999
8598
|
*/
|
|
8000
|
-
|
|
8001
|
-
return localVarFp.
|
|
8599
|
+
requestEmailVerification(options) {
|
|
8600
|
+
return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
|
|
8002
8601
|
},
|
|
8003
8602
|
/**
|
|
8004
8603
|
*
|
|
8005
|
-
* @param {
|
|
8604
|
+
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
8006
8605
|
* @param {*} [options] Override http request option.
|
|
8007
8606
|
* @throws {RequiredError}
|
|
8008
8607
|
*/
|
|
8009
|
-
|
|
8010
|
-
return localVarFp.
|
|
8608
|
+
requestPasswordReset(requestParameters, options) {
|
|
8609
|
+
return localVarFp.requestPasswordReset(requestParameters.passwordResetRequestBody, options).then((request) => request(axios, basePath));
|
|
8011
8610
|
},
|
|
8012
8611
|
/**
|
|
8013
8612
|
*
|
|
8014
|
-
* @param {
|
|
8613
|
+
* @param {UsersApiResetPasswordRequest} requestParameters Request parameters.
|
|
8015
8614
|
* @param {*} [options] Override http request option.
|
|
8016
8615
|
* @throws {RequiredError}
|
|
8017
8616
|
*/
|
|
8018
|
-
|
|
8019
|
-
return localVarFp.
|
|
8617
|
+
resetPassword(requestParameters, options) {
|
|
8618
|
+
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
8020
8619
|
},
|
|
8021
8620
|
/**
|
|
8022
8621
|
*
|
|
8023
|
-
* @param {
|
|
8622
|
+
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
8024
8623
|
* @param {*} [options] Override http request option.
|
|
8025
8624
|
* @throws {RequiredError}
|
|
8026
8625
|
*/
|
|
8027
|
-
|
|
8028
|
-
return localVarFp.
|
|
8626
|
+
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
8627
|
+
return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
8029
8628
|
},
|
|
8030
8629
|
/**
|
|
8031
8630
|
*
|
|
8032
|
-
* @param {
|
|
8631
|
+
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
8033
8632
|
* @param {*} [options] Override http request option.
|
|
8034
8633
|
* @throws {RequiredError}
|
|
8035
8634
|
*/
|
|
8036
|
-
|
|
8037
|
-
return localVarFp.
|
|
8635
|
+
signInOrSignUpWithGoogle(requestParameters, options) {
|
|
8636
|
+
return localVarFp.signInOrSignUpWithGoogle(requestParameters.googleAuthRequestBody, options).then((request) => request(axios, basePath));
|
|
8038
8637
|
},
|
|
8039
8638
|
/**
|
|
8040
8639
|
*
|
|
@@ -8072,6 +8671,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8072
8671
|
updateProfilePicture(requestParameters, options) {
|
|
8073
8672
|
return localVarFp.updateProfilePicture(requestParameters.profilePictureUpdateRequestBody, options).then((request) => request(axios, basePath));
|
|
8074
8673
|
},
|
|
8674
|
+
/**
|
|
8675
|
+
*
|
|
8676
|
+
* @param {UsersApiVerifyEmailRequest} requestParameters Request parameters.
|
|
8677
|
+
* @param {*} [options] Override http request option.
|
|
8678
|
+
* @throws {RequiredError}
|
|
8679
|
+
*/
|
|
8680
|
+
verifyEmail(requestParameters, options) {
|
|
8681
|
+
return localVarFp.verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
8682
|
+
},
|
|
8075
8683
|
};
|
|
8076
8684
|
};
|
|
8077
8685
|
exports.UsersApiFactory = UsersApiFactory;
|
|
@@ -8112,16 +8720,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8112
8720
|
addPaymentMethodSetup(requestParameters, options) {
|
|
8113
8721
|
return (0, exports.UsersApiFp)(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8114
8722
|
}
|
|
8115
|
-
/**
|
|
8116
|
-
*
|
|
8117
|
-
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
8118
|
-
* @param {*} [options] Override http request option.
|
|
8119
|
-
* @throws {RequiredError}
|
|
8120
|
-
* @memberof UsersApi
|
|
8121
|
-
*/
|
|
8122
|
-
cancelSubscription(requestParameters, options) {
|
|
8123
|
-
return (0, exports.UsersApiFp)(this.configuration).cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
8124
|
-
}
|
|
8125
8723
|
/**
|
|
8126
8724
|
*
|
|
8127
8725
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -8266,25 +8864,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8266
8864
|
getUserProfileById(requestParameters, options) {
|
|
8267
8865
|
return (0, exports.UsersApiFp)(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
8268
8866
|
}
|
|
8269
|
-
/**
|
|
8270
|
-
*
|
|
8271
|
-
* @param {*} [options] Override http request option.
|
|
8272
|
-
* @throws {RequiredError}
|
|
8273
|
-
* @memberof UsersApi
|
|
8274
|
-
*/
|
|
8275
|
-
getUserSubscriptions(options) {
|
|
8276
|
-
return (0, exports.UsersApiFp)(this.configuration).getUserSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
8277
|
-
}
|
|
8278
|
-
/**
|
|
8279
|
-
*
|
|
8280
|
-
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
8281
|
-
* @param {*} [options] Override http request option.
|
|
8282
|
-
* @throws {RequiredError}
|
|
8283
|
-
* @memberof UsersApi
|
|
8284
|
-
*/
|
|
8285
|
-
initiateSubscriptionSession(requestParameters, options) {
|
|
8286
|
-
return (0, exports.UsersApiFp)(this.configuration).initiateSubscriptionSession(requestParameters.subscriptionSessionRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8287
|
-
}
|
|
8288
8867
|
/**
|
|
8289
8868
|
*
|
|
8290
8869
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -8337,53 +8916,52 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8337
8916
|
}
|
|
8338
8917
|
/**
|
|
8339
8918
|
*
|
|
8340
|
-
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
8341
8919
|
* @param {*} [options] Override http request option.
|
|
8342
8920
|
* @throws {RequiredError}
|
|
8343
8921
|
* @memberof UsersApi
|
|
8344
8922
|
*/
|
|
8345
|
-
|
|
8346
|
-
return (0, exports.UsersApiFp)(this.configuration).
|
|
8923
|
+
requestEmailVerification(options) {
|
|
8924
|
+
return (0, exports.UsersApiFp)(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
|
|
8347
8925
|
}
|
|
8348
8926
|
/**
|
|
8349
8927
|
*
|
|
8350
|
-
* @param {
|
|
8928
|
+
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
8351
8929
|
* @param {*} [options] Override http request option.
|
|
8352
8930
|
* @throws {RequiredError}
|
|
8353
8931
|
* @memberof UsersApi
|
|
8354
8932
|
*/
|
|
8355
|
-
|
|
8356
|
-
return (0, exports.UsersApiFp)(this.configuration).
|
|
8933
|
+
requestPasswordReset(requestParameters, options) {
|
|
8934
|
+
return (0, exports.UsersApiFp)(this.configuration).requestPasswordReset(requestParameters.passwordResetRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8357
8935
|
}
|
|
8358
8936
|
/**
|
|
8359
8937
|
*
|
|
8360
|
-
* @param {
|
|
8938
|
+
* @param {UsersApiResetPasswordRequest} requestParameters Request parameters.
|
|
8361
8939
|
* @param {*} [options] Override http request option.
|
|
8362
8940
|
* @throws {RequiredError}
|
|
8363
8941
|
* @memberof UsersApi
|
|
8364
8942
|
*/
|
|
8365
|
-
|
|
8366
|
-
return (0, exports.UsersApiFp)(this.configuration).
|
|
8943
|
+
resetPassword(requestParameters, options) {
|
|
8944
|
+
return (0, exports.UsersApiFp)(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8367
8945
|
}
|
|
8368
8946
|
/**
|
|
8369
8947
|
*
|
|
8370
|
-
* @param {
|
|
8948
|
+
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
8371
8949
|
* @param {*} [options] Override http request option.
|
|
8372
8950
|
* @throws {RequiredError}
|
|
8373
8951
|
* @memberof UsersApi
|
|
8374
8952
|
*/
|
|
8375
|
-
|
|
8376
|
-
return (0, exports.UsersApiFp)(this.configuration).
|
|
8953
|
+
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
8954
|
+
return (0, exports.UsersApiFp)(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8377
8955
|
}
|
|
8378
8956
|
/**
|
|
8379
8957
|
*
|
|
8380
|
-
* @param {
|
|
8958
|
+
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
8381
8959
|
* @param {*} [options] Override http request option.
|
|
8382
8960
|
* @throws {RequiredError}
|
|
8383
8961
|
* @memberof UsersApi
|
|
8384
8962
|
*/
|
|
8385
|
-
|
|
8386
|
-
return (0, exports.UsersApiFp)(this.configuration).
|
|
8963
|
+
signInOrSignUpWithGoogle(requestParameters, options) {
|
|
8964
|
+
return (0, exports.UsersApiFp)(this.configuration).signInOrSignUpWithGoogle(requestParameters.googleAuthRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8387
8965
|
}
|
|
8388
8966
|
/**
|
|
8389
8967
|
*
|
|
@@ -8425,5 +9003,15 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8425
9003
|
updateProfilePicture(requestParameters, options) {
|
|
8426
9004
|
return (0, exports.UsersApiFp)(this.configuration).updateProfilePicture(requestParameters.profilePictureUpdateRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8427
9005
|
}
|
|
9006
|
+
/**
|
|
9007
|
+
*
|
|
9008
|
+
* @param {UsersApiVerifyEmailRequest} requestParameters Request parameters.
|
|
9009
|
+
* @param {*} [options] Override http request option.
|
|
9010
|
+
* @throws {RequiredError}
|
|
9011
|
+
* @memberof UsersApi
|
|
9012
|
+
*/
|
|
9013
|
+
verifyEmail(requestParameters, options) {
|
|
9014
|
+
return (0, exports.UsersApiFp)(this.configuration).verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9015
|
+
}
|
|
8428
9016
|
}
|
|
8429
9017
|
exports.UsersApi = UsersApi;
|