@tennac-booking/sdk 1.0.19 → 1.0.21
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 +8 -0
- package/README.md +14 -3
- package/api.ts +853 -132
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +538 -46
- package/dist/api.js +412 -35
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +538 -46
- package/dist/esm/api.js +405 -32
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/ClubAnalyticsApi.md +253 -0
- package/docs/DailyTurnoverResponse.md +24 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +1 -1
- package/docs/InvoicesResponse.md +22 -0
- package/docs/InvoicesResponseInvoicesInner.md +34 -0
- package/docs/InvoicesResponsePagination.md +26 -0
- package/docs/MonthlyTurnoverResponse.md +28 -0
- package/docs/StaffClubAnalyticsApi.md +3 -10
- package/docs/StaffClubSettingsApi.md +5 -13
- package/docs/YearlyTurnoverResponse.md +26 -0
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
- package/index.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Pandook API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.21
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# ClubAnalyticsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getDailyTurnOver**](#getdailyturnover) | **GET** /api/clubs/{id}/turnover/daily | Chiffre d\'affaires quotidien|
|
|
8
|
+
|[**getInvoices**](#getinvoices) | **GET** /api/clubs/{id}/invoices | Récupérer les factures du club|
|
|
9
|
+
|[**getMonthlyTurnOver**](#getmonthlyturnover) | **GET** /api/clubs/{id}/turnover/monthly | Chiffre d\'affaires mensuel|
|
|
10
|
+
|[**getYearlyTurnOver**](#getyearlyturnover) | **GET** /api/clubs/{id}/turnover/yearly | Chiffre d\'affaires annuel|
|
|
11
|
+
|
|
12
|
+
# **getDailyTurnOver**
|
|
13
|
+
> DailyTurnoverResponse getDailyTurnOver()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
ClubAnalyticsApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new ClubAnalyticsApi(configuration);
|
|
26
|
+
|
|
27
|
+
let id: string; //ID du club (default to undefined)
|
|
28
|
+
let date: string; //Date (format YYYY-MM-DD) (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.getDailyTurnOver(
|
|
31
|
+
id,
|
|
32
|
+
date
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
41
|
+
| **date** | [**string**] | Date (format YYYY-MM-DD) | defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**DailyTurnoverResponse**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: Not defined
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Chiffre d\'affaires quotidien | - |
|
|
62
|
+
|**400** | Requête invalide | - |
|
|
63
|
+
|**401** | Non autorisé | - |
|
|
64
|
+
|**403** | Accès interdit | - |
|
|
65
|
+
|**500** | Erreur serveur interne | - |
|
|
66
|
+
|
|
67
|
+
[[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)
|
|
68
|
+
|
|
69
|
+
# **getInvoices**
|
|
70
|
+
> InvoicesResponse getInvoices()
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Example
|
|
74
|
+
|
|
75
|
+
```typescript
|
|
76
|
+
import {
|
|
77
|
+
ClubAnalyticsApi,
|
|
78
|
+
Configuration
|
|
79
|
+
} from '@tennac-booking/sdk';
|
|
80
|
+
|
|
81
|
+
const configuration = new Configuration();
|
|
82
|
+
const apiInstance = new ClubAnalyticsApi(configuration);
|
|
83
|
+
|
|
84
|
+
let id: string; //ID du club (default to undefined)
|
|
85
|
+
let page: number; //Numéro de page (optional) (default to 1)
|
|
86
|
+
let limit: number; //Nombre d\'éléments par page (optional) (default to 10)
|
|
87
|
+
let status: 'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'; //Filtrer par statut (optional) (default to undefined)
|
|
88
|
+
let startDate: string; //Date de début (ISO format) (optional) (default to undefined)
|
|
89
|
+
let endDate: string; //Date de fin (ISO format) (optional) (default to undefined)
|
|
90
|
+
|
|
91
|
+
const { status, data } = await apiInstance.getInvoices(
|
|
92
|
+
id,
|
|
93
|
+
page,
|
|
94
|
+
limit,
|
|
95
|
+
status,
|
|
96
|
+
startDate,
|
|
97
|
+
endDate
|
|
98
|
+
);
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Parameters
|
|
102
|
+
|
|
103
|
+
|Name | Type | Description | Notes|
|
|
104
|
+
|------------- | ------------- | ------------- | -------------|
|
|
105
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
106
|
+
| **page** | [**number**] | Numéro de page | (optional) defaults to 1|
|
|
107
|
+
| **limit** | [**number**] | Nombre d\'éléments par page | (optional) defaults to 10|
|
|
108
|
+
| **status** | [**'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'**]**Array<'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'>** | Filtrer par statut | (optional) defaults to undefined|
|
|
109
|
+
| **startDate** | [**string**] | Date de début (ISO format) | (optional) defaults to undefined|
|
|
110
|
+
| **endDate** | [**string**] | Date de fin (ISO format) | (optional) defaults to undefined|
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### Return type
|
|
114
|
+
|
|
115
|
+
**InvoicesResponse**
|
|
116
|
+
|
|
117
|
+
### Authorization
|
|
118
|
+
|
|
119
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
120
|
+
|
|
121
|
+
### HTTP request headers
|
|
122
|
+
|
|
123
|
+
- **Content-Type**: Not defined
|
|
124
|
+
- **Accept**: application/json
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### HTTP response details
|
|
128
|
+
| Status code | Description | Response headers |
|
|
129
|
+
|-------------|-------------|------------------|
|
|
130
|
+
|**200** | Liste des factures | - |
|
|
131
|
+
|**401** | Non autorisé | - |
|
|
132
|
+
|**403** | Accès interdit | - |
|
|
133
|
+
|**500** | Erreur serveur interne | - |
|
|
134
|
+
|
|
135
|
+
[[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)
|
|
136
|
+
|
|
137
|
+
# **getMonthlyTurnOver**
|
|
138
|
+
> MonthlyTurnoverResponse getMonthlyTurnOver()
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
### Example
|
|
142
|
+
|
|
143
|
+
```typescript
|
|
144
|
+
import {
|
|
145
|
+
ClubAnalyticsApi,
|
|
146
|
+
Configuration
|
|
147
|
+
} from '@tennac-booking/sdk';
|
|
148
|
+
|
|
149
|
+
const configuration = new Configuration();
|
|
150
|
+
const apiInstance = new ClubAnalyticsApi(configuration);
|
|
151
|
+
|
|
152
|
+
let id: string; //ID du club (default to undefined)
|
|
153
|
+
let year: number; //Année (default to undefined)
|
|
154
|
+
let month: number; //Mois (1-12) (default to undefined)
|
|
155
|
+
|
|
156
|
+
const { status, data } = await apiInstance.getMonthlyTurnOver(
|
|
157
|
+
id,
|
|
158
|
+
year,
|
|
159
|
+
month
|
|
160
|
+
);
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Parameters
|
|
164
|
+
|
|
165
|
+
|Name | Type | Description | Notes|
|
|
166
|
+
|------------- | ------------- | ------------- | -------------|
|
|
167
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
168
|
+
| **year** | [**number**] | Année | defaults to undefined|
|
|
169
|
+
| **month** | [**number**] | Mois (1-12) | defaults to undefined|
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Return type
|
|
173
|
+
|
|
174
|
+
**MonthlyTurnoverResponse**
|
|
175
|
+
|
|
176
|
+
### Authorization
|
|
177
|
+
|
|
178
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
179
|
+
|
|
180
|
+
### HTTP request headers
|
|
181
|
+
|
|
182
|
+
- **Content-Type**: Not defined
|
|
183
|
+
- **Accept**: application/json
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
### HTTP response details
|
|
187
|
+
| Status code | Description | Response headers |
|
|
188
|
+
|-------------|-------------|------------------|
|
|
189
|
+
|**200** | Chiffre d\'affaires mensuel | - |
|
|
190
|
+
|**400** | Requête invalide | - |
|
|
191
|
+
|**401** | Non autorisé | - |
|
|
192
|
+
|**403** | Accès interdit | - |
|
|
193
|
+
|**500** | Erreur serveur interne | - |
|
|
194
|
+
|
|
195
|
+
[[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)
|
|
196
|
+
|
|
197
|
+
# **getYearlyTurnOver**
|
|
198
|
+
> YearlyTurnoverResponse getYearlyTurnOver()
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### Example
|
|
202
|
+
|
|
203
|
+
```typescript
|
|
204
|
+
import {
|
|
205
|
+
ClubAnalyticsApi,
|
|
206
|
+
Configuration
|
|
207
|
+
} from '@tennac-booking/sdk';
|
|
208
|
+
|
|
209
|
+
const configuration = new Configuration();
|
|
210
|
+
const apiInstance = new ClubAnalyticsApi(configuration);
|
|
211
|
+
|
|
212
|
+
let id: string; //ID du club (default to undefined)
|
|
213
|
+
let year: number; //Année (default to undefined)
|
|
214
|
+
|
|
215
|
+
const { status, data } = await apiInstance.getYearlyTurnOver(
|
|
216
|
+
id,
|
|
217
|
+
year
|
|
218
|
+
);
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Parameters
|
|
222
|
+
|
|
223
|
+
|Name | Type | Description | Notes|
|
|
224
|
+
|------------- | ------------- | ------------- | -------------|
|
|
225
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
226
|
+
| **year** | [**number**] | Année | defaults to undefined|
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
### Return type
|
|
230
|
+
|
|
231
|
+
**YearlyTurnoverResponse**
|
|
232
|
+
|
|
233
|
+
### Authorization
|
|
234
|
+
|
|
235
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
236
|
+
|
|
237
|
+
### HTTP request headers
|
|
238
|
+
|
|
239
|
+
- **Content-Type**: Not defined
|
|
240
|
+
- **Accept**: application/json
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
### HTTP response details
|
|
244
|
+
| Status code | Description | Response headers |
|
|
245
|
+
|-------------|-------------|------------------|
|
|
246
|
+
|**200** | Chiffre d\'affaires annuel | - |
|
|
247
|
+
|**400** | Requête invalide | - |
|
|
248
|
+
|**401** | Non autorisé | - |
|
|
249
|
+
|**403** | Accès interdit | - |
|
|
250
|
+
|**500** | Erreur serveur interne | - |
|
|
251
|
+
|
|
252
|
+
[[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)
|
|
253
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# DailyTurnoverResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**date** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**totalTurnover** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**invoiceCount** | **number** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DailyTurnoverResponse } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: DailyTurnoverResponse = {
|
|
18
|
+
date,
|
|
19
|
+
totalTurnover,
|
|
20
|
+
invoiceCount,
|
|
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)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**year** | **number** | | [optional] [default to undefined]
|
|
9
|
-
**month** | **
|
|
9
|
+
**month** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**total** | **number** | | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# InvoicesResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**invoices** | [**Array<InvoicesResponseInvoicesInner>**](InvoicesResponseInvoicesInner.md) | | [optional] [default to undefined]
|
|
9
|
+
**pagination** | [**InvoicesResponsePagination**](InvoicesResponsePagination.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { InvoicesResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: InvoicesResponse = {
|
|
17
|
+
invoices,
|
|
18
|
+
pagination,
|
|
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,34 @@
|
|
|
1
|
+
# InvoicesResponseInvoicesInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**billNumber** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**date** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**clientFirstName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**clientLastName** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**clientEmail** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**totalCost** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**linkToInvoicePDF** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { InvoicesResponseInvoicesInner } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: InvoicesResponseInvoicesInner = {
|
|
23
|
+
billNumber,
|
|
24
|
+
date,
|
|
25
|
+
clientFirstName,
|
|
26
|
+
clientLastName,
|
|
27
|
+
clientEmail,
|
|
28
|
+
totalCost,
|
|
29
|
+
status,
|
|
30
|
+
linkToInvoicePDF,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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
|
+
# InvoicesResponsePagination
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**page** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**limit** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**totalPages** | **number** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { InvoicesResponsePagination } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: InvoicesResponsePagination = {
|
|
19
|
+
total,
|
|
20
|
+
page,
|
|
21
|
+
limit,
|
|
22
|
+
totalPages,
|
|
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,28 @@
|
|
|
1
|
+
# MonthlyTurnoverResponse
|
|
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
|
+
**totalTurnover** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**invoiceCount** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**period** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { MonthlyTurnoverResponse } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: MonthlyTurnoverResponse = {
|
|
20
|
+
year,
|
|
21
|
+
month,
|
|
22
|
+
totalTurnover,
|
|
23
|
+
invoiceCount,
|
|
24
|
+
period,
|
|
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)
|
|
@@ -5,7 +5,7 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getLastSixMonthsTurnover**](#getlastsixmonthsturnover) | **GET** /api/clubs/{id}/turnover | Get monthly turnover for the last six months|
|
|
8
|
-
|[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/clubs/
|
|
8
|
+
|[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/clubs/user-count | Get number of users subscribed to the club|
|
|
9
9
|
|
|
10
10
|
# **getLastSixMonthsTurnover**
|
|
11
11
|
> Array<GetLastSixMonthsTurnover200ResponseInner> getLastSixMonthsTurnover()
|
|
@@ -73,18 +73,11 @@ import {
|
|
|
73
73
|
const configuration = new Configuration();
|
|
74
74
|
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const { status, data } = await apiInstance.getNumberOfClubUsers(
|
|
79
|
-
id
|
|
80
|
-
);
|
|
76
|
+
const { status, data } = await apiInstance.getNumberOfClubUsers();
|
|
81
77
|
```
|
|
82
78
|
|
|
83
79
|
### Parameters
|
|
84
|
-
|
|
85
|
-
|Name | Type | Description | Notes|
|
|
86
|
-
|------------- | ------------- | ------------- | -------------|
|
|
87
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
80
|
+
This endpoint does not have any parameters.
|
|
88
81
|
|
|
89
82
|
|
|
90
83
|
### Return type
|
|
@@ -7,7 +7,7 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
7
7
|
|[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d\'un club|
|
|
8
8
|
|
|
9
9
|
# **getClubSettings**
|
|
10
|
-
> ClubSettings getClubSettings(
|
|
10
|
+
> ClubSettings getClubSettings()
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
### Example
|
|
@@ -15,25 +15,17 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
15
15
|
```typescript
|
|
16
16
|
import {
|
|
17
17
|
StaffClubSettingsApi,
|
|
18
|
-
Configuration
|
|
19
|
-
GetClubSettingsRequest
|
|
18
|
+
Configuration
|
|
20
19
|
} from '@tennac-booking/sdk';
|
|
21
20
|
|
|
22
21
|
const configuration = new Configuration();
|
|
23
22
|
const apiInstance = new StaffClubSettingsApi(configuration);
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { status, data } = await apiInstance.getClubSettings(
|
|
28
|
-
getClubSettingsRequest
|
|
29
|
-
);
|
|
24
|
+
const { status, data } = await apiInstance.getClubSettings();
|
|
30
25
|
```
|
|
31
26
|
|
|
32
27
|
### Parameters
|
|
33
|
-
|
|
34
|
-
|Name | Type | Description | Notes|
|
|
35
|
-
|------------- | ------------- | ------------- | -------------|
|
|
36
|
-
| **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
|
|
28
|
+
This endpoint does not have any parameters.
|
|
37
29
|
|
|
38
30
|
|
|
39
31
|
### Return type
|
|
@@ -46,7 +38,7 @@ const { status, data } = await apiInstance.getClubSettings(
|
|
|
46
38
|
|
|
47
39
|
### HTTP request headers
|
|
48
40
|
|
|
49
|
-
- **Content-Type**:
|
|
41
|
+
- **Content-Type**: Not defined
|
|
50
42
|
- **Accept**: application/json
|
|
51
43
|
|
|
52
44
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# YearlyTurnoverResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**year** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**totalTurnover** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**totalInvoices** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**monthlyBreakdown** | [**Array<YearlyTurnoverResponseMonthlyBreakdownInner>**](YearlyTurnoverResponseMonthlyBreakdownInner.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { YearlyTurnoverResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: YearlyTurnoverResponse = {
|
|
19
|
+
year,
|
|
20
|
+
totalTurnover,
|
|
21
|
+
totalInvoices,
|
|
22
|
+
monthlyBreakdown,
|
|
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
|
+
# YearlyTurnoverResponseMonthlyBreakdownInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**month** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**monthlyTurnover** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**invoiceCount** | **number** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { YearlyTurnoverResponseMonthlyBreakdownInner } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: YearlyTurnoverResponseMonthlyBreakdownInner = {
|
|
18
|
+
month,
|
|
19
|
+
monthlyTurnover,
|
|
20
|
+
invoiceCount,
|
|
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)
|
package/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.21
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|