@tennac-booking/sdk 1.0.116 → 1.0.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/api.ts +252 -5
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +214 -5
  8. package/dist/api.js +68 -1
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +214 -5
  16. package/dist/esm/api.js +68 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/{DeleteClubRole200Response.md → CheckTeamNameAvailability200Response.md} +5 -5
  28. package/docs/EstimateEventPrice200Response.md +6 -0
  29. package/docs/EstimateEventPriceRequest.md +4 -0
  30. package/docs/EventResponse.md +1 -1
  31. package/docs/{FavoritePlayerPublic.md → EventUser.md} +9 -9
  32. package/docs/EventsApi.md +57 -0
  33. package/docs/JoinEventRequest.md +2 -0
  34. package/docs/JoinEventResponse.md +14 -0
  35. package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
  36. package/docs/Team.md +1 -1
  37. package/index.ts +1 -1
  38. package/package.json +1 -1
  39. package/docs/ActiveClub.md +0 -24
  40. package/docs/ActiveClubListResponse.md +0 -20
  41. package/docs/AddClubMemberResponse.md +0 -22
  42. package/docs/AddFavoriteClubRequestBody.md +0 -20
  43. package/docs/AddFavoritePlayerRequestBody.md +0 -20
  44. package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
  45. package/docs/AddPaymentMethodSetupResponse.md +0 -24
  46. package/docs/AdminClubAnalyticsApi.md +0 -249
  47. package/docs/AdminClubSlotsApi.md +0 -182
  48. package/docs/AdminClubSubscriptionsApi.md +0 -394
  49. package/docs/AdminClubsApi.md +0 -170
  50. package/docs/ApiErrorResponse.md +0 -22
  51. package/docs/BlockSlotResponse.md +0 -22
  52. package/docs/Booking.md +0 -32
  53. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
  54. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
  55. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
  56. package/docs/BookingPopulatedSlotId.md +0 -26
  57. package/docs/BookingPopulatedSlotIdCourtId.md +0 -22
  58. package/docs/BookingPopulatedUserId.md +0 -24
  59. package/docs/CancelBookingResponseBooking.md +0 -30
  60. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
  61. package/docs/Club.md +0 -46
  62. package/docs/ClubInfoResponse.md +0 -48
  63. package/docs/ClubListResponse.md +0 -22
  64. package/docs/ClubMember.md +0 -34
  65. package/docs/ClubMembersResponse.md +0 -22
  66. package/docs/ClubRole.md +0 -30
  67. package/docs/ClubRolesResponse.md +0 -22
  68. package/docs/ClubSettings.md +0 -40
  69. package/docs/ClubsResponse.md +0 -22
  70. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
  71. package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
  72. package/docs/Court.md +0 -32
  73. package/docs/CourtsResponse.md +0 -22
  74. package/docs/CreateClubRoleRequestBody.md +0 -24
  75. package/docs/CreateClubSettingsRequest.md +0 -28
  76. package/docs/CreatePriceRequest.md +0 -26
  77. package/docs/DeleteClub200Response.md +0 -20
  78. package/docs/DeleteClubSettingsRequest.md +0 -20
  79. package/docs/DeleteEvent200Response.md +0 -20
  80. package/docs/DeleteSlotsByClubInRange200Response.md +0 -20
  81. package/docs/DeleteSlotsResponse.md +0 -20
  82. package/docs/DeleteSport200Response.md +0 -20
  83. package/docs/Event.md +0 -40
  84. package/docs/EventBooking.md +0 -32
  85. package/docs/EventRegistrationRequest.md +0 -22
  86. package/docs/FavoriteClubItem.md +0 -26
  87. package/docs/FavoriteClubResponse.md +0 -22
  88. package/docs/FavoritePlayersIdsResponse.md +0 -22
  89. package/docs/FrequentlyPlayedWithItem.md +0 -28
  90. package/docs/FrequentlyVisitedClubItem.md +0 -24
  91. package/docs/GenerateSlotsResponse.md +0 -20
  92. package/docs/GetActiveClubs200Response.md +0 -20
  93. package/docs/GetClubInfos200Response.md +0 -30
  94. package/docs/GetCourtsByClubAndSport200Response.md +0 -26
  95. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
  96. package/docs/GetNumberOfClubUsers200Response.md +0 -20
  97. package/docs/GetPublishedEventsByClubId200Response.md +0 -20
  98. package/docs/GetUserRolesResponse.md +0 -20
  99. package/docs/GetUserRolesResponseRolesInner.md +0 -26
  100. package/docs/GetUserSubscriptionsResponse.md +0 -22
  101. package/docs/GoogleSignInRequestBody.md +0 -20
  102. package/docs/GoogleSignInResponse.md +0 -24
  103. package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
  104. package/docs/InitiateSubscriptionSessionResponse.md +0 -22
  105. package/docs/InvoicesResponse.md +0 -22
  106. package/docs/InvoicesResponseInvoicesInner.md +0 -34
  107. package/docs/InvoicesResponsePagination.md +0 -26
  108. package/docs/LevelBySportsItem.md +0 -22
  109. package/docs/ManagerBookingsApi.md +0 -125
  110. package/docs/ManagerCancelBookingResponseBooking.md +0 -30
  111. package/docs/ManagerClubCourtsApi.md +0 -108
  112. package/docs/ManagerClubRolesApi.md +0 -268
  113. package/docs/ManagerClubSlotsApi.md +0 -119
  114. package/docs/ManagerClubSubscriptionsApi.md +0 -387
  115. package/docs/ManagerClubsApi.md +0 -253
  116. package/docs/ManagerEventResponse.md +0 -22
  117. package/docs/ManagerEventsApi.md +0 -227
  118. package/docs/ManagerSportsApi.md +0 -174
  119. package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
  120. package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
  121. package/docs/PriceResponse.md +0 -32
  122. package/docs/ProfileVisibilityResponse.md +0 -20
  123. package/docs/PublicClubUser.md +0 -46
  124. package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
  125. package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
  126. package/docs/PublicClubUserLevelBySportsInner.md +0 -22
  127. package/docs/RegisterForEvent201Response.md +0 -20
  128. package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
  129. package/docs/SetupPaymentMethodRequestBody.md +0 -20
  130. package/docs/SetupPaymentMethodResponse.md +0 -24
  131. package/docs/Slot.md +0 -24
  132. package/docs/SlotException.md +0 -26
  133. package/docs/SlotResponse.md +0 -34
  134. package/docs/SlotsResponse.md +0 -22
  135. package/docs/Sport.md +0 -24
  136. package/docs/SportsResponse.md +0 -22
  137. package/docs/StaffClubAnalyticsApi.md +0 -104
  138. package/docs/StaffClubBookingsApi.md +0 -52
  139. package/docs/StaffClubsApi.md +0 -100
  140. package/docs/StaffEventResponse.md +0 -20
  141. package/docs/StaffEventsApi.md +0 -54
  142. package/docs/StaffProfileApi.md +0 -54
  143. package/docs/StripeStatus.md +0 -16
  144. package/docs/SubscribeToClubRequestBody.md +0 -22
  145. package/docs/SubscriptionPlan.md +0 -36
  146. package/docs/SubscriptionResponse.md +0 -36
  147. package/docs/UpdateClubRoleRequestBody.md +0 -24
  148. package/docs/UpdateClubSettingsRequest.md +0 -28
  149. package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
  150. package/docs/UpdateCustomerResponseCustomer.md +0 -28
  151. package/docs/UpdateProfilePictureRequestBody.md +0 -20
  152. package/docs/UpdateProfileVisibilityRequestBody.md +0 -20
  153. package/docs/UpdateSubscriptionPlanRequest.md +0 -24
  154. package/docs/UpdateSubscriptionPlanResponse.md +0 -22
  155. package/docs/UpdateUserCityRequestBody.md +0 -20
  156. package/docs/UpdateUserDescriptionRequestBody.md +0 -20
  157. package/docs/User.md +0 -40
  158. package/docs/UserAuthenticationApi.md +0 -226
  159. package/docs/UserBookingsApi.md +0 -120
  160. package/docs/UserCityResponse.md +0 -20
  161. package/docs/UserClubCourtsApi.md +0 -64
  162. package/docs/UserClubSlotsApi.md +0 -181
  163. package/docs/UserClubSportsApi.md +0 -60
  164. package/docs/UserClubsApi.md +0 -53
  165. package/docs/UserDescriptionResponse.md +0 -20
  166. package/docs/UserFavoriteClubsResponse.md +0 -20
  167. package/docs/UserPaymentApi.md +0 -176
  168. package/docs/UserProfileApi.md +0 -1201
  169. package/docs/UserResponse.md +0 -38
  170. package/docs/UserSubscriptionsApi.md +0 -222
  171. package/docs/UsersResponse.md +0 -22
  172. package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
@@ -1,24 +0,0 @@
1
- # UpdateClubRoleRequestBody
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **name** | **string** | Nouveau nom du rôle (optionnel) | [optional] [default to undefined]
9
- **description** | **string** | Nouvelle description du rôle (optionnel) | [optional] [default to undefined]
10
- **permissions** | **Array<string>** | Nouvelle liste de permissions (optionnel) | [optional] [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { UpdateClubRoleRequestBody } from '@tennac-booking/sdk';
16
-
17
- const instance: UpdateClubRoleRequestBody = {
18
- name,
19
- description,
20
- permissions,
21
- };
22
- ```
23
-
24
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,28 +0,0 @@
1
- # UpdateClubSettingsRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **clubId** | **string** | | [default to undefined]
9
- **reservationStartTime** | **string** | | [optional] [default to undefined]
10
- **reservationEndTime** | **string** | | [optional] [default to undefined]
11
- **maxSimultaneousReservations** | **number** | | [optional] [default to undefined]
12
- **allowWeekendReservations** | **boolean** | | [optional] [default to undefined]
13
-
14
- ## Example
15
-
16
- ```typescript
17
- import { UpdateClubSettingsRequest } from '@tennac-booking/sdk';
18
-
19
- const instance: UpdateClubSettingsRequest = {
20
- clubId,
21
- reservationStartTime,
22
- reservationEndTime,
23
- maxSimultaneousReservations,
24
- allowWeekendReservations,
25
- };
26
- ```
27
-
28
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,30 +0,0 @@
1
- # UpdateCustomerRequestBodyAddress
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **line1** | **string** | | [optional] [default to undefined]
9
- **line2** | **string** | | [optional] [default to undefined]
10
- **city** | **string** | | [optional] [default to undefined]
11
- **state** | **string** | | [optional] [default to undefined]
12
- **postal_code** | **string** | | [optional] [default to undefined]
13
- **country** | **string** | | [optional] [default to undefined]
14
-
15
- ## Example
16
-
17
- ```typescript
18
- import { UpdateCustomerRequestBodyAddress } from '@tennac-booking/sdk';
19
-
20
- const instance: UpdateCustomerRequestBodyAddress = {
21
- line1,
22
- line2,
23
- city,
24
- state,
25
- postal_code,
26
- country,
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)
@@ -1,28 +0,0 @@
1
- # UpdateCustomerResponseCustomer
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
- **email** | **string** | | [optional] [default to undefined]
11
- **phone** | **string** | | [optional] [default to undefined]
12
- **address** | **object** | | [optional] [default to undefined]
13
-
14
- ## Example
15
-
16
- ```typescript
17
- import { UpdateCustomerResponseCustomer } from '@tennac-booking/sdk';
18
-
19
- const instance: UpdateCustomerResponseCustomer = {
20
- id,
21
- name,
22
- email,
23
- phone,
24
- address,
25
- };
26
- ```
27
-
28
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,20 +0,0 @@
1
- # UpdateProfilePictureRequestBody
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **profilePicture** | **string** | URL distante de la photo de profil (AWS/GCP) | [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { UpdateProfilePictureRequestBody } from '@tennac-booking/sdk';
14
-
15
- const instance: UpdateProfilePictureRequestBody = {
16
- profilePicture,
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)
@@ -1,20 +0,0 @@
1
- # UpdateProfileVisibilityRequestBody
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **isProfileVisible** | **boolean** | Indique si le profil est visible aux autres utilisateurs | [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { UpdateProfileVisibilityRequestBody } from '@tennac-booking/sdk';
14
-
15
- const instance: UpdateProfileVisibilityRequestBody = {
16
- isProfileVisible,
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)
@@ -1,24 +0,0 @@
1
- # UpdateSubscriptionPlanRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **name** | **string** | Nouveau nom du plan d\'abonnement | [optional] [default to undefined]
9
- **description** | **string** | Nouvelle description du plan d\'abonnement | [optional] [default to undefined]
10
- **metadata** | **object** | Nouvelles métadonnées pour le plan | [optional] [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { UpdateSubscriptionPlanRequest } from '@tennac-booking/sdk';
16
-
17
- const instance: UpdateSubscriptionPlanRequest = {
18
- name,
19
- description,
20
- metadata,
21
- };
22
- ```
23
-
24
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,22 +0,0 @@
1
- # UpdateSubscriptionPlanResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **message** | **string** | Message de confirmation | [optional] [default to undefined]
9
- **plan** | [**SubscriptionPlan**](SubscriptionPlan.md) | | [optional] [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { UpdateSubscriptionPlanResponse } from '@tennac-booking/sdk';
15
-
16
- const instance: UpdateSubscriptionPlanResponse = {
17
- message,
18
- plan,
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)
@@ -1,20 +0,0 @@
1
- # UpdateUserCityRequestBody
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **city** | **string** | Nouvelle ville de l\'utilisateur | [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { UpdateUserCityRequestBody } from '@tennac-booking/sdk';
14
-
15
- const instance: UpdateUserCityRequestBody = {
16
- city,
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)
@@ -1,20 +0,0 @@
1
- # UpdateUserDescriptionRequestBody
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **description** | **string** | Nouvelle description de l\'utilisateur | [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { UpdateUserDescriptionRequestBody } from '@tennac-booking/sdk';
14
-
15
- const instance: UpdateUserDescriptionRequestBody = {
16
- description,
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)
package/docs/User.md DELETED
@@ -1,40 +0,0 @@
1
- # User
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **username** | **string** | | [optional] [default to undefined]
9
- **firstName** | **string** | | [default to undefined]
10
- **lastName** | **string** | | [default to undefined]
11
- **email** | **string** | | [default to undefined]
12
- **isAccountVerified** | **boolean** | | [optional] [default to false]
13
- **level** | **string** | | [optional] [default to undefined]
14
- **stripeCustomerId** | **string** | | [optional] [default to undefined]
15
- **phone** | **string** | | [optional] [default to undefined]
16
- **password** | **string** | | [default to undefined]
17
- **profilePicture** | **string** | | [optional] [default to undefined]
18
- **isAdmin** | **boolean** | | [optional] [default to false]
19
-
20
- ## Example
21
-
22
- ```typescript
23
- import { User } from '@tennac-booking/sdk';
24
-
25
- const instance: User = {
26
- username,
27
- firstName,
28
- lastName,
29
- email,
30
- isAccountVerified,
31
- level,
32
- stripeCustomerId,
33
- phone,
34
- password,
35
- profilePicture,
36
- isAdmin,
37
- };
38
- ```
39
-
40
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,226 +0,0 @@
1
- # UserAuthenticationApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**login**](#login) | **POST** /api/users/login | Authentifie un utilisateur|
8
- |[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | Rafraîchit le token d\'accès|
9
- |[**register**](#register) | **POST** /api/users | Crée un nouvel utilisateur|
10
- |[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | Authentifie ou crée un utilisateur via Google OAuth|
11
-
12
- # **login**
13
- > LoginResponse login(loginRequestBody)
14
-
15
-
16
- ### Example
17
-
18
- ```typescript
19
- import {
20
- UserAuthenticationApi,
21
- Configuration,
22
- LoginRequestBody
23
- } from '@tennac-booking/sdk';
24
-
25
- const configuration = new Configuration();
26
- const apiInstance = new UserAuthenticationApi(configuration);
27
-
28
- let loginRequestBody: LoginRequestBody; //
29
-
30
- const { status, data } = await apiInstance.login(
31
- loginRequestBody
32
- );
33
- ```
34
-
35
- ### Parameters
36
-
37
- |Name | Type | Description | Notes|
38
- |------------- | ------------- | ------------- | -------------|
39
- | **loginRequestBody** | **LoginRequestBody**| | |
40
-
41
-
42
- ### Return type
43
-
44
- **LoginResponse**
45
-
46
- ### Authorization
47
-
48
- [bearerAuth](../README.md#bearerAuth)
49
-
50
- ### HTTP request headers
51
-
52
- - **Content-Type**: application/json
53
- - **Accept**: application/json
54
-
55
-
56
- ### HTTP response details
57
- | Status code | Description | Response headers |
58
- |-------------|-------------|------------------|
59
- |**200** | Authentification réussie | - |
60
- |**400** | Requête invalide | - |
61
- |**401** | Non autorisé | - |
62
- |**500** | Erreur serveur interne | - |
63
-
64
- [[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)
65
-
66
- # **refreshToken**
67
- > RefreshTokenResponse refreshToken(refreshTokenRequestBody)
68
-
69
-
70
- ### Example
71
-
72
- ```typescript
73
- import {
74
- UserAuthenticationApi,
75
- Configuration,
76
- RefreshTokenRequestBody
77
- } from '@tennac-booking/sdk';
78
-
79
- const configuration = new Configuration();
80
- const apiInstance = new UserAuthenticationApi(configuration);
81
-
82
- let refreshTokenRequestBody: RefreshTokenRequestBody; //
83
-
84
- const { status, data } = await apiInstance.refreshToken(
85
- refreshTokenRequestBody
86
- );
87
- ```
88
-
89
- ### Parameters
90
-
91
- |Name | Type | Description | Notes|
92
- |------------- | ------------- | ------------- | -------------|
93
- | **refreshTokenRequestBody** | **RefreshTokenRequestBody**| | |
94
-
95
-
96
- ### Return type
97
-
98
- **RefreshTokenResponse**
99
-
100
- ### Authorization
101
-
102
- [bearerAuth](../README.md#bearerAuth)
103
-
104
- ### HTTP request headers
105
-
106
- - **Content-Type**: application/json
107
- - **Accept**: application/json
108
-
109
-
110
- ### HTTP response details
111
- | Status code | Description | Response headers |
112
- |-------------|-------------|------------------|
113
- |**200** | Nouveaux tokens | - |
114
- |**400** | Requête invalide | - |
115
- |**401** | Non autorisé | - |
116
- |**500** | Erreur serveur interne | - |
117
-
118
- [[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)
119
-
120
- # **register**
121
- > UserResponse register(registerRequestBody)
122
-
123
-
124
- ### Example
125
-
126
- ```typescript
127
- import {
128
- UserAuthenticationApi,
129
- Configuration,
130
- RegisterRequestBody
131
- } from '@tennac-booking/sdk';
132
-
133
- const configuration = new Configuration();
134
- const apiInstance = new UserAuthenticationApi(configuration);
135
-
136
- let registerRequestBody: RegisterRequestBody; //
137
-
138
- const { status, data } = await apiInstance.register(
139
- registerRequestBody
140
- );
141
- ```
142
-
143
- ### Parameters
144
-
145
- |Name | Type | Description | Notes|
146
- |------------- | ------------- | ------------- | -------------|
147
- | **registerRequestBody** | **RegisterRequestBody**| | |
148
-
149
-
150
- ### Return type
151
-
152
- **UserResponse**
153
-
154
- ### Authorization
155
-
156
- [bearerAuth](../README.md#bearerAuth)
157
-
158
- ### HTTP request headers
159
-
160
- - **Content-Type**: application/json
161
- - **Accept**: application/json
162
-
163
-
164
- ### HTTP response details
165
- | Status code | Description | Response headers |
166
- |-------------|-------------|------------------|
167
- |**201** | Utilisateur créé | - |
168
- |**400** | Requête invalide | - |
169
- |**409** | Email déjà utilisé | - |
170
- |**500** | Erreur serveur interne | - |
171
-
172
- [[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)
173
-
174
- # **signInOrSignUpWithGoogle**
175
- > GoogleSignInResponse signInOrSignUpWithGoogle(googleSignInRequestBody)
176
-
177
-
178
- ### Example
179
-
180
- ```typescript
181
- import {
182
- UserAuthenticationApi,
183
- Configuration,
184
- GoogleSignInRequestBody
185
- } from '@tennac-booking/sdk';
186
-
187
- const configuration = new Configuration();
188
- const apiInstance = new UserAuthenticationApi(configuration);
189
-
190
- let googleSignInRequestBody: GoogleSignInRequestBody; //
191
-
192
- const { status, data } = await apiInstance.signInOrSignUpWithGoogle(
193
- googleSignInRequestBody
194
- );
195
- ```
196
-
197
- ### Parameters
198
-
199
- |Name | Type | Description | Notes|
200
- |------------- | ------------- | ------------- | -------------|
201
- | **googleSignInRequestBody** | **GoogleSignInRequestBody**| | |
202
-
203
-
204
- ### Return type
205
-
206
- **GoogleSignInResponse**
207
-
208
- ### Authorization
209
-
210
- [bearerAuth](../README.md#bearerAuth)
211
-
212
- ### HTTP request headers
213
-
214
- - **Content-Type**: application/json
215
- - **Accept**: application/json
216
-
217
-
218
- ### HTTP response details
219
- | Status code | Description | Response headers |
220
- |-------------|-------------|------------------|
221
- |**200** | Authentification Google réussie | - |
222
- |**400** | Requête invalide | - |
223
- |**500** | Erreur serveur interne | - |
224
-
225
- [[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)
226
-
@@ -1,120 +0,0 @@
1
- # UserBookingsApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**blockSlot**](#blockslot) | **PATCH** /api/bookings/pre-book/{slotId} | Bloquer un créneau|
8
- |[**createBooking**](#createbooking) | **POST** /api/bookings | Créer une réservation|
9
-
10
- # **blockSlot**
11
- > BlockSlotResponse blockSlot()
12
-
13
- Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
14
-
15
- ### Example
16
-
17
- ```typescript
18
- import {
19
- UserBookingsApi,
20
- Configuration
21
- } from '@tennac-booking/sdk';
22
-
23
- const configuration = new Configuration();
24
- const apiInstance = new UserBookingsApi(configuration);
25
-
26
- let slotId: string; //ID MongoDB du créneau à bloquer (default to undefined)
27
-
28
- const { status, data } = await apiInstance.blockSlot(
29
- slotId
30
- );
31
- ```
32
-
33
- ### Parameters
34
-
35
- |Name | Type | Description | Notes|
36
- |------------- | ------------- | ------------- | -------------|
37
- | **slotId** | [**string**] | ID MongoDB du créneau à bloquer | defaults to undefined|
38
-
39
-
40
- ### Return type
41
-
42
- **BlockSlotResponse**
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** | Créneau bloqué avec succès | - |
58
- |**400** | Requête invalide | - |
59
- |**401** | Non autorisé | - |
60
- |**404** | Ressource non trouvée | - |
61
- |**500** | Erreur serveur interne | - |
62
-
63
- [[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)
64
-
65
- # **createBooking**
66
- > BookingResponse createBooking(createBookingRequest)
67
-
68
- Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
69
-
70
- ### Example
71
-
72
- ```typescript
73
- import {
74
- UserBookingsApi,
75
- Configuration,
76
- CreateBookingRequest
77
- } from '@tennac-booking/sdk';
78
-
79
- const configuration = new Configuration();
80
- const apiInstance = new UserBookingsApi(configuration);
81
-
82
- let createBookingRequest: CreateBookingRequest; //
83
-
84
- const { status, data } = await apiInstance.createBooking(
85
- createBookingRequest
86
- );
87
- ```
88
-
89
- ### Parameters
90
-
91
- |Name | Type | Description | Notes|
92
- |------------- | ------------- | ------------- | -------------|
93
- | **createBookingRequest** | **CreateBookingRequest**| | |
94
-
95
-
96
- ### Return type
97
-
98
- **BookingResponse**
99
-
100
- ### Authorization
101
-
102
- [bearerAuth](../README.md#bearerAuth)
103
-
104
- ### HTTP request headers
105
-
106
- - **Content-Type**: application/json
107
- - **Accept**: application/json
108
-
109
-
110
- ### HTTP response details
111
- | Status code | Description | Response headers |
112
- |-------------|-------------|------------------|
113
- |**201** | Réservation créée avec succès | - |
114
- |**400** | Requête invalide | - |
115
- |**401** | Non autorisé | - |
116
- |**404** | Ressource non trouvée | - |
117
- |**500** | Erreur serveur interne | - |
118
-
119
- [[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
-
@@ -1,20 +0,0 @@
1
- # UserCityResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **city** | **string** | | [optional] [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { UserCityResponse } from '@tennac-booking/sdk';
14
-
15
- const instance: UserCityResponse = {
16
- city,
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)