@tennac-booking/sdk 1.0.33 → 1.0.35
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 +12 -2
- package/README.md +21 -4
- package/api.ts +1575 -146
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1054 -77
- package/dist/api.js +759 -4
- 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 +1054 -77
- package/dist/esm/api.js +748 -1
- 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/ActiveClub.md +4 -0
- package/docs/BookingHistoryResponse.md +22 -0
- package/docs/BookingHistoryResponseHistoryInner.md +32 -0
- package/docs/BookingPopulated.md +2 -0
- package/docs/BookingsApi.md +113 -0
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
- package/docs/Club.md +2 -2
- package/docs/CourtWithNameResponse.md +48 -0
- package/docs/{SportsResponse.md → CourtsWithNameResponse.md} +5 -5
- package/docs/GenderPercentage.md +26 -0
- package/docs/Location.md +32 -0
- package/docs/ManagerClubCourtsApi.md +2 -2
- package/docs/PaymentStatus.md +30 -0
- package/docs/Sport.md +0 -2
- package/docs/SportResponse.md +4 -0
- package/docs/StaffClubAnalyticsApi.md +49 -2
- package/docs/StaffClubsApi.md +2 -2
- package/docs/UpdateUserRequestBody.md +8 -2
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
- package/docs/UserBookingItem.md +46 -0
- package/docs/UserBookingsApi.md +46 -0
- package/docs/UserClubSportsApi.md +2 -2
- package/docs/UserProfileApi.md +53 -0
- package/docs/UserStaffResponse.md +6 -0
- package/docs/UsersApi.md +243 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/GetClubPlayers200Response.md +0 -22
|
@@ -11,7 +11,10 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**email** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**phone** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**
|
|
14
|
+
**levelBySports** | [**Array<UpdateUserRequestBodyLevelBySportsInner>**](UpdateUserRequestBodyLevelBySportsInner.md) | | [optional] [default to undefined]
|
|
15
|
+
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
16
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
15
18
|
|
|
16
19
|
## Example
|
|
17
20
|
|
|
@@ -25,7 +28,10 @@ const instance: UpdateUserRequestBody = {
|
|
|
25
28
|
email,
|
|
26
29
|
phone,
|
|
27
30
|
profilePicture,
|
|
28
|
-
|
|
31
|
+
levelBySports,
|
|
32
|
+
isProfileVisible,
|
|
33
|
+
description,
|
|
34
|
+
city,
|
|
29
35
|
};
|
|
30
36
|
```
|
|
31
37
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UpdateUserRequestBodyLevelBySportsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**sport** | **string** | | [default to undefined]
|
|
9
|
+
**level** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UpdateUserRequestBodyLevelBySportsInner } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: UpdateUserRequestBodyLevelBySportsInner = {
|
|
17
|
+
sport,
|
|
18
|
+
level,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# UserBookingItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | ID de la réservation | [optional] [default to undefined]
|
|
9
|
+
**clubPicture** | **string** | URL de l\'image du club | [optional] [default to undefined]
|
|
10
|
+
**courtName** | **string** | Nom du terrain | [optional] [default to undefined]
|
|
11
|
+
**sportName** | **string** | Nom du sport | [optional] [default to undefined]
|
|
12
|
+
**startDate** | **string** | Date de début de la réservation | [optional] [default to undefined]
|
|
13
|
+
**myPaymentStatus** | **string** | Statut de paiement de l\'utilisateur | [optional] [default to undefined]
|
|
14
|
+
**bookingStatus** | **string** | Statut de la réservation | [optional] [default to undefined]
|
|
15
|
+
**playersName** | **Array<string>** | Liste des noms des joueurs | [optional] [default to undefined]
|
|
16
|
+
**myAmountToPay** | **number** | Montant que l\'utilisateur doit payer | [optional] [default to undefined]
|
|
17
|
+
**totalAmount** | **number** | Montant total de la réservation | [optional] [default to undefined]
|
|
18
|
+
**timeBeforeCancel** | **string** | Date limite avant annulation | [optional] [default to undefined]
|
|
19
|
+
**clubAddress** | **string** | Adresse du club | [optional] [default to undefined]
|
|
20
|
+
**bookingHistory** | **string** | Historique de la réservation | [optional] [default to undefined]
|
|
21
|
+
**paymentStatus** | [**Array<PaymentStatus>**](PaymentStatus.md) | Statut de paiement pour chaque joueur | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { UserBookingItem } from '@tennac-booking/sdk';
|
|
27
|
+
|
|
28
|
+
const instance: UserBookingItem = {
|
|
29
|
+
id,
|
|
30
|
+
clubPicture,
|
|
31
|
+
courtName,
|
|
32
|
+
sportName,
|
|
33
|
+
startDate,
|
|
34
|
+
myPaymentStatus,
|
|
35
|
+
bookingStatus,
|
|
36
|
+
playersName,
|
|
37
|
+
myAmountToPay,
|
|
38
|
+
totalAmount,
|
|
39
|
+
timeBeforeCancel,
|
|
40
|
+
clubAddress,
|
|
41
|
+
bookingHistory,
|
|
42
|
+
paymentStatus,
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/UserBookingsApi.md
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**blockSlot**](#blockslot) | **PATCH** /api/bookings/pre-book/{slotId} | Bloquer un créneau|
|
|
8
8
|
|[**createBooking**](#createbooking) | **POST** /api/bookings | Créer une réservation|
|
|
9
|
+
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/users/me/booking-history | Récupère l\'historique des réservations de l\'utilisateur connecté|
|
|
9
10
|
|
|
10
11
|
# **blockSlot**
|
|
11
12
|
> BlockSlotResponse blockSlot()
|
|
@@ -118,3 +119,48 @@ const { status, data } = await apiInstance.createBooking(
|
|
|
118
119
|
|
|
119
120
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
120
121
|
|
|
122
|
+
# **getBookingHistory**
|
|
123
|
+
> Array<UserBookingItem> getBookingHistory()
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Example
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
import {
|
|
130
|
+
UserBookingsApi,
|
|
131
|
+
Configuration
|
|
132
|
+
} from '@tennac-booking/sdk';
|
|
133
|
+
|
|
134
|
+
const configuration = new Configuration();
|
|
135
|
+
const apiInstance = new UserBookingsApi(configuration);
|
|
136
|
+
|
|
137
|
+
const { status, data } = await apiInstance.getBookingHistory();
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
This endpoint does not have any parameters.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### Return type
|
|
145
|
+
|
|
146
|
+
**Array<UserBookingItem>**
|
|
147
|
+
|
|
148
|
+
### Authorization
|
|
149
|
+
|
|
150
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
151
|
+
|
|
152
|
+
### HTTP request headers
|
|
153
|
+
|
|
154
|
+
- **Content-Type**: Not defined
|
|
155
|
+
- **Accept**: application/json
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### HTTP response details
|
|
159
|
+
| Status code | Description | Response headers |
|
|
160
|
+
|-------------|-------------|------------------|
|
|
161
|
+
|**200** | Historique des réservations | - |
|
|
162
|
+
|**401** | Non autorisé | - |
|
|
163
|
+
|**500** | Erreur serveur interne | - |
|
|
164
|
+
|
|
165
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
166
|
+
|
|
@@ -7,7 +7,7 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
7
7
|
|[**getSportsByClub**](#getsportsbyclub) | **GET** /api/clubs/{id}/sports | Récupérer tous les sports pour un club|
|
|
8
8
|
|
|
9
9
|
# **getSportsByClub**
|
|
10
|
-
>
|
|
10
|
+
> Array<Sport> getSportsByClub()
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
### Example
|
|
@@ -37,7 +37,7 @@ const { status, data } = await apiInstance.getSportsByClub(
|
|
|
37
37
|
|
|
38
38
|
### Return type
|
|
39
39
|
|
|
40
|
-
**
|
|
40
|
+
**Array<Sport>**
|
|
41
41
|
|
|
42
42
|
### Authorization
|
|
43
43
|
|
package/docs/UserProfileApi.md
CHANGED
|
@@ -14,6 +14,7 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
14
14
|
|[**getFrequentlyVisitedClub**](#getfrequentlyvisitedclub) | **GET** /api/users/me/frequentlyVisitedClub | Clubs les plus fréquemment visités par l\'utilisateur connecté|
|
|
15
15
|
|[**getProfilePicture**](#getprofilepicture) | **GET** /api/users/me/profile-picture | Récupère l\'URL de la photo de profil de l\'utilisateur connecté|
|
|
16
16
|
|[**getPublicUserProfile**](#getpublicuserprofile) | **GET** /api/users/profile/{id} | Récupère le profil public d\'un utilisateur par son ID|
|
|
17
|
+
|[**getUserBookingDetail**](#getuserbookingdetail) | **GET** /api/users/me/booking-detail/{bookingId} | Récupère le detéail d\'une réservation|
|
|
17
18
|
|[**getUserBookings**](#getuserbookings) | **GET** /api/users/me/bookings | Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)|
|
|
18
19
|
|[**getUserCity**](#getusercity) | **GET** /api/users/me/city | Récupère la ville de l\'utilisateur connecté|
|
|
19
20
|
|[**getUserDescription**](#getuserdescription) | **GET** /api/users/me/description | Récupère la description de l\'utilisateur connecté|
|
|
@@ -528,6 +529,58 @@ const { status, data } = await apiInstance.getPublicUserProfile(
|
|
|
528
529
|
|
|
529
530
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
530
531
|
|
|
532
|
+
# **getUserBookingDetail**
|
|
533
|
+
> UserBookingItem getUserBookingDetail()
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
### Example
|
|
537
|
+
|
|
538
|
+
```typescript
|
|
539
|
+
import {
|
|
540
|
+
UserProfileApi,
|
|
541
|
+
Configuration
|
|
542
|
+
} from '@tennac-booking/sdk';
|
|
543
|
+
|
|
544
|
+
const configuration = new Configuration();
|
|
545
|
+
const apiInstance = new UserProfileApi(configuration);
|
|
546
|
+
|
|
547
|
+
let bookingId: string; //ID de la réservation (default to undefined)
|
|
548
|
+
|
|
549
|
+
const { status, data } = await apiInstance.getUserBookingDetail(
|
|
550
|
+
bookingId
|
|
551
|
+
);
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
### Parameters
|
|
555
|
+
|
|
556
|
+
|Name | Type | Description | Notes|
|
|
557
|
+
|------------- | ------------- | ------------- | -------------|
|
|
558
|
+
| **bookingId** | [**string**] | ID de la réservation | defaults to undefined|
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
### Return type
|
|
562
|
+
|
|
563
|
+
**UserBookingItem**
|
|
564
|
+
|
|
565
|
+
### Authorization
|
|
566
|
+
|
|
567
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
568
|
+
|
|
569
|
+
### HTTP request headers
|
|
570
|
+
|
|
571
|
+
- **Content-Type**: Not defined
|
|
572
|
+
- **Accept**: application/json
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
### HTTP response details
|
|
576
|
+
| Status code | Description | Response headers |
|
|
577
|
+
|-------------|-------------|------------------|
|
|
578
|
+
|**200** | Réservations de l\'utilisateur | - |
|
|
579
|
+
|**401** | Non autorisé | - |
|
|
580
|
+
|**500** | Erreur serveur interne | - |
|
|
581
|
+
|
|
582
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
583
|
+
|
|
531
584
|
# **getUserBookings**
|
|
532
585
|
> UserBookingsResponse getUserBookings()
|
|
533
586
|
|
|
@@ -8,9 +8,12 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**gender** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
11
13
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
12
14
|
**isAccountVerified** | **boolean** | | [optional] [default to undefined]
|
|
13
15
|
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
16
|
+
**isSubscribedToClub** | **boolean** | | [optional] [default to undefined]
|
|
14
17
|
|
|
15
18
|
## Example
|
|
16
19
|
|
|
@@ -21,9 +24,12 @@ const instance: UserStaffResponse = {
|
|
|
21
24
|
id,
|
|
22
25
|
firstName,
|
|
23
26
|
lastName,
|
|
27
|
+
gender,
|
|
28
|
+
email,
|
|
24
29
|
profilePicture,
|
|
25
30
|
isAccountVerified,
|
|
26
31
|
isProfileVisible,
|
|
32
|
+
isSubscribedToClub,
|
|
27
33
|
};
|
|
28
34
|
```
|
|
29
35
|
|
package/docs/UsersApi.md
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# UsersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**apiUsersMeNearestClubsGet**](#apiusersmenearestclubsget) | **GET** /api/users/me/nearest-clubs/ | Récupère les clubs proches de l’utilisateur connecté|
|
|
8
|
+
|[**apiUsersMeNearestPlayersGet**](#apiusersmenearestplayersget) | **GET** /api/users/me/nearest-players/ | Récupère les utilisateurs proches de l’utilisateur connecté|
|
|
9
|
+
|[**apiUsersNearestClubsCoordinatesGet**](#apiusersnearestclubscoordinatesget) | **GET** /api/users/nearest-clubs/coordinates | Récupère les clubs proches d’une position donnée|
|
|
10
|
+
|[**apiUsersNearestPlayersCoordinatesGet**](#apiusersnearestplayerscoordinatesget) | **GET** /api/users/nearest-players/coordinates | Récupère les utilisateurs proches d’une position donnée|
|
|
11
|
+
|
|
12
|
+
# **apiUsersMeNearestClubsGet**
|
|
13
|
+
> Array<Club> apiUsersMeNearestClubsGet()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
UsersApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new UsersApi(configuration);
|
|
26
|
+
|
|
27
|
+
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
28
|
+
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.apiUsersMeNearestClubsGet(
|
|
31
|
+
radiusInKm,
|
|
32
|
+
limit
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **radiusInKm** | [**number**] | Rayon de recherche en kilomètres | (optional) defaults to undefined|
|
|
41
|
+
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**Array<Club>**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: Not defined
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Liste des clubs à proximité | - |
|
|
62
|
+
|**401** | Non autorisé | - |
|
|
63
|
+
|**500** | Erreur serveur interne | - |
|
|
64
|
+
|
|
65
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
66
|
+
|
|
67
|
+
# **apiUsersMeNearestPlayersGet**
|
|
68
|
+
> Array<UserResponse> apiUsersMeNearestPlayersGet()
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
UsersApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from '@tennac-booking/sdk';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new UsersApi(configuration);
|
|
81
|
+
|
|
82
|
+
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
83
|
+
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.apiUsersMeNearestPlayersGet(
|
|
86
|
+
radiusInKm,
|
|
87
|
+
limit
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
|Name | Type | Description | Notes|
|
|
94
|
+
|------------- | ------------- | ------------- | -------------|
|
|
95
|
+
| **radiusInKm** | [**number**] | Rayon de recherche en kilomètres | (optional) defaults to undefined|
|
|
96
|
+
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Return type
|
|
100
|
+
|
|
101
|
+
**Array<UserResponse>**
|
|
102
|
+
|
|
103
|
+
### Authorization
|
|
104
|
+
|
|
105
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
106
|
+
|
|
107
|
+
### HTTP request headers
|
|
108
|
+
|
|
109
|
+
- **Content-Type**: Not defined
|
|
110
|
+
- **Accept**: application/json
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### HTTP response details
|
|
114
|
+
| Status code | Description | Response headers |
|
|
115
|
+
|-------------|-------------|------------------|
|
|
116
|
+
|**200** | Liste des utilisateurs à proximité | - |
|
|
117
|
+
|**401** | Non autorisé | - |
|
|
118
|
+
|**500** | Erreur serveur interne | - |
|
|
119
|
+
|
|
120
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
121
|
+
|
|
122
|
+
# **apiUsersNearestClubsCoordinatesGet**
|
|
123
|
+
> Array<Club> apiUsersNearestClubsCoordinatesGet()
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Example
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
import {
|
|
130
|
+
UsersApi,
|
|
131
|
+
Configuration
|
|
132
|
+
} from '@tennac-booking/sdk';
|
|
133
|
+
|
|
134
|
+
const configuration = new Configuration();
|
|
135
|
+
const apiInstance = new UsersApi(configuration);
|
|
136
|
+
|
|
137
|
+
let latitude: number; //Latitude de la position (default to undefined)
|
|
138
|
+
let longitude: number; //Longitude de la position (default to undefined)
|
|
139
|
+
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
140
|
+
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
141
|
+
|
|
142
|
+
const { status, data } = await apiInstance.apiUsersNearestClubsCoordinatesGet(
|
|
143
|
+
latitude,
|
|
144
|
+
longitude,
|
|
145
|
+
radiusInKm,
|
|
146
|
+
limit
|
|
147
|
+
);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Parameters
|
|
151
|
+
|
|
152
|
+
|Name | Type | Description | Notes|
|
|
153
|
+
|------------- | ------------- | ------------- | -------------|
|
|
154
|
+
| **latitude** | [**number**] | Latitude de la position | defaults to undefined|
|
|
155
|
+
| **longitude** | [**number**] | Longitude de la position | defaults to undefined|
|
|
156
|
+
| **radiusInKm** | [**number**] | Rayon de recherche en kilomètres | (optional) defaults to undefined|
|
|
157
|
+
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Return type
|
|
161
|
+
|
|
162
|
+
**Array<Club>**
|
|
163
|
+
|
|
164
|
+
### Authorization
|
|
165
|
+
|
|
166
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
167
|
+
|
|
168
|
+
### HTTP request headers
|
|
169
|
+
|
|
170
|
+
- **Content-Type**: Not defined
|
|
171
|
+
- **Accept**: application/json
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### HTTP response details
|
|
175
|
+
| Status code | Description | Response headers |
|
|
176
|
+
|-------------|-------------|------------------|
|
|
177
|
+
|**200** | Liste des clubs à proximité | - |
|
|
178
|
+
|**400** | Requête invalide | - |
|
|
179
|
+
|**500** | Erreur serveur interne | - |
|
|
180
|
+
|
|
181
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
182
|
+
|
|
183
|
+
# **apiUsersNearestPlayersCoordinatesGet**
|
|
184
|
+
> Array<UserResponse> apiUsersNearestPlayersCoordinatesGet()
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
### Example
|
|
188
|
+
|
|
189
|
+
```typescript
|
|
190
|
+
import {
|
|
191
|
+
UsersApi,
|
|
192
|
+
Configuration
|
|
193
|
+
} from '@tennac-booking/sdk';
|
|
194
|
+
|
|
195
|
+
const configuration = new Configuration();
|
|
196
|
+
const apiInstance = new UsersApi(configuration);
|
|
197
|
+
|
|
198
|
+
let latitude: number; //Latitude de la position (default to undefined)
|
|
199
|
+
let longitude: number; //Longitude de la position (default to undefined)
|
|
200
|
+
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
201
|
+
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
202
|
+
|
|
203
|
+
const { status, data } = await apiInstance.apiUsersNearestPlayersCoordinatesGet(
|
|
204
|
+
latitude,
|
|
205
|
+
longitude,
|
|
206
|
+
radiusInKm,
|
|
207
|
+
limit
|
|
208
|
+
);
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Parameters
|
|
212
|
+
|
|
213
|
+
|Name | Type | Description | Notes|
|
|
214
|
+
|------------- | ------------- | ------------- | -------------|
|
|
215
|
+
| **latitude** | [**number**] | Latitude de la position | defaults to undefined|
|
|
216
|
+
| **longitude** | [**number**] | Longitude de la position | defaults to undefined|
|
|
217
|
+
| **radiusInKm** | [**number**] | Rayon de recherche en kilomètres | (optional) defaults to undefined|
|
|
218
|
+
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### Return type
|
|
222
|
+
|
|
223
|
+
**Array<UserResponse>**
|
|
224
|
+
|
|
225
|
+
### Authorization
|
|
226
|
+
|
|
227
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
228
|
+
|
|
229
|
+
### HTTP request headers
|
|
230
|
+
|
|
231
|
+
- **Content-Type**: Not defined
|
|
232
|
+
- **Accept**: application/json
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
### HTTP response details
|
|
236
|
+
| Status code | Description | Response headers |
|
|
237
|
+
|-------------|-------------|------------------|
|
|
238
|
+
|**200** | Liste des utilisateurs à proximité | - |
|
|
239
|
+
|**400** | Requête invalide | - |
|
|
240
|
+
|**500** | Erreur serveur interne | - |
|
|
241
|
+
|
|
242
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
243
|
+
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.35
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# GetClubPlayers200Response
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**clubPlayers** | [**Array<UserStaffResponse>**](UserStaffResponse.md) | | [optional] [default to undefined]
|
|
9
|
-
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { GetClubPlayers200Response } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: GetClubPlayers200Response = {
|
|
17
|
-
clubPlayers,
|
|
18
|
-
total,
|
|
19
|
-
};
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|