@tennac-booking/sdk 1.0.67 → 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/README.md +9 -3
- package/api.ts +411 -5
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +275 -4
- package/dist/api.js +191 -6
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +275 -4
- package/dist/esm/api.js +188 -3
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingStatus.md +2 -2
- package/docs/BookingsStaffApi.md +1 -1
- package/docs/ClubResponse.md +2 -0
- package/docs/CourtResponse.md +4 -0
- package/docs/CreateBookingRequest.md +2 -0
- package/docs/PartialClubResponse.md +2 -0
- package/docs/PlayerCategoriesResponse.md +20 -0
- package/docs/PlayerCategory.md +26 -0
- package/docs/PlayerCategoryId.md +16 -0
- package/docs/PlayerListResponse.md +26 -0
- package/docs/UserProfileResponse.md +2 -0
- package/docs/UsersApi.md +125 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -134,6 +134,10 @@ docs/PaymentMethod.md
|
|
|
134
134
|
docs/PaymentMethodSetupResponse.md
|
|
135
135
|
docs/PickIUserLocationExcludeKeyofIUserLocationType.md
|
|
136
136
|
docs/PlanInterval.md
|
|
137
|
+
docs/PlayerCategoriesResponse.md
|
|
138
|
+
docs/PlayerCategory.md
|
|
139
|
+
docs/PlayerCategoryId.md
|
|
140
|
+
docs/PlayerListResponse.md
|
|
137
141
|
docs/PlayerPaymentInfo.md
|
|
138
142
|
docs/PlayerSummary.md
|
|
139
143
|
docs/PlayerWithPaymentMethod.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @tennac-booking/sdk@1.0.
|
|
1
|
+
## @tennac-booking/sdk@1.0.68
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @tennac-booking/sdk@1.0.
|
|
39
|
+
npm install @tennac-booking/sdk@1.0.68 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -56,7 +56,7 @@ Class | Method | HTTP request | Description
|
|
|
56
56
|
*BookingsManagerApi* | [**managerCancelBooking**](docs/BookingsManagerApi.md#managercancelbooking) | **POST** /api/bookings/{bookingId}/manager-cancel |
|
|
57
57
|
*BookingsStaffApi* | [**checkInPlayers**](docs/BookingsStaffApi.md#checkinplayers) | **POST** /api/bookings/{bookingId}/check-in |
|
|
58
58
|
*BookingsStaffApi* | [**getBookingById**](docs/BookingsStaffApi.md#getbookingbyid) | **GET** /api/bookings/{bookingId} |
|
|
59
|
-
*BookingsStaffApi* | [**getBookingHistoryStaff**](docs/BookingsStaffApi.md#getbookinghistorystaff) | **GET** /api/bookings/staff/{bookingId} |
|
|
59
|
+
*BookingsStaffApi* | [**getBookingHistoryStaff**](docs/BookingsStaffApi.md#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} |
|
|
60
60
|
*BookingsStaffApi* | [**getBookingPaymentStatus**](docs/BookingsStaffApi.md#getbookingpaymentstatus) | **GET** /api/bookings/{bookingId}/payment-status |
|
|
61
61
|
*BookingsStaffApi* | [**getDailyBookings**](docs/BookingsStaffApi.md#getdailybookings) | **GET** /api/bookings/daily/{date} |
|
|
62
62
|
*BookingsStaffApi* | [**getWeeklyBookings**](docs/BookingsStaffApi.md#getweeklybookings) | **GET** /api/bookings/weekly/{weekId} |
|
|
@@ -159,8 +159,10 @@ Class | Method | HTTP request | Description
|
|
|
159
159
|
*UsersApi* | [**getNearestClubsFromCoordinates**](docs/UsersApi.md#getnearestclubsfromcoordinates) | **GET** /api/users/nearest-clubs/coordinates |
|
|
160
160
|
*UsersApi* | [**getNearestUsers**](docs/UsersApi.md#getnearestusers) | **GET** /api/users/me/nearest-players |
|
|
161
161
|
*UsersApi* | [**getNearestUsersFromCoordinates**](docs/UsersApi.md#getnearestusersfromcoordinates) | **GET** /api/users/nearest-players/coordinates |
|
|
162
|
+
*UsersApi* | [**getPlayerCategories**](docs/UsersApi.md#getplayercategories) | **GET** /api/users/players/categories |
|
|
162
163
|
*UsersApi* | [**getUserBookings**](docs/UsersApi.md#getuserbookings) | **GET** /api/users/me/bookings |
|
|
163
164
|
*UsersApi* | [**getUserProfileById**](docs/UsersApi.md#getuserprofilebyid) | **GET** /api/users/profile/{id} |
|
|
165
|
+
*UsersApi* | [**listPlayers**](docs/UsersApi.md#listplayers) | **GET** /api/users/players |
|
|
164
166
|
*UsersApi* | [**login**](docs/UsersApi.md#login) | **POST** /api/users/login |
|
|
165
167
|
*UsersApi* | [**refreshToken**](docs/UsersApi.md#refreshtoken) | **POST** /api/users/refresh-token |
|
|
166
168
|
*UsersApi* | [**register**](docs/UsersApi.md#register) | **POST** /api/users |
|
|
@@ -294,6 +296,10 @@ Class | Method | HTTP request | Description
|
|
|
294
296
|
- [PaymentMethodSetupResponse](docs/PaymentMethodSetupResponse.md)
|
|
295
297
|
- [PickIUserLocationExcludeKeyofIUserLocationType](docs/PickIUserLocationExcludeKeyofIUserLocationType.md)
|
|
296
298
|
- [PlanInterval](docs/PlanInterval.md)
|
|
299
|
+
- [PlayerCategoriesResponse](docs/PlayerCategoriesResponse.md)
|
|
300
|
+
- [PlayerCategory](docs/PlayerCategory.md)
|
|
301
|
+
- [PlayerCategoryId](docs/PlayerCategoryId.md)
|
|
302
|
+
- [PlayerListResponse](docs/PlayerListResponse.md)
|
|
297
303
|
- [PlayerPaymentInfo](docs/PlayerPaymentInfo.md)
|
|
298
304
|
- [PlayerSummary](docs/PlayerSummary.md)
|
|
299
305
|
- [PlayerWithPaymentMethod](docs/PlayerWithPaymentMethod.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.68
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -615,8 +615,8 @@ export interface BookingResponseOnsitePaymentsInner {
|
|
|
615
615
|
*/
|
|
616
616
|
|
|
617
617
|
export const BookingStatus = {
|
|
618
|
+
Paid: 'paid',
|
|
618
619
|
Active: 'active',
|
|
619
|
-
Past: 'past',
|
|
620
620
|
Pending: 'pending',
|
|
621
621
|
Expired: 'expired',
|
|
622
622
|
Canceled: 'canceled',
|
|
@@ -1147,6 +1147,12 @@ export interface ClubResponse {
|
|
|
1147
1147
|
* @memberof ClubResponse
|
|
1148
1148
|
*/
|
|
1149
1149
|
'isNoShowEnabled'?: boolean;
|
|
1150
|
+
/**
|
|
1151
|
+
* Liste des sports proposés par le club (identifiés par leur clé)
|
|
1152
|
+
* @type {Array<string>}
|
|
1153
|
+
* @memberof ClubResponse
|
|
1154
|
+
*/
|
|
1155
|
+
'sports'?: Array<string>;
|
|
1150
1156
|
/**
|
|
1151
1157
|
*
|
|
1152
1158
|
* @type {ClubResponseCreatedAt}
|
|
@@ -1541,6 +1547,18 @@ export interface CourtResponse {
|
|
|
1541
1547
|
* @memberof CourtResponse
|
|
1542
1548
|
*/
|
|
1543
1549
|
'comments'?: string;
|
|
1550
|
+
/**
|
|
1551
|
+
*
|
|
1552
|
+
* @type {number}
|
|
1553
|
+
* @memberof CourtResponse
|
|
1554
|
+
*/
|
|
1555
|
+
'pricePerHour'?: number;
|
|
1556
|
+
/**
|
|
1557
|
+
*
|
|
1558
|
+
* @type {number}
|
|
1559
|
+
* @memberof CourtResponse
|
|
1560
|
+
*/
|
|
1561
|
+
'bookingCount'?: number;
|
|
1544
1562
|
/**
|
|
1545
1563
|
* Durée par défaut d\'un créneau en minutes
|
|
1546
1564
|
* @type {number}
|
|
@@ -1646,6 +1664,12 @@ export interface CreateBookingRequest {
|
|
|
1646
1664
|
* @memberof CreateBookingRequest
|
|
1647
1665
|
*/
|
|
1648
1666
|
'paymentMethod'?: PaymentMethod;
|
|
1667
|
+
/**
|
|
1668
|
+
* Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut
|
|
1669
|
+
* @type {boolean}
|
|
1670
|
+
* @memberof CreateBookingRequest
|
|
1671
|
+
*/
|
|
1672
|
+
'useDefaultPaymentMethod'?: boolean;
|
|
1649
1673
|
}
|
|
1650
1674
|
|
|
1651
1675
|
|
|
@@ -3485,6 +3509,12 @@ export interface PartialClubResponse {
|
|
|
3485
3509
|
* @memberof PartialClubResponse
|
|
3486
3510
|
*/
|
|
3487
3511
|
'isNoShowEnabled'?: boolean;
|
|
3512
|
+
/**
|
|
3513
|
+
* Liste des sports proposés par le club (identifiés par leur clé)
|
|
3514
|
+
* @type {Array<string>}
|
|
3515
|
+
* @memberof PartialClubResponse
|
|
3516
|
+
*/
|
|
3517
|
+
'sports'?: Array<string>;
|
|
3488
3518
|
/**
|
|
3489
3519
|
*
|
|
3490
3520
|
* @type {ClubResponseCreatedAt}
|
|
@@ -3665,6 +3695,100 @@ export const PlanInterval = {
|
|
|
3665
3695
|
export type PlanInterval = typeof PlanInterval[keyof typeof PlanInterval];
|
|
3666
3696
|
|
|
3667
3697
|
|
|
3698
|
+
/**
|
|
3699
|
+
*
|
|
3700
|
+
* @export
|
|
3701
|
+
* @interface PlayerCategoriesResponse
|
|
3702
|
+
*/
|
|
3703
|
+
export interface PlayerCategoriesResponse {
|
|
3704
|
+
/**
|
|
3705
|
+
*
|
|
3706
|
+
* @type {Array<PlayerCategory>}
|
|
3707
|
+
* @memberof PlayerCategoriesResponse
|
|
3708
|
+
*/
|
|
3709
|
+
'categories': Array<PlayerCategory>;
|
|
3710
|
+
}
|
|
3711
|
+
/**
|
|
3712
|
+
*
|
|
3713
|
+
* @export
|
|
3714
|
+
* @interface PlayerCategory
|
|
3715
|
+
*/
|
|
3716
|
+
export interface PlayerCategory {
|
|
3717
|
+
/**
|
|
3718
|
+
*
|
|
3719
|
+
* @type {PlayerCategoryId}
|
|
3720
|
+
* @memberof PlayerCategory
|
|
3721
|
+
*/
|
|
3722
|
+
'id': PlayerCategoryId;
|
|
3723
|
+
/**
|
|
3724
|
+
*
|
|
3725
|
+
* @type {string}
|
|
3726
|
+
* @memberof PlayerCategory
|
|
3727
|
+
*/
|
|
3728
|
+
'label': string;
|
|
3729
|
+
/**
|
|
3730
|
+
*
|
|
3731
|
+
* @type {string}
|
|
3732
|
+
* @memberof PlayerCategory
|
|
3733
|
+
*/
|
|
3734
|
+
'description'?: string;
|
|
3735
|
+
/**
|
|
3736
|
+
*
|
|
3737
|
+
* @type {number}
|
|
3738
|
+
* @memberof PlayerCategory
|
|
3739
|
+
*/
|
|
3740
|
+
'limit'?: number;
|
|
3741
|
+
}
|
|
3742
|
+
|
|
3743
|
+
|
|
3744
|
+
/**
|
|
3745
|
+
*
|
|
3746
|
+
* @export
|
|
3747
|
+
* @enum {string}
|
|
3748
|
+
*/
|
|
3749
|
+
|
|
3750
|
+
export const PlayerCategoryId = {
|
|
3751
|
+
SameLevel: 'same-level',
|
|
3752
|
+
MutualConnections: 'mutual-connections',
|
|
3753
|
+
ClubMembers: 'club-members',
|
|
3754
|
+
MostActive: 'most-active',
|
|
3755
|
+
Nearby: 'nearby'
|
|
3756
|
+
} as const;
|
|
3757
|
+
|
|
3758
|
+
export type PlayerCategoryId = typeof PlayerCategoryId[keyof typeof PlayerCategoryId];
|
|
3759
|
+
|
|
3760
|
+
|
|
3761
|
+
/**
|
|
3762
|
+
*
|
|
3763
|
+
* @export
|
|
3764
|
+
* @interface PlayerListResponse
|
|
3765
|
+
*/
|
|
3766
|
+
export interface PlayerListResponse {
|
|
3767
|
+
/**
|
|
3768
|
+
*
|
|
3769
|
+
* @type {Array<PlayerSummary>}
|
|
3770
|
+
* @memberof PlayerListResponse
|
|
3771
|
+
*/
|
|
3772
|
+
'players': Array<PlayerSummary>;
|
|
3773
|
+
/**
|
|
3774
|
+
*
|
|
3775
|
+
* @type {number}
|
|
3776
|
+
* @memberof PlayerListResponse
|
|
3777
|
+
*/
|
|
3778
|
+
'total'?: number;
|
|
3779
|
+
/**
|
|
3780
|
+
*
|
|
3781
|
+
* @type {boolean}
|
|
3782
|
+
* @memberof PlayerListResponse
|
|
3783
|
+
*/
|
|
3784
|
+
'hasMore'?: boolean;
|
|
3785
|
+
/**
|
|
3786
|
+
*
|
|
3787
|
+
* @type {number}
|
|
3788
|
+
* @memberof PlayerListResponse
|
|
3789
|
+
*/
|
|
3790
|
+
'nextOffset'?: number;
|
|
3791
|
+
}
|
|
3668
3792
|
/**
|
|
3669
3793
|
*
|
|
3670
3794
|
* @export
|
|
@@ -3799,13 +3923,13 @@ export interface PlayerSummary {
|
|
|
3799
3923
|
* @type {string}
|
|
3800
3924
|
* @memberof PlayerSummary
|
|
3801
3925
|
*/
|
|
3802
|
-
'lastPlayedAt'?: string;
|
|
3926
|
+
'lastPlayedAt'?: string | null;
|
|
3803
3927
|
/**
|
|
3804
3928
|
*
|
|
3805
3929
|
* @type {number}
|
|
3806
3930
|
* @memberof PlayerSummary
|
|
3807
3931
|
*/
|
|
3808
|
-
'playCount'?: number;
|
|
3932
|
+
'playCount'?: number | null;
|
|
3809
3933
|
}
|
|
3810
3934
|
|
|
3811
3935
|
|
|
@@ -6831,6 +6955,12 @@ export interface UserProfileResponse {
|
|
|
6831
6955
|
* @memberof UserProfileResponse
|
|
6832
6956
|
*/
|
|
6833
6957
|
'subscriptionsCount'?: number;
|
|
6958
|
+
/**
|
|
6959
|
+
*
|
|
6960
|
+
* @type {Array<ClubSubscriptions>}
|
|
6961
|
+
* @memberof UserProfileResponse
|
|
6962
|
+
*/
|
|
6963
|
+
'subscriptions'?: Array<ClubSubscriptions>;
|
|
6834
6964
|
/**
|
|
6835
6965
|
*
|
|
6836
6966
|
* @type {Array<ClubSummary>}
|
|
@@ -7359,7 +7489,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
|
|
|
7359
7489
|
getBookingHistoryStaff: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7360
7490
|
// verify required parameter 'bookingId' is not null or undefined
|
|
7361
7491
|
assertParamExists('getBookingHistoryStaff', 'bookingId', bookingId)
|
|
7362
|
-
const localVarPath = `/api/bookings/staff/{bookingId}`
|
|
7492
|
+
const localVarPath = `/api/bookings/staff/history{bookingId}`
|
|
7363
7493
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
7364
7494
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7365
7495
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -15663,6 +15793,39 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15663
15793
|
|
|
15664
15794
|
|
|
15665
15795
|
|
|
15796
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15797
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15798
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15799
|
+
|
|
15800
|
+
return {
|
|
15801
|
+
url: toPathString(localVarUrlObj),
|
|
15802
|
+
options: localVarRequestOptions,
|
|
15803
|
+
};
|
|
15804
|
+
},
|
|
15805
|
+
/**
|
|
15806
|
+
*
|
|
15807
|
+
* @param {*} [options] Override http request option.
|
|
15808
|
+
* @throws {RequiredError}
|
|
15809
|
+
*/
|
|
15810
|
+
getPlayerCategories: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15811
|
+
const localVarPath = `/api/users/players/categories`;
|
|
15812
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15813
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15814
|
+
let baseOptions;
|
|
15815
|
+
if (configuration) {
|
|
15816
|
+
baseOptions = configuration.baseOptions;
|
|
15817
|
+
}
|
|
15818
|
+
|
|
15819
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15820
|
+
const localVarHeaderParameter = {} as any;
|
|
15821
|
+
const localVarQueryParameter = {} as any;
|
|
15822
|
+
|
|
15823
|
+
// authentication bearerAuth required
|
|
15824
|
+
// http bearer authentication required
|
|
15825
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15826
|
+
|
|
15827
|
+
|
|
15828
|
+
|
|
15666
15829
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15667
15830
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15668
15831
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -15743,6 +15906,94 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15743
15906
|
|
|
15744
15907
|
|
|
15745
15908
|
|
|
15909
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15910
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15911
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15912
|
+
|
|
15913
|
+
return {
|
|
15914
|
+
url: toPathString(localVarUrlObj),
|
|
15915
|
+
options: localVarRequestOptions,
|
|
15916
|
+
};
|
|
15917
|
+
},
|
|
15918
|
+
/**
|
|
15919
|
+
*
|
|
15920
|
+
* @param {PlayerCategoryId} [category]
|
|
15921
|
+
* @param {string} [search]
|
|
15922
|
+
* @param {string} [gender]
|
|
15923
|
+
* @param {boolean} [sharedClub]
|
|
15924
|
+
* @param {string} [sportLevels]
|
|
15925
|
+
* @param {number} [limit]
|
|
15926
|
+
* @param {number} [offset]
|
|
15927
|
+
* @param {boolean} [useLocation]
|
|
15928
|
+
* @param {number} [latitude]
|
|
15929
|
+
* @param {number} [longitude]
|
|
15930
|
+
* @param {number} [radiusInKm]
|
|
15931
|
+
* @param {*} [options] Override http request option.
|
|
15932
|
+
* @throws {RequiredError}
|
|
15933
|
+
*/
|
|
15934
|
+
listPlayers: async (category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number, useLocation?: boolean, latitude?: number, longitude?: number, radiusInKm?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15935
|
+
const localVarPath = `/api/users/players`;
|
|
15936
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15937
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15938
|
+
let baseOptions;
|
|
15939
|
+
if (configuration) {
|
|
15940
|
+
baseOptions = configuration.baseOptions;
|
|
15941
|
+
}
|
|
15942
|
+
|
|
15943
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15944
|
+
const localVarHeaderParameter = {} as any;
|
|
15945
|
+
const localVarQueryParameter = {} as any;
|
|
15946
|
+
|
|
15947
|
+
// authentication bearerAuth required
|
|
15948
|
+
// http bearer authentication required
|
|
15949
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15950
|
+
|
|
15951
|
+
if (category !== undefined) {
|
|
15952
|
+
localVarQueryParameter['category'] = category;
|
|
15953
|
+
}
|
|
15954
|
+
|
|
15955
|
+
if (search !== undefined) {
|
|
15956
|
+
localVarQueryParameter['search'] = search;
|
|
15957
|
+
}
|
|
15958
|
+
|
|
15959
|
+
if (gender !== undefined) {
|
|
15960
|
+
localVarQueryParameter['gender'] = gender;
|
|
15961
|
+
}
|
|
15962
|
+
|
|
15963
|
+
if (sharedClub !== undefined) {
|
|
15964
|
+
localVarQueryParameter['sharedClub'] = sharedClub;
|
|
15965
|
+
}
|
|
15966
|
+
|
|
15967
|
+
if (sportLevels !== undefined) {
|
|
15968
|
+
localVarQueryParameter['sportLevels'] = sportLevels;
|
|
15969
|
+
}
|
|
15970
|
+
|
|
15971
|
+
if (limit !== undefined) {
|
|
15972
|
+
localVarQueryParameter['limit'] = limit;
|
|
15973
|
+
}
|
|
15974
|
+
|
|
15975
|
+
if (offset !== undefined) {
|
|
15976
|
+
localVarQueryParameter['offset'] = offset;
|
|
15977
|
+
}
|
|
15978
|
+
|
|
15979
|
+
if (useLocation !== undefined) {
|
|
15980
|
+
localVarQueryParameter['useLocation'] = useLocation;
|
|
15981
|
+
}
|
|
15982
|
+
|
|
15983
|
+
if (latitude !== undefined) {
|
|
15984
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
15985
|
+
}
|
|
15986
|
+
|
|
15987
|
+
if (longitude !== undefined) {
|
|
15988
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
15989
|
+
}
|
|
15990
|
+
|
|
15991
|
+
if (radiusInKm !== undefined) {
|
|
15992
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
15993
|
+
}
|
|
15994
|
+
|
|
15995
|
+
|
|
15996
|
+
|
|
15746
15997
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15747
15998
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15748
15999
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -16589,6 +16840,17 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
16589
16840
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.getNearestUsersFromCoordinates']?.[localVarOperationServerIndex]?.url;
|
|
16590
16841
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16591
16842
|
},
|
|
16843
|
+
/**
|
|
16844
|
+
*
|
|
16845
|
+
* @param {*} [options] Override http request option.
|
|
16846
|
+
* @throws {RequiredError}
|
|
16847
|
+
*/
|
|
16848
|
+
async getPlayerCategories(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerCategoriesResponse>> {
|
|
16849
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlayerCategories(options);
|
|
16850
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16851
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.getPlayerCategories']?.[localVarOperationServerIndex]?.url;
|
|
16852
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16853
|
+
},
|
|
16592
16854
|
/**
|
|
16593
16855
|
*
|
|
16594
16856
|
* @param {number} [limit]
|
|
@@ -16614,6 +16876,28 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
16614
16876
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserProfileById']?.[localVarOperationServerIndex]?.url;
|
|
16615
16877
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16616
16878
|
},
|
|
16879
|
+
/**
|
|
16880
|
+
*
|
|
16881
|
+
* @param {PlayerCategoryId} [category]
|
|
16882
|
+
* @param {string} [search]
|
|
16883
|
+
* @param {string} [gender]
|
|
16884
|
+
* @param {boolean} [sharedClub]
|
|
16885
|
+
* @param {string} [sportLevels]
|
|
16886
|
+
* @param {number} [limit]
|
|
16887
|
+
* @param {number} [offset]
|
|
16888
|
+
* @param {boolean} [useLocation]
|
|
16889
|
+
* @param {number} [latitude]
|
|
16890
|
+
* @param {number} [longitude]
|
|
16891
|
+
* @param {number} [radiusInKm]
|
|
16892
|
+
* @param {*} [options] Override http request option.
|
|
16893
|
+
* @throws {RequiredError}
|
|
16894
|
+
*/
|
|
16895
|
+
async listPlayers(category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number, useLocation?: boolean, latitude?: number, longitude?: number, radiusInKm?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerListResponse>> {
|
|
16896
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options);
|
|
16897
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16898
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.listPlayers']?.[localVarOperationServerIndex]?.url;
|
|
16899
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16900
|
+
},
|
|
16617
16901
|
/**
|
|
16618
16902
|
*
|
|
16619
16903
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -16974,6 +17258,14 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
16974
17258
|
getNearestUsersFromCoordinates(requestParameters: UsersApiGetNearestUsersFromCoordinatesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<{ [key: string]: any; }>> {
|
|
16975
17259
|
return localVarFp.getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
16976
17260
|
},
|
|
17261
|
+
/**
|
|
17262
|
+
*
|
|
17263
|
+
* @param {*} [options] Override http request option.
|
|
17264
|
+
* @throws {RequiredError}
|
|
17265
|
+
*/
|
|
17266
|
+
getPlayerCategories(options?: RawAxiosRequestConfig): AxiosPromise<PlayerCategoriesResponse> {
|
|
17267
|
+
return localVarFp.getPlayerCategories(options).then((request) => request(axios, basePath));
|
|
17268
|
+
},
|
|
16977
17269
|
/**
|
|
16978
17270
|
*
|
|
16979
17271
|
* @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
@@ -16992,6 +17284,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
16992
17284
|
getUserProfileById(requestParameters: UsersApiGetUserProfileByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicUserProfileResponse> {
|
|
16993
17285
|
return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
16994
17286
|
},
|
|
17287
|
+
/**
|
|
17288
|
+
*
|
|
17289
|
+
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
|
17290
|
+
* @param {*} [options] Override http request option.
|
|
17291
|
+
* @throws {RequiredError}
|
|
17292
|
+
*/
|
|
17293
|
+
listPlayers(requestParameters: UsersApiListPlayersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PlayerListResponse> {
|
|
17294
|
+
return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.useLocation, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(axios, basePath));
|
|
17295
|
+
},
|
|
16995
17296
|
/**
|
|
16996
17297
|
*
|
|
16997
17298
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -17392,6 +17693,90 @@ export interface UsersApiGetUserProfileByIdRequest {
|
|
|
17392
17693
|
readonly id: string
|
|
17393
17694
|
}
|
|
17394
17695
|
|
|
17696
|
+
/**
|
|
17697
|
+
* Request parameters for listPlayers operation in UsersApi.
|
|
17698
|
+
* @export
|
|
17699
|
+
* @interface UsersApiListPlayersRequest
|
|
17700
|
+
*/
|
|
17701
|
+
export interface UsersApiListPlayersRequest {
|
|
17702
|
+
/**
|
|
17703
|
+
*
|
|
17704
|
+
* @type {PlayerCategoryId}
|
|
17705
|
+
* @memberof UsersApiListPlayers
|
|
17706
|
+
*/
|
|
17707
|
+
readonly category?: PlayerCategoryId
|
|
17708
|
+
|
|
17709
|
+
/**
|
|
17710
|
+
*
|
|
17711
|
+
* @type {string}
|
|
17712
|
+
* @memberof UsersApiListPlayers
|
|
17713
|
+
*/
|
|
17714
|
+
readonly search?: string
|
|
17715
|
+
|
|
17716
|
+
/**
|
|
17717
|
+
*
|
|
17718
|
+
* @type {string}
|
|
17719
|
+
* @memberof UsersApiListPlayers
|
|
17720
|
+
*/
|
|
17721
|
+
readonly gender?: string
|
|
17722
|
+
|
|
17723
|
+
/**
|
|
17724
|
+
*
|
|
17725
|
+
* @type {boolean}
|
|
17726
|
+
* @memberof UsersApiListPlayers
|
|
17727
|
+
*/
|
|
17728
|
+
readonly sharedClub?: boolean
|
|
17729
|
+
|
|
17730
|
+
/**
|
|
17731
|
+
*
|
|
17732
|
+
* @type {string}
|
|
17733
|
+
* @memberof UsersApiListPlayers
|
|
17734
|
+
*/
|
|
17735
|
+
readonly sportLevels?: string
|
|
17736
|
+
|
|
17737
|
+
/**
|
|
17738
|
+
*
|
|
17739
|
+
* @type {number}
|
|
17740
|
+
* @memberof UsersApiListPlayers
|
|
17741
|
+
*/
|
|
17742
|
+
readonly limit?: number
|
|
17743
|
+
|
|
17744
|
+
/**
|
|
17745
|
+
*
|
|
17746
|
+
* @type {number}
|
|
17747
|
+
* @memberof UsersApiListPlayers
|
|
17748
|
+
*/
|
|
17749
|
+
readonly offset?: number
|
|
17750
|
+
|
|
17751
|
+
/**
|
|
17752
|
+
*
|
|
17753
|
+
* @type {boolean}
|
|
17754
|
+
* @memberof UsersApiListPlayers
|
|
17755
|
+
*/
|
|
17756
|
+
readonly useLocation?: boolean
|
|
17757
|
+
|
|
17758
|
+
/**
|
|
17759
|
+
*
|
|
17760
|
+
* @type {number}
|
|
17761
|
+
* @memberof UsersApiListPlayers
|
|
17762
|
+
*/
|
|
17763
|
+
readonly latitude?: number
|
|
17764
|
+
|
|
17765
|
+
/**
|
|
17766
|
+
*
|
|
17767
|
+
* @type {number}
|
|
17768
|
+
* @memberof UsersApiListPlayers
|
|
17769
|
+
*/
|
|
17770
|
+
readonly longitude?: number
|
|
17771
|
+
|
|
17772
|
+
/**
|
|
17773
|
+
*
|
|
17774
|
+
* @type {number}
|
|
17775
|
+
* @memberof UsersApiListPlayers
|
|
17776
|
+
*/
|
|
17777
|
+
readonly radiusInKm?: number
|
|
17778
|
+
}
|
|
17779
|
+
|
|
17395
17780
|
/**
|
|
17396
17781
|
* Request parameters for login operation in UsersApi.
|
|
17397
17782
|
* @export
|
|
@@ -17804,6 +18189,16 @@ export class UsersApi extends BaseAPI {
|
|
|
17804
18189
|
return UsersApiFp(this.configuration).getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
17805
18190
|
}
|
|
17806
18191
|
|
|
18192
|
+
/**
|
|
18193
|
+
*
|
|
18194
|
+
* @param {*} [options] Override http request option.
|
|
18195
|
+
* @throws {RequiredError}
|
|
18196
|
+
* @memberof UsersApi
|
|
18197
|
+
*/
|
|
18198
|
+
public getPlayerCategories(options?: RawAxiosRequestConfig) {
|
|
18199
|
+
return UsersApiFp(this.configuration).getPlayerCategories(options).then((request) => request(this.axios, this.basePath));
|
|
18200
|
+
}
|
|
18201
|
+
|
|
17807
18202
|
/**
|
|
17808
18203
|
*
|
|
17809
18204
|
* @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
@@ -17826,6 +18221,17 @@ export class UsersApi extends BaseAPI {
|
|
|
17826
18221
|
return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
17827
18222
|
}
|
|
17828
18223
|
|
|
18224
|
+
/**
|
|
18225
|
+
*
|
|
18226
|
+
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
|
18227
|
+
* @param {*} [options] Override http request option.
|
|
18228
|
+
* @throws {RequiredError}
|
|
18229
|
+
* @memberof UsersApi
|
|
18230
|
+
*/
|
|
18231
|
+
public listPlayers(requestParameters: UsersApiListPlayersRequest = {}, options?: RawAxiosRequestConfig) {
|
|
18232
|
+
return UsersApiFp(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.useLocation, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(this.axios, this.basePath));
|
|
18233
|
+
}
|
|
18234
|
+
|
|
17829
18235
|
/**
|
|
17830
18236
|
*
|
|
17831
18237
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED