@tennac-booking/sdk 1.0.37 → 1.0.40
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 +66 -42
- package/README.md +94 -39
- package/api.ts +3985 -718
- package/base.ts +4 -4
- package/common.ts +3 -3
- package/configuration.ts +3 -3
- package/dist/api.d.ts +2632 -777
- package/dist/api.js +2452 -40
- package/dist/base.d.ts +3 -3
- package/dist/base.js +4 -4
- package/dist/common.d.ts +3 -3
- package/dist/common.js +3 -3
- package/dist/configuration.d.ts +3 -3
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +2632 -777
- package/dist/esm/api.js +2443 -39
- package/dist/esm/base.d.ts +3 -3
- package/dist/esm/base.js +4 -4
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +3 -3
- package/dist/esm/configuration.d.ts +3 -3
- package/dist/esm/configuration.js +3 -3
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/docs/ActiveClub.md +2 -0
- package/docs/AddClubMemberRequest.md +22 -0
- package/docs/AddClubMemberResponse.md +22 -0
- package/docs/AddFavoriteClubRequestBody.md +20 -0
- package/docs/AddFavoritePlayerRequestBody.md +20 -0
- package/docs/AddPaymentMethodRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupResponse.md +24 -0
- package/docs/ApiErrorResponse.md +1 -1
- package/docs/BaseUser.md +76 -0
- package/docs/BlockSlotResponse.md +22 -0
- package/docs/BookingDetailResponse.md +46 -0
- package/docs/BookingHistoryResponse.md +22 -0
- package/docs/BookingHistoryResponseHistoryInner.md +32 -0
- package/docs/BookingPaymentStatusResponse.md +24 -0
- package/docs/BookingPaymentStatusResponseBooking.md +26 -0
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +36 -0
- package/docs/BookingPaymentStatusResponseSummary.md +28 -0
- package/docs/BookingPopulated.md +28 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
- package/docs/BookingPopulatedSlotId.md +26 -0
- package/docs/BookingPopulatedSlotIdCourtId.md +28 -0
- package/docs/BookingPopulatedSlotIdCourtIdSportId.md +22 -0
- package/docs/BookingPopulatedUserId.md +24 -0
- package/docs/BookingResponse.md +28 -0
- package/docs/BookingSummary.md +44 -0
- package/docs/BookingSummaryBookingHistory.md +18 -0
- package/docs/BookingSummaryClubAddress.md +18 -0
- package/docs/BookingsApi.md +113 -0
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
- package/docs/CancelBookingResponse.md +22 -0
- package/docs/CancelBookingResponseBooking.md +30 -0
- package/docs/ChangePasswordRequestBody.md +22 -0
- package/docs/ChangePasswordResponse.md +20 -0
- package/docs/CheckInPlayersResponse.md +30 -0
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +34 -0
- package/docs/ClubAnalyticsApi.md +241 -0
- package/docs/ClubInfoResponse.md +48 -0
- package/docs/ClubMember.md +24 -0
- package/docs/ClubMembersResponse.md +22 -0
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubRolesResponse.md +22 -0
- package/docs/ClubSettings.md +21 -9
- package/docs/ClubStaffResponse.md +48 -0
- package/docs/ClubsApi.md +61 -0
- package/docs/ConfirmPaymentMethodRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodResponse.md +22 -0
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
- package/docs/CourtDeleteResponse.md +20 -0
- package/docs/CourtResponse.md +18 -16
- package/docs/CourtStatus.md +5 -2
- package/docs/CourtWithNameResponse.md +48 -0
- package/docs/CourtsResponse.md +22 -0
- package/docs/CourtsWithNameResponse.md +22 -0
- package/docs/CreateBookingRequest.md +28 -0
- package/docs/CreateClubRoleRequestBody.md +24 -0
- package/docs/CreateCourtRequest.md +36 -0
- package/docs/CreateEventRequest.md +30 -0
- package/docs/CreatePriceRequest.md +26 -0
- package/docs/CreateSportRequest.md +26 -0
- package/docs/CreateSubscriptionPlanRequest.md +24 -0
- package/docs/DailyTurnoverResponse.md +24 -0
- package/docs/DeleteClubRole200Response.md +20 -0
- package/docs/DeleteEvent200Response.md +20 -0
- package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
- package/docs/DeleteSport200Response.md +20 -0
- package/docs/DiagnosticsApi.md +52 -0
- package/docs/DiagnosticsResponse.md +24 -0
- package/docs/Event.md +40 -0
- package/docs/EventBooking.md +32 -0
- package/docs/EventRegistrationRequest.md +22 -0
- package/docs/EventsApi.md +119 -0
- package/docs/FavoriteClubItem.md +26 -0
- package/docs/FavoriteClubMutationResponse.md +22 -0
- package/docs/FavoriteClubRequestBody.md +20 -0
- package/docs/FavoriteClubResponse.md +22 -0
- package/docs/FavoriteClubsResponse.md +20 -0
- package/docs/FavoritePlayerMutationResponse.md +22 -0
- package/docs/FavoritePlayerPublic.md +28 -0
- package/docs/FavoritePlayerRequestBody.md +20 -0
- package/docs/FavoritePlayersIdsResponse.md +22 -0
- package/docs/FavoritePlayersResponse.md +20 -0
- package/docs/FrequentClub.md +24 -0
- package/docs/FrequentPlayer.md +28 -0
- package/docs/{UserResponseFrequentlyPlayedWithInner.md → FrequentlyPlayedWithItem.md} +3 -3
- package/docs/{UserResponseFrequentlyVisitedClubsInner.md → FrequentlyVisitedClubItem.md} +3 -3
- package/docs/Gender.md +12 -0
- package/docs/GenderPercentage.md +26 -0
- package/docs/GetActiveClubs200Response.md +20 -0
- package/docs/GetClubInfos200Response.md +30 -0
- package/docs/GetClubUsersById200Response.md +20 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetInfillPercentagePerPeriod200Response.md +24 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +22 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/GetPublishedEventsByClubId200Response.md +20 -0
- package/docs/GetUserRolesResponse.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +26 -0
- package/docs/GetUserSubscriptionsResponse.md +22 -0
- package/docs/GoogleAuthRequestBody.md +20 -0
- package/docs/GoogleAuthResponse.md +30 -0
- package/docs/GoogleAuthResponseUser.md +26 -0
- package/docs/GoogleSignInRequestBody.md +20 -0
- package/docs/GoogleSignInResponse.md +24 -0
- package/docs/ILevelBySports.md +22 -0
- package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
- package/docs/InitiateSubscriptionSessionResponse.md +22 -0
- package/docs/InvoicesResponse.md +22 -0
- package/docs/InvoicesResponseInvoicesInner.md +34 -0
- package/docs/InvoicesResponsePagination.md +26 -0
- package/docs/LevelBySportEntry.md +22 -0
- package/docs/LevelBySportsItem.md +22 -0
- package/docs/LoginRequestBody.md +22 -0
- package/docs/LoginResponse.md +28 -0
- package/docs/ManagerBookingsApi.md +125 -0
- package/docs/ManagerCancelBookingRequest.md +20 -0
- package/docs/ManagerCancelBookingResponse.md +22 -0
- package/docs/ManagerCancelBookingResponseBooking.md +30 -0
- package/docs/ManagerClubCourtsApi.md +220 -0
- package/docs/ManagerClubRolesApi.md +268 -0
- package/docs/ManagerClubSlotsApi.md +119 -0
- package/docs/ManagerClubSubscriptionsApi.md +387 -0
- package/docs/ManagerClubsApi.md +253 -0
- package/docs/ManagerEventResponse.md +22 -0
- package/docs/ManagerEventsApi.md +227 -0
- package/docs/ManagerSportsApi.md +119 -0
- package/docs/MonthlyTurnoverResponse.md +28 -0
- package/docs/NoShowFeeResponse.md +30 -0
- package/docs/NoShowFeeResponseCaptureResultsInner.md +30 -0
- package/docs/NoShowFeeResponseCreatorChargeResult.md +26 -0
- package/docs/NotImplementedResponse.md +20 -0
- package/docs/PasswordResetRequestBody.md +20 -0
- package/docs/PaymentMethodSetupResponse.md +24 -0
- package/docs/PaymentStatus.md +30 -0
- package/docs/PickUserResponseExcludeKeyofUserResponseLocation.md +73 -0
- package/docs/PlayerWithPaymentMethod.md +22 -0
- package/docs/PriceResponse.md +2 -8
- package/docs/ProfilePictureResponse.md +20 -0
- package/docs/ProfilePictureUpdateRequestBody.md +20 -0
- package/docs/ProfileVisibilityResponse.md +20 -0
- package/docs/PublicClubUser.md +46 -0
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +28 -0
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +24 -0
- package/docs/{UserResponseLevelBySportsInner.md → PublicClubUserLevelBySportsInner.md} +3 -3
- package/docs/RefreshTokenRequestBody.md +20 -0
- package/docs/RefreshTokenResponse.md +26 -0
- package/docs/RegisterForEvent201Response.md +20 -0
- package/docs/{User.md → RegisterRequestBody.md} +5 -9
- package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
- package/docs/SdkDiagnosticsResponse.md +28 -0
- package/docs/SdkDiagnosticsResponseOpenapi.md +24 -0
- package/docs/SdkDiagnosticsResponseSdk.md +24 -0
- package/docs/SetupPaymentMethodRequestBody.md +20 -0
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/SlotResponse.md +2 -10
- package/docs/SlotsResponse.md +22 -0
- package/docs/Sport.md +0 -2
- package/docs/SportResponse.md +4 -2
- package/docs/StaffBookingsApi.md +61 -0
- package/docs/StaffClubAnalyticsApi.md +254 -0
- package/docs/StaffClubBookingsApi.md +52 -0
- package/docs/StaffClubsApi.md +147 -0
- package/docs/StaffEventResponse.md +20 -0
- package/docs/StaffEventsApi.md +54 -0
- package/docs/StaffProfileApi.md +110 -0
- package/docs/StaffUserProfileResponse.md +22 -0
- package/docs/SubscribeToClubRequestBody.md +22 -0
- package/docs/SubscriptionMutationResponse.md +20 -0
- package/docs/SubscriptionPlanResponse.md +32 -0
- package/docs/SubscriptionSessionRequestBody.md +22 -0
- package/docs/SubscriptionSessionResponse.md +20 -0
- package/docs/UpdateClubRequest.md +34 -0
- package/docs/UpdateClubRoleRequestBody.md +24 -0
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateCourtRequest.md +38 -0
- package/docs/UpdateCustomerRequestBody.md +22 -0
- package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
- package/docs/UpdateCustomerResponse.md +20 -0
- package/docs/UpdateCustomerResponseCustomer.md +28 -0
- package/docs/UpdateLevelBySportsRequestBody.md +20 -0
- package/docs/UpdateProfilePictureRequestBody.md +20 -0
- package/docs/UpdateProfileVisibilityRequestBody.md +20 -0
- package/docs/UpdateSportRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanResponse.md +22 -0
- package/docs/UpdateUserCityRequestBody.md +20 -0
- package/docs/UpdateUserDescriptionRequestBody.md +20 -0
- package/docs/UpdateUserRequestBody.md +38 -0
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
- package/docs/UserApi.md +63 -0
- package/docs/UserAuthenticationApi.md +226 -0
- package/docs/UserBookingItem.md +46 -0
- package/docs/UserBookingsApi.md +166 -0
- package/docs/UserBookingsResponse.md +26 -0
- package/docs/UserCityResponse.md +20 -0
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +181 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +145 -0
- package/docs/UserDescriptionResponse.md +20 -0
- package/docs/UserFavoriteClubsResponse.md +20 -0
- package/docs/UserInfoStaff.md +38 -0
- package/docs/UserLocationSummary.md +44 -0
- package/docs/UserPaymentApi.md +176 -0
- package/docs/UserProfileApi.md +1254 -0
- package/docs/UserProfileResponse.md +28 -0
- package/docs/UserResponse.md +8 -48
- package/docs/UserRolesResponse.md +20 -0
- package/docs/UserStaffResponse.md +40 -0
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UserSubscriptionsResponse.md +20 -0
- package/docs/UsersApi.md +1888 -0
- package/docs/YearlyTurnoverResponse.md +26 -0
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
- package/index.ts +3 -3
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -1,70 +1,2474 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* booking_api
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.38
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
export const DiagnosticsResponseStatusEnum = {
|
|
30
|
+
Ok: 'ok'
|
|
31
|
+
};
|
|
14
32
|
/**
|
|
15
33
|
*
|
|
16
34
|
* @export
|
|
17
35
|
* @enum {string}
|
|
18
36
|
*/
|
|
19
|
-
export const
|
|
20
|
-
|
|
21
|
-
|
|
37
|
+
export const Gender = {
|
|
38
|
+
Male: 'male',
|
|
39
|
+
Female: 'female',
|
|
40
|
+
Other: 'other'
|
|
22
41
|
};
|
|
23
42
|
/**
|
|
24
|
-
*
|
|
43
|
+
* DiagnosticsApi - axios parameter creator
|
|
25
44
|
* @export
|
|
26
|
-
* @enum {string}
|
|
27
45
|
*/
|
|
28
|
-
export const
|
|
29
|
-
|
|
30
|
-
|
|
46
|
+
export const DiagnosticsApiAxiosParamCreator = function (configuration) {
|
|
47
|
+
return {
|
|
48
|
+
/**
|
|
49
|
+
* Endpoint de démonstration généré via TSOA. Permet de valider la configuration du pipeline types -> OpenAPI sans écrire la doc à la main.
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
ping: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
54
|
+
const localVarPath = `/tsoa-test/ping`;
|
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57
|
+
let baseOptions;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
}
|
|
61
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
62
|
+
const localVarHeaderParameter = {};
|
|
63
|
+
const localVarQueryParameter = {};
|
|
64
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
65
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
66
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
67
|
+
return {
|
|
68
|
+
url: toPathString(localVarUrlObj),
|
|
69
|
+
options: localVarRequestOptions,
|
|
70
|
+
};
|
|
71
|
+
}),
|
|
72
|
+
};
|
|
31
73
|
};
|
|
32
|
-
|
|
33
|
-
|
|
74
|
+
/**
|
|
75
|
+
* DiagnosticsApi - functional programming interface
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const DiagnosticsApiFp = function (configuration) {
|
|
79
|
+
const localVarAxiosParamCreator = DiagnosticsApiAxiosParamCreator(configuration);
|
|
80
|
+
return {
|
|
81
|
+
/**
|
|
82
|
+
* Endpoint de démonstration généré via TSOA. Permet de valider la configuration du pipeline types -> OpenAPI sans écrire la doc à la main.
|
|
83
|
+
* @param {*} [options] Override http request option.
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
*/
|
|
86
|
+
ping(options) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
var _a, _b, _c;
|
|
89
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ping(options);
|
|
90
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
91
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DiagnosticsApi.ping']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
92
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
93
|
+
});
|
|
94
|
+
},
|
|
95
|
+
};
|
|
34
96
|
};
|
|
35
97
|
/**
|
|
36
|
-
*
|
|
98
|
+
* DiagnosticsApi - factory interface
|
|
37
99
|
* @export
|
|
38
|
-
* @enum {string}
|
|
39
100
|
*/
|
|
40
|
-
export const
|
|
41
|
-
|
|
42
|
-
|
|
101
|
+
export const DiagnosticsApiFactory = function (configuration, basePath, axios) {
|
|
102
|
+
const localVarFp = DiagnosticsApiFp(configuration);
|
|
103
|
+
return {
|
|
104
|
+
/**
|
|
105
|
+
* Endpoint de démonstration généré via TSOA. Permet de valider la configuration du pipeline types -> OpenAPI sans écrire la doc à la main.
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
ping(options) {
|
|
110
|
+
return localVarFp.ping(options).then((request) => request(axios, basePath));
|
|
111
|
+
},
|
|
112
|
+
};
|
|
43
113
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
114
|
+
/**
|
|
115
|
+
* DiagnosticsApi - object-oriented interface
|
|
116
|
+
* @export
|
|
117
|
+
* @class DiagnosticsApi
|
|
118
|
+
* @extends {BaseAPI}
|
|
119
|
+
*/
|
|
120
|
+
export class DiagnosticsApi extends BaseAPI {
|
|
121
|
+
/**
|
|
122
|
+
* Endpoint de démonstration généré via TSOA. Permet de valider la configuration du pipeline types -> OpenAPI sans écrire la doc à la main.
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
* @memberof DiagnosticsApi
|
|
126
|
+
*/
|
|
127
|
+
ping(options) {
|
|
128
|
+
return DiagnosticsApiFp(this.configuration).ping(options).then((request) => request(this.axios, this.basePath));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* UsersApi - axios parameter creator
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
export const UsersApiAxiosParamCreator = function (configuration) {
|
|
136
|
+
return {
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @param {FavoriteClubRequestBody} favoriteClubRequestBody
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
addFavoriteClub: (favoriteClubRequestBody_1, ...args_1) => __awaiter(this, [favoriteClubRequestBody_1, ...args_1], void 0, function* (favoriteClubRequestBody, options = {}) {
|
|
144
|
+
// verify required parameter 'favoriteClubRequestBody' is not null or undefined
|
|
145
|
+
assertParamExists('addFavoriteClub', 'favoriteClubRequestBody', favoriteClubRequestBody);
|
|
146
|
+
const localVarPath = `/users/me/favorite-clubs`;
|
|
147
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
148
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
149
|
+
let baseOptions;
|
|
150
|
+
if (configuration) {
|
|
151
|
+
baseOptions = configuration.baseOptions;
|
|
152
|
+
}
|
|
153
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
154
|
+
const localVarHeaderParameter = {};
|
|
155
|
+
const localVarQueryParameter = {};
|
|
156
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
157
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
159
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
160
|
+
localVarRequestOptions.data = serializeDataIfNeeded(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
161
|
+
return {
|
|
162
|
+
url: toPathString(localVarUrlObj),
|
|
163
|
+
options: localVarRequestOptions,
|
|
164
|
+
};
|
|
165
|
+
}),
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
*/
|
|
172
|
+
addFavoritePlayer: (favoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [favoritePlayerRequestBody_1, ...args_1], void 0, function* (favoritePlayerRequestBody, options = {}) {
|
|
173
|
+
// verify required parameter 'favoritePlayerRequestBody' is not null or undefined
|
|
174
|
+
assertParamExists('addFavoritePlayer', 'favoritePlayerRequestBody', favoritePlayerRequestBody);
|
|
175
|
+
const localVarPath = `/users/me/favoritesPlayers`;
|
|
176
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
177
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
178
|
+
let baseOptions;
|
|
179
|
+
if (configuration) {
|
|
180
|
+
baseOptions = configuration.baseOptions;
|
|
181
|
+
}
|
|
182
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
183
|
+
const localVarHeaderParameter = {};
|
|
184
|
+
const localVarQueryParameter = {};
|
|
185
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
186
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
187
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
188
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
189
|
+
localVarRequestOptions.data = serializeDataIfNeeded(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
190
|
+
return {
|
|
191
|
+
url: toPathString(localVarUrlObj),
|
|
192
|
+
options: localVarRequestOptions,
|
|
193
|
+
};
|
|
194
|
+
}),
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
|
|
202
|
+
// verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
|
|
203
|
+
assertParamExists('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
|
|
204
|
+
const localVarPath = `/users/addPaymentMethodSetup`;
|
|
205
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
207
|
+
let baseOptions;
|
|
208
|
+
if (configuration) {
|
|
209
|
+
baseOptions = configuration.baseOptions;
|
|
210
|
+
}
|
|
211
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
212
|
+
const localVarHeaderParameter = {};
|
|
213
|
+
const localVarQueryParameter = {};
|
|
214
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
215
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
217
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
218
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
219
|
+
return {
|
|
220
|
+
url: toPathString(localVarUrlObj),
|
|
221
|
+
options: localVarRequestOptions,
|
|
222
|
+
};
|
|
223
|
+
}),
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @param {string} clubId
|
|
227
|
+
* @param {string} subscriptionId
|
|
228
|
+
* @param {*} [options] Override http request option.
|
|
229
|
+
* @throws {RequiredError}
|
|
230
|
+
*/
|
|
231
|
+
cancelSubscription: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
232
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
233
|
+
assertParamExists('cancelSubscription', 'clubId', clubId);
|
|
234
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
235
|
+
assertParamExists('cancelSubscription', 'subscriptionId', subscriptionId);
|
|
236
|
+
const localVarPath = `/users/me/subscriptions/{clubId}/{subscriptionId}`
|
|
237
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
238
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
239
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
240
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
241
|
+
let baseOptions;
|
|
242
|
+
if (configuration) {
|
|
243
|
+
baseOptions = configuration.baseOptions;
|
|
244
|
+
}
|
|
245
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
246
|
+
const localVarHeaderParameter = {};
|
|
247
|
+
const localVarQueryParameter = {};
|
|
248
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
249
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
250
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
251
|
+
return {
|
|
252
|
+
url: toPathString(localVarUrlObj),
|
|
253
|
+
options: localVarRequestOptions,
|
|
254
|
+
};
|
|
255
|
+
}),
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
changePassword: (changePasswordRequestBody_1, ...args_1) => __awaiter(this, [changePasswordRequestBody_1, ...args_1], void 0, function* (changePasswordRequestBody, options = {}) {
|
|
263
|
+
// verify required parameter 'changePasswordRequestBody' is not null or undefined
|
|
264
|
+
assertParamExists('changePassword', 'changePasswordRequestBody', changePasswordRequestBody);
|
|
265
|
+
const localVarPath = `/users/me/password`;
|
|
266
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
267
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
268
|
+
let baseOptions;
|
|
269
|
+
if (configuration) {
|
|
270
|
+
baseOptions = configuration.baseOptions;
|
|
271
|
+
}
|
|
272
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
273
|
+
const localVarHeaderParameter = {};
|
|
274
|
+
const localVarQueryParameter = {};
|
|
275
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
276
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
277
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
278
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
279
|
+
localVarRequestOptions.data = serializeDataIfNeeded(changePasswordRequestBody, localVarRequestOptions, configuration);
|
|
280
|
+
return {
|
|
281
|
+
url: toPathString(localVarUrlObj),
|
|
282
|
+
options: localVarRequestOptions,
|
|
283
|
+
};
|
|
284
|
+
}),
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
*/
|
|
291
|
+
confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
|
|
292
|
+
// verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
|
|
293
|
+
assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
|
|
294
|
+
const localVarPath = `/users/confirmPaymentMethodSetup`;
|
|
295
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
296
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
297
|
+
let baseOptions;
|
|
298
|
+
if (configuration) {
|
|
299
|
+
baseOptions = configuration.baseOptions;
|
|
300
|
+
}
|
|
301
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
302
|
+
const localVarHeaderParameter = {};
|
|
303
|
+
const localVarQueryParameter = {};
|
|
304
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
305
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
306
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
307
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
308
|
+
localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
309
|
+
return {
|
|
310
|
+
url: toPathString(localVarUrlObj),
|
|
311
|
+
options: localVarRequestOptions,
|
|
312
|
+
};
|
|
313
|
+
}),
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @param {*} [options] Override http request option.
|
|
317
|
+
* @throws {RequiredError}
|
|
318
|
+
*/
|
|
319
|
+
getAllUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
320
|
+
const localVarPath = `/users`;
|
|
321
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
322
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
323
|
+
let baseOptions;
|
|
324
|
+
if (configuration) {
|
|
325
|
+
baseOptions = configuration.baseOptions;
|
|
326
|
+
}
|
|
327
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
328
|
+
const localVarHeaderParameter = {};
|
|
329
|
+
const localVarQueryParameter = {};
|
|
330
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
331
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
332
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
333
|
+
return {
|
|
334
|
+
url: toPathString(localVarUrlObj),
|
|
335
|
+
options: localVarRequestOptions,
|
|
336
|
+
};
|
|
337
|
+
}),
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @param {string} bookingId
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
getBookingDetail: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
345
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
346
|
+
assertParamExists('getBookingDetail', 'bookingId', bookingId);
|
|
347
|
+
const localVarPath = `/users/me/booking-detail/{bookingId}`
|
|
348
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
349
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
350
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
351
|
+
let baseOptions;
|
|
352
|
+
if (configuration) {
|
|
353
|
+
baseOptions = configuration.baseOptions;
|
|
354
|
+
}
|
|
355
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
356
|
+
const localVarHeaderParameter = {};
|
|
357
|
+
const localVarQueryParameter = {};
|
|
358
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
359
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
360
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
361
|
+
return {
|
|
362
|
+
url: toPathString(localVarUrlObj),
|
|
363
|
+
options: localVarRequestOptions,
|
|
364
|
+
};
|
|
365
|
+
}),
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @param {*} [options] Override http request option.
|
|
369
|
+
* @throws {RequiredError}
|
|
370
|
+
*/
|
|
371
|
+
getFavoriteClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
372
|
+
const localVarPath = `/users/me/favorite-clubs`;
|
|
373
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
374
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
375
|
+
let baseOptions;
|
|
376
|
+
if (configuration) {
|
|
377
|
+
baseOptions = configuration.baseOptions;
|
|
378
|
+
}
|
|
379
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
380
|
+
const localVarHeaderParameter = {};
|
|
381
|
+
const localVarQueryParameter = {};
|
|
382
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
383
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
384
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
385
|
+
return {
|
|
386
|
+
url: toPathString(localVarUrlObj),
|
|
387
|
+
options: localVarRequestOptions,
|
|
388
|
+
};
|
|
389
|
+
}),
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
getFavoritesPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
396
|
+
const localVarPath = `/users/me/favoritesPlayers`;
|
|
397
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
398
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
399
|
+
let baseOptions;
|
|
400
|
+
if (configuration) {
|
|
401
|
+
baseOptions = configuration.baseOptions;
|
|
402
|
+
}
|
|
403
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
404
|
+
const localVarHeaderParameter = {};
|
|
405
|
+
const localVarQueryParameter = {};
|
|
406
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
407
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
408
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
409
|
+
return {
|
|
410
|
+
url: toPathString(localVarUrlObj),
|
|
411
|
+
options: localVarRequestOptions,
|
|
412
|
+
};
|
|
413
|
+
}),
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
* @param {*} [options] Override http request option.
|
|
417
|
+
* @throws {RequiredError}
|
|
418
|
+
*/
|
|
419
|
+
getFrequentlyPlayedWith: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
420
|
+
const localVarPath = `/users/me/frequentlyPlayedWith`;
|
|
421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
422
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
423
|
+
let baseOptions;
|
|
424
|
+
if (configuration) {
|
|
425
|
+
baseOptions = configuration.baseOptions;
|
|
426
|
+
}
|
|
427
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
428
|
+
const localVarHeaderParameter = {};
|
|
429
|
+
const localVarQueryParameter = {};
|
|
430
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
431
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
432
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
433
|
+
return {
|
|
434
|
+
url: toPathString(localVarUrlObj),
|
|
435
|
+
options: localVarRequestOptions,
|
|
436
|
+
};
|
|
437
|
+
}),
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @param {*} [options] Override http request option.
|
|
441
|
+
* @throws {RequiredError}
|
|
442
|
+
*/
|
|
443
|
+
getFrequentlyVisitedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
444
|
+
const localVarPath = `/users/me/frequentlyVisitedClub`;
|
|
445
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
446
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
447
|
+
let baseOptions;
|
|
448
|
+
if (configuration) {
|
|
449
|
+
baseOptions = configuration.baseOptions;
|
|
450
|
+
}
|
|
451
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
452
|
+
const localVarHeaderParameter = {};
|
|
453
|
+
const localVarQueryParameter = {};
|
|
454
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
455
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
456
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
457
|
+
return {
|
|
458
|
+
url: toPathString(localVarUrlObj),
|
|
459
|
+
options: localVarRequestOptions,
|
|
460
|
+
};
|
|
461
|
+
}),
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
*/
|
|
467
|
+
getMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
468
|
+
const localVarPath = `/users/me`;
|
|
469
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
470
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
471
|
+
let baseOptions;
|
|
472
|
+
if (configuration) {
|
|
473
|
+
baseOptions = configuration.baseOptions;
|
|
474
|
+
}
|
|
475
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
476
|
+
const localVarHeaderParameter = {};
|
|
477
|
+
const localVarQueryParameter = {};
|
|
478
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
479
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
480
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
481
|
+
return {
|
|
482
|
+
url: toPathString(localVarUrlObj),
|
|
483
|
+
options: localVarRequestOptions,
|
|
484
|
+
};
|
|
485
|
+
}),
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @param {number} [radiusInKm]
|
|
489
|
+
* @param {number} [limit]
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
*/
|
|
493
|
+
getNearestClubs: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
|
|
494
|
+
const localVarPath = `/users/me/nearest-clubs`;
|
|
495
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
496
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
497
|
+
let baseOptions;
|
|
498
|
+
if (configuration) {
|
|
499
|
+
baseOptions = configuration.baseOptions;
|
|
500
|
+
}
|
|
501
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
502
|
+
const localVarHeaderParameter = {};
|
|
503
|
+
const localVarQueryParameter = {};
|
|
504
|
+
if (radiusInKm !== undefined) {
|
|
505
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
506
|
+
}
|
|
507
|
+
if (limit !== undefined) {
|
|
508
|
+
localVarQueryParameter['limit'] = limit;
|
|
509
|
+
}
|
|
510
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
511
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
512
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
513
|
+
return {
|
|
514
|
+
url: toPathString(localVarUrlObj),
|
|
515
|
+
options: localVarRequestOptions,
|
|
516
|
+
};
|
|
517
|
+
}),
|
|
518
|
+
/**
|
|
519
|
+
*
|
|
520
|
+
* @param {number} [latitude]
|
|
521
|
+
* @param {number} [longitude]
|
|
522
|
+
* @param {number} [radiusInKm]
|
|
523
|
+
* @param {number} [limit]
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
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 = {}) {
|
|
528
|
+
const localVarPath = `/users/nearest-clubs/coordinates`;
|
|
529
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
530
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
531
|
+
let baseOptions;
|
|
532
|
+
if (configuration) {
|
|
533
|
+
baseOptions = configuration.baseOptions;
|
|
534
|
+
}
|
|
535
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
536
|
+
const localVarHeaderParameter = {};
|
|
537
|
+
const localVarQueryParameter = {};
|
|
538
|
+
if (latitude !== undefined) {
|
|
539
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
540
|
+
}
|
|
541
|
+
if (longitude !== undefined) {
|
|
542
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
543
|
+
}
|
|
544
|
+
if (radiusInKm !== undefined) {
|
|
545
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
546
|
+
}
|
|
547
|
+
if (limit !== undefined) {
|
|
548
|
+
localVarQueryParameter['limit'] = limit;
|
|
549
|
+
}
|
|
550
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
551
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
552
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
553
|
+
return {
|
|
554
|
+
url: toPathString(localVarUrlObj),
|
|
555
|
+
options: localVarRequestOptions,
|
|
556
|
+
};
|
|
557
|
+
}),
|
|
558
|
+
/**
|
|
559
|
+
*
|
|
560
|
+
* @param {number} [radiusInKm]
|
|
561
|
+
* @param {number} [limit]
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
*/
|
|
565
|
+
getNearestUsers: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
|
|
566
|
+
const localVarPath = `/users/me/nearest-players`;
|
|
567
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
568
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
569
|
+
let baseOptions;
|
|
570
|
+
if (configuration) {
|
|
571
|
+
baseOptions = configuration.baseOptions;
|
|
572
|
+
}
|
|
573
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
574
|
+
const localVarHeaderParameter = {};
|
|
575
|
+
const localVarQueryParameter = {};
|
|
576
|
+
if (radiusInKm !== undefined) {
|
|
577
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
578
|
+
}
|
|
579
|
+
if (limit !== undefined) {
|
|
580
|
+
localVarQueryParameter['limit'] = limit;
|
|
581
|
+
}
|
|
582
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
583
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
584
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
585
|
+
return {
|
|
586
|
+
url: toPathString(localVarUrlObj),
|
|
587
|
+
options: localVarRequestOptions,
|
|
588
|
+
};
|
|
589
|
+
}),
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @param {number} [latitude]
|
|
593
|
+
* @param {number} [longitude]
|
|
594
|
+
* @param {number} [radiusInKm]
|
|
595
|
+
* @param {number} [limit]
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
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 = {}) {
|
|
600
|
+
const localVarPath = `/users/nearest-players/coordinates`;
|
|
601
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
602
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
603
|
+
let baseOptions;
|
|
604
|
+
if (configuration) {
|
|
605
|
+
baseOptions = configuration.baseOptions;
|
|
606
|
+
}
|
|
607
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
608
|
+
const localVarHeaderParameter = {};
|
|
609
|
+
const localVarQueryParameter = {};
|
|
610
|
+
if (latitude !== undefined) {
|
|
611
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
612
|
+
}
|
|
613
|
+
if (longitude !== undefined) {
|
|
614
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
615
|
+
}
|
|
616
|
+
if (radiusInKm !== undefined) {
|
|
617
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
618
|
+
}
|
|
619
|
+
if (limit !== undefined) {
|
|
620
|
+
localVarQueryParameter['limit'] = limit;
|
|
621
|
+
}
|
|
622
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
623
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
624
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
625
|
+
return {
|
|
626
|
+
url: toPathString(localVarUrlObj),
|
|
627
|
+
options: localVarRequestOptions,
|
|
628
|
+
};
|
|
629
|
+
}),
|
|
630
|
+
/**
|
|
631
|
+
*
|
|
632
|
+
* @param {number} [limit]
|
|
633
|
+
* @param {number} [skip]
|
|
634
|
+
* @param {*} [options] Override http request option.
|
|
635
|
+
* @throws {RequiredError}
|
|
636
|
+
*/
|
|
637
|
+
getUserBookings: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
638
|
+
const localVarPath = `/users/me/bookings`;
|
|
639
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
640
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
641
|
+
let baseOptions;
|
|
642
|
+
if (configuration) {
|
|
643
|
+
baseOptions = configuration.baseOptions;
|
|
644
|
+
}
|
|
645
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
646
|
+
const localVarHeaderParameter = {};
|
|
647
|
+
const localVarQueryParameter = {};
|
|
648
|
+
if (limit !== undefined) {
|
|
649
|
+
localVarQueryParameter['limit'] = limit;
|
|
650
|
+
}
|
|
651
|
+
if (skip !== undefined) {
|
|
652
|
+
localVarQueryParameter['skip'] = skip;
|
|
653
|
+
}
|
|
654
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
655
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
656
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
657
|
+
return {
|
|
658
|
+
url: toPathString(localVarUrlObj),
|
|
659
|
+
options: localVarRequestOptions,
|
|
660
|
+
};
|
|
661
|
+
}),
|
|
662
|
+
/**
|
|
663
|
+
*
|
|
664
|
+
* @param {string} id
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
getUserProfileById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
669
|
+
// verify required parameter 'id' is not null or undefined
|
|
670
|
+
assertParamExists('getUserProfileById', 'id', id);
|
|
671
|
+
const localVarPath = `/users/profile/{id}`
|
|
672
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
673
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
674
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
675
|
+
let baseOptions;
|
|
676
|
+
if (configuration) {
|
|
677
|
+
baseOptions = configuration.baseOptions;
|
|
678
|
+
}
|
|
679
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
680
|
+
const localVarHeaderParameter = {};
|
|
681
|
+
const localVarQueryParameter = {};
|
|
682
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
683
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
684
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
685
|
+
return {
|
|
686
|
+
url: toPathString(localVarUrlObj),
|
|
687
|
+
options: localVarRequestOptions,
|
|
688
|
+
};
|
|
689
|
+
}),
|
|
690
|
+
/**
|
|
691
|
+
*
|
|
692
|
+
* @param {string} id
|
|
693
|
+
* @param {*} [options] Override http request option.
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
*/
|
|
696
|
+
getUserProfileStaff: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
697
|
+
// verify required parameter 'id' is not null or undefined
|
|
698
|
+
assertParamExists('getUserProfileStaff', 'id', id);
|
|
699
|
+
const localVarPath = `/users/staff/profile/{id}`
|
|
700
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
701
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
702
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
703
|
+
let baseOptions;
|
|
704
|
+
if (configuration) {
|
|
705
|
+
baseOptions = configuration.baseOptions;
|
|
706
|
+
}
|
|
707
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
708
|
+
const localVarHeaderParameter = {};
|
|
709
|
+
const localVarQueryParameter = {};
|
|
710
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
711
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
712
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
713
|
+
return {
|
|
714
|
+
url: toPathString(localVarUrlObj),
|
|
715
|
+
options: localVarRequestOptions,
|
|
716
|
+
};
|
|
717
|
+
}),
|
|
718
|
+
/**
|
|
719
|
+
*
|
|
720
|
+
* @param {*} [options] Override http request option.
|
|
721
|
+
* @throws {RequiredError}
|
|
722
|
+
*/
|
|
723
|
+
getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
724
|
+
const localVarPath = `/users/me/roles`;
|
|
725
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
726
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
727
|
+
let baseOptions;
|
|
728
|
+
if (configuration) {
|
|
729
|
+
baseOptions = configuration.baseOptions;
|
|
730
|
+
}
|
|
731
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
732
|
+
const localVarHeaderParameter = {};
|
|
733
|
+
const localVarQueryParameter = {};
|
|
734
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
735
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
736
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
737
|
+
return {
|
|
738
|
+
url: toPathString(localVarUrlObj),
|
|
739
|
+
options: localVarRequestOptions,
|
|
740
|
+
};
|
|
741
|
+
}),
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @param {*} [options] Override http request option.
|
|
745
|
+
* @throws {RequiredError}
|
|
746
|
+
*/
|
|
747
|
+
getUserSubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
748
|
+
const localVarPath = `/users/me/subscriptions`;
|
|
749
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
750
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
751
|
+
let baseOptions;
|
|
752
|
+
if (configuration) {
|
|
753
|
+
baseOptions = configuration.baseOptions;
|
|
754
|
+
}
|
|
755
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
756
|
+
const localVarHeaderParameter = {};
|
|
757
|
+
const localVarQueryParameter = {};
|
|
758
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
759
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
760
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
761
|
+
return {
|
|
762
|
+
url: toPathString(localVarUrlObj),
|
|
763
|
+
options: localVarRequestOptions,
|
|
764
|
+
};
|
|
765
|
+
}),
|
|
766
|
+
/**
|
|
767
|
+
*
|
|
768
|
+
* @param {SubscriptionSessionRequestBody} subscriptionSessionRequestBody
|
|
769
|
+
* @param {*} [options] Override http request option.
|
|
770
|
+
* @throws {RequiredError}
|
|
771
|
+
*/
|
|
772
|
+
initiateSubscriptionSession: (subscriptionSessionRequestBody_1, ...args_1) => __awaiter(this, [subscriptionSessionRequestBody_1, ...args_1], void 0, function* (subscriptionSessionRequestBody, options = {}) {
|
|
773
|
+
// verify required parameter 'subscriptionSessionRequestBody' is not null or undefined
|
|
774
|
+
assertParamExists('initiateSubscriptionSession', 'subscriptionSessionRequestBody', subscriptionSessionRequestBody);
|
|
775
|
+
const localVarPath = `/users/me/subscription-session`;
|
|
776
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
777
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
778
|
+
let baseOptions;
|
|
779
|
+
if (configuration) {
|
|
780
|
+
baseOptions = configuration.baseOptions;
|
|
781
|
+
}
|
|
782
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
783
|
+
const localVarHeaderParameter = {};
|
|
784
|
+
const localVarQueryParameter = {};
|
|
785
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
786
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
787
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
788
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
789
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionSessionRequestBody, localVarRequestOptions, configuration);
|
|
790
|
+
return {
|
|
791
|
+
url: toPathString(localVarUrlObj),
|
|
792
|
+
options: localVarRequestOptions,
|
|
793
|
+
};
|
|
794
|
+
}),
|
|
795
|
+
/**
|
|
796
|
+
*
|
|
797
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
*/
|
|
801
|
+
login: (loginRequestBody_1, ...args_1) => __awaiter(this, [loginRequestBody_1, ...args_1], void 0, function* (loginRequestBody, options = {}) {
|
|
802
|
+
// verify required parameter 'loginRequestBody' is not null or undefined
|
|
803
|
+
assertParamExists('login', 'loginRequestBody', loginRequestBody);
|
|
804
|
+
const localVarPath = `/users/login`;
|
|
805
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
806
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
807
|
+
let baseOptions;
|
|
808
|
+
if (configuration) {
|
|
809
|
+
baseOptions = configuration.baseOptions;
|
|
810
|
+
}
|
|
811
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
812
|
+
const localVarHeaderParameter = {};
|
|
813
|
+
const localVarQueryParameter = {};
|
|
814
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
815
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
816
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
817
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
818
|
+
localVarRequestOptions.data = serializeDataIfNeeded(loginRequestBody, localVarRequestOptions, configuration);
|
|
819
|
+
return {
|
|
820
|
+
url: toPathString(localVarUrlObj),
|
|
821
|
+
options: localVarRequestOptions,
|
|
822
|
+
};
|
|
823
|
+
}),
|
|
824
|
+
/**
|
|
825
|
+
*
|
|
826
|
+
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
827
|
+
* @param {*} [options] Override http request option.
|
|
828
|
+
* @throws {RequiredError}
|
|
829
|
+
*/
|
|
830
|
+
refreshToken: (refreshTokenRequestBody_1, ...args_1) => __awaiter(this, [refreshTokenRequestBody_1, ...args_1], void 0, function* (refreshTokenRequestBody, options = {}) {
|
|
831
|
+
// verify required parameter 'refreshTokenRequestBody' is not null or undefined
|
|
832
|
+
assertParamExists('refreshToken', 'refreshTokenRequestBody', refreshTokenRequestBody);
|
|
833
|
+
const localVarPath = `/users/refresh-token`;
|
|
834
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
835
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
836
|
+
let baseOptions;
|
|
837
|
+
if (configuration) {
|
|
838
|
+
baseOptions = configuration.baseOptions;
|
|
839
|
+
}
|
|
840
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
841
|
+
const localVarHeaderParameter = {};
|
|
842
|
+
const localVarQueryParameter = {};
|
|
843
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
844
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
845
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
846
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
847
|
+
localVarRequestOptions.data = serializeDataIfNeeded(refreshTokenRequestBody, localVarRequestOptions, configuration);
|
|
848
|
+
return {
|
|
849
|
+
url: toPathString(localVarUrlObj),
|
|
850
|
+
options: localVarRequestOptions,
|
|
851
|
+
};
|
|
852
|
+
}),
|
|
853
|
+
/**
|
|
854
|
+
*
|
|
855
|
+
* @param {RegisterRequestBody} registerRequestBody
|
|
856
|
+
* @param {*} [options] Override http request option.
|
|
857
|
+
* @throws {RequiredError}
|
|
858
|
+
*/
|
|
859
|
+
register: (registerRequestBody_1, ...args_1) => __awaiter(this, [registerRequestBody_1, ...args_1], void 0, function* (registerRequestBody, options = {}) {
|
|
860
|
+
// verify required parameter 'registerRequestBody' is not null or undefined
|
|
861
|
+
assertParamExists('register', 'registerRequestBody', registerRequestBody);
|
|
862
|
+
const localVarPath = `/users`;
|
|
863
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
864
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
865
|
+
let baseOptions;
|
|
866
|
+
if (configuration) {
|
|
867
|
+
baseOptions = configuration.baseOptions;
|
|
868
|
+
}
|
|
869
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
870
|
+
const localVarHeaderParameter = {};
|
|
871
|
+
const localVarQueryParameter = {};
|
|
872
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
873
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
874
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
875
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
876
|
+
localVarRequestOptions.data = serializeDataIfNeeded(registerRequestBody, localVarRequestOptions, configuration);
|
|
877
|
+
return {
|
|
878
|
+
url: toPathString(localVarUrlObj),
|
|
879
|
+
options: localVarRequestOptions,
|
|
880
|
+
};
|
|
881
|
+
}),
|
|
882
|
+
/**
|
|
883
|
+
*
|
|
884
|
+
* @param {string} clubId
|
|
885
|
+
* @param {*} [options] Override http request option.
|
|
886
|
+
* @throws {RequiredError}
|
|
887
|
+
*/
|
|
888
|
+
removeFavoriteClub: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
889
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
890
|
+
assertParamExists('removeFavoriteClub', 'clubId', clubId);
|
|
891
|
+
const localVarPath = `/users/me/favorite-clubs/{clubId}`
|
|
892
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
893
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
894
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
895
|
+
let baseOptions;
|
|
896
|
+
if (configuration) {
|
|
897
|
+
baseOptions = configuration.baseOptions;
|
|
898
|
+
}
|
|
899
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
900
|
+
const localVarHeaderParameter = {};
|
|
901
|
+
const localVarQueryParameter = {};
|
|
902
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
903
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
904
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
905
|
+
return {
|
|
906
|
+
url: toPathString(localVarUrlObj),
|
|
907
|
+
options: localVarRequestOptions,
|
|
908
|
+
};
|
|
909
|
+
}),
|
|
910
|
+
/**
|
|
911
|
+
*
|
|
912
|
+
* @param {string} favoritePlayerId
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
*/
|
|
916
|
+
removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
|
|
917
|
+
// verify required parameter 'favoritePlayerId' is not null or undefined
|
|
918
|
+
assertParamExists('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
|
|
919
|
+
const localVarPath = `/users/me/favoritesPlayers/{favoritePlayerId}`
|
|
920
|
+
.replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
|
|
921
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
922
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
923
|
+
let baseOptions;
|
|
924
|
+
if (configuration) {
|
|
925
|
+
baseOptions = configuration.baseOptions;
|
|
926
|
+
}
|
|
927
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
928
|
+
const localVarHeaderParameter = {};
|
|
929
|
+
const localVarQueryParameter = {};
|
|
930
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
931
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
932
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
933
|
+
return {
|
|
934
|
+
url: toPathString(localVarUrlObj),
|
|
935
|
+
options: localVarRequestOptions,
|
|
936
|
+
};
|
|
937
|
+
}),
|
|
938
|
+
/**
|
|
939
|
+
*
|
|
940
|
+
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
941
|
+
* @param {*} [options] Override http request option.
|
|
942
|
+
* @throws {RequiredError}
|
|
943
|
+
*/
|
|
944
|
+
requestPasswordReset: (passwordResetRequestBody_1, ...args_1) => __awaiter(this, [passwordResetRequestBody_1, ...args_1], void 0, function* (passwordResetRequestBody, options = {}) {
|
|
945
|
+
// verify required parameter 'passwordResetRequestBody' is not null or undefined
|
|
946
|
+
assertParamExists('requestPasswordReset', 'passwordResetRequestBody', passwordResetRequestBody);
|
|
947
|
+
const localVarPath = `/users/me/request-password-rest`;
|
|
948
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
949
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
950
|
+
let baseOptions;
|
|
951
|
+
if (configuration) {
|
|
952
|
+
baseOptions = configuration.baseOptions;
|
|
953
|
+
}
|
|
954
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
955
|
+
const localVarHeaderParameter = {};
|
|
956
|
+
const localVarQueryParameter = {};
|
|
957
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
958
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
959
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
960
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
961
|
+
localVarRequestOptions.data = serializeDataIfNeeded(passwordResetRequestBody, localVarRequestOptions, configuration);
|
|
962
|
+
return {
|
|
963
|
+
url: toPathString(localVarUrlObj),
|
|
964
|
+
options: localVarRequestOptions,
|
|
965
|
+
};
|
|
966
|
+
}),
|
|
967
|
+
/**
|
|
968
|
+
*
|
|
969
|
+
* @param {string} clubId
|
|
970
|
+
* @param {string} subscriptionId
|
|
971
|
+
* @param {*} [options] Override http request option.
|
|
972
|
+
* @throws {RequiredError}
|
|
973
|
+
*/
|
|
974
|
+
resumeSubscription: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
975
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
976
|
+
assertParamExists('resumeSubscription', 'clubId', clubId);
|
|
977
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
978
|
+
assertParamExists('resumeSubscription', 'subscriptionId', subscriptionId);
|
|
979
|
+
const localVarPath = `/users/me/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
980
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
981
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
982
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
983
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
984
|
+
let baseOptions;
|
|
985
|
+
if (configuration) {
|
|
986
|
+
baseOptions = configuration.baseOptions;
|
|
987
|
+
}
|
|
988
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
989
|
+
const localVarHeaderParameter = {};
|
|
990
|
+
const localVarQueryParameter = {};
|
|
991
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
992
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
993
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
994
|
+
return {
|
|
995
|
+
url: toPathString(localVarUrlObj),
|
|
996
|
+
options: localVarRequestOptions,
|
|
997
|
+
};
|
|
998
|
+
}),
|
|
999
|
+
/**
|
|
1000
|
+
*
|
|
1001
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
1002
|
+
* @param {*} [options] Override http request option.
|
|
1003
|
+
* @throws {RequiredError}
|
|
1004
|
+
*/
|
|
1005
|
+
setupPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
1006
|
+
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
1007
|
+
assertParamExists('setupPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
1008
|
+
const localVarPath = `/users/setupPaymentMethod`;
|
|
1009
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1010
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1011
|
+
let baseOptions;
|
|
1012
|
+
if (configuration) {
|
|
1013
|
+
baseOptions = configuration.baseOptions;
|
|
1014
|
+
}
|
|
1015
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1016
|
+
const localVarHeaderParameter = {};
|
|
1017
|
+
const localVarQueryParameter = {};
|
|
1018
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1019
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1020
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1021
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1022
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
1023
|
+
return {
|
|
1024
|
+
url: toPathString(localVarUrlObj),
|
|
1025
|
+
options: localVarRequestOptions,
|
|
1026
|
+
};
|
|
1027
|
+
}),
|
|
1028
|
+
/**
|
|
1029
|
+
*
|
|
1030
|
+
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
1031
|
+
* @param {*} [options] Override http request option.
|
|
1032
|
+
* @throws {RequiredError}
|
|
1033
|
+
*/
|
|
1034
|
+
signInOrSignUpWithGoogle: (googleAuthRequestBody_1, ...args_1) => __awaiter(this, [googleAuthRequestBody_1, ...args_1], void 0, function* (googleAuthRequestBody, options = {}) {
|
|
1035
|
+
// verify required parameter 'googleAuthRequestBody' is not null or undefined
|
|
1036
|
+
assertParamExists('signInOrSignUpWithGoogle', 'googleAuthRequestBody', googleAuthRequestBody);
|
|
1037
|
+
const localVarPath = `/users/googleSignin`;
|
|
1038
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1039
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1040
|
+
let baseOptions;
|
|
1041
|
+
if (configuration) {
|
|
1042
|
+
baseOptions = configuration.baseOptions;
|
|
1043
|
+
}
|
|
1044
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1045
|
+
const localVarHeaderParameter = {};
|
|
1046
|
+
const localVarQueryParameter = {};
|
|
1047
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1048
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1049
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1050
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1051
|
+
localVarRequestOptions.data = serializeDataIfNeeded(googleAuthRequestBody, localVarRequestOptions, configuration);
|
|
1052
|
+
return {
|
|
1053
|
+
url: toPathString(localVarUrlObj),
|
|
1054
|
+
options: localVarRequestOptions,
|
|
1055
|
+
};
|
|
1056
|
+
}),
|
|
1057
|
+
/**
|
|
1058
|
+
*
|
|
1059
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
1060
|
+
* @param {*} [options] Override http request option.
|
|
1061
|
+
* @throws {RequiredError}
|
|
1062
|
+
*/
|
|
1063
|
+
subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
|
|
1064
|
+
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
1065
|
+
assertParamExists('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
|
|
1066
|
+
const localVarPath = `/users/me/subscribe`;
|
|
1067
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1068
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1069
|
+
let baseOptions;
|
|
1070
|
+
if (configuration) {
|
|
1071
|
+
baseOptions = configuration.baseOptions;
|
|
1072
|
+
}
|
|
1073
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1074
|
+
const localVarHeaderParameter = {};
|
|
1075
|
+
const localVarQueryParameter = {};
|
|
1076
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1077
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1078
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1079
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1080
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscribeToClubRequestBody, localVarRequestOptions, configuration);
|
|
1081
|
+
return {
|
|
1082
|
+
url: toPathString(localVarUrlObj),
|
|
1083
|
+
options: localVarRequestOptions,
|
|
1084
|
+
};
|
|
1085
|
+
}),
|
|
1086
|
+
/**
|
|
1087
|
+
*
|
|
1088
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
1089
|
+
* @param {*} [options] Override http request option.
|
|
1090
|
+
* @throws {RequiredError}
|
|
1091
|
+
*/
|
|
1092
|
+
updateCustomer: (updateCustomerRequestBody_1, ...args_1) => __awaiter(this, [updateCustomerRequestBody_1, ...args_1], void 0, function* (updateCustomerRequestBody, options = {}) {
|
|
1093
|
+
// verify required parameter 'updateCustomerRequestBody' is not null or undefined
|
|
1094
|
+
assertParamExists('updateCustomer', 'updateCustomerRequestBody', updateCustomerRequestBody);
|
|
1095
|
+
const localVarPath = `/users/me/customer`;
|
|
1096
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1097
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1098
|
+
let baseOptions;
|
|
1099
|
+
if (configuration) {
|
|
1100
|
+
baseOptions = configuration.baseOptions;
|
|
1101
|
+
}
|
|
1102
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1103
|
+
const localVarHeaderParameter = {};
|
|
1104
|
+
const localVarQueryParameter = {};
|
|
1105
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1106
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1107
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1108
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1109
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequestBody, localVarRequestOptions, configuration);
|
|
1110
|
+
return {
|
|
1111
|
+
url: toPathString(localVarUrlObj),
|
|
1112
|
+
options: localVarRequestOptions,
|
|
1113
|
+
};
|
|
1114
|
+
}),
|
|
1115
|
+
/**
|
|
1116
|
+
*
|
|
1117
|
+
* @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
|
|
1118
|
+
* @param {*} [options] Override http request option.
|
|
1119
|
+
* @throws {RequiredError}
|
|
1120
|
+
*/
|
|
1121
|
+
updateLevelBySports: (updateLevelBySportsRequestBody_1, ...args_1) => __awaiter(this, [updateLevelBySportsRequestBody_1, ...args_1], void 0, function* (updateLevelBySportsRequestBody, options = {}) {
|
|
1122
|
+
// verify required parameter 'updateLevelBySportsRequestBody' is not null or undefined
|
|
1123
|
+
assertParamExists('updateLevelBySports', 'updateLevelBySportsRequestBody', updateLevelBySportsRequestBody);
|
|
1124
|
+
const localVarPath = `/users/me/level-by-sports`;
|
|
1125
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1126
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1127
|
+
let baseOptions;
|
|
1128
|
+
if (configuration) {
|
|
1129
|
+
baseOptions = configuration.baseOptions;
|
|
1130
|
+
}
|
|
1131
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1132
|
+
const localVarHeaderParameter = {};
|
|
1133
|
+
const localVarQueryParameter = {};
|
|
1134
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1137
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1138
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateLevelBySportsRequestBody, localVarRequestOptions, configuration);
|
|
1139
|
+
return {
|
|
1140
|
+
url: toPathString(localVarUrlObj),
|
|
1141
|
+
options: localVarRequestOptions,
|
|
1142
|
+
};
|
|
1143
|
+
}),
|
|
1144
|
+
/**
|
|
1145
|
+
*
|
|
1146
|
+
* @param {UpdateUserRequestBody} updateUserRequestBody
|
|
1147
|
+
* @param {*} [options] Override http request option.
|
|
1148
|
+
* @throws {RequiredError}
|
|
1149
|
+
*/
|
|
1150
|
+
updateMe: (updateUserRequestBody_1, ...args_1) => __awaiter(this, [updateUserRequestBody_1, ...args_1], void 0, function* (updateUserRequestBody, options = {}) {
|
|
1151
|
+
// verify required parameter 'updateUserRequestBody' is not null or undefined
|
|
1152
|
+
assertParamExists('updateMe', 'updateUserRequestBody', updateUserRequestBody);
|
|
1153
|
+
const localVarPath = `/users/me`;
|
|
1154
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1155
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1156
|
+
let baseOptions;
|
|
1157
|
+
if (configuration) {
|
|
1158
|
+
baseOptions = configuration.baseOptions;
|
|
1159
|
+
}
|
|
1160
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1161
|
+
const localVarHeaderParameter = {};
|
|
1162
|
+
const localVarQueryParameter = {};
|
|
1163
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1164
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1165
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1166
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1167
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateUserRequestBody, localVarRequestOptions, configuration);
|
|
1168
|
+
return {
|
|
1169
|
+
url: toPathString(localVarUrlObj),
|
|
1170
|
+
options: localVarRequestOptions,
|
|
1171
|
+
};
|
|
1172
|
+
}),
|
|
1173
|
+
/**
|
|
1174
|
+
*
|
|
1175
|
+
* @param {ProfilePictureUpdateRequestBody} profilePictureUpdateRequestBody
|
|
1176
|
+
* @param {*} [options] Override http request option.
|
|
1177
|
+
* @throws {RequiredError}
|
|
1178
|
+
*/
|
|
1179
|
+
updateProfilePicture: (profilePictureUpdateRequestBody_1, ...args_1) => __awaiter(this, [profilePictureUpdateRequestBody_1, ...args_1], void 0, function* (profilePictureUpdateRequestBody, options = {}) {
|
|
1180
|
+
// verify required parameter 'profilePictureUpdateRequestBody' is not null or undefined
|
|
1181
|
+
assertParamExists('updateProfilePicture', 'profilePictureUpdateRequestBody', profilePictureUpdateRequestBody);
|
|
1182
|
+
const localVarPath = `/users/me/profile-picture`;
|
|
1183
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1184
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1185
|
+
let baseOptions;
|
|
1186
|
+
if (configuration) {
|
|
1187
|
+
baseOptions = configuration.baseOptions;
|
|
1188
|
+
}
|
|
1189
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1190
|
+
const localVarHeaderParameter = {};
|
|
1191
|
+
const localVarQueryParameter = {};
|
|
1192
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1193
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1194
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1195
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1196
|
+
localVarRequestOptions.data = serializeDataIfNeeded(profilePictureUpdateRequestBody, localVarRequestOptions, configuration);
|
|
1197
|
+
return {
|
|
1198
|
+
url: toPathString(localVarUrlObj),
|
|
1199
|
+
options: localVarRequestOptions,
|
|
1200
|
+
};
|
|
1201
|
+
}),
|
|
1202
|
+
};
|
|
49
1203
|
};
|
|
50
1204
|
/**
|
|
51
|
-
*
|
|
1205
|
+
* UsersApi - functional programming interface
|
|
52
1206
|
* @export
|
|
53
|
-
* @enum {string}
|
|
54
1207
|
*/
|
|
55
|
-
export const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
1208
|
+
export const UsersApiFp = function (configuration) {
|
|
1209
|
+
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration);
|
|
1210
|
+
return {
|
|
1211
|
+
/**
|
|
1212
|
+
*
|
|
1213
|
+
* @param {FavoriteClubRequestBody} favoriteClubRequestBody
|
|
1214
|
+
* @param {*} [options] Override http request option.
|
|
1215
|
+
* @throws {RequiredError}
|
|
1216
|
+
*/
|
|
1217
|
+
addFavoriteClub(favoriteClubRequestBody, options) {
|
|
1218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1219
|
+
var _a, _b, _c;
|
|
1220
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoriteClub(favoriteClubRequestBody, options);
|
|
1221
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1222
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.addFavoriteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1223
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1224
|
+
});
|
|
1225
|
+
},
|
|
1226
|
+
/**
|
|
1227
|
+
*
|
|
1228
|
+
* @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
|
|
1229
|
+
* @param {*} [options] Override http request option.
|
|
1230
|
+
* @throws {RequiredError}
|
|
1231
|
+
*/
|
|
1232
|
+
addFavoritePlayer(favoritePlayerRequestBody, options) {
|
|
1233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1234
|
+
var _a, _b, _c;
|
|
1235
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFavoritePlayer(favoritePlayerRequestBody, options);
|
|
1236
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1237
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.addFavoritePlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1238
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1239
|
+
});
|
|
1240
|
+
},
|
|
1241
|
+
/**
|
|
1242
|
+
*
|
|
1243
|
+
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
1244
|
+
* @param {*} [options] Override http request option.
|
|
1245
|
+
* @throws {RequiredError}
|
|
1246
|
+
*/
|
|
1247
|
+
addPaymentMethodSetup(addPaymentMethodRequestBody, options) {
|
|
1248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1249
|
+
var _a, _b, _c;
|
|
1250
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
|
|
1251
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1252
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1253
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1254
|
+
});
|
|
1255
|
+
},
|
|
1256
|
+
/**
|
|
1257
|
+
*
|
|
1258
|
+
* @param {string} clubId
|
|
1259
|
+
* @param {string} subscriptionId
|
|
1260
|
+
* @param {*} [options] Override http request option.
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
*/
|
|
1263
|
+
cancelSubscription(clubId, subscriptionId, options) {
|
|
1264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1265
|
+
var _a, _b, _c;
|
|
1266
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSubscription(clubId, subscriptionId, options);
|
|
1267
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1268
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.cancelSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1269
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1270
|
+
});
|
|
1271
|
+
},
|
|
1272
|
+
/**
|
|
1273
|
+
*
|
|
1274
|
+
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
1275
|
+
* @param {*} [options] Override http request option.
|
|
1276
|
+
* @throws {RequiredError}
|
|
1277
|
+
*/
|
|
1278
|
+
changePassword(changePasswordRequestBody, options) {
|
|
1279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1280
|
+
var _a, _b, _c;
|
|
1281
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.changePassword(changePasswordRequestBody, options);
|
|
1282
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1283
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.changePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1284
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1285
|
+
});
|
|
1286
|
+
},
|
|
1287
|
+
/**
|
|
1288
|
+
*
|
|
1289
|
+
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
1290
|
+
* @param {*} [options] Override http request option.
|
|
1291
|
+
* @throws {RequiredError}
|
|
1292
|
+
*/
|
|
1293
|
+
confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options) {
|
|
1294
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1295
|
+
var _a, _b, _c;
|
|
1296
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
|
|
1297
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1298
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1299
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1300
|
+
});
|
|
1301
|
+
},
|
|
1302
|
+
/**
|
|
1303
|
+
*
|
|
1304
|
+
* @param {*} [options] Override http request option.
|
|
1305
|
+
* @throws {RequiredError}
|
|
1306
|
+
*/
|
|
1307
|
+
getAllUsers(options) {
|
|
1308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1309
|
+
var _a, _b, _c;
|
|
1310
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllUsers(options);
|
|
1311
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1312
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getAllUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1313
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1314
|
+
});
|
|
1315
|
+
},
|
|
1316
|
+
/**
|
|
1317
|
+
*
|
|
1318
|
+
* @param {string} bookingId
|
|
1319
|
+
* @param {*} [options] Override http request option.
|
|
1320
|
+
* @throws {RequiredError}
|
|
1321
|
+
*/
|
|
1322
|
+
getBookingDetail(bookingId, options) {
|
|
1323
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1324
|
+
var _a, _b, _c;
|
|
1325
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingDetail(bookingId, options);
|
|
1326
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1327
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getBookingDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1328
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1329
|
+
});
|
|
1330
|
+
},
|
|
1331
|
+
/**
|
|
1332
|
+
*
|
|
1333
|
+
* @param {*} [options] Override http request option.
|
|
1334
|
+
* @throws {RequiredError}
|
|
1335
|
+
*/
|
|
1336
|
+
getFavoriteClubs(options) {
|
|
1337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1338
|
+
var _a, _b, _c;
|
|
1339
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoriteClubs(options);
|
|
1340
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1341
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getFavoriteClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1342
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1343
|
+
});
|
|
1344
|
+
},
|
|
1345
|
+
/**
|
|
1346
|
+
*
|
|
1347
|
+
* @param {*} [options] Override http request option.
|
|
1348
|
+
* @throws {RequiredError}
|
|
1349
|
+
*/
|
|
1350
|
+
getFavoritesPlayers(options) {
|
|
1351
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1352
|
+
var _a, _b, _c;
|
|
1353
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoritesPlayers(options);
|
|
1354
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1355
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getFavoritesPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1356
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1357
|
+
});
|
|
1358
|
+
},
|
|
1359
|
+
/**
|
|
1360
|
+
*
|
|
1361
|
+
* @param {*} [options] Override http request option.
|
|
1362
|
+
* @throws {RequiredError}
|
|
1363
|
+
*/
|
|
1364
|
+
getFrequentlyPlayedWith(options) {
|
|
1365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1366
|
+
var _a, _b, _c;
|
|
1367
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFrequentlyPlayedWith(options);
|
|
1368
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1369
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getFrequentlyPlayedWith']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1370
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1371
|
+
});
|
|
1372
|
+
},
|
|
1373
|
+
/**
|
|
1374
|
+
*
|
|
1375
|
+
* @param {*} [options] Override http request option.
|
|
1376
|
+
* @throws {RequiredError}
|
|
1377
|
+
*/
|
|
1378
|
+
getFrequentlyVisitedClub(options) {
|
|
1379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1380
|
+
var _a, _b, _c;
|
|
1381
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFrequentlyVisitedClub(options);
|
|
1382
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1383
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getFrequentlyVisitedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1384
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1385
|
+
});
|
|
1386
|
+
},
|
|
1387
|
+
/**
|
|
1388
|
+
*
|
|
1389
|
+
* @param {*} [options] Override http request option.
|
|
1390
|
+
* @throws {RequiredError}
|
|
1391
|
+
*/
|
|
1392
|
+
getMe(options) {
|
|
1393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1394
|
+
var _a, _b, _c;
|
|
1395
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMe(options);
|
|
1396
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1397
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1398
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1399
|
+
});
|
|
1400
|
+
},
|
|
1401
|
+
/**
|
|
1402
|
+
*
|
|
1403
|
+
* @param {number} [radiusInKm]
|
|
1404
|
+
* @param {number} [limit]
|
|
1405
|
+
* @param {*} [options] Override http request option.
|
|
1406
|
+
* @throws {RequiredError}
|
|
1407
|
+
*/
|
|
1408
|
+
getNearestClubs(radiusInKm, limit, options) {
|
|
1409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1410
|
+
var _a, _b, _c;
|
|
1411
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNearestClubs(radiusInKm, limit, options);
|
|
1412
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1413
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getNearestClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1414
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1415
|
+
});
|
|
1416
|
+
},
|
|
1417
|
+
/**
|
|
1418
|
+
*
|
|
1419
|
+
* @param {number} [latitude]
|
|
1420
|
+
* @param {number} [longitude]
|
|
1421
|
+
* @param {number} [radiusInKm]
|
|
1422
|
+
* @param {number} [limit]
|
|
1423
|
+
* @param {*} [options] Override http request option.
|
|
1424
|
+
* @throws {RequiredError}
|
|
1425
|
+
*/
|
|
1426
|
+
getNearestClubsFromCoordinates(latitude, longitude, radiusInKm, limit, options) {
|
|
1427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1428
|
+
var _a, _b, _c;
|
|
1429
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNearestClubsFromCoordinates(latitude, longitude, radiusInKm, limit, options);
|
|
1430
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1431
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getNearestClubsFromCoordinates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1432
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1433
|
+
});
|
|
1434
|
+
},
|
|
1435
|
+
/**
|
|
1436
|
+
*
|
|
1437
|
+
* @param {number} [radiusInKm]
|
|
1438
|
+
* @param {number} [limit]
|
|
1439
|
+
* @param {*} [options] Override http request option.
|
|
1440
|
+
* @throws {RequiredError}
|
|
1441
|
+
*/
|
|
1442
|
+
getNearestUsers(radiusInKm, limit, options) {
|
|
1443
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1444
|
+
var _a, _b, _c;
|
|
1445
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNearestUsers(radiusInKm, limit, options);
|
|
1446
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1447
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getNearestUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1448
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1449
|
+
});
|
|
1450
|
+
},
|
|
1451
|
+
/**
|
|
1452
|
+
*
|
|
1453
|
+
* @param {number} [latitude]
|
|
1454
|
+
* @param {number} [longitude]
|
|
1455
|
+
* @param {number} [radiusInKm]
|
|
1456
|
+
* @param {number} [limit]
|
|
1457
|
+
* @param {*} [options] Override http request option.
|
|
1458
|
+
* @throws {RequiredError}
|
|
1459
|
+
*/
|
|
1460
|
+
getNearestUsersFromCoordinates(latitude, longitude, radiusInKm, limit, options) {
|
|
1461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1462
|
+
var _a, _b, _c;
|
|
1463
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNearestUsersFromCoordinates(latitude, longitude, radiusInKm, limit, options);
|
|
1464
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1465
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getNearestUsersFromCoordinates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1466
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1467
|
+
});
|
|
1468
|
+
},
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @param {number} [limit]
|
|
1472
|
+
* @param {number} [skip]
|
|
1473
|
+
* @param {*} [options] Override http request option.
|
|
1474
|
+
* @throws {RequiredError}
|
|
1475
|
+
*/
|
|
1476
|
+
getUserBookings(limit, skip, options) {
|
|
1477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1478
|
+
var _a, _b, _c;
|
|
1479
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookings(limit, skip, options);
|
|
1480
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1481
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1482
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1483
|
+
});
|
|
1484
|
+
},
|
|
1485
|
+
/**
|
|
1486
|
+
*
|
|
1487
|
+
* @param {string} id
|
|
1488
|
+
* @param {*} [options] Override http request option.
|
|
1489
|
+
* @throws {RequiredError}
|
|
1490
|
+
*/
|
|
1491
|
+
getUserProfileById(id, options) {
|
|
1492
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1493
|
+
var _a, _b, _c;
|
|
1494
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProfileById(id, options);
|
|
1495
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1496
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserProfileById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1497
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1498
|
+
});
|
|
1499
|
+
},
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* @param {string} id
|
|
1503
|
+
* @param {*} [options] Override http request option.
|
|
1504
|
+
* @throws {RequiredError}
|
|
1505
|
+
*/
|
|
1506
|
+
getUserProfileStaff(id, options) {
|
|
1507
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1508
|
+
var _a, _b, _c;
|
|
1509
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProfileStaff(id, options);
|
|
1510
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1511
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserProfileStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1512
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1513
|
+
});
|
|
1514
|
+
},
|
|
1515
|
+
/**
|
|
1516
|
+
*
|
|
1517
|
+
* @param {*} [options] Override http request option.
|
|
1518
|
+
* @throws {RequiredError}
|
|
1519
|
+
*/
|
|
1520
|
+
getUserRolesInClubs(options) {
|
|
1521
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1522
|
+
var _a, _b, _c;
|
|
1523
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
|
|
1524
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1525
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1526
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1527
|
+
});
|
|
1528
|
+
},
|
|
1529
|
+
/**
|
|
1530
|
+
*
|
|
1531
|
+
* @param {*} [options] Override http request option.
|
|
1532
|
+
* @throws {RequiredError}
|
|
1533
|
+
*/
|
|
1534
|
+
getUserSubscriptions(options) {
|
|
1535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1536
|
+
var _a, _b, _c;
|
|
1537
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserSubscriptions(options);
|
|
1538
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1539
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1540
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1541
|
+
});
|
|
1542
|
+
},
|
|
1543
|
+
/**
|
|
1544
|
+
*
|
|
1545
|
+
* @param {SubscriptionSessionRequestBody} subscriptionSessionRequestBody
|
|
1546
|
+
* @param {*} [options] Override http request option.
|
|
1547
|
+
* @throws {RequiredError}
|
|
1548
|
+
*/
|
|
1549
|
+
initiateSubscriptionSession(subscriptionSessionRequestBody, options) {
|
|
1550
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1551
|
+
var _a, _b, _c;
|
|
1552
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateSubscriptionSession(subscriptionSessionRequestBody, options);
|
|
1553
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1554
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.initiateSubscriptionSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1555
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1556
|
+
});
|
|
1557
|
+
},
|
|
1558
|
+
/**
|
|
1559
|
+
*
|
|
1560
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
1561
|
+
* @param {*} [options] Override http request option.
|
|
1562
|
+
* @throws {RequiredError}
|
|
1563
|
+
*/
|
|
1564
|
+
login(loginRequestBody, options) {
|
|
1565
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1566
|
+
var _a, _b, _c;
|
|
1567
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.login(loginRequestBody, options);
|
|
1568
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1569
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.login']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1570
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1571
|
+
});
|
|
1572
|
+
},
|
|
1573
|
+
/**
|
|
1574
|
+
*
|
|
1575
|
+
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
1576
|
+
* @param {*} [options] Override http request option.
|
|
1577
|
+
* @throws {RequiredError}
|
|
1578
|
+
*/
|
|
1579
|
+
refreshToken(refreshTokenRequestBody, options) {
|
|
1580
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1581
|
+
var _a, _b, _c;
|
|
1582
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.refreshToken(refreshTokenRequestBody, options);
|
|
1583
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1584
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.refreshToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1585
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1586
|
+
});
|
|
1587
|
+
},
|
|
1588
|
+
/**
|
|
1589
|
+
*
|
|
1590
|
+
* @param {RegisterRequestBody} registerRequestBody
|
|
1591
|
+
* @param {*} [options] Override http request option.
|
|
1592
|
+
* @throws {RequiredError}
|
|
1593
|
+
*/
|
|
1594
|
+
register(registerRequestBody, options) {
|
|
1595
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1596
|
+
var _a, _b, _c;
|
|
1597
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.register(registerRequestBody, options);
|
|
1598
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1599
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.register']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1600
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1601
|
+
});
|
|
1602
|
+
},
|
|
1603
|
+
/**
|
|
1604
|
+
*
|
|
1605
|
+
* @param {string} clubId
|
|
1606
|
+
* @param {*} [options] Override http request option.
|
|
1607
|
+
* @throws {RequiredError}
|
|
1608
|
+
*/
|
|
1609
|
+
removeFavoriteClub(clubId, options) {
|
|
1610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1611
|
+
var _a, _b, _c;
|
|
1612
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoriteClub(clubId, options);
|
|
1613
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1614
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.removeFavoriteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1615
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1616
|
+
});
|
|
1617
|
+
},
|
|
1618
|
+
/**
|
|
1619
|
+
*
|
|
1620
|
+
* @param {string} favoritePlayerId
|
|
1621
|
+
* @param {*} [options] Override http request option.
|
|
1622
|
+
* @throws {RequiredError}
|
|
1623
|
+
*/
|
|
1624
|
+
removeFavoritePlayer(favoritePlayerId, options) {
|
|
1625
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1626
|
+
var _a, _b, _c;
|
|
1627
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFavoritePlayer(favoritePlayerId, options);
|
|
1628
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1629
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.removeFavoritePlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1630
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1631
|
+
});
|
|
1632
|
+
},
|
|
1633
|
+
/**
|
|
1634
|
+
*
|
|
1635
|
+
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
1636
|
+
* @param {*} [options] Override http request option.
|
|
1637
|
+
* @throws {RequiredError}
|
|
1638
|
+
*/
|
|
1639
|
+
requestPasswordReset(passwordResetRequestBody, options) {
|
|
1640
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1641
|
+
var _a, _b, _c;
|
|
1642
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestPasswordReset(passwordResetRequestBody, options);
|
|
1643
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1644
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.requestPasswordReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1645
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1646
|
+
});
|
|
1647
|
+
},
|
|
1648
|
+
/**
|
|
1649
|
+
*
|
|
1650
|
+
* @param {string} clubId
|
|
1651
|
+
* @param {string} subscriptionId
|
|
1652
|
+
* @param {*} [options] Override http request option.
|
|
1653
|
+
* @throws {RequiredError}
|
|
1654
|
+
*/
|
|
1655
|
+
resumeSubscription(clubId, subscriptionId, options) {
|
|
1656
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1657
|
+
var _a, _b, _c;
|
|
1658
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resumeSubscription(clubId, subscriptionId, options);
|
|
1659
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1660
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.resumeSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1661
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1662
|
+
});
|
|
1663
|
+
},
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
1667
|
+
* @param {*} [options] Override http request option.
|
|
1668
|
+
* @throws {RequiredError}
|
|
1669
|
+
*/
|
|
1670
|
+
setupPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
1671
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1672
|
+
var _a, _b, _c;
|
|
1673
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
1674
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1675
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.setupPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1676
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1677
|
+
});
|
|
1678
|
+
},
|
|
1679
|
+
/**
|
|
1680
|
+
*
|
|
1681
|
+
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
1682
|
+
* @param {*} [options] Override http request option.
|
|
1683
|
+
* @throws {RequiredError}
|
|
1684
|
+
*/
|
|
1685
|
+
signInOrSignUpWithGoogle(googleAuthRequestBody, options) {
|
|
1686
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1687
|
+
var _a, _b, _c;
|
|
1688
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.signInOrSignUpWithGoogle(googleAuthRequestBody, options);
|
|
1689
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1690
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.signInOrSignUpWithGoogle']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1691
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1692
|
+
});
|
|
1693
|
+
},
|
|
1694
|
+
/**
|
|
1695
|
+
*
|
|
1696
|
+
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
1697
|
+
* @param {*} [options] Override http request option.
|
|
1698
|
+
* @throws {RequiredError}
|
|
1699
|
+
*/
|
|
1700
|
+
subscribeToClub(subscribeToClubRequestBody, options) {
|
|
1701
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1702
|
+
var _a, _b, _c;
|
|
1703
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
|
|
1704
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1705
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1706
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1707
|
+
});
|
|
1708
|
+
},
|
|
1709
|
+
/**
|
|
1710
|
+
*
|
|
1711
|
+
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
1712
|
+
* @param {*} [options] Override http request option.
|
|
1713
|
+
* @throws {RequiredError}
|
|
1714
|
+
*/
|
|
1715
|
+
updateCustomer(updateCustomerRequestBody, options) {
|
|
1716
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1717
|
+
var _a, _b, _c;
|
|
1718
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
|
|
1719
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1720
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1721
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1722
|
+
});
|
|
1723
|
+
},
|
|
1724
|
+
/**
|
|
1725
|
+
*
|
|
1726
|
+
* @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
|
|
1727
|
+
* @param {*} [options] Override http request option.
|
|
1728
|
+
* @throws {RequiredError}
|
|
1729
|
+
*/
|
|
1730
|
+
updateLevelBySports(updateLevelBySportsRequestBody, options) {
|
|
1731
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1732
|
+
var _a, _b, _c;
|
|
1733
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateLevelBySports(updateLevelBySportsRequestBody, options);
|
|
1734
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1735
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.updateLevelBySports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1736
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1737
|
+
});
|
|
1738
|
+
},
|
|
1739
|
+
/**
|
|
1740
|
+
*
|
|
1741
|
+
* @param {UpdateUserRequestBody} updateUserRequestBody
|
|
1742
|
+
* @param {*} [options] Override http request option.
|
|
1743
|
+
* @throws {RequiredError}
|
|
1744
|
+
*/
|
|
1745
|
+
updateMe(updateUserRequestBody, options) {
|
|
1746
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1747
|
+
var _a, _b, _c;
|
|
1748
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateMe(updateUserRequestBody, options);
|
|
1749
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1750
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.updateMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1751
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1752
|
+
});
|
|
1753
|
+
},
|
|
1754
|
+
/**
|
|
1755
|
+
*
|
|
1756
|
+
* @param {ProfilePictureUpdateRequestBody} profilePictureUpdateRequestBody
|
|
1757
|
+
* @param {*} [options] Override http request option.
|
|
1758
|
+
* @throws {RequiredError}
|
|
1759
|
+
*/
|
|
1760
|
+
updateProfilePicture(profilePictureUpdateRequestBody, options) {
|
|
1761
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1762
|
+
var _a, _b, _c;
|
|
1763
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProfilePicture(profilePictureUpdateRequestBody, options);
|
|
1764
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1765
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.updateProfilePicture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1766
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1767
|
+
});
|
|
1768
|
+
},
|
|
1769
|
+
};
|
|
61
1770
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
1771
|
+
/**
|
|
1772
|
+
* UsersApi - factory interface
|
|
1773
|
+
* @export
|
|
1774
|
+
*/
|
|
1775
|
+
export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
1776
|
+
const localVarFp = UsersApiFp(configuration);
|
|
1777
|
+
return {
|
|
1778
|
+
/**
|
|
1779
|
+
*
|
|
1780
|
+
* @param {UsersApiAddFavoriteClubRequest} requestParameters Request parameters.
|
|
1781
|
+
* @param {*} [options] Override http request option.
|
|
1782
|
+
* @throws {RequiredError}
|
|
1783
|
+
*/
|
|
1784
|
+
addFavoriteClub(requestParameters, options) {
|
|
1785
|
+
return localVarFp.addFavoriteClub(requestParameters.favoriteClubRequestBody, options).then((request) => request(axios, basePath));
|
|
1786
|
+
},
|
|
1787
|
+
/**
|
|
1788
|
+
*
|
|
1789
|
+
* @param {UsersApiAddFavoritePlayerRequest} requestParameters Request parameters.
|
|
1790
|
+
* @param {*} [options] Override http request option.
|
|
1791
|
+
* @throws {RequiredError}
|
|
1792
|
+
*/
|
|
1793
|
+
addFavoritePlayer(requestParameters, options) {
|
|
1794
|
+
return localVarFp.addFavoritePlayer(requestParameters.favoritePlayerRequestBody, options).then((request) => request(axios, basePath));
|
|
1795
|
+
},
|
|
1796
|
+
/**
|
|
1797
|
+
*
|
|
1798
|
+
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
1799
|
+
* @param {*} [options] Override http request option.
|
|
1800
|
+
* @throws {RequiredError}
|
|
1801
|
+
*/
|
|
1802
|
+
addPaymentMethodSetup(requestParameters, options) {
|
|
1803
|
+
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
1804
|
+
},
|
|
1805
|
+
/**
|
|
1806
|
+
*
|
|
1807
|
+
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
1808
|
+
* @param {*} [options] Override http request option.
|
|
1809
|
+
* @throws {RequiredError}
|
|
1810
|
+
*/
|
|
1811
|
+
cancelSubscription(requestParameters, options) {
|
|
1812
|
+
return localVarFp.cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
1813
|
+
},
|
|
1814
|
+
/**
|
|
1815
|
+
*
|
|
1816
|
+
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
1817
|
+
* @param {*} [options] Override http request option.
|
|
1818
|
+
* @throws {RequiredError}
|
|
1819
|
+
*/
|
|
1820
|
+
changePassword(requestParameters, options) {
|
|
1821
|
+
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
1822
|
+
},
|
|
1823
|
+
/**
|
|
1824
|
+
*
|
|
1825
|
+
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
1826
|
+
* @param {*} [options] Override http request option.
|
|
1827
|
+
* @throws {RequiredError}
|
|
1828
|
+
*/
|
|
1829
|
+
confirmPaymentMethodSetup(requestParameters, options) {
|
|
1830
|
+
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
1831
|
+
},
|
|
1832
|
+
/**
|
|
1833
|
+
*
|
|
1834
|
+
* @param {*} [options] Override http request option.
|
|
1835
|
+
* @throws {RequiredError}
|
|
1836
|
+
*/
|
|
1837
|
+
getAllUsers(options) {
|
|
1838
|
+
return localVarFp.getAllUsers(options).then((request) => request(axios, basePath));
|
|
1839
|
+
},
|
|
1840
|
+
/**
|
|
1841
|
+
*
|
|
1842
|
+
* @param {UsersApiGetBookingDetailRequest} requestParameters Request parameters.
|
|
1843
|
+
* @param {*} [options] Override http request option.
|
|
1844
|
+
* @throws {RequiredError}
|
|
1845
|
+
*/
|
|
1846
|
+
getBookingDetail(requestParameters, options) {
|
|
1847
|
+
return localVarFp.getBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
1848
|
+
},
|
|
1849
|
+
/**
|
|
1850
|
+
*
|
|
1851
|
+
* @param {*} [options] Override http request option.
|
|
1852
|
+
* @throws {RequiredError}
|
|
1853
|
+
*/
|
|
1854
|
+
getFavoriteClubs(options) {
|
|
1855
|
+
return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
|
|
1856
|
+
},
|
|
1857
|
+
/**
|
|
1858
|
+
*
|
|
1859
|
+
* @param {*} [options] Override http request option.
|
|
1860
|
+
* @throws {RequiredError}
|
|
1861
|
+
*/
|
|
1862
|
+
getFavoritesPlayers(options) {
|
|
1863
|
+
return localVarFp.getFavoritesPlayers(options).then((request) => request(axios, basePath));
|
|
1864
|
+
},
|
|
1865
|
+
/**
|
|
1866
|
+
*
|
|
1867
|
+
* @param {*} [options] Override http request option.
|
|
1868
|
+
* @throws {RequiredError}
|
|
1869
|
+
*/
|
|
1870
|
+
getFrequentlyPlayedWith(options) {
|
|
1871
|
+
return localVarFp.getFrequentlyPlayedWith(options).then((request) => request(axios, basePath));
|
|
1872
|
+
},
|
|
1873
|
+
/**
|
|
1874
|
+
*
|
|
1875
|
+
* @param {*} [options] Override http request option.
|
|
1876
|
+
* @throws {RequiredError}
|
|
1877
|
+
*/
|
|
1878
|
+
getFrequentlyVisitedClub(options) {
|
|
1879
|
+
return localVarFp.getFrequentlyVisitedClub(options).then((request) => request(axios, basePath));
|
|
1880
|
+
},
|
|
1881
|
+
/**
|
|
1882
|
+
*
|
|
1883
|
+
* @param {*} [options] Override http request option.
|
|
1884
|
+
* @throws {RequiredError}
|
|
1885
|
+
*/
|
|
1886
|
+
getMe(options) {
|
|
1887
|
+
return localVarFp.getMe(options).then((request) => request(axios, basePath));
|
|
1888
|
+
},
|
|
1889
|
+
/**
|
|
1890
|
+
*
|
|
1891
|
+
* @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
|
|
1892
|
+
* @param {*} [options] Override http request option.
|
|
1893
|
+
* @throws {RequiredError}
|
|
1894
|
+
*/
|
|
1895
|
+
getNearestClubs(requestParameters = {}, options) {
|
|
1896
|
+
return localVarFp.getNearestClubs(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
1897
|
+
},
|
|
1898
|
+
/**
|
|
1899
|
+
*
|
|
1900
|
+
* @param {UsersApiGetNearestClubsFromCoordinatesRequest} requestParameters Request parameters.
|
|
1901
|
+
* @param {*} [options] Override http request option.
|
|
1902
|
+
* @throws {RequiredError}
|
|
1903
|
+
*/
|
|
1904
|
+
getNearestClubsFromCoordinates(requestParameters = {}, options) {
|
|
1905
|
+
return localVarFp.getNearestClubsFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
1906
|
+
},
|
|
1907
|
+
/**
|
|
1908
|
+
*
|
|
1909
|
+
* @param {UsersApiGetNearestUsersRequest} requestParameters Request parameters.
|
|
1910
|
+
* @param {*} [options] Override http request option.
|
|
1911
|
+
* @throws {RequiredError}
|
|
1912
|
+
*/
|
|
1913
|
+
getNearestUsers(requestParameters = {}, options) {
|
|
1914
|
+
return localVarFp.getNearestUsers(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
1915
|
+
},
|
|
1916
|
+
/**
|
|
1917
|
+
*
|
|
1918
|
+
* @param {UsersApiGetNearestUsersFromCoordinatesRequest} requestParameters Request parameters.
|
|
1919
|
+
* @param {*} [options] Override http request option.
|
|
1920
|
+
* @throws {RequiredError}
|
|
1921
|
+
*/
|
|
1922
|
+
getNearestUsersFromCoordinates(requestParameters = {}, options) {
|
|
1923
|
+
return localVarFp.getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
1924
|
+
},
|
|
1925
|
+
/**
|
|
1926
|
+
*
|
|
1927
|
+
* @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
1928
|
+
* @param {*} [options] Override http request option.
|
|
1929
|
+
* @throws {RequiredError}
|
|
1930
|
+
*/
|
|
1931
|
+
getUserBookings(requestParameters = {}, options) {
|
|
1932
|
+
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
1933
|
+
},
|
|
1934
|
+
/**
|
|
1935
|
+
*
|
|
1936
|
+
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
1937
|
+
* @param {*} [options] Override http request option.
|
|
1938
|
+
* @throws {RequiredError}
|
|
1939
|
+
*/
|
|
1940
|
+
getUserProfileById(requestParameters, options) {
|
|
1941
|
+
return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1942
|
+
},
|
|
1943
|
+
/**
|
|
1944
|
+
*
|
|
1945
|
+
* @param {UsersApiGetUserProfileStaffRequest} requestParameters Request parameters.
|
|
1946
|
+
* @param {*} [options] Override http request option.
|
|
1947
|
+
* @throws {RequiredError}
|
|
1948
|
+
*/
|
|
1949
|
+
getUserProfileStaff(requestParameters, options) {
|
|
1950
|
+
return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1951
|
+
},
|
|
1952
|
+
/**
|
|
1953
|
+
*
|
|
1954
|
+
* @param {*} [options] Override http request option.
|
|
1955
|
+
* @throws {RequiredError}
|
|
1956
|
+
*/
|
|
1957
|
+
getUserRolesInClubs(options) {
|
|
1958
|
+
return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
|
|
1959
|
+
},
|
|
1960
|
+
/**
|
|
1961
|
+
*
|
|
1962
|
+
* @param {*} [options] Override http request option.
|
|
1963
|
+
* @throws {RequiredError}
|
|
1964
|
+
*/
|
|
1965
|
+
getUserSubscriptions(options) {
|
|
1966
|
+
return localVarFp.getUserSubscriptions(options).then((request) => request(axios, basePath));
|
|
1967
|
+
},
|
|
1968
|
+
/**
|
|
1969
|
+
*
|
|
1970
|
+
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
1971
|
+
* @param {*} [options] Override http request option.
|
|
1972
|
+
* @throws {RequiredError}
|
|
1973
|
+
*/
|
|
1974
|
+
initiateSubscriptionSession(requestParameters, options) {
|
|
1975
|
+
return localVarFp.initiateSubscriptionSession(requestParameters.subscriptionSessionRequestBody, options).then((request) => request(axios, basePath));
|
|
1976
|
+
},
|
|
1977
|
+
/**
|
|
1978
|
+
*
|
|
1979
|
+
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
1980
|
+
* @param {*} [options] Override http request option.
|
|
1981
|
+
* @throws {RequiredError}
|
|
1982
|
+
*/
|
|
1983
|
+
login(requestParameters, options) {
|
|
1984
|
+
return localVarFp.login(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
1985
|
+
},
|
|
1986
|
+
/**
|
|
1987
|
+
*
|
|
1988
|
+
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
1989
|
+
* @param {*} [options] Override http request option.
|
|
1990
|
+
* @throws {RequiredError}
|
|
1991
|
+
*/
|
|
1992
|
+
refreshToken(requestParameters, options) {
|
|
1993
|
+
return localVarFp.refreshToken(requestParameters.refreshTokenRequestBody, options).then((request) => request(axios, basePath));
|
|
1994
|
+
},
|
|
1995
|
+
/**
|
|
1996
|
+
*
|
|
1997
|
+
* @param {UsersApiRegisterRequest} requestParameters Request parameters.
|
|
1998
|
+
* @param {*} [options] Override http request option.
|
|
1999
|
+
* @throws {RequiredError}
|
|
2000
|
+
*/
|
|
2001
|
+
register(requestParameters, options) {
|
|
2002
|
+
return localVarFp.register(requestParameters.registerRequestBody, options).then((request) => request(axios, basePath));
|
|
2003
|
+
},
|
|
2004
|
+
/**
|
|
2005
|
+
*
|
|
2006
|
+
* @param {UsersApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
2007
|
+
* @param {*} [options] Override http request option.
|
|
2008
|
+
* @throws {RequiredError}
|
|
2009
|
+
*/
|
|
2010
|
+
removeFavoriteClub(requestParameters, options) {
|
|
2011
|
+
return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
2012
|
+
},
|
|
2013
|
+
/**
|
|
2014
|
+
*
|
|
2015
|
+
* @param {UsersApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
|
|
2016
|
+
* @param {*} [options] Override http request option.
|
|
2017
|
+
* @throws {RequiredError}
|
|
2018
|
+
*/
|
|
2019
|
+
removeFavoritePlayer(requestParameters, options) {
|
|
2020
|
+
return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
|
|
2021
|
+
},
|
|
2022
|
+
/**
|
|
2023
|
+
*
|
|
2024
|
+
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
2025
|
+
* @param {*} [options] Override http request option.
|
|
2026
|
+
* @throws {RequiredError}
|
|
2027
|
+
*/
|
|
2028
|
+
requestPasswordReset(requestParameters, options) {
|
|
2029
|
+
return localVarFp.requestPasswordReset(requestParameters.passwordResetRequestBody, options).then((request) => request(axios, basePath));
|
|
2030
|
+
},
|
|
2031
|
+
/**
|
|
2032
|
+
*
|
|
2033
|
+
* @param {UsersApiResumeSubscriptionRequest} requestParameters Request parameters.
|
|
2034
|
+
* @param {*} [options] Override http request option.
|
|
2035
|
+
* @throws {RequiredError}
|
|
2036
|
+
*/
|
|
2037
|
+
resumeSubscription(requestParameters, options) {
|
|
2038
|
+
return localVarFp.resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
2039
|
+
},
|
|
2040
|
+
/**
|
|
2041
|
+
*
|
|
2042
|
+
* @param {UsersApiSetupPaymentMethodRequest} requestParameters Request parameters.
|
|
2043
|
+
* @param {*} [options] Override http request option.
|
|
2044
|
+
* @throws {RequiredError}
|
|
2045
|
+
*/
|
|
2046
|
+
setupPaymentMethod(requestParameters, options) {
|
|
2047
|
+
return localVarFp.setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
2048
|
+
},
|
|
2049
|
+
/**
|
|
2050
|
+
*
|
|
2051
|
+
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
2052
|
+
* @param {*} [options] Override http request option.
|
|
2053
|
+
* @throws {RequiredError}
|
|
2054
|
+
*/
|
|
2055
|
+
signInOrSignUpWithGoogle(requestParameters, options) {
|
|
2056
|
+
return localVarFp.signInOrSignUpWithGoogle(requestParameters.googleAuthRequestBody, options).then((request) => request(axios, basePath));
|
|
2057
|
+
},
|
|
2058
|
+
/**
|
|
2059
|
+
*
|
|
2060
|
+
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
2061
|
+
* @param {*} [options] Override http request option.
|
|
2062
|
+
* @throws {RequiredError}
|
|
2063
|
+
*/
|
|
2064
|
+
subscribeToClub(requestParameters, options) {
|
|
2065
|
+
return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
|
|
2066
|
+
},
|
|
2067
|
+
/**
|
|
2068
|
+
*
|
|
2069
|
+
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
2070
|
+
* @param {*} [options] Override http request option.
|
|
2071
|
+
* @throws {RequiredError}
|
|
2072
|
+
*/
|
|
2073
|
+
updateCustomer(requestParameters, options) {
|
|
2074
|
+
return localVarFp.updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(axios, basePath));
|
|
2075
|
+
},
|
|
2076
|
+
/**
|
|
2077
|
+
*
|
|
2078
|
+
* @param {UsersApiUpdateLevelBySportsRequest} requestParameters Request parameters.
|
|
2079
|
+
* @param {*} [options] Override http request option.
|
|
2080
|
+
* @throws {RequiredError}
|
|
2081
|
+
*/
|
|
2082
|
+
updateLevelBySports(requestParameters, options) {
|
|
2083
|
+
return localVarFp.updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(axios, basePath));
|
|
2084
|
+
},
|
|
2085
|
+
/**
|
|
2086
|
+
*
|
|
2087
|
+
* @param {UsersApiUpdateMeRequest} requestParameters Request parameters.
|
|
2088
|
+
* @param {*} [options] Override http request option.
|
|
2089
|
+
* @throws {RequiredError}
|
|
2090
|
+
*/
|
|
2091
|
+
updateMe(requestParameters, options) {
|
|
2092
|
+
return localVarFp.updateMe(requestParameters.updateUserRequestBody, options).then((request) => request(axios, basePath));
|
|
2093
|
+
},
|
|
2094
|
+
/**
|
|
2095
|
+
*
|
|
2096
|
+
* @param {UsersApiUpdateProfilePictureRequest} requestParameters Request parameters.
|
|
2097
|
+
* @param {*} [options] Override http request option.
|
|
2098
|
+
* @throws {RequiredError}
|
|
2099
|
+
*/
|
|
2100
|
+
updateProfilePicture(requestParameters, options) {
|
|
2101
|
+
return localVarFp.updateProfilePicture(requestParameters.profilePictureUpdateRequestBody, options).then((request) => request(axios, basePath));
|
|
2102
|
+
},
|
|
2103
|
+
};
|
|
70
2104
|
};
|
|
2105
|
+
/**
|
|
2106
|
+
* UsersApi - object-oriented interface
|
|
2107
|
+
* @export
|
|
2108
|
+
* @class UsersApi
|
|
2109
|
+
* @extends {BaseAPI}
|
|
2110
|
+
*/
|
|
2111
|
+
export class UsersApi extends BaseAPI {
|
|
2112
|
+
/**
|
|
2113
|
+
*
|
|
2114
|
+
* @param {UsersApiAddFavoriteClubRequest} requestParameters Request parameters.
|
|
2115
|
+
* @param {*} [options] Override http request option.
|
|
2116
|
+
* @throws {RequiredError}
|
|
2117
|
+
* @memberof UsersApi
|
|
2118
|
+
*/
|
|
2119
|
+
addFavoriteClub(requestParameters, options) {
|
|
2120
|
+
return UsersApiFp(this.configuration).addFavoriteClub(requestParameters.favoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2121
|
+
}
|
|
2122
|
+
/**
|
|
2123
|
+
*
|
|
2124
|
+
* @param {UsersApiAddFavoritePlayerRequest} requestParameters Request parameters.
|
|
2125
|
+
* @param {*} [options] Override http request option.
|
|
2126
|
+
* @throws {RequiredError}
|
|
2127
|
+
* @memberof UsersApi
|
|
2128
|
+
*/
|
|
2129
|
+
addFavoritePlayer(requestParameters, options) {
|
|
2130
|
+
return UsersApiFp(this.configuration).addFavoritePlayer(requestParameters.favoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2131
|
+
}
|
|
2132
|
+
/**
|
|
2133
|
+
*
|
|
2134
|
+
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
2135
|
+
* @param {*} [options] Override http request option.
|
|
2136
|
+
* @throws {RequiredError}
|
|
2137
|
+
* @memberof UsersApi
|
|
2138
|
+
*/
|
|
2139
|
+
addPaymentMethodSetup(requestParameters, options) {
|
|
2140
|
+
return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2141
|
+
}
|
|
2142
|
+
/**
|
|
2143
|
+
*
|
|
2144
|
+
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
2145
|
+
* @param {*} [options] Override http request option.
|
|
2146
|
+
* @throws {RequiredError}
|
|
2147
|
+
* @memberof UsersApi
|
|
2148
|
+
*/
|
|
2149
|
+
cancelSubscription(requestParameters, options) {
|
|
2150
|
+
return UsersApiFp(this.configuration).cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
*
|
|
2154
|
+
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
2155
|
+
* @param {*} [options] Override http request option.
|
|
2156
|
+
* @throws {RequiredError}
|
|
2157
|
+
* @memberof UsersApi
|
|
2158
|
+
*/
|
|
2159
|
+
changePassword(requestParameters, options) {
|
|
2160
|
+
return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2161
|
+
}
|
|
2162
|
+
/**
|
|
2163
|
+
*
|
|
2164
|
+
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
2165
|
+
* @param {*} [options] Override http request option.
|
|
2166
|
+
* @throws {RequiredError}
|
|
2167
|
+
* @memberof UsersApi
|
|
2168
|
+
*/
|
|
2169
|
+
confirmPaymentMethodSetup(requestParameters, options) {
|
|
2170
|
+
return UsersApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2171
|
+
}
|
|
2172
|
+
/**
|
|
2173
|
+
*
|
|
2174
|
+
* @param {*} [options] Override http request option.
|
|
2175
|
+
* @throws {RequiredError}
|
|
2176
|
+
* @memberof UsersApi
|
|
2177
|
+
*/
|
|
2178
|
+
getAllUsers(options) {
|
|
2179
|
+
return UsersApiFp(this.configuration).getAllUsers(options).then((request) => request(this.axios, this.basePath));
|
|
2180
|
+
}
|
|
2181
|
+
/**
|
|
2182
|
+
*
|
|
2183
|
+
* @param {UsersApiGetBookingDetailRequest} requestParameters Request parameters.
|
|
2184
|
+
* @param {*} [options] Override http request option.
|
|
2185
|
+
* @throws {RequiredError}
|
|
2186
|
+
* @memberof UsersApi
|
|
2187
|
+
*/
|
|
2188
|
+
getBookingDetail(requestParameters, options) {
|
|
2189
|
+
return UsersApiFp(this.configuration).getBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
2190
|
+
}
|
|
2191
|
+
/**
|
|
2192
|
+
*
|
|
2193
|
+
* @param {*} [options] Override http request option.
|
|
2194
|
+
* @throws {RequiredError}
|
|
2195
|
+
* @memberof UsersApi
|
|
2196
|
+
*/
|
|
2197
|
+
getFavoriteClubs(options) {
|
|
2198
|
+
return UsersApiFp(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2199
|
+
}
|
|
2200
|
+
/**
|
|
2201
|
+
*
|
|
2202
|
+
* @param {*} [options] Override http request option.
|
|
2203
|
+
* @throws {RequiredError}
|
|
2204
|
+
* @memberof UsersApi
|
|
2205
|
+
*/
|
|
2206
|
+
getFavoritesPlayers(options) {
|
|
2207
|
+
return UsersApiFp(this.configuration).getFavoritesPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
2208
|
+
}
|
|
2209
|
+
/**
|
|
2210
|
+
*
|
|
2211
|
+
* @param {*} [options] Override http request option.
|
|
2212
|
+
* @throws {RequiredError}
|
|
2213
|
+
* @memberof UsersApi
|
|
2214
|
+
*/
|
|
2215
|
+
getFrequentlyPlayedWith(options) {
|
|
2216
|
+
return UsersApiFp(this.configuration).getFrequentlyPlayedWith(options).then((request) => request(this.axios, this.basePath));
|
|
2217
|
+
}
|
|
2218
|
+
/**
|
|
2219
|
+
*
|
|
2220
|
+
* @param {*} [options] Override http request option.
|
|
2221
|
+
* @throws {RequiredError}
|
|
2222
|
+
* @memberof UsersApi
|
|
2223
|
+
*/
|
|
2224
|
+
getFrequentlyVisitedClub(options) {
|
|
2225
|
+
return UsersApiFp(this.configuration).getFrequentlyVisitedClub(options).then((request) => request(this.axios, this.basePath));
|
|
2226
|
+
}
|
|
2227
|
+
/**
|
|
2228
|
+
*
|
|
2229
|
+
* @param {*} [options] Override http request option.
|
|
2230
|
+
* @throws {RequiredError}
|
|
2231
|
+
* @memberof UsersApi
|
|
2232
|
+
*/
|
|
2233
|
+
getMe(options) {
|
|
2234
|
+
return UsersApiFp(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
|
|
2235
|
+
}
|
|
2236
|
+
/**
|
|
2237
|
+
*
|
|
2238
|
+
* @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
|
|
2239
|
+
* @param {*} [options] Override http request option.
|
|
2240
|
+
* @throws {RequiredError}
|
|
2241
|
+
* @memberof UsersApi
|
|
2242
|
+
*/
|
|
2243
|
+
getNearestClubs(requestParameters = {}, options) {
|
|
2244
|
+
return UsersApiFp(this.configuration).getNearestClubs(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
2245
|
+
}
|
|
2246
|
+
/**
|
|
2247
|
+
*
|
|
2248
|
+
* @param {UsersApiGetNearestClubsFromCoordinatesRequest} requestParameters Request parameters.
|
|
2249
|
+
* @param {*} [options] Override http request option.
|
|
2250
|
+
* @throws {RequiredError}
|
|
2251
|
+
* @memberof UsersApi
|
|
2252
|
+
*/
|
|
2253
|
+
getNearestClubsFromCoordinates(requestParameters = {}, options) {
|
|
2254
|
+
return UsersApiFp(this.configuration).getNearestClubsFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
2255
|
+
}
|
|
2256
|
+
/**
|
|
2257
|
+
*
|
|
2258
|
+
* @param {UsersApiGetNearestUsersRequest} requestParameters Request parameters.
|
|
2259
|
+
* @param {*} [options] Override http request option.
|
|
2260
|
+
* @throws {RequiredError}
|
|
2261
|
+
* @memberof UsersApi
|
|
2262
|
+
*/
|
|
2263
|
+
getNearestUsers(requestParameters = {}, options) {
|
|
2264
|
+
return UsersApiFp(this.configuration).getNearestUsers(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
2265
|
+
}
|
|
2266
|
+
/**
|
|
2267
|
+
*
|
|
2268
|
+
* @param {UsersApiGetNearestUsersFromCoordinatesRequest} requestParameters Request parameters.
|
|
2269
|
+
* @param {*} [options] Override http request option.
|
|
2270
|
+
* @throws {RequiredError}
|
|
2271
|
+
* @memberof UsersApi
|
|
2272
|
+
*/
|
|
2273
|
+
getNearestUsersFromCoordinates(requestParameters = {}, options) {
|
|
2274
|
+
return UsersApiFp(this.configuration).getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
2275
|
+
}
|
|
2276
|
+
/**
|
|
2277
|
+
*
|
|
2278
|
+
* @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
2279
|
+
* @param {*} [options] Override http request option.
|
|
2280
|
+
* @throws {RequiredError}
|
|
2281
|
+
* @memberof UsersApi
|
|
2282
|
+
*/
|
|
2283
|
+
getUserBookings(requestParameters = {}, options) {
|
|
2284
|
+
return UsersApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
2285
|
+
}
|
|
2286
|
+
/**
|
|
2287
|
+
*
|
|
2288
|
+
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
2289
|
+
* @param {*} [options] Override http request option.
|
|
2290
|
+
* @throws {RequiredError}
|
|
2291
|
+
* @memberof UsersApi
|
|
2292
|
+
*/
|
|
2293
|
+
getUserProfileById(requestParameters, options) {
|
|
2294
|
+
return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2295
|
+
}
|
|
2296
|
+
/**
|
|
2297
|
+
*
|
|
2298
|
+
* @param {UsersApiGetUserProfileStaffRequest} requestParameters Request parameters.
|
|
2299
|
+
* @param {*} [options] Override http request option.
|
|
2300
|
+
* @throws {RequiredError}
|
|
2301
|
+
* @memberof UsersApi
|
|
2302
|
+
*/
|
|
2303
|
+
getUserProfileStaff(requestParameters, options) {
|
|
2304
|
+
return UsersApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2305
|
+
}
|
|
2306
|
+
/**
|
|
2307
|
+
*
|
|
2308
|
+
* @param {*} [options] Override http request option.
|
|
2309
|
+
* @throws {RequiredError}
|
|
2310
|
+
* @memberof UsersApi
|
|
2311
|
+
*/
|
|
2312
|
+
getUserRolesInClubs(options) {
|
|
2313
|
+
return UsersApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2314
|
+
}
|
|
2315
|
+
/**
|
|
2316
|
+
*
|
|
2317
|
+
* @param {*} [options] Override http request option.
|
|
2318
|
+
* @throws {RequiredError}
|
|
2319
|
+
* @memberof UsersApi
|
|
2320
|
+
*/
|
|
2321
|
+
getUserSubscriptions(options) {
|
|
2322
|
+
return UsersApiFp(this.configuration).getUserSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
2323
|
+
}
|
|
2324
|
+
/**
|
|
2325
|
+
*
|
|
2326
|
+
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
2327
|
+
* @param {*} [options] Override http request option.
|
|
2328
|
+
* @throws {RequiredError}
|
|
2329
|
+
* @memberof UsersApi
|
|
2330
|
+
*/
|
|
2331
|
+
initiateSubscriptionSession(requestParameters, options) {
|
|
2332
|
+
return UsersApiFp(this.configuration).initiateSubscriptionSession(requestParameters.subscriptionSessionRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2333
|
+
}
|
|
2334
|
+
/**
|
|
2335
|
+
*
|
|
2336
|
+
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
2337
|
+
* @param {*} [options] Override http request option.
|
|
2338
|
+
* @throws {RequiredError}
|
|
2339
|
+
* @memberof UsersApi
|
|
2340
|
+
*/
|
|
2341
|
+
login(requestParameters, options) {
|
|
2342
|
+
return UsersApiFp(this.configuration).login(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2343
|
+
}
|
|
2344
|
+
/**
|
|
2345
|
+
*
|
|
2346
|
+
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
2347
|
+
* @param {*} [options] Override http request option.
|
|
2348
|
+
* @throws {RequiredError}
|
|
2349
|
+
* @memberof UsersApi
|
|
2350
|
+
*/
|
|
2351
|
+
refreshToken(requestParameters, options) {
|
|
2352
|
+
return UsersApiFp(this.configuration).refreshToken(requestParameters.refreshTokenRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2353
|
+
}
|
|
2354
|
+
/**
|
|
2355
|
+
*
|
|
2356
|
+
* @param {UsersApiRegisterRequest} requestParameters Request parameters.
|
|
2357
|
+
* @param {*} [options] Override http request option.
|
|
2358
|
+
* @throws {RequiredError}
|
|
2359
|
+
* @memberof UsersApi
|
|
2360
|
+
*/
|
|
2361
|
+
register(requestParameters, options) {
|
|
2362
|
+
return UsersApiFp(this.configuration).register(requestParameters.registerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2363
|
+
}
|
|
2364
|
+
/**
|
|
2365
|
+
*
|
|
2366
|
+
* @param {UsersApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
2367
|
+
* @param {*} [options] Override http request option.
|
|
2368
|
+
* @throws {RequiredError}
|
|
2369
|
+
* @memberof UsersApi
|
|
2370
|
+
*/
|
|
2371
|
+
removeFavoriteClub(requestParameters, options) {
|
|
2372
|
+
return UsersApiFp(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
2373
|
+
}
|
|
2374
|
+
/**
|
|
2375
|
+
*
|
|
2376
|
+
* @param {UsersApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
|
|
2377
|
+
* @param {*} [options] Override http request option.
|
|
2378
|
+
* @throws {RequiredError}
|
|
2379
|
+
* @memberof UsersApi
|
|
2380
|
+
*/
|
|
2381
|
+
removeFavoritePlayer(requestParameters, options) {
|
|
2382
|
+
return UsersApiFp(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
|
|
2383
|
+
}
|
|
2384
|
+
/**
|
|
2385
|
+
*
|
|
2386
|
+
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
2387
|
+
* @param {*} [options] Override http request option.
|
|
2388
|
+
* @throws {RequiredError}
|
|
2389
|
+
* @memberof UsersApi
|
|
2390
|
+
*/
|
|
2391
|
+
requestPasswordReset(requestParameters, options) {
|
|
2392
|
+
return UsersApiFp(this.configuration).requestPasswordReset(requestParameters.passwordResetRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2393
|
+
}
|
|
2394
|
+
/**
|
|
2395
|
+
*
|
|
2396
|
+
* @param {UsersApiResumeSubscriptionRequest} requestParameters Request parameters.
|
|
2397
|
+
* @param {*} [options] Override http request option.
|
|
2398
|
+
* @throws {RequiredError}
|
|
2399
|
+
* @memberof UsersApi
|
|
2400
|
+
*/
|
|
2401
|
+
resumeSubscription(requestParameters, options) {
|
|
2402
|
+
return UsersApiFp(this.configuration).resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
2403
|
+
}
|
|
2404
|
+
/**
|
|
2405
|
+
*
|
|
2406
|
+
* @param {UsersApiSetupPaymentMethodRequest} requestParameters Request parameters.
|
|
2407
|
+
* @param {*} [options] Override http request option.
|
|
2408
|
+
* @throws {RequiredError}
|
|
2409
|
+
* @memberof UsersApi
|
|
2410
|
+
*/
|
|
2411
|
+
setupPaymentMethod(requestParameters, options) {
|
|
2412
|
+
return UsersApiFp(this.configuration).setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2413
|
+
}
|
|
2414
|
+
/**
|
|
2415
|
+
*
|
|
2416
|
+
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
2417
|
+
* @param {*} [options] Override http request option.
|
|
2418
|
+
* @throws {RequiredError}
|
|
2419
|
+
* @memberof UsersApi
|
|
2420
|
+
*/
|
|
2421
|
+
signInOrSignUpWithGoogle(requestParameters, options) {
|
|
2422
|
+
return UsersApiFp(this.configuration).signInOrSignUpWithGoogle(requestParameters.googleAuthRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2423
|
+
}
|
|
2424
|
+
/**
|
|
2425
|
+
*
|
|
2426
|
+
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
2427
|
+
* @param {*} [options] Override http request option.
|
|
2428
|
+
* @throws {RequiredError}
|
|
2429
|
+
* @memberof UsersApi
|
|
2430
|
+
*/
|
|
2431
|
+
subscribeToClub(requestParameters, options) {
|
|
2432
|
+
return UsersApiFp(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2433
|
+
}
|
|
2434
|
+
/**
|
|
2435
|
+
*
|
|
2436
|
+
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
2437
|
+
* @param {*} [options] Override http request option.
|
|
2438
|
+
* @throws {RequiredError}
|
|
2439
|
+
* @memberof UsersApi
|
|
2440
|
+
*/
|
|
2441
|
+
updateCustomer(requestParameters, options) {
|
|
2442
|
+
return UsersApiFp(this.configuration).updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2443
|
+
}
|
|
2444
|
+
/**
|
|
2445
|
+
*
|
|
2446
|
+
* @param {UsersApiUpdateLevelBySportsRequest} requestParameters Request parameters.
|
|
2447
|
+
* @param {*} [options] Override http request option.
|
|
2448
|
+
* @throws {RequiredError}
|
|
2449
|
+
* @memberof UsersApi
|
|
2450
|
+
*/
|
|
2451
|
+
updateLevelBySports(requestParameters, options) {
|
|
2452
|
+
return UsersApiFp(this.configuration).updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2453
|
+
}
|
|
2454
|
+
/**
|
|
2455
|
+
*
|
|
2456
|
+
* @param {UsersApiUpdateMeRequest} requestParameters Request parameters.
|
|
2457
|
+
* @param {*} [options] Override http request option.
|
|
2458
|
+
* @throws {RequiredError}
|
|
2459
|
+
* @memberof UsersApi
|
|
2460
|
+
*/
|
|
2461
|
+
updateMe(requestParameters, options) {
|
|
2462
|
+
return UsersApiFp(this.configuration).updateMe(requestParameters.updateUserRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2463
|
+
}
|
|
2464
|
+
/**
|
|
2465
|
+
*
|
|
2466
|
+
* @param {UsersApiUpdateProfilePictureRequest} requestParameters Request parameters.
|
|
2467
|
+
* @param {*} [options] Override http request option.
|
|
2468
|
+
* @throws {RequiredError}
|
|
2469
|
+
* @memberof UsersApi
|
|
2470
|
+
*/
|
|
2471
|
+
updateProfilePicture(requestParameters, options) {
|
|
2472
|
+
return UsersApiFp(this.configuration).updateProfilePicture(requestParameters.profilePictureUpdateRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2473
|
+
}
|
|
2474
|
+
}
|