@tennac-booking/sdk 1.0.44 → 1.0.46

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 (42) hide show
  1. package/.openapi-generator/FILES +1 -24
  2. package/README.md +37 -98
  3. package/api.ts +545 -4905
  4. package/dist/api.d.ts +365 -2819
  5. package/dist/api.js +449 -3651
  6. package/dist/esm/api.d.ts +365 -2819
  7. package/dist/esm/api.js +429 -3607
  8. package/docs/ClubMember.md +1 -1
  9. package/docs/UserBookingsApi.md +0 -46
  10. package/docs/UsersApi.md +37 -273
  11. package/package.json +1 -1
  12. package/docs/AddFavoritePlayerRequestBody.md +0 -20
  13. package/docs/BaseUser.md +0 -76
  14. package/docs/FavoriteClubItem.md +0 -26
  15. package/docs/FavoriteClubResponse.md +0 -22
  16. package/docs/FavoritePlayerPublic.md +0 -28
  17. package/docs/FavoritePlayersIdsResponse.md +0 -22
  18. package/docs/GetUserRolesResponse.md +0 -20
  19. package/docs/GetUserRolesResponseRolesInner.md +0 -26
  20. package/docs/GetUserSubscriptionsResponse.md +0 -22
  21. package/docs/GoogleSignInRequestBody.md +0 -20
  22. package/docs/GoogleSignInResponse.md +0 -24
  23. package/docs/IUserAttributesFavoritePlayersInner.md +0 -18
  24. package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
  25. package/docs/InitiateSubscriptionSessionResponse.md +0 -22
  26. package/docs/PickUserResponseExcludeKeyofUserResponseLocation.md +0 -75
  27. package/docs/PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner.md +0 -22
  28. package/docs/ProfileVisibilityResponse.md +0 -20
  29. package/docs/StaffProfileApi.md +0 -110
  30. package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
  31. package/docs/UpdateCustomerResponseCustomer.md +0 -28
  32. package/docs/UserApi.md +0 -63
  33. package/docs/UserAuthenticationApi.md +0 -226
  34. package/docs/UserBookingsResponse.md +0 -26
  35. package/docs/UserCityResponse.md +0 -20
  36. package/docs/UserDescriptionResponse.md +0 -20
  37. package/docs/UserFavoriteClubsResponse.md +0 -20
  38. package/docs/UserLocationSummary.md +0 -44
  39. package/docs/UserPaymentApi.md +0 -176
  40. package/docs/UserProfileApi.md +0 -1254
  41. package/docs/UserResponse.md +0 -38
  42. package/docs/UserSubscriptionsApi.md +0 -222
@@ -1,226 +0,0 @@
1
- # UserAuthenticationApi
2
-
3
- All URIs are relative to */api*
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,26 +0,0 @@
1
- # UserBookingsResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **bookings** | [**Array<Booking>**](Booking.md) | | [optional] [default to undefined]
9
- **total** | **number** | | [optional] [default to undefined]
10
- **limit** | **number** | | [optional] [default to undefined]
11
- **skip** | **number** | | [optional] [default to undefined]
12
-
13
- ## Example
14
-
15
- ```typescript
16
- import { UserBookingsResponse } from '@tennac-booking/sdk';
17
-
18
- const instance: UserBookingsResponse = {
19
- bookings,
20
- total,
21
- limit,
22
- skip,
23
- };
24
- ```
25
-
26
- [[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
- # 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)
@@ -1,20 +0,0 @@
1
- # UserDescriptionResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **description** | **string** | | [optional] [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { UserDescriptionResponse } from '@tennac-booking/sdk';
14
-
15
- const instance: UserDescriptionResponse = {
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)
@@ -1,20 +0,0 @@
1
- # UserFavoriteClubsResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **favoriteClubs** | [**Array<FavoriteClubItem>**](FavoriteClubItem.md) | | [optional] [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { UserFavoriteClubsResponse } from '@tennac-booking/sdk';
14
-
15
- const instance: UserFavoriteClubsResponse = {
16
- favoriteClubs,
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,44 +0,0 @@
1
- # UserLocationSummary
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **type** | **string** | | [optional] [default to undefined]
9
- **coordinates** | **Array<number>** | | [optional] [default to undefined]
10
- **mapboxId** | **string** | | [optional] [default to undefined]
11
- **mapboxPlaceType** | **Array<string>** | | [optional] [default to undefined]
12
- **mapboxPlaceName** | **string** | | [optional] [default to undefined]
13
- **mapboxAddress** | **string** | | [optional] [default to undefined]
14
- **mapboxContext** | **Array<{ [key: string]: any; }>** | | [optional] [default to undefined]
15
- **mapboxRaw** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
16
- **city** | **string** | | [optional] [default to undefined]
17
- **country** | **string** | | [optional] [default to undefined]
18
- **postalCode** | **string** | | [optional] [default to undefined]
19
- **state** | **string** | | [optional] [default to undefined]
20
- **address** | **string** | | [optional] [default to undefined]
21
-
22
- ## Example
23
-
24
- ```typescript
25
- import { UserLocationSummary } from '@tennac-booking/sdk';
26
-
27
- const instance: UserLocationSummary = {
28
- type,
29
- coordinates,
30
- mapboxId,
31
- mapboxPlaceType,
32
- mapboxPlaceName,
33
- mapboxAddress,
34
- mapboxContext,
35
- mapboxRaw,
36
- city,
37
- country,
38
- postalCode,
39
- state,
40
- address,
41
- };
42
- ```
43
-
44
- [[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,176 +0,0 @@
1
- # UserPaymentApi
2
-
3
- All URIs are relative to */api*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /api/users/addPaymentMethodSetup | Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur|
8
- |[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | Confirme la configuration d\'une méthode de paiement|
9
- |[**setupPaymentMethod**](#setuppaymentmethod) | **POST** /api/users/setupPaymentMethod | Configure une méthode de paiement pour un utilisateur|
10
-
11
- # **addPaymentMethodSetup**
12
- > AddPaymentMethodSetupResponse addPaymentMethodSetup(addPaymentMethodSetupRequestBody)
13
-
14
-
15
- ### Example
16
-
17
- ```typescript
18
- import {
19
- UserPaymentApi,
20
- Configuration,
21
- AddPaymentMethodSetupRequestBody
22
- } from '@tennac-booking/sdk';
23
-
24
- const configuration = new Configuration();
25
- const apiInstance = new UserPaymentApi(configuration);
26
-
27
- let addPaymentMethodSetupRequestBody: AddPaymentMethodSetupRequestBody; //
28
-
29
- const { status, data } = await apiInstance.addPaymentMethodSetup(
30
- addPaymentMethodSetupRequestBody
31
- );
32
- ```
33
-
34
- ### Parameters
35
-
36
- |Name | Type | Description | Notes|
37
- |------------- | ------------- | ------------- | -------------|
38
- | **addPaymentMethodSetupRequestBody** | **AddPaymentMethodSetupRequestBody**| | |
39
-
40
-
41
- ### Return type
42
-
43
- **AddPaymentMethodSetupResponse**
44
-
45
- ### Authorization
46
-
47
- [bearerAuth](../README.md#bearerAuth)
48
-
49
- ### HTTP request headers
50
-
51
- - **Content-Type**: application/json
52
- - **Accept**: application/json
53
-
54
-
55
- ### HTTP response details
56
- | Status code | Description | Response headers |
57
- |-------------|-------------|------------------|
58
- |**200** | Méthode de paiement ajoutée | - |
59
- |**400** | Requête invalide | - |
60
- |**401** | Non autorisé | - |
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
- # **confirmPaymentMethodSetup**
66
- > ConfirmPaymentMethodSetupResponse confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody)
67
-
68
- Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
69
-
70
- ### Example
71
-
72
- ```typescript
73
- import {
74
- UserPaymentApi,
75
- Configuration,
76
- ConfirmPaymentMethodSetupRequestBody
77
- } from '@tennac-booking/sdk';
78
-
79
- const configuration = new Configuration();
80
- const apiInstance = new UserPaymentApi(configuration);
81
-
82
- let confirmPaymentMethodSetupRequestBody: ConfirmPaymentMethodSetupRequestBody; //
83
-
84
- const { status, data } = await apiInstance.confirmPaymentMethodSetup(
85
- confirmPaymentMethodSetupRequestBody
86
- );
87
- ```
88
-
89
- ### Parameters
90
-
91
- |Name | Type | Description | Notes|
92
- |------------- | ------------- | ------------- | -------------|
93
- | **confirmPaymentMethodSetupRequestBody** | **ConfirmPaymentMethodSetupRequestBody**| | |
94
-
95
-
96
- ### Return type
97
-
98
- **ConfirmPaymentMethodSetupResponse**
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** | Méthode de paiement confirmé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
-
121
- # **setupPaymentMethod**
122
- > SetupPaymentMethodResponse setupPaymentMethod(setupPaymentMethodRequestBody)
123
-
124
- Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
125
-
126
- ### Example
127
-
128
- ```typescript
129
- import {
130
- UserPaymentApi,
131
- Configuration,
132
- SetupPaymentMethodRequestBody
133
- } from '@tennac-booking/sdk';
134
-
135
- const configuration = new Configuration();
136
- const apiInstance = new UserPaymentApi(configuration);
137
-
138
- let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
139
-
140
- const { status, data } = await apiInstance.setupPaymentMethod(
141
- setupPaymentMethodRequestBody
142
- );
143
- ```
144
-
145
- ### Parameters
146
-
147
- |Name | Type | Description | Notes|
148
- |------------- | ------------- | ------------- | -------------|
149
- | **setupPaymentMethodRequestBody** | **SetupPaymentMethodRequestBody**| | |
150
-
151
-
152
- ### Return type
153
-
154
- **SetupPaymentMethodResponse**
155
-
156
- ### Authorization
157
-
158
- [bearerAuth](../README.md#bearerAuth)
159
-
160
- ### HTTP request headers
161
-
162
- - **Content-Type**: application/json
163
- - **Accept**: application/json
164
-
165
-
166
- ### HTTP response details
167
- | Status code | Description | Response headers |
168
- |-------------|-------------|------------------|
169
- |**200** | Setup Intent créé avec succès | - |
170
- |**400** | Requête invalide | - |
171
- |**401** | Non autorisé | - |
172
- |**404** | Ressource non trouvée | - |
173
- |**500** | Erreur serveur interne | - |
174
-
175
- [[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)
176
-