@tennac-booking/sdk 1.0.33 → 1.0.34
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 +9 -0
- package/README.md +14 -2
- package/api.ts +874 -82
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +615 -5
- package/dist/api.js +327 -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 +615 -5
- package/dist/esm/api.js +320 -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 +2 -0
- package/docs/BookingHistoryResponse.md +22 -0
- package/docs/BookingHistoryResponseHistoryInner.md +32 -0
- package/docs/BookingsApi.md +113 -0
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
- package/docs/CourtWithNameResponse.md +46 -0
- package/docs/CourtsWithNameResponse.md +22 -0
- package/docs/ManagerClubCourtsApi.md +2 -2
- package/docs/PaymentStatus.md +30 -0
- package/docs/SportResponse.md +4 -0
- 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/UserProfileApi.md +53 -0
- package/docs/UserStaffResponse.md +6 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# BookingsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**bookingsStaffDailyDateGet**](#bookingsstaffdailydateget) | **GET** /bookings/staff/daily/{date} | Récupérer les réservations journalières|
|
|
8
|
+
|[**bookingsStaffWeeklyWeekIdGet**](#bookingsstaffweeklyweekidget) | **GET** /bookings/staff/weekly/{weekId} | Récupérer les réservations hebdomadaires|
|
|
9
|
+
|
|
10
|
+
# **bookingsStaffDailyDateGet**
|
|
11
|
+
> BookingsStaffWeeklyWeekIdGet200Response bookingsStaffDailyDateGet()
|
|
12
|
+
|
|
13
|
+
Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
BookingsApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new BookingsApi(configuration);
|
|
25
|
+
|
|
26
|
+
let date: string; //Date au format YYYY-MM-DD (default to undefined)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.bookingsStaffDailyDateGet(
|
|
29
|
+
date
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **date** | [**string**] | Date au format YYYY-MM-DD | defaults to undefined|
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**BookingsStaffWeeklyWeekIdGet200Response**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: Not defined
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Réservations journalières récupérées avec succès | - |
|
|
58
|
+
|**500** | Erreur serveur interne | - |
|
|
59
|
+
|
|
60
|
+
[[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)
|
|
61
|
+
|
|
62
|
+
# **bookingsStaffWeeklyWeekIdGet**
|
|
63
|
+
> BookingsStaffWeeklyWeekIdGet200Response bookingsStaffWeeklyWeekIdGet()
|
|
64
|
+
|
|
65
|
+
Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
66
|
+
|
|
67
|
+
### Example
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
import {
|
|
71
|
+
BookingsApi,
|
|
72
|
+
Configuration
|
|
73
|
+
} from '@tennac-booking/sdk';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new BookingsApi(configuration);
|
|
77
|
+
|
|
78
|
+
let weekId: string; //ID de la semaine (default to undefined)
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.bookingsStaffWeeklyWeekIdGet(
|
|
81
|
+
weekId
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
|Name | Type | Description | Notes|
|
|
88
|
+
|------------- | ------------- | ------------- | -------------|
|
|
89
|
+
| **weekId** | [**string**] | ID de la semaine | defaults to undefined|
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**BookingsStaffWeeklyWeekIdGet200Response**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: Not defined
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### HTTP response details
|
|
107
|
+
| Status code | Description | Response headers |
|
|
108
|
+
|-------------|-------------|------------------|
|
|
109
|
+
|**200** | Réservations hebdomadaires récupérées avec succès | - |
|
|
110
|
+
|**500** | Erreur serveur interne | - |
|
|
111
|
+
|
|
112
|
+
[[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)
|
|
113
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BookingsStaffWeeklyWeekIdGet200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**bookings** | [**Array<BookingPopulated>**](BookingPopulated.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { BookingsStaffWeeklyWeekIdGet200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: BookingsStaffWeeklyWeekIdGet200Response = {
|
|
16
|
+
bookings,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[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
|
+
# CourtWithNameResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**status** | [**CourtStatus**](CourtStatus.md) | | [optional] [default to undefined]
|
|
11
|
+
**comments** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**pricePerSlot** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**slotDefaultDuration** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**startTimeInTheDayInMinutes** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**endTimeInTheDayInMinutes** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**sportId** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**sportName** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**isIndoor** | **boolean** | Indique si le terrain est en intérieur ou extérieur | [optional] [default to undefined]
|
|
20
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { CourtWithNameResponse } from '@tennac-booking/sdk';
|
|
27
|
+
|
|
28
|
+
const instance: CourtWithNameResponse = {
|
|
29
|
+
id,
|
|
30
|
+
name,
|
|
31
|
+
status,
|
|
32
|
+
comments,
|
|
33
|
+
pricePerSlot,
|
|
34
|
+
slotDefaultDuration,
|
|
35
|
+
startTimeInTheDayInMinutes,
|
|
36
|
+
endTimeInTheDayInMinutes,
|
|
37
|
+
sportId,
|
|
38
|
+
sportName,
|
|
39
|
+
clubId,
|
|
40
|
+
isIndoor,
|
|
41
|
+
createdAt,
|
|
42
|
+
updatedAt,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CourtsWithNameResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**courts** | [**Array<CourtWithNameResponse>**](CourtWithNameResponse.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CourtsWithNameResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CourtsWithNameResponse = {
|
|
17
|
+
courts,
|
|
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)
|
|
@@ -117,7 +117,7 @@ const { status, data } = await apiInstance.deleteCourt(
|
|
|
117
117
|
[[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)
|
|
118
118
|
|
|
119
119
|
# **getCourtsByClub**
|
|
120
|
-
>
|
|
120
|
+
> CourtsWithNameResponse getCourtsByClub()
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
### Example
|
|
@@ -140,7 +140,7 @@ This endpoint does not have any parameters.
|
|
|
140
140
|
|
|
141
141
|
### Return type
|
|
142
142
|
|
|
143
|
-
**
|
|
143
|
+
**CourtsWithNameResponse**
|
|
144
144
|
|
|
145
145
|
### Authorization
|
|
146
146
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# PaymentStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**profilePicture** | **string** | URL de la photo de profil du joueur | [optional] [default to undefined]
|
|
9
|
+
**userId** | **string** | Identifiant de l\'utilisateur | [optional] [default to undefined]
|
|
10
|
+
**firstName** | **string** | Prénom de l\'utilisateur | [optional] [default to undefined]
|
|
11
|
+
**lastName** | **string** | Nom de l\'utilisateur | [optional] [default to undefined]
|
|
12
|
+
**amount** | **number** | Montant que l\'utilisateur doit payer | [optional] [default to undefined]
|
|
13
|
+
**invoiceStatus** | **string** | Statut de la facture | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { PaymentStatus } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: PaymentStatus = {
|
|
21
|
+
profilePicture,
|
|
22
|
+
userId,
|
|
23
|
+
firstName,
|
|
24
|
+
lastName,
|
|
25
|
+
amount,
|
|
26
|
+
invoiceStatus,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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/SportResponse.md
CHANGED
|
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**name** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**description** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**clubId** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**courtsCount** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**bookingsCount** | **number** | | [optional] [default to undefined]
|
|
13
15
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
14
16
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
15
17
|
|
|
@@ -24,6 +26,8 @@ const instance: SportResponse = {
|
|
|
24
26
|
name,
|
|
25
27
|
description,
|
|
26
28
|
clubId,
|
|
29
|
+
courtsCount,
|
|
30
|
+
bookingsCount,
|
|
27
31
|
createdAt,
|
|
28
32
|
updatedAt,
|
|
29
33
|
};
|
|
@@ -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
|
+
|
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/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.34
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|