@tennac-booking/sdk 1.0.12 → 1.0.14

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 (101) hide show
  1. package/.openapi-generator/FILES +45 -6
  2. package/README.md +76 -43
  3. package/api.ts +4226 -2326
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +2665 -1290
  8. package/dist/api.js +2783 -1672
  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 +2665 -1290
  16. package/dist/esm/api.js +2657 -1604
  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/ActiveClub.md +22 -0
  28. package/docs/ActiveClubListResponse.md +20 -0
  29. package/docs/AdminClubSlotsApi.md +62 -0
  30. package/docs/AdminClubsApi.md +108 -0
  31. package/docs/ApiErrorResponse.md +1 -1
  32. package/docs/BookingsApi.md +4 -60
  33. package/docs/ChangePasswordResponse.md +1 -1
  34. package/docs/{ClubSportsApi.md → ClubAnalyticsApi.md} +20 -27
  35. package/docs/ClubBookingsApi.md +59 -0
  36. package/docs/ClubInfoResponse.md +6 -6
  37. package/docs/ClubResponse.md +6 -6
  38. package/docs/ClubRoleResponse.md +6 -6
  39. package/docs/ClubRolesApi.md +8 -8
  40. package/docs/ClubSettings.md +7 -1
  41. package/docs/ClubSlotsApi.md +0 -172
  42. package/docs/ClubsApi.md +6 -379
  43. package/docs/ClubsResponse.md +22 -0
  44. package/docs/CourtResponse.md +7 -7
  45. package/docs/CourtStatus.md +5 -2
  46. package/docs/CreateClubRequest.md +12 -10
  47. package/docs/CreateClubSettingsRequest.md +28 -0
  48. package/docs/CreateCourtRequest.md +2 -0
  49. package/docs/CreatePriceRequest.md +4 -4
  50. package/docs/CreateSportRequest.md +4 -0
  51. package/docs/CreateSubscriptionPlanRequest.md +3 -3
  52. package/docs/DeleteClubSettingsRequest.md +20 -0
  53. package/docs/{DeleteClub200Response.md → DeleteSlotsResponse.md} +3 -3
  54. package/docs/{GenerateSlotsForNextThreeWeeks201Response.md → DeleteSport200Response.md} +3 -3
  55. package/docs/GenerateSlotsResponse.md +20 -0
  56. package/docs/GetActiveClubs200Response.md +20 -0
  57. package/docs/GetClubInfos200Response.md +30 -0
  58. package/docs/GetCourtsByClubAndSport200Response.md +26 -0
  59. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
  60. package/docs/GetNumberOfClubUsers200Response.md +20 -0
  61. package/docs/{GetUserRolesInClubs200Response.md → GetUserRolesResponse.md} +4 -4
  62. package/docs/GetUserRolesResponseRolesInner.md +26 -0
  63. package/docs/GetUserSubscriptionsResponse.md +22 -0
  64. package/docs/GoogleSignInRequestBody.md +20 -0
  65. package/docs/GoogleSignInResponse.md +24 -0
  66. package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
  67. package/docs/InitiateSubscriptionSessionResponse.md +22 -0
  68. package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
  69. package/docs/ManagerClubSlotsApi.md +125 -0
  70. package/docs/ManagerClubsApi.md +280 -0
  71. package/docs/PriceResponse.md +2 -8
  72. package/docs/RefreshTokenResponse.md +2 -6
  73. package/docs/SlotResponse.md +2 -8
  74. package/docs/SportResponse.md +0 -2
  75. package/docs/SportsApi.md +10 -120
  76. package/docs/StaffClubSettingsApi.md +62 -0
  77. package/docs/StaffSportsApi.md +62 -0
  78. package/docs/SubscribeToClubRequestBody.md +22 -0
  79. package/docs/SubscriptionPlanResponse.md +4 -8
  80. package/docs/SubscriptionResponse.md +36 -0
  81. package/docs/UpdateClubSettingsRequest.md +28 -0
  82. package/docs/UpdateCustomerRequestBody.md +26 -0
  83. package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
  84. package/docs/UpdateCustomerResponse.md +22 -0
  85. package/docs/UpdateCustomerResponseCustomer.md +28 -0
  86. package/docs/UpdateSportRequest.md +4 -0
  87. package/docs/UpdateSubscriptionPlanRequest.md +3 -3
  88. package/docs/UpdateSubscriptionPlanResponse.md +2 -2
  89. package/docs/{ClubSettingsApi.md → UserAuthenticationApi.md} +54 -55
  90. package/docs/UserBookingsApi.md +63 -0
  91. package/docs/UserClubCourtsApi.md +64 -0
  92. package/docs/UserClubSlotsApi.md +60 -0
  93. package/docs/UserClubSportsApi.md +60 -0
  94. package/docs/UserClubsApi.md +53 -0
  95. package/docs/UserProfileApi.md +271 -0
  96. package/docs/UserResponse.md +8 -14
  97. package/docs/UserSubscriptionsApi.md +222 -0
  98. package/docs/UsersApi.md +22 -324
  99. package/docs/UsersResponse.md +22 -0
  100. package/index.ts +1 -1
  101. package/package.json +32 -1
@@ -0,0 +1,62 @@
1
+ # StaffClubSettingsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d\'un club|
8
+
9
+ # **getClubSettings**
10
+ > ClubSettings getClubSettings(getClubSettingsRequest)
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ StaffClubSettingsApi,
18
+ Configuration,
19
+ GetClubSettingsRequest
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new StaffClubSettingsApi(configuration);
24
+
25
+ let getClubSettingsRequest: GetClubSettingsRequest; //
26
+
27
+ const { status, data } = await apiInstance.getClubSettings(
28
+ getClubSettingsRequest
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
37
+
38
+
39
+ ### Return type
40
+
41
+ **ClubSettings**
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** | Paramètres du club | - |
57
+ |**401** | Non autorisé | - |
58
+ |**404** | Ressource non trouvée | - |
59
+ |**500** | Erreur serveur interne | - |
60
+
61
+ [[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)
62
+
@@ -0,0 +1,62 @@
1
+ # StaffSportsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getAllSports**](#getallsports) | **GET** /api/sports | Récupère la liste des sports d\'un club|
8
+
9
+ # **getAllSports**
10
+ > Array<SportResponse> getAllSports(getAllSportsRequest)
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ StaffSportsApi,
18
+ Configuration,
19
+ GetAllSportsRequest
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new StaffSportsApi(configuration);
24
+
25
+ let getAllSportsRequest: GetAllSportsRequest; //
26
+
27
+ const { status, data } = await apiInstance.getAllSports(
28
+ getAllSportsRequest
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **getAllSportsRequest** | **GetAllSportsRequest**| | |
37
+
38
+
39
+ ### Return type
40
+
41
+ **Array<SportResponse>**
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** | Liste des sports | - |
57
+ |**400** | Requête invalide | - |
58
+ |**401** | Non autorisé | - |
59
+ |**500** | Erreur serveur interne | - |
60
+
61
+ [[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)
62
+
@@ -0,0 +1,22 @@
1
+ # SubscribeToClubRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubId** | **string** | ID du club | [default to undefined]
9
+ **roleId** | **string** | ID du rôle dans le club | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { SubscribeToClubRequestBody } from '@tennac-booking/sdk';
15
+
16
+ const instance: SubscribeToClubRequestBody = {
17
+ clubId,
18
+ roleId,
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)
@@ -6,14 +6,12 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | | [optional] [default to undefined]
9
- **stripeProductId** | **string** | | [optional] [default to undefined]
10
9
  **name** | **string** | | [optional] [default to undefined]
11
10
  **description** | **string** | | [optional] [default to undefined]
12
- **clubId** | **string** | | [optional] [default to undefined]
13
- **isActive** | **boolean** | | [optional] [default to undefined]
11
+ **active** | **boolean** | | [optional] [default to undefined]
12
+ **metadata** | **object** | | [optional] [default to undefined]
14
13
  **createdAt** | **string** | | [optional] [default to undefined]
15
14
  **updatedAt** | **string** | | [optional] [default to undefined]
16
- **prices** | [**Array&lt;PriceResponse&gt;**](PriceResponse.md) | | [optional] [default to undefined]
17
15
 
18
16
  ## Example
19
17
 
@@ -22,14 +20,12 @@ import { SubscriptionPlanResponse } from '@tennac-booking/sdk';
22
20
 
23
21
  const instance: SubscriptionPlanResponse = {
24
22
  id,
25
- stripeProductId,
26
23
  name,
27
24
  description,
28
- clubId,
29
- isActive,
25
+ active,
26
+ metadata,
30
27
  createdAt,
31
28
  updatedAt,
32
- prices,
33
29
  };
34
30
  ```
35
31
 
@@ -0,0 +1,36 @@
1
+ # SubscriptionResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID de l\&#39;abonnement | [optional] [default to undefined]
9
+ **userId** | **string** | ID de l\&#39;utilisateur | [optional] [default to undefined]
10
+ **clubId** | **string** | ID du club | [optional] [default to undefined]
11
+ **stripeSubscriptionId** | **string** | ID de l\&#39;abonnement Stripe | [optional] [default to undefined]
12
+ **status** | **string** | Statut de l\&#39;abonnement | [optional] [default to undefined]
13
+ **currentPeriodStart** | **string** | Début de la période courante | [optional] [default to undefined]
14
+ **currentPeriodEnd** | **string** | Fin de la période courante | [optional] [default to undefined]
15
+ **createdAt** | **string** | | [optional] [default to undefined]
16
+ **updatedAt** | **string** | | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { SubscriptionResponse } from '@tennac-booking/sdk';
22
+
23
+ const instance: SubscriptionResponse = {
24
+ id,
25
+ userId,
26
+ clubId,
27
+ stripeSubscriptionId,
28
+ status,
29
+ currentPeriodStart,
30
+ currentPeriodEnd,
31
+ createdAt,
32
+ updatedAt,
33
+ };
34
+ ```
35
+
36
+ [[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,28 @@
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)
@@ -0,0 +1,26 @@
1
+ # UpdateCustomerRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | Nom du client | [optional] [default to undefined]
9
+ **email** | **string** | Email du client | [optional] [default to undefined]
10
+ **phone** | **string** | Téléphone du client | [optional] [default to undefined]
11
+ **address** | [**UpdateCustomerRequestBodyAddress**](UpdateCustomerRequestBodyAddress.md) | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { UpdateCustomerRequestBody } from '@tennac-booking/sdk';
17
+
18
+ const instance: UpdateCustomerRequestBody = {
19
+ name,
20
+ email,
21
+ phone,
22
+ address,
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)
@@ -0,0 +1,30 @@
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)
@@ -0,0 +1,22 @@
1
+ # UpdateCustomerResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | Message de confirmation | [optional] [default to undefined]
9
+ **customer** | [**UpdateCustomerResponseCustomer**](UpdateCustomerResponseCustomer.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { UpdateCustomerResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: UpdateCustomerResponse = {
17
+ message,
18
+ customer,
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,28 @@
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)
@@ -6,6 +6,8 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **key** | **string** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **description** | **string** | | [optional] [default to undefined]
9
11
 
10
12
  ## Example
11
13
 
@@ -14,6 +16,8 @@ import { UpdateSportRequest } from '@tennac-booking/sdk';
14
16
 
15
17
  const instance: UpdateSportRequest = {
16
18
  key,
19
+ name,
20
+ description,
17
21
  };
18
22
  ```
19
23
 
@@ -5,9 +5,9 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **name** | **string** | | [optional] [default to undefined]
9
- **description** | **string** | | [optional] [default to undefined]
10
- **metadata** | **object** | | [optional] [default to undefined]
8
+ **name** | **string** | Nouveau nom du plan d\&#39;abonnement | [optional] [default to undefined]
9
+ **description** | **string** | Nouvelle description du plan d\&#39;abonnement | [optional] [default to undefined]
10
+ **metadata** | **object** | Nouvelles métadonnées pour le plan | [optional] [default to undefined]
11
11
 
12
12
  ## Example
13
13
 
@@ -5,8 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **message** | **string** | | [optional] [default to undefined]
9
- **plan** | [**SubscriptionPlanResponse**](SubscriptionPlanResponse.md) | | [optional] [default to undefined]
8
+ **message** | **string** | Message de confirmation | [optional] [default to undefined]
9
+ **plan** | [**SubscriptionPlan**](SubscriptionPlan.md) | | [optional] [default to undefined]
10
10
 
11
11
  ## Example
12
12
 
@@ -1,34 +1,34 @@
1
- # ClubSettingsApi
1
+ # UserAuthenticationApi
2
2
 
3
3
  All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**createClubSettings**](#createclubsettings) | **POST** /api/club-settings | Crée les paramètres d’un club|
8
- |[**deleteClubSettings**](#deleteclubsettings) | **DELETE** /api/club-settings | Supprime les paramètres d’un club|
9
- |[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d’un club|
10
- |[**updateClubSettings**](#updateclubsettings) | **PUT** /api/club-settings | Met à jour les paramètres d’un club|
7
+ |[**login**](#login) | **POST** /api/users/login | Authentifie un utilisateur|
8
+ |[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | Rafraîchit le token d\&#39;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
11
 
12
- # **createClubSettings**
13
- > ClubSettings createClubSettings(clubSettings)
12
+ # **login**
13
+ > LoginResponse login(loginRequestBody)
14
14
 
15
15
 
16
16
  ### Example
17
17
 
18
18
  ```typescript
19
19
  import {
20
- ClubSettingsApi,
20
+ UserAuthenticationApi,
21
21
  Configuration,
22
- ClubSettings
22
+ LoginRequestBody
23
23
  } from '@tennac-booking/sdk';
24
24
 
25
25
  const configuration = new Configuration();
26
- const apiInstance = new ClubSettingsApi(configuration);
26
+ const apiInstance = new UserAuthenticationApi(configuration);
27
27
 
28
- let clubSettings: ClubSettings; //
28
+ let loginRequestBody: LoginRequestBody; //
29
29
 
30
- const { status, data } = await apiInstance.createClubSettings(
31
- clubSettings
30
+ const { status, data } = await apiInstance.login(
31
+ loginRequestBody
32
32
  );
33
33
  ```
34
34
 
@@ -36,12 +36,12 @@ const { status, data } = await apiInstance.createClubSettings(
36
36
 
37
37
  |Name | Type | Description | Notes|
38
38
  |------------- | ------------- | ------------- | -------------|
39
- | **clubSettings** | **ClubSettings**| | |
39
+ | **loginRequestBody** | **LoginRequestBody**| | |
40
40
 
41
41
 
42
42
  ### Return type
43
43
 
44
- **ClubSettings**
44
+ **LoginResponse**
45
45
 
46
46
  ### Authorization
47
47
 
@@ -56,33 +56,33 @@ const { status, data } = await apiInstance.createClubSettings(
56
56
  ### HTTP response details
57
57
  | Status code | Description | Response headers |
58
58
  |-------------|-------------|------------------|
59
- |**201** | Paramètres créés | - |
59
+ |**200** | Authentification réussie | - |
60
+ |**400** | Requête invalide | - |
60
61
  |**401** | Non autorisé | - |
61
- |**409** | Paramètres déjà existants | - |
62
62
  |**500** | Erreur serveur interne | - |
63
63
 
64
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
65
 
66
- # **deleteClubSettings**
67
- > deleteClubSettings(getClubSettingsRequest)
66
+ # **refreshToken**
67
+ > RefreshTokenResponse refreshToken(refreshTokenRequestBody)
68
68
 
69
69
 
70
70
  ### Example
71
71
 
72
72
  ```typescript
73
73
  import {
74
- ClubSettingsApi,
74
+ UserAuthenticationApi,
75
75
  Configuration,
76
- GetClubSettingsRequest
76
+ RefreshTokenRequestBody
77
77
  } from '@tennac-booking/sdk';
78
78
 
79
79
  const configuration = new Configuration();
80
- const apiInstance = new ClubSettingsApi(configuration);
80
+ const apiInstance = new UserAuthenticationApi(configuration);
81
81
 
82
- let getClubSettingsRequest: GetClubSettingsRequest; //
82
+ let refreshTokenRequestBody: RefreshTokenRequestBody; //
83
83
 
84
- const { status, data } = await apiInstance.deleteClubSettings(
85
- getClubSettingsRequest
84
+ const { status, data } = await apiInstance.refreshToken(
85
+ refreshTokenRequestBody
86
86
  );
87
87
  ```
88
88
 
@@ -90,12 +90,12 @@ const { status, data } = await apiInstance.deleteClubSettings(
90
90
 
91
91
  |Name | Type | Description | Notes|
92
92
  |------------- | ------------- | ------------- | -------------|
93
- | **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
93
+ | **refreshTokenRequestBody** | **RefreshTokenRequestBody**| | |
94
94
 
95
95
 
96
96
  ### Return type
97
97
 
98
- void (empty response body)
98
+ **RefreshTokenResponse**
99
99
 
100
100
  ### Authorization
101
101
 
@@ -110,33 +110,33 @@ void (empty response body)
110
110
  ### HTTP response details
111
111
  | Status code | Description | Response headers |
112
112
  |-------------|-------------|------------------|
113
- |**200** | Paramètres supprimés | - |
113
+ |**200** | Nouveaux tokens | - |
114
+ |**400** | Requête invalide | - |
114
115
  |**401** | Non autorisé | - |
115
- |**404** | Paramètres non trouvés | - |
116
116
  |**500** | Erreur serveur interne | - |
117
117
 
118
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
119
 
120
- # **getClubSettings**
121
- > ClubSettings getClubSettings(getClubSettingsRequest)
120
+ # **register**
121
+ > UserResponse register(registerRequestBody)
122
122
 
123
123
 
124
124
  ### Example
125
125
 
126
126
  ```typescript
127
127
  import {
128
- ClubSettingsApi,
128
+ UserAuthenticationApi,
129
129
  Configuration,
130
- GetClubSettingsRequest
130
+ RegisterRequestBody
131
131
  } from '@tennac-booking/sdk';
132
132
 
133
133
  const configuration = new Configuration();
134
- const apiInstance = new ClubSettingsApi(configuration);
134
+ const apiInstance = new UserAuthenticationApi(configuration);
135
135
 
136
- let getClubSettingsRequest: GetClubSettingsRequest; //
136
+ let registerRequestBody: RegisterRequestBody; //
137
137
 
138
- const { status, data } = await apiInstance.getClubSettings(
139
- getClubSettingsRequest
138
+ const { status, data } = await apiInstance.register(
139
+ registerRequestBody
140
140
  );
141
141
  ```
142
142
 
@@ -144,12 +144,12 @@ const { status, data } = await apiInstance.getClubSettings(
144
144
 
145
145
  |Name | Type | Description | Notes|
146
146
  |------------- | ------------- | ------------- | -------------|
147
- | **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
147
+ | **registerRequestBody** | **RegisterRequestBody**| | |
148
148
 
149
149
 
150
150
  ### Return type
151
151
 
152
- **ClubSettings**
152
+ **UserResponse**
153
153
 
154
154
  ### Authorization
155
155
 
@@ -164,33 +164,33 @@ const { status, data } = await apiInstance.getClubSettings(
164
164
  ### HTTP response details
165
165
  | Status code | Description | Response headers |
166
166
  |-------------|-------------|------------------|
167
- |**200** | Paramètres du club | - |
168
- |**401** | Non autorisé | - |
169
- |**404** | Paramètres non trouvés | - |
167
+ |**201** | Utilisateur créé | - |
168
+ |**400** | Requête invalide | - |
169
+ |**409** | Email déjà utilisé | - |
170
170
  |**500** | Erreur serveur interne | - |
171
171
 
172
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
173
 
174
- # **updateClubSettings**
175
- > ClubSettings updateClubSettings(clubSettings)
174
+ # **signInOrSignUpWithGoogle**
175
+ > GoogleSignInResponse signInOrSignUpWithGoogle(googleSignInRequestBody)
176
176
 
177
177
 
178
178
  ### Example
179
179
 
180
180
  ```typescript
181
181
  import {
182
- ClubSettingsApi,
182
+ UserAuthenticationApi,
183
183
  Configuration,
184
- ClubSettings
184
+ GoogleSignInRequestBody
185
185
  } from '@tennac-booking/sdk';
186
186
 
187
187
  const configuration = new Configuration();
188
- const apiInstance = new ClubSettingsApi(configuration);
188
+ const apiInstance = new UserAuthenticationApi(configuration);
189
189
 
190
- let clubSettings: ClubSettings; //
190
+ let googleSignInRequestBody: GoogleSignInRequestBody; //
191
191
 
192
- const { status, data } = await apiInstance.updateClubSettings(
193
- clubSettings
192
+ const { status, data } = await apiInstance.signInOrSignUpWithGoogle(
193
+ googleSignInRequestBody
194
194
  );
195
195
  ```
196
196
 
@@ -198,12 +198,12 @@ const { status, data } = await apiInstance.updateClubSettings(
198
198
 
199
199
  |Name | Type | Description | Notes|
200
200
  |------------- | ------------- | ------------- | -------------|
201
- | **clubSettings** | **ClubSettings**| | |
201
+ | **googleSignInRequestBody** | **GoogleSignInRequestBody**| | |
202
202
 
203
203
 
204
204
  ### Return type
205
205
 
206
- **ClubSettings**
206
+ **GoogleSignInResponse**
207
207
 
208
208
  ### Authorization
209
209
 
@@ -218,9 +218,8 @@ const { status, data } = await apiInstance.updateClubSettings(
218
218
  ### HTTP response details
219
219
  | Status code | Description | Response headers |
220
220
  |-------------|-------------|------------------|
221
- |**200** | Paramètres mis à jour | - |
222
- |**401** | Non autorisé | - |
223
- |**404** | Paramètres non trouvés | - |
221
+ |**200** | Authentification Google réussie | - |
222
+ |**400** | Requête invalide | - |
224
223
  |**500** | Erreur serveur interne | - |
225
224
 
226
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)