@tennac-booking/sdk 1.0.45 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -38
- package/api.ts +37 -37
- package/base.ts +1 -1
- package/dist/api.js +37 -37
- package/dist/base.js +1 -1
- package/dist/esm/api.js +37 -37
- package/dist/esm/base.js +1 -1
- package/docs/BookingsApi.md +1 -1
- package/docs/ClubAnalyticsApi.md +1 -1
- package/docs/ClubsApi.md +1 -1
- package/docs/DiagnosticsApi.md +1 -1
- package/docs/EventsApi.md +1 -1
- package/docs/ManagerBookingsApi.md +1 -1
- package/docs/ManagerClubCourtsApi.md +1 -1
- package/docs/ManagerClubRolesApi.md +1 -1
- package/docs/ManagerClubSlotsApi.md +1 -1
- package/docs/ManagerClubSubscriptionsApi.md +1 -1
- package/docs/ManagerClubsApi.md +1 -1
- package/docs/ManagerEventsApi.md +1 -1
- package/docs/ManagerSportsApi.md +1 -1
- package/docs/StaffBookingsApi.md +1 -1
- package/docs/StaffClubAnalyticsApi.md +1 -1
- package/docs/StaffClubBookingsApi.md +1 -1
- package/docs/StaffClubsApi.md +1 -1
- package/docs/StaffEventsApi.md +1 -1
- package/docs/UserBookingsApi.md +1 -1
- package/docs/UserClubCourtsApi.md +1 -1
- package/docs/UserClubSlotsApi.md +1 -1
- package/docs/UserClubSportsApi.md +1 -1
- package/docs/UserClubsApi.md +1 -1
- package/docs/UsersApi.md +38 -38
- package/package.json +1 -1
- package/docs/AddFavoritePlayerRequestBody.md +0 -20
- package/docs/FavoriteClubItem.md +0 -26
- package/docs/FavoriteClubResponse.md +0 -22
- package/docs/FavoritePlayerPublic.md +0 -28
- package/docs/FavoritePlayersIdsResponse.md +0 -22
- package/docs/GetUserRolesResponse.md +0 -20
- package/docs/GetUserRolesResponseRolesInner.md +0 -26
- package/docs/GetUserSubscriptionsResponse.md +0 -22
- package/docs/GoogleSignInRequestBody.md +0 -20
- package/docs/GoogleSignInResponse.md +0 -24
- package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
- package/docs/InitiateSubscriptionSessionResponse.md +0 -22
- package/docs/ProfileVisibilityResponse.md +0 -20
- package/docs/StaffProfileApi.md +0 -110
- package/docs/UserApi.md +0 -63
- package/docs/UserAuthenticationApi.md +0 -226
- package/docs/UserBookingsResponse.md +0 -26
- package/docs/UserCityResponse.md +0 -20
- package/docs/UserDescriptionResponse.md +0 -20
- package/docs/UserFavoriteClubsResponse.md +0 -20
- package/docs/UserPaymentApi.md +0 -176
- package/docs/UserProfileApi.md +0 -1254
- package/docs/UserResponse.md +0 -38
- package/docs/UserSubscriptionsApi.md +0 -222
package/dist/api.js
CHANGED
|
@@ -5460,7 +5460,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5460
5460
|
addFavoriteClub: (favoriteClubRequestBody_1, ...args_1) => __awaiter(this, [favoriteClubRequestBody_1, ...args_1], void 0, function* (favoriteClubRequestBody, options = {}) {
|
|
5461
5461
|
// verify required parameter 'favoriteClubRequestBody' is not null or undefined
|
|
5462
5462
|
(0, common_1.assertParamExists)('addFavoriteClub', 'favoriteClubRequestBody', favoriteClubRequestBody);
|
|
5463
|
-
const localVarPath = `/users/me/favorite-clubs`;
|
|
5463
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
5464
5464
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5465
5465
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5466
5466
|
let baseOptions;
|
|
@@ -5489,7 +5489,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5489
5489
|
addFavoritePlayer: (favoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [favoritePlayerRequestBody_1, ...args_1], void 0, function* (favoritePlayerRequestBody, options = {}) {
|
|
5490
5490
|
// verify required parameter 'favoritePlayerRequestBody' is not null or undefined
|
|
5491
5491
|
(0, common_1.assertParamExists)('addFavoritePlayer', 'favoritePlayerRequestBody', favoritePlayerRequestBody);
|
|
5492
|
-
const localVarPath = `/users/me/favoritesPlayers`;
|
|
5492
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
5493
5493
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5494
5494
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5495
5495
|
let baseOptions;
|
|
@@ -5518,7 +5518,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5518
5518
|
addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
|
|
5519
5519
|
// verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
|
|
5520
5520
|
(0, common_1.assertParamExists)('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
|
|
5521
|
-
const localVarPath = `/users/addPaymentMethodSetup`;
|
|
5521
|
+
const localVarPath = `/api/users/addPaymentMethodSetup`;
|
|
5522
5522
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5523
5523
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5524
5524
|
let baseOptions;
|
|
@@ -5550,7 +5550,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5550
5550
|
(0, common_1.assertParamExists)('cancelSubscription', 'clubId', clubId);
|
|
5551
5551
|
// verify required parameter 'subscriptionId' is not null or undefined
|
|
5552
5552
|
(0, common_1.assertParamExists)('cancelSubscription', 'subscriptionId', subscriptionId);
|
|
5553
|
-
const localVarPath = `/users/me/subscriptions/{clubId}/{subscriptionId}`
|
|
5553
|
+
const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}`
|
|
5554
5554
|
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
5555
5555
|
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
5556
5556
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -5579,7 +5579,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5579
5579
|
changePassword: (changePasswordRequestBody_1, ...args_1) => __awaiter(this, [changePasswordRequestBody_1, ...args_1], void 0, function* (changePasswordRequestBody, options = {}) {
|
|
5580
5580
|
// verify required parameter 'changePasswordRequestBody' is not null or undefined
|
|
5581
5581
|
(0, common_1.assertParamExists)('changePassword', 'changePasswordRequestBody', changePasswordRequestBody);
|
|
5582
|
-
const localVarPath = `/users/me/password`;
|
|
5582
|
+
const localVarPath = `/api/users/me/password`;
|
|
5583
5583
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5584
5584
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5585
5585
|
let baseOptions;
|
|
@@ -5608,7 +5608,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5608
5608
|
confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
|
|
5609
5609
|
// verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
|
|
5610
5610
|
(0, common_1.assertParamExists)('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
|
|
5611
|
-
const localVarPath = `/users/confirmPaymentMethodSetup`;
|
|
5611
|
+
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
5612
5612
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5613
5613
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5614
5614
|
let baseOptions;
|
|
@@ -5634,7 +5634,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5634
5634
|
* @throws {RequiredError}
|
|
5635
5635
|
*/
|
|
5636
5636
|
getAllUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5637
|
-
const localVarPath = `/users`;
|
|
5637
|
+
const localVarPath = `/api/users`;
|
|
5638
5638
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5639
5639
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5640
5640
|
let baseOptions;
|
|
@@ -5661,7 +5661,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5661
5661
|
getBookingDetail: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
5662
5662
|
// verify required parameter 'bookingId' is not null or undefined
|
|
5663
5663
|
(0, common_1.assertParamExists)('getBookingDetail', 'bookingId', bookingId);
|
|
5664
|
-
const localVarPath = `/users/me/booking-detail/{bookingId}`
|
|
5664
|
+
const localVarPath = `/api/users/me/booking-detail/{bookingId}`
|
|
5665
5665
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
5666
5666
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5667
5667
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5686,7 +5686,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5686
5686
|
* @throws {RequiredError}
|
|
5687
5687
|
*/
|
|
5688
5688
|
getFavoriteClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5689
|
-
const localVarPath = `/users/me/favorite-clubs`;
|
|
5689
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
5690
5690
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5691
5691
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5692
5692
|
let baseOptions;
|
|
@@ -5710,7 +5710,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5710
5710
|
* @throws {RequiredError}
|
|
5711
5711
|
*/
|
|
5712
5712
|
getFavoritesPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5713
|
-
const localVarPath = `/users/me/favoritesPlayers`;
|
|
5713
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
5714
5714
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5715
5715
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5716
5716
|
let baseOptions;
|
|
@@ -5734,7 +5734,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5734
5734
|
* @throws {RequiredError}
|
|
5735
5735
|
*/
|
|
5736
5736
|
getFrequentlyPlayedWith: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5737
|
-
const localVarPath = `/users/me/frequentlyPlayedWith`;
|
|
5737
|
+
const localVarPath = `/api/users/me/frequentlyPlayedWith`;
|
|
5738
5738
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5739
5739
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5740
5740
|
let baseOptions;
|
|
@@ -5758,7 +5758,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5758
5758
|
* @throws {RequiredError}
|
|
5759
5759
|
*/
|
|
5760
5760
|
getFrequentlyVisitedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5761
|
-
const localVarPath = `/users/me/frequentlyVisitedClub`;
|
|
5761
|
+
const localVarPath = `/api/users/me/frequentlyVisitedClub`;
|
|
5762
5762
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5763
5763
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5764
5764
|
let baseOptions;
|
|
@@ -5782,7 +5782,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5782
5782
|
* @throws {RequiredError}
|
|
5783
5783
|
*/
|
|
5784
5784
|
getMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5785
|
-
const localVarPath = `/users/me`;
|
|
5785
|
+
const localVarPath = `/api/users/me`;
|
|
5786
5786
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5787
5787
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5788
5788
|
let baseOptions;
|
|
@@ -5808,7 +5808,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5808
5808
|
* @throws {RequiredError}
|
|
5809
5809
|
*/
|
|
5810
5810
|
getNearestClubs: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
|
|
5811
|
-
const localVarPath = `/users/me/nearest-clubs`;
|
|
5811
|
+
const localVarPath = `/api/users/me/nearest-clubs`;
|
|
5812
5812
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5813
5813
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5814
5814
|
let baseOptions;
|
|
@@ -5842,7 +5842,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5842
5842
|
* @throws {RequiredError}
|
|
5843
5843
|
*/
|
|
5844
5844
|
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 = {}) {
|
|
5845
|
-
const localVarPath = `/users/nearest-clubs/coordinates`;
|
|
5845
|
+
const localVarPath = `/api/users/nearest-clubs/coordinates`;
|
|
5846
5846
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5847
5847
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5848
5848
|
let baseOptions;
|
|
@@ -5880,7 +5880,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5880
5880
|
* @throws {RequiredError}
|
|
5881
5881
|
*/
|
|
5882
5882
|
getNearestUsers: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
|
|
5883
|
-
const localVarPath = `/users/me/nearest-players`;
|
|
5883
|
+
const localVarPath = `/api/users/me/nearest-players`;
|
|
5884
5884
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5885
5885
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5886
5886
|
let baseOptions;
|
|
@@ -5914,7 +5914,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5914
5914
|
* @throws {RequiredError}
|
|
5915
5915
|
*/
|
|
5916
5916
|
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 = {}) {
|
|
5917
|
-
const localVarPath = `/users/nearest-players/coordinates`;
|
|
5917
|
+
const localVarPath = `/api/users/nearest-players/coordinates`;
|
|
5918
5918
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5919
5919
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5920
5920
|
let baseOptions;
|
|
@@ -5952,7 +5952,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5952
5952
|
* @throws {RequiredError}
|
|
5953
5953
|
*/
|
|
5954
5954
|
getUserBookings: (limit_1, skip_1, ...args_1) => __awaiter(this, [limit_1, skip_1, ...args_1], void 0, function* (limit, skip, options = {}) {
|
|
5955
|
-
const localVarPath = `/users/me/bookings`;
|
|
5955
|
+
const localVarPath = `/api/users/me/bookings`;
|
|
5956
5956
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5957
5957
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5958
5958
|
let baseOptions;
|
|
@@ -5985,7 +5985,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
5985
5985
|
getUserProfileById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
5986
5986
|
// verify required parameter 'id' is not null or undefined
|
|
5987
5987
|
(0, common_1.assertParamExists)('getUserProfileById', 'id', id);
|
|
5988
|
-
const localVarPath = `/users/profile/{id}`
|
|
5988
|
+
const localVarPath = `/api/users/profile/{id}`
|
|
5989
5989
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5990
5990
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5991
5991
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6013,7 +6013,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6013
6013
|
getUserProfileStaff: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
6014
6014
|
// verify required parameter 'id' is not null or undefined
|
|
6015
6015
|
(0, common_1.assertParamExists)('getUserProfileStaff', 'id', id);
|
|
6016
|
-
const localVarPath = `/users/staff/profile/{id}`
|
|
6016
|
+
const localVarPath = `/api/users/staff/profile/{id}`
|
|
6017
6017
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6018
6018
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6019
6019
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6038,7 +6038,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6038
6038
|
* @throws {RequiredError}
|
|
6039
6039
|
*/
|
|
6040
6040
|
getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6041
|
-
const localVarPath = `/users/me/roles`;
|
|
6041
|
+
const localVarPath = `/api/users/me/roles`;
|
|
6042
6042
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6043
6043
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6044
6044
|
let baseOptions;
|
|
@@ -6062,7 +6062,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6062
6062
|
* @throws {RequiredError}
|
|
6063
6063
|
*/
|
|
6064
6064
|
getUserSubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6065
|
-
const localVarPath = `/users/me/subscriptions`;
|
|
6065
|
+
const localVarPath = `/api/users/me/subscriptions`;
|
|
6066
6066
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6067
6067
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6068
6068
|
let baseOptions;
|
|
@@ -6089,7 +6089,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6089
6089
|
initiateSubscriptionSession: (subscriptionSessionRequestBody_1, ...args_1) => __awaiter(this, [subscriptionSessionRequestBody_1, ...args_1], void 0, function* (subscriptionSessionRequestBody, options = {}) {
|
|
6090
6090
|
// verify required parameter 'subscriptionSessionRequestBody' is not null or undefined
|
|
6091
6091
|
(0, common_1.assertParamExists)('initiateSubscriptionSession', 'subscriptionSessionRequestBody', subscriptionSessionRequestBody);
|
|
6092
|
-
const localVarPath = `/users/me/subscription-session`;
|
|
6092
|
+
const localVarPath = `/api/users/me/subscription-session`;
|
|
6093
6093
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6094
6094
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6095
6095
|
let baseOptions;
|
|
@@ -6118,7 +6118,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6118
6118
|
login: (loginRequestBody_1, ...args_1) => __awaiter(this, [loginRequestBody_1, ...args_1], void 0, function* (loginRequestBody, options = {}) {
|
|
6119
6119
|
// verify required parameter 'loginRequestBody' is not null or undefined
|
|
6120
6120
|
(0, common_1.assertParamExists)('login', 'loginRequestBody', loginRequestBody);
|
|
6121
|
-
const localVarPath = `/users/login`;
|
|
6121
|
+
const localVarPath = `/api/users/login`;
|
|
6122
6122
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6123
6123
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6124
6124
|
let baseOptions;
|
|
@@ -6147,7 +6147,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6147
6147
|
refreshToken: (refreshTokenRequestBody_1, ...args_1) => __awaiter(this, [refreshTokenRequestBody_1, ...args_1], void 0, function* (refreshTokenRequestBody, options = {}) {
|
|
6148
6148
|
// verify required parameter 'refreshTokenRequestBody' is not null or undefined
|
|
6149
6149
|
(0, common_1.assertParamExists)('refreshToken', 'refreshTokenRequestBody', refreshTokenRequestBody);
|
|
6150
|
-
const localVarPath = `/users/refresh-token`;
|
|
6150
|
+
const localVarPath = `/api/users/refresh-token`;
|
|
6151
6151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6152
6152
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6153
6153
|
let baseOptions;
|
|
@@ -6176,7 +6176,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6176
6176
|
register: (registerRequestBody_1, ...args_1) => __awaiter(this, [registerRequestBody_1, ...args_1], void 0, function* (registerRequestBody, options = {}) {
|
|
6177
6177
|
// verify required parameter 'registerRequestBody' is not null or undefined
|
|
6178
6178
|
(0, common_1.assertParamExists)('register', 'registerRequestBody', registerRequestBody);
|
|
6179
|
-
const localVarPath = `/users`;
|
|
6179
|
+
const localVarPath = `/api/users`;
|
|
6180
6180
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6181
6181
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6182
6182
|
let baseOptions;
|
|
@@ -6205,7 +6205,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6205
6205
|
removeFavoriteClub: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
6206
6206
|
// verify required parameter 'clubId' is not null or undefined
|
|
6207
6207
|
(0, common_1.assertParamExists)('removeFavoriteClub', 'clubId', clubId);
|
|
6208
|
-
const localVarPath = `/users/me/favorite-clubs/{clubId}`
|
|
6208
|
+
const localVarPath = `/api/users/me/favorite-clubs/{clubId}`
|
|
6209
6209
|
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
6210
6210
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6211
6211
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6233,7 +6233,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6233
6233
|
removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
|
|
6234
6234
|
// verify required parameter 'favoritePlayerId' is not null or undefined
|
|
6235
6235
|
(0, common_1.assertParamExists)('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
|
|
6236
|
-
const localVarPath = `/users/me/favoritesPlayers/{favoritePlayerId}`
|
|
6236
|
+
const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
|
|
6237
6237
|
.replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
|
|
6238
6238
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6239
6239
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6261,7 +6261,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6261
6261
|
requestPasswordReset: (passwordResetRequestBody_1, ...args_1) => __awaiter(this, [passwordResetRequestBody_1, ...args_1], void 0, function* (passwordResetRequestBody, options = {}) {
|
|
6262
6262
|
// verify required parameter 'passwordResetRequestBody' is not null or undefined
|
|
6263
6263
|
(0, common_1.assertParamExists)('requestPasswordReset', 'passwordResetRequestBody', passwordResetRequestBody);
|
|
6264
|
-
const localVarPath = `/users/me/request-password-rest`;
|
|
6264
|
+
const localVarPath = `/api/users/me/request-password-rest`;
|
|
6265
6265
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6266
6266
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6267
6267
|
let baseOptions;
|
|
@@ -6293,7 +6293,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6293
6293
|
(0, common_1.assertParamExists)('resumeSubscription', 'clubId', clubId);
|
|
6294
6294
|
// verify required parameter 'subscriptionId' is not null or undefined
|
|
6295
6295
|
(0, common_1.assertParamExists)('resumeSubscription', 'subscriptionId', subscriptionId);
|
|
6296
|
-
const localVarPath = `/users/me/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
6296
|
+
const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
6297
6297
|
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6298
6298
|
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
6299
6299
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -6322,7 +6322,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6322
6322
|
setupPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
6323
6323
|
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
6324
6324
|
(0, common_1.assertParamExists)('setupPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
6325
|
-
const localVarPath = `/users/setupPaymentMethod`;
|
|
6325
|
+
const localVarPath = `/api/users/setupPaymentMethod`;
|
|
6326
6326
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6327
6327
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6328
6328
|
let baseOptions;
|
|
@@ -6351,7 +6351,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6351
6351
|
signInOrSignUpWithGoogle: (googleAuthRequestBody_1, ...args_1) => __awaiter(this, [googleAuthRequestBody_1, ...args_1], void 0, function* (googleAuthRequestBody, options = {}) {
|
|
6352
6352
|
// verify required parameter 'googleAuthRequestBody' is not null or undefined
|
|
6353
6353
|
(0, common_1.assertParamExists)('signInOrSignUpWithGoogle', 'googleAuthRequestBody', googleAuthRequestBody);
|
|
6354
|
-
const localVarPath = `/users/googleSignin`;
|
|
6354
|
+
const localVarPath = `/api/users/googleSignin`;
|
|
6355
6355
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6356
6356
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6357
6357
|
let baseOptions;
|
|
@@ -6380,7 +6380,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6380
6380
|
subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
|
|
6381
6381
|
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
6382
6382
|
(0, common_1.assertParamExists)('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
|
|
6383
|
-
const localVarPath = `/users/me/subscribe`;
|
|
6383
|
+
const localVarPath = `/api/users/me/subscribe`;
|
|
6384
6384
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6385
6385
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6386
6386
|
let baseOptions;
|
|
@@ -6409,7 +6409,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6409
6409
|
updateCustomer: (updateCustomerRequestBody_1, ...args_1) => __awaiter(this, [updateCustomerRequestBody_1, ...args_1], void 0, function* (updateCustomerRequestBody, options = {}) {
|
|
6410
6410
|
// verify required parameter 'updateCustomerRequestBody' is not null or undefined
|
|
6411
6411
|
(0, common_1.assertParamExists)('updateCustomer', 'updateCustomerRequestBody', updateCustomerRequestBody);
|
|
6412
|
-
const localVarPath = `/users/me/customer`;
|
|
6412
|
+
const localVarPath = `/api/users/me/customer`;
|
|
6413
6413
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6414
6414
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6415
6415
|
let baseOptions;
|
|
@@ -6438,7 +6438,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6438
6438
|
updateLevelBySports: (updateLevelBySportsRequestBody_1, ...args_1) => __awaiter(this, [updateLevelBySportsRequestBody_1, ...args_1], void 0, function* (updateLevelBySportsRequestBody, options = {}) {
|
|
6439
6439
|
// verify required parameter 'updateLevelBySportsRequestBody' is not null or undefined
|
|
6440
6440
|
(0, common_1.assertParamExists)('updateLevelBySports', 'updateLevelBySportsRequestBody', updateLevelBySportsRequestBody);
|
|
6441
|
-
const localVarPath = `/users/me/level-by-sports`;
|
|
6441
|
+
const localVarPath = `/api/users/me/level-by-sports`;
|
|
6442
6442
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6443
6443
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6444
6444
|
let baseOptions;
|
|
@@ -6467,7 +6467,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6467
6467
|
updateMe: (updateUserRequestBody_1, ...args_1) => __awaiter(this, [updateUserRequestBody_1, ...args_1], void 0, function* (updateUserRequestBody, options = {}) {
|
|
6468
6468
|
// verify required parameter 'updateUserRequestBody' is not null or undefined
|
|
6469
6469
|
(0, common_1.assertParamExists)('updateMe', 'updateUserRequestBody', updateUserRequestBody);
|
|
6470
|
-
const localVarPath = `/users/me`;
|
|
6470
|
+
const localVarPath = `/api/users/me`;
|
|
6471
6471
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6472
6472
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6473
6473
|
let baseOptions;
|
|
@@ -6496,7 +6496,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6496
6496
|
updateProfilePicture: (profilePictureUpdateRequestBody_1, ...args_1) => __awaiter(this, [profilePictureUpdateRequestBody_1, ...args_1], void 0, function* (profilePictureUpdateRequestBody, options = {}) {
|
|
6497
6497
|
// verify required parameter 'profilePictureUpdateRequestBody' is not null or undefined
|
|
6498
6498
|
(0, common_1.assertParamExists)('updateProfilePicture', 'profilePictureUpdateRequestBody', profilePictureUpdateRequestBody);
|
|
6499
|
-
const localVarPath = `/users/me/profile-picture`;
|
|
6499
|
+
const localVarPath = `/api/users/me/profile-picture`;
|
|
6500
6500
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6501
6501
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6502
6502
|
let baseOptions;
|
package/dist/base.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
17
|
const axios_1 = require("axios");
|
|
18
|
-
exports.BASE_PATH = "
|
|
18
|
+
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @export
|