@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,22 +0,0 @@
1
- # GetUserSubscriptionsResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **subscriptions** | [**Array<SubscriptionResponse>**](SubscriptionResponse.md) | | [optional] [default to undefined]
9
- **total** | **number** | Nombre total d\'abonnements | [optional] [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { GetUserSubscriptionsResponse } from '@tennac-booking/sdk';
15
-
16
- const instance: GetUserSubscriptionsResponse = {
17
- subscriptions,
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)
@@ -1,20 +0,0 @@
1
- # GoogleSignInRequestBody
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **googleToken** | **string** | | [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { GoogleSignInRequestBody } from '@tennac-booking/sdk';
14
-
15
- const instance: GoogleSignInRequestBody = {
16
- googleToken,
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
- # GoogleSignInResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **token** | **string** | | [optional] [default to undefined]
9
- **refreshToken** | **string** | | [optional] [default to undefined]
10
- **user** | [**UserResponse**](UserResponse.md) | | [optional] [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { GoogleSignInResponse } from '@tennac-booking/sdk';
16
-
17
- const instance: GoogleSignInResponse = {
18
- token,
19
- refreshToken,
20
- user,
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,18 +0,0 @@
1
- # IUserAttributesFavoritePlayersInner
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
-
9
- ## Example
10
-
11
- ```typescript
12
- import { IUserAttributesFavoritePlayersInner } from '@tennac-booking/sdk';
13
-
14
- const instance: IUserAttributesFavoritePlayersInner = {
15
- };
16
- ```
17
-
18
- [[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,26 +0,0 @@
1
- # InitiateSubscriptionSessionRequestBody
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **clubId** | **string** | ID du club | [default to undefined]
9
- **priceId** | **string** | ID du prix d\'abonnement | [default to undefined]
10
- **successUrl** | **string** | URL de redirection en cas de succès | [optional] [default to undefined]
11
- **cancelUrl** | **string** | URL de redirection en cas d\'annulation | [optional] [default to undefined]
12
-
13
- ## Example
14
-
15
- ```typescript
16
- import { InitiateSubscriptionSessionRequestBody } from '@tennac-booking/sdk';
17
-
18
- const instance: InitiateSubscriptionSessionRequestBody = {
19
- clubId,
20
- priceId,
21
- successUrl,
22
- cancelUrl,
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,22 +0,0 @@
1
- # InitiateSubscriptionSessionResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **sessionId** | **string** | ID de la session Stripe | [optional] [default to undefined]
9
- **url** | **string** | URL de la session de paiement | [optional] [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { InitiateSubscriptionSessionResponse } from '@tennac-booking/sdk';
15
-
16
- const instance: InitiateSubscriptionSessionResponse = {
17
- sessionId,
18
- url,
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,75 +0,0 @@
1
- # PickUserResponseExcludeKeyofUserResponseLocation
2
-
3
- From T, pick a set of properties whose keys are in the union K
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **id** | **string** | | [optional] [default to undefined]
10
- **_id** | **string** | | [optional] [default to undefined]
11
- **username** | **string** | | [optional] [default to undefined]
12
- **googleId** | **string** | | [optional] [default to undefined]
13
- **firstName** | **string** | | [optional] [default to undefined]
14
- **lastName** | **string** | | [optional] [default to undefined]
15
- **email** | **string** | | [optional] [default to undefined]
16
- **phone** | **string** | | [optional] [default to undefined]
17
- **profilePicture** | **string** | | [optional] [default to undefined]
18
- **description** | **string** | | [optional] [default to undefined]
19
- **city** | **string** | | [optional] [default to undefined]
20
- **isProfileVisible** | **boolean** | | [optional] [default to undefined]
21
- **gender** | **string** | | [optional] [default to undefined]
22
- **isAccountVerified** | **boolean** | | [optional] [default to undefined]
23
- **isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
24
- **isAdmin** | **boolean** | | [optional] [default to undefined]
25
- **isLevelCertified** | **boolean** | | [optional] [default to undefined]
26
- **paymentMethodSetupCompleted** | **boolean** | | [optional] [default to undefined]
27
- **paymentMethods** | **Array<string>** | | [optional] [default to undefined]
28
- **defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
29
- **levelBySports** | [**Array<PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner>**](PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner.md) | | [optional] [default to undefined]
30
- **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
31
- **favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
32
- **stripeCustomerId** | **string** | | [optional] [default to undefined]
33
- **createdAt** | **string** | | [optional] [default to undefined]
34
- **updatedAt** | **string** | | [optional] [default to undefined]
35
- **setupIntentId** | **string** | | [optional] [default to undefined]
36
- **sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
37
-
38
- ## Example
39
-
40
- ```typescript
41
- import { PickUserResponseExcludeKeyofUserResponseLocation } from '@tennac-booking/sdk';
42
-
43
- const instance: PickUserResponseExcludeKeyofUserResponseLocation = {
44
- id,
45
- _id,
46
- username,
47
- googleId,
48
- firstName,
49
- lastName,
50
- email,
51
- phone,
52
- profilePicture,
53
- description,
54
- city,
55
- isProfileVisible,
56
- gender,
57
- isAccountVerified,
58
- isCreditCardRegistered,
59
- isAdmin,
60
- isLevelCertified,
61
- paymentMethodSetupCompleted,
62
- paymentMethods,
63
- defaultPaymentMethodId,
64
- levelBySports,
65
- favoriteClubs,
66
- favoritePlayers,
67
- stripeCustomerId,
68
- createdAt,
69
- updatedAt,
70
- setupIntentId,
71
- sports,
72
- };
73
- ```
74
-
75
- [[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
- # PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **level** | **string** | | [default to undefined]
9
- **sport** | **string** | | [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner } from '@tennac-booking/sdk';
15
-
16
- const instance: PickUserResponseExcludeKeyofUserResponseLocationLevelBySportsInner = {
17
- level,
18
- sport,
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
- # ProfileVisibilityResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **isProfileVisible** | **boolean** | | [optional] [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { ProfileVisibilityResponse } from '@tennac-booking/sdk';
14
-
15
- const instance: ProfileVisibilityResponse = {
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,110 +0,0 @@
1
- # StaffProfileApi
2
-
3
- All URIs are relative to */api*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /api/users/staff/profile/:id | Récupère le profil d\'un utilisateur par son ID (données staff uniquement)|
8
- |[**getUserRolesInClubs**](#getuserrolesinclubs) | **GET** /api/users/me/roles | Récupère les rôles de l\'utilisateur dans les clubs|
9
-
10
- # **getUserProfileStaff**
11
- > UserInfoStaff getUserProfileStaff()
12
-
13
-
14
- ### Example
15
-
16
- ```typescript
17
- import {
18
- StaffProfileApi,
19
- Configuration
20
- } from '@tennac-booking/sdk';
21
-
22
- const configuration = new Configuration();
23
- const apiInstance = new StaffProfileApi(configuration);
24
-
25
- let id: string; //ID de l\'utilisateur (default to undefined)
26
-
27
- const { status, data } = await apiInstance.getUserProfileStaff(
28
- id
29
- );
30
- ```
31
-
32
- ### Parameters
33
-
34
- |Name | Type | Description | Notes|
35
- |------------- | ------------- | ------------- | -------------|
36
- | **id** | [**string**] | ID de l\'utilisateur | defaults to undefined|
37
-
38
-
39
- ### Return type
40
-
41
- **UserInfoStaff**
42
-
43
- ### Authorization
44
-
45
- [bearerAuth](../README.md#bearerAuth)
46
-
47
- ### HTTP request headers
48
-
49
- - **Content-Type**: Not defined
50
- - **Accept**: application/json
51
-
52
-
53
- ### HTTP response details
54
- | Status code | Description | Response headers |
55
- |-------------|-------------|------------------|
56
- |**200** | Profil utilisateur | - |
57
- |**400** | Requête invalide | - |
58
- |**401** | Non autorisé | - |
59
- |**403** | Accès interdit | - |
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
- # **getUserRolesInClubs**
66
- > GetUserRolesResponse getUserRolesInClubs()
67
-
68
-
69
- ### Example
70
-
71
- ```typescript
72
- import {
73
- StaffProfileApi,
74
- Configuration
75
- } from '@tennac-booking/sdk';
76
-
77
- const configuration = new Configuration();
78
- const apiInstance = new StaffProfileApi(configuration);
79
-
80
- const { status, data } = await apiInstance.getUserRolesInClubs();
81
- ```
82
-
83
- ### Parameters
84
- This endpoint does not have any parameters.
85
-
86
-
87
- ### Return type
88
-
89
- **GetUserRolesResponse**
90
-
91
- ### Authorization
92
-
93
- [bearerAuth](../README.md#bearerAuth)
94
-
95
- ### HTTP request headers
96
-
97
- - **Content-Type**: Not defined
98
- - **Accept**: application/json
99
-
100
-
101
- ### HTTP response details
102
- | Status code | Description | Response headers |
103
- |-------------|-------------|------------------|
104
- |**200** | Liste des rôles dans les clubs | - |
105
- |**400** | Requête invalide | - |
106
- |**401** | Non autorisé | - |
107
- |**500** | Erreur serveur interne | - |
108
-
109
- [[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)
110
-
@@ -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)
package/docs/UserApi.md DELETED
@@ -1,63 +0,0 @@
1
- # UserApi
2
-
3
- All URIs are relative to */api*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | Met à jour le Customer Stripe de l\'utilisateur|
8
-
9
- # **updateCustomer**
10
- > UpdateCustomerResponse updateCustomer(updateCustomerRequestBody)
11
-
12
-
13
- ### Example
14
-
15
- ```typescript
16
- import {
17
- UserApi,
18
- Configuration,
19
- UpdateCustomerRequestBody
20
- } from '@tennac-booking/sdk';
21
-
22
- const configuration = new Configuration();
23
- const apiInstance = new UserApi(configuration);
24
-
25
- let updateCustomerRequestBody: UpdateCustomerRequestBody; //
26
-
27
- const { status, data } = await apiInstance.updateCustomer(
28
- updateCustomerRequestBody
29
- );
30
- ```
31
-
32
- ### Parameters
33
-
34
- |Name | Type | Description | Notes|
35
- |------------- | ------------- | ------------- | -------------|
36
- | **updateCustomerRequestBody** | **UpdateCustomerRequestBody**| | |
37
-
38
-
39
- ### Return type
40
-
41
- **UpdateCustomerResponse**
42
-
43
- ### Authorization
44
-
45
- [bearerAuth](../README.md#bearerAuth)
46
-
47
- ### HTTP request headers
48
-
49
- - **Content-Type**: application/json
50
- - **Accept**: application/json
51
-
52
-
53
- ### HTTP response details
54
- | Status code | Description | Response headers |
55
- |-------------|-------------|------------------|
56
- |**200** | Customer mis à jour | - |
57
- |**400** | Requête invalide | - |
58
- |**401** | Non autorisé | - |
59
- |**404** | Ressource non trouvée | - |
60
- |**500** | Erreur serveur interne | - |
61
-
62
- [[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)
63
-