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