@tennac-booking/sdk 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +35 -12
- package/README.md +69 -60
- package/api.ts +3550 -3065
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2164 -1751
- package/dist/api.js +2523 -2150
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +2164 -1751
- package/dist/esm/api.js +2429 -2109
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AdminClubSlotsApi.md +62 -0
- package/docs/AdminClubsApi.md +108 -0
- package/docs/ApiErrorResponse.md +1 -1
- package/docs/ChangePasswordResponse.md +1 -1
- package/docs/ClubInfoResponse.md +6 -6
- package/docs/ClubResponse.md +6 -6
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubSettings.md +7 -1
- package/docs/ClubsResponse.md +22 -0
- package/docs/CourtResponse.md +7 -7
- package/docs/CourtStatus.md +5 -2
- package/docs/CreateClubRequest.md +12 -10
- package/docs/CreateClubSettingsRequest.md +28 -0
- package/docs/CreateCourtRequest.md +2 -0
- package/docs/CreatePriceRequest.md +4 -4
- package/docs/CreateSportRequest.md +4 -0
- package/docs/CreateSubscriptionPlanRequest.md +3 -3
- package/docs/DeleteClubSettingsRequest.md +20 -0
- package/docs/{DeleteClub200Response.md → DeleteSlotsResponse.md} +3 -3
- package/docs/{GenerateSlotsForNextThreeWeeks201Response.md → DeleteSport200Response.md} +3 -3
- package/docs/GenerateSlotsResponse.md +20 -0
- package/docs/GetClubInfos200Response.md +30 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +4 -6
- package/docs/GoogleSignInRequestBody.md +2 -2
- package/docs/GoogleSignInResponse.md +2 -8
- package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
- package/docs/{ClubRolesApi.md → ManagerClubRolesApi.md} +19 -19
- package/docs/ManagerClubSlotsApi.md +125 -0
- package/docs/{ClubSubscriptionsApi.md → ManagerClubSubscriptionsApi.md} +15 -15
- package/docs/{ClubsApi.md → ManagerClubsApi.md} +11 -209
- package/docs/ManagerSportsApi.md +119 -0
- package/docs/PriceResponse.md +2 -8
- package/docs/RefreshTokenResponse.md +2 -6
- package/docs/SlotResponse.md +2 -8
- package/docs/SportResponse.md +0 -2
- package/docs/{ClubSportsApi.md → StaffClubAnalyticsApi.md} +20 -27
- package/docs/StaffClubBookingsApi.md +59 -0
- package/docs/StaffClubSettingsApi.md +62 -0
- package/docs/StaffClubsApi.md +59 -0
- package/docs/StaffProfileApi.md +54 -0
- package/docs/StaffSportsApi.md +62 -0
- package/docs/SubscriptionPlanResponse.md +4 -8
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateSportRequest.md +4 -0
- package/docs/UpdateSubscriptionPlanRequest.md +3 -3
- package/docs/UpdateSubscriptionPlanResponse.md +2 -2
- package/docs/UserApi.md +119 -0
- package/docs/{SportsApi.md → UserAuthenticationApi.md} +54 -57
- package/docs/{BookingsApi.md → UserBookingsApi.md} +32 -32
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +181 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +53 -0
- package/docs/{ClubSettingsApi.md → UserProfileApi.md} +59 -62
- package/docs/UserResponse.md +8 -14
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UsersResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +32 -1
- package/docs/ClubSlotsApi.md +0 -353
- package/docs/UsersApi.md +0 -844
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GenerateSlotsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { GenerateSlotsResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: GenerateSlotsResponse = {
|
|
16
|
+
message,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# GetClubInfos200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**rib** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**websiteUrl** | **string** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { GetClubInfos200Response } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: GetClubInfos200Response = {
|
|
21
|
+
name,
|
|
22
|
+
address,
|
|
23
|
+
email,
|
|
24
|
+
phone,
|
|
25
|
+
rib,
|
|
26
|
+
websiteUrl,
|
|
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,26 @@
|
|
|
1
|
+
# GetCourtsByClubAndSport200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**courts** | [**Array<CourtResponse>**](CourtResponse.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | Nombre total de terrains | [optional] [default to undefined]
|
|
10
|
+
**clubId** | **string** | ID du club | [optional] [default to undefined]
|
|
11
|
+
**sportId** | **string** | ID du sport | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { GetCourtsByClubAndSport200Response } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: GetCourtsByClubAndSport200Response = {
|
|
19
|
+
courts,
|
|
20
|
+
total,
|
|
21
|
+
clubId,
|
|
22
|
+
sportId,
|
|
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,24 @@
|
|
|
1
|
+
# GetLastSixMonthsTurnover200ResponseInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**year** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**month** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { GetLastSixMonthsTurnover200ResponseInner } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: GetLastSixMonthsTurnover200ResponseInner = {
|
|
18
|
+
year,
|
|
19
|
+
month,
|
|
20
|
+
total,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GetNumberOfClubUsers200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**count** | **number** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { GetNumberOfClubUsers200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: GetNumberOfClubUsers200Response = {
|
|
16
|
+
count,
|
|
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)
|
|
@@ -5,11 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**clubId** | **string** |
|
|
9
|
-
**clubName** | **string** |
|
|
10
|
-
**roleId** | **string** |
|
|
11
|
-
**roleName** | **string** |
|
|
12
|
-
**permissions** | **Array<string>** | Permissions associées au rôle | [optional] [default to undefined]
|
|
8
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**clubName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**roleId** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**roleName** | **string** | | [optional] [default to undefined]
|
|
13
12
|
|
|
14
13
|
## Example
|
|
15
14
|
|
|
@@ -21,7 +20,6 @@ const instance: GetUserRolesResponseRolesInner = {
|
|
|
21
20
|
clubName,
|
|
22
21
|
roleId,
|
|
23
22
|
roleName,
|
|
24
|
-
permissions,
|
|
25
23
|
};
|
|
26
24
|
```
|
|
27
25
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**googleToken** | **string** | | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
import { GoogleSignInRequestBody } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
15
|
const instance: GoogleSignInRequestBody = {
|
|
16
|
-
|
|
16
|
+
googleToken,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -5,12 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**token** | **string** |
|
|
9
|
-
**refreshToken** | **string** |
|
|
10
|
-
**sessionDuration** | **number** | Durée de la session en secondes | [optional] [default to undefined]
|
|
11
|
-
**sessionEnd** | **number** | Timestamp de fin de session | [optional] [default to undefined]
|
|
8
|
+
**token** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**refreshToken** | **string** | | [optional] [default to undefined]
|
|
12
10
|
**user** | [**UserResponse**](UserResponse.md) | | [optional] [default to undefined]
|
|
13
|
-
**isNewUser** | **boolean** | Indique si c\'est un nouvel utilisateur | [optional] [default to undefined]
|
|
14
11
|
|
|
15
12
|
## Example
|
|
16
13
|
|
|
@@ -20,10 +17,7 @@ import { GoogleSignInResponse } from '@tennac-booking/sdk';
|
|
|
20
17
|
const instance: GoogleSignInResponse = {
|
|
21
18
|
token,
|
|
22
19
|
refreshToken,
|
|
23
|
-
sessionDuration,
|
|
24
|
-
sessionEnd,
|
|
25
20
|
user,
|
|
26
|
-
isNewUser,
|
|
27
21
|
};
|
|
28
22
|
```
|
|
29
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ManagerClubCourtsApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
4
|
|
|
@@ -15,13 +15,13 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
17
|
import {
|
|
18
|
-
|
|
18
|
+
ManagerClubCourtsApi,
|
|
19
19
|
Configuration,
|
|
20
20
|
CreateCourtRequest
|
|
21
21
|
} from '@tennac-booking/sdk';
|
|
22
22
|
|
|
23
23
|
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new
|
|
24
|
+
const apiInstance = new ManagerClubCourtsApi(configuration);
|
|
25
25
|
|
|
26
26
|
let id: string; //ID du club (default to undefined)
|
|
27
27
|
let createCourtRequest: CreateCourtRequest; //
|
|
@@ -72,12 +72,12 @@ const { status, data } = await apiInstance.createCourtForClub(
|
|
|
72
72
|
|
|
73
73
|
```typescript
|
|
74
74
|
import {
|
|
75
|
-
|
|
75
|
+
ManagerClubCourtsApi,
|
|
76
76
|
Configuration
|
|
77
77
|
} from '@tennac-booking/sdk';
|
|
78
78
|
|
|
79
79
|
const configuration = new Configuration();
|
|
80
|
-
const apiInstance = new
|
|
80
|
+
const apiInstance = new ManagerClubCourtsApi(configuration);
|
|
81
81
|
|
|
82
82
|
let id: string; //ID du club (default to undefined)
|
|
83
83
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ManagerClubRolesApi
|
|
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
|
-
|[**createClubRole**](#createclubrole) | **POST** /api/club-roles |
|
|
8
|
-
|[**deleteClubRole**](#deleteclubrole) | **DELETE** /api/club-roles/{id} |
|
|
9
|
-
|[**getAllClubRoles**](#getallclubroles) | **GET** /api/club-roles |
|
|
10
|
-
|[**getClubRoleById**](#getclubrolebyid) | **GET** /api/club-roles/{id} |
|
|
11
|
-
|[**updateClubRole**](#updateclubrole) | **PUT** /api/club-roles/{id} |
|
|
7
|
+
|[**createClubRole**](#createclubrole) | **POST** /api/club-roles | Créer un nouveau rôle de club|
|
|
8
|
+
|[**deleteClubRole**](#deleteclubrole) | **DELETE** /api/club-roles/{id} | Supprimer un rôle de club|
|
|
9
|
+
|[**getAllClubRoles**](#getallclubroles) | **GET** /api/club-roles | Récupérer tous les rôles de clubs|
|
|
10
|
+
|[**getClubRoleById**](#getclubrolebyid) | **GET** /api/club-roles/{id} | Récupérer un rôle de club par son ID|
|
|
11
|
+
|[**updateClubRole**](#updateclubrole) | **PUT** /api/club-roles/{id} | Mettre à jour un rôle de club|
|
|
12
12
|
|
|
13
13
|
# **createClubRole**
|
|
14
14
|
> ClubRoleResponse createClubRole(createClubRoleRequestBody)
|
|
@@ -18,13 +18,13 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ManagerClubRolesApi,
|
|
22
22
|
Configuration,
|
|
23
23
|
CreateClubRoleRequestBody
|
|
24
24
|
} from '@tennac-booking/sdk';
|
|
25
25
|
|
|
26
26
|
const configuration = new Configuration();
|
|
27
|
-
const apiInstance = new
|
|
27
|
+
const apiInstance = new ManagerClubRolesApi(configuration);
|
|
28
28
|
|
|
29
29
|
let createClubRoleRequestBody: CreateClubRoleRequestBody; //
|
|
30
30
|
|
|
@@ -57,7 +57,7 @@ const { status, data } = await apiInstance.createClubRole(
|
|
|
57
57
|
### HTTP response details
|
|
58
58
|
| Status code | Description | Response headers |
|
|
59
59
|
|-------------|-------------|------------------|
|
|
60
|
-
|**201** | Rôle de club créé | - |
|
|
60
|
+
|**201** | Rôle de club créé avec succès | - |
|
|
61
61
|
|**500** | Erreur serveur interne | - |
|
|
62
62
|
|
|
63
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)
|
|
@@ -70,12 +70,12 @@ const { status, data } = await apiInstance.createClubRole(
|
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
72
|
import {
|
|
73
|
-
|
|
73
|
+
ManagerClubRolesApi,
|
|
74
74
|
Configuration
|
|
75
75
|
} from '@tennac-booking/sdk';
|
|
76
76
|
|
|
77
77
|
const configuration = new Configuration();
|
|
78
|
-
const apiInstance = new
|
|
78
|
+
const apiInstance = new ManagerClubRolesApi(configuration);
|
|
79
79
|
|
|
80
80
|
let id: string; //ID du rôle de club (default to undefined)
|
|
81
81
|
|
|
@@ -108,7 +108,7 @@ const { status, data } = await apiInstance.deleteClubRole(
|
|
|
108
108
|
### HTTP response details
|
|
109
109
|
| Status code | Description | Response headers |
|
|
110
110
|
|-------------|-------------|------------------|
|
|
111
|
-
|**200** | Rôle de club supprimé | - |
|
|
111
|
+
|**200** | Rôle de club supprimé avec succès | - |
|
|
112
112
|
|**404** | Rôle de club non trouvé | - |
|
|
113
113
|
|**500** | Erreur serveur interne | - |
|
|
114
114
|
|
|
@@ -122,12 +122,12 @@ const { status, data } = await apiInstance.deleteClubRole(
|
|
|
122
122
|
|
|
123
123
|
```typescript
|
|
124
124
|
import {
|
|
125
|
-
|
|
125
|
+
ManagerClubRolesApi,
|
|
126
126
|
Configuration
|
|
127
127
|
} from '@tennac-booking/sdk';
|
|
128
128
|
|
|
129
129
|
const configuration = new Configuration();
|
|
130
|
-
const apiInstance = new
|
|
130
|
+
const apiInstance = new ManagerClubRolesApi(configuration);
|
|
131
131
|
|
|
132
132
|
const { status, data } = await apiInstance.getAllClubRoles();
|
|
133
133
|
```
|
|
@@ -166,12 +166,12 @@ This endpoint does not have any parameters.
|
|
|
166
166
|
|
|
167
167
|
```typescript
|
|
168
168
|
import {
|
|
169
|
-
|
|
169
|
+
ManagerClubRolesApi,
|
|
170
170
|
Configuration
|
|
171
171
|
} from '@tennac-booking/sdk';
|
|
172
172
|
|
|
173
173
|
const configuration = new Configuration();
|
|
174
|
-
const apiInstance = new
|
|
174
|
+
const apiInstance = new ManagerClubRolesApi(configuration);
|
|
175
175
|
|
|
176
176
|
let id: string; //ID du rôle de club (default to undefined)
|
|
177
177
|
|
|
@@ -218,13 +218,13 @@ const { status, data } = await apiInstance.getClubRoleById(
|
|
|
218
218
|
|
|
219
219
|
```typescript
|
|
220
220
|
import {
|
|
221
|
-
|
|
221
|
+
ManagerClubRolesApi,
|
|
222
222
|
Configuration,
|
|
223
223
|
UpdateClubRoleRequestBody
|
|
224
224
|
} from '@tennac-booking/sdk';
|
|
225
225
|
|
|
226
226
|
const configuration = new Configuration();
|
|
227
|
-
const apiInstance = new
|
|
227
|
+
const apiInstance = new ManagerClubRolesApi(configuration);
|
|
228
228
|
|
|
229
229
|
let id: string; //ID du rôle de club (default to undefined)
|
|
230
230
|
let updateClubRoleRequestBody: UpdateClubRoleRequestBody; //
|
|
@@ -260,7 +260,7 @@ const { status, data } = await apiInstance.updateClubRole(
|
|
|
260
260
|
### HTTP response details
|
|
261
261
|
| Status code | Description | Response headers |
|
|
262
262
|
|-------------|-------------|------------------|
|
|
263
|
-
|**200** | Rôle de club mis à jour | - |
|
|
263
|
+
|**200** | Rôle de club mis à jour avec succès | - |
|
|
264
264
|
|**404** | Rôle de club non trouvé | - |
|
|
265
265
|
|**500** | Erreur serveur interne | - |
|
|
266
266
|
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# ManagerClubSlotsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteSlotsByClubInRange**](#deleteslotsbyclubinrange) | **DELETE** /api/clubs/{id}/slots | Supprimer des créneaux pour un club sur une plage de dates|
|
|
8
|
+
|[**getSlotsByClub**](#getslotsbyclub) | **GET** /api/clubs/{id}/slots | Récupérer tous les créneaux pour un club|
|
|
9
|
+
|
|
10
|
+
# **deleteSlotsByClubInRange**
|
|
11
|
+
> DeleteSlotsByClubInRange200Response deleteSlotsByClubInRange()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
ManagerClubSlotsApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new ManagerClubSlotsApi(configuration);
|
|
24
|
+
|
|
25
|
+
let id: string; //ID du club (default to undefined)
|
|
26
|
+
let start: string; //Date de début (format ISO) (default to undefined)
|
|
27
|
+
let end: string; //Date de fin (format ISO) (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.deleteSlotsByClubInRange(
|
|
30
|
+
id,
|
|
31
|
+
start,
|
|
32
|
+
end
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
41
|
+
| **start** | [**string**] | Date de début (format ISO) | defaults to undefined|
|
|
42
|
+
| **end** | [**string**] | Date de fin (format ISO) | defaults to undefined|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**DeleteSlotsByClubInRange200Response**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: Not defined
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**200** | Créneaux supprimés avec succès | - |
|
|
63
|
+
|**400** | Requête invalide | - |
|
|
64
|
+
|**500** | Erreur serveur interne | - |
|
|
65
|
+
|
|
66
|
+
[[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)
|
|
67
|
+
|
|
68
|
+
# **getSlotsByClub**
|
|
69
|
+
> SlotsResponse getSlotsByClub()
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
ManagerClubSlotsApi,
|
|
77
|
+
Configuration
|
|
78
|
+
} from '@tennac-booking/sdk';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new ManagerClubSlotsApi(configuration);
|
|
82
|
+
|
|
83
|
+
let id: string; //ID du club (default to undefined)
|
|
84
|
+
let start: string; //Date de début (format ISO) (optional) (default to undefined)
|
|
85
|
+
let end: string; //Date de fin (format ISO) (optional) (default to undefined)
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.getSlotsByClub(
|
|
88
|
+
id,
|
|
89
|
+
start,
|
|
90
|
+
end
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
99
|
+
| **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
|
|
100
|
+
| **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Return type
|
|
104
|
+
|
|
105
|
+
**SlotsResponse**
|
|
106
|
+
|
|
107
|
+
### Authorization
|
|
108
|
+
|
|
109
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
110
|
+
|
|
111
|
+
### HTTP request headers
|
|
112
|
+
|
|
113
|
+
- **Content-Type**: Not defined
|
|
114
|
+
- **Accept**: application/json
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### HTTP response details
|
|
118
|
+
| Status code | Description | Response headers |
|
|
119
|
+
|-------------|-------------|------------------|
|
|
120
|
+
|**200** | Liste des créneaux du club | - |
|
|
121
|
+
|**400** | Requête invalide | - |
|
|
122
|
+
|**500** | Erreur serveur interne | - |
|
|
123
|
+
|
|
124
|
+
[[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)
|
|
125
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ManagerClubSubscriptionsApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
4
|
|
|
@@ -20,12 +20,12 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ManagerClubSubscriptionsApi,
|
|
24
24
|
Configuration
|
|
25
25
|
} from '@tennac-booking/sdk';
|
|
26
26
|
|
|
27
27
|
const configuration = new Configuration();
|
|
28
|
-
const apiInstance = new
|
|
28
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
29
29
|
|
|
30
30
|
let id: string; //ID du club (default to undefined)
|
|
31
31
|
let priceId: string; //ID du prix Stripe (default to undefined)
|
|
@@ -75,13 +75,13 @@ const { status, data } = await apiInstance.archivePriceForSubscriptionPlan(
|
|
|
75
75
|
|
|
76
76
|
```typescript
|
|
77
77
|
import {
|
|
78
|
-
|
|
78
|
+
ManagerClubSubscriptionsApi,
|
|
79
79
|
Configuration,
|
|
80
80
|
CreatePriceRequest
|
|
81
81
|
} from '@tennac-booking/sdk';
|
|
82
82
|
|
|
83
83
|
const configuration = new Configuration();
|
|
84
|
-
const apiInstance = new
|
|
84
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
85
85
|
|
|
86
86
|
let id: string; //ID du club (default to undefined)
|
|
87
87
|
let productId: string; //ID du produit Stripe (default to undefined)
|
|
@@ -134,13 +134,13 @@ const { status, data } = await apiInstance.createPriceForSubscriptionPlan(
|
|
|
134
134
|
|
|
135
135
|
```typescript
|
|
136
136
|
import {
|
|
137
|
-
|
|
137
|
+
ManagerClubSubscriptionsApi,
|
|
138
138
|
Configuration,
|
|
139
139
|
CreateSubscriptionPlanRequest
|
|
140
140
|
} from '@tennac-booking/sdk';
|
|
141
141
|
|
|
142
142
|
const configuration = new Configuration();
|
|
143
|
-
const apiInstance = new
|
|
143
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
144
144
|
|
|
145
145
|
let id: string; //ID du club (default to undefined)
|
|
146
146
|
let createSubscriptionPlanRequest: CreateSubscriptionPlanRequest; //
|
|
@@ -190,12 +190,12 @@ const { status, data } = await apiInstance.createSubscriptionPlanForClub(
|
|
|
190
190
|
|
|
191
191
|
```typescript
|
|
192
192
|
import {
|
|
193
|
-
|
|
193
|
+
ManagerClubSubscriptionsApi,
|
|
194
194
|
Configuration
|
|
195
195
|
} from '@tennac-booking/sdk';
|
|
196
196
|
|
|
197
197
|
const configuration = new Configuration();
|
|
198
|
-
const apiInstance = new
|
|
198
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
199
199
|
|
|
200
200
|
let id: string; //ID du club (default to undefined)
|
|
201
201
|
let productId: string; //ID du produit Stripe (default to undefined)
|
|
@@ -245,12 +245,12 @@ void (empty response body)
|
|
|
245
245
|
|
|
246
246
|
```typescript
|
|
247
247
|
import {
|
|
248
|
-
|
|
248
|
+
ManagerClubSubscriptionsApi,
|
|
249
249
|
Configuration
|
|
250
250
|
} from '@tennac-booking/sdk';
|
|
251
251
|
|
|
252
252
|
const configuration = new Configuration();
|
|
253
|
-
const apiInstance = new
|
|
253
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
254
254
|
|
|
255
255
|
let id: string; //ID du club (default to undefined)
|
|
256
256
|
let productId: string; //ID du produit Stripe (default to undefined)
|
|
@@ -300,12 +300,12 @@ const { status, data } = await apiInstance.restoreSubscriptionPlanForClub(
|
|
|
300
300
|
|
|
301
301
|
```typescript
|
|
302
302
|
import {
|
|
303
|
-
|
|
303
|
+
ManagerClubSubscriptionsApi,
|
|
304
304
|
Configuration
|
|
305
305
|
} from '@tennac-booking/sdk';
|
|
306
306
|
|
|
307
307
|
const configuration = new Configuration();
|
|
308
|
-
const apiInstance = new
|
|
308
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
309
309
|
|
|
310
310
|
let id: string; //ID du club (default to undefined)
|
|
311
311
|
let priceId: string; //ID du prix Stripe (default to undefined)
|
|
@@ -355,13 +355,13 @@ const { status, data } = await apiInstance.restoreSubscriptionPriceForClub(
|
|
|
355
355
|
|
|
356
356
|
```typescript
|
|
357
357
|
import {
|
|
358
|
-
|
|
358
|
+
ManagerClubSubscriptionsApi,
|
|
359
359
|
Configuration,
|
|
360
360
|
UpdateSubscriptionPlanRequest
|
|
361
361
|
} from '@tennac-booking/sdk';
|
|
362
362
|
|
|
363
363
|
const configuration = new Configuration();
|
|
364
|
-
const apiInstance = new
|
|
364
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
365
365
|
|
|
366
366
|
let id: string; //ID du club (default to undefined)
|
|
367
367
|
let priceId: string; //ID du prix Stripe (default to undefined)
|