@tennac-booking/sdk 1.0.238 → 1.0.240
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 +489 -489
- package/README.md +4 -3
- package/api.ts +121 -102
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +90 -71
- package/dist/api.js +2701 -3514
- package/dist/base.d.ts +1 -1
- package/dist/base.js +2 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +23 -39
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +7 -3
- package/dist/esm/api.d.ts +90 -71
- package/dist/esm/api.js +2701 -3514
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +2 -3
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +23 -39
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +7 -3
- 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/ClubsApi.md +29 -29
- package/docs/GetAvailableSlotsDaysByClubById200Response.md +22 -0
- package/docs/JobsApi.md +7 -7
- package/index.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.240
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -30,12 +30,11 @@ export const COLLECTION_FORMATS = {
|
|
|
30
30
|
*/
|
|
31
31
|
export class BaseAPI {
|
|
32
32
|
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
|
-
var _a;
|
|
34
33
|
this.basePath = basePath;
|
|
35
34
|
this.axios = axios;
|
|
36
35
|
if (configuration) {
|
|
37
36
|
this.configuration = configuration;
|
|
38
|
-
this.basePath =
|
|
37
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
}
|
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
|
@@ -4,22 +4,13 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.240
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
14
|
import { RequiredError } from "./base";
|
|
24
15
|
/**
|
|
25
16
|
*
|
|
@@ -40,15 +31,13 @@ export const assertParamExists = function (functionName, paramName, paramValue)
|
|
|
40
31
|
*
|
|
41
32
|
* @export
|
|
42
33
|
*/
|
|
43
|
-
export const setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
});
|
|
34
|
+
export const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
35
|
+
if (configuration && configuration.apiKey) {
|
|
36
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
37
|
+
? await configuration.apiKey(keyParamName)
|
|
38
|
+
: await configuration.apiKey;
|
|
39
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
40
|
+
}
|
|
52
41
|
};
|
|
53
42
|
/**
|
|
54
43
|
*
|
|
@@ -63,29 +52,25 @@ export const setBasicAuthToObject = function (object, configuration) {
|
|
|
63
52
|
*
|
|
64
53
|
* @export
|
|
65
54
|
*/
|
|
66
|
-
export const setBearerAuthToObject = function (object, configuration) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
});
|
|
55
|
+
export const setBearerAuthToObject = async function (object, configuration) {
|
|
56
|
+
if (configuration && configuration.accessToken) {
|
|
57
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
58
|
+
? await configuration.accessToken()
|
|
59
|
+
: await configuration.accessToken;
|
|
60
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
61
|
+
}
|
|
75
62
|
};
|
|
76
63
|
/**
|
|
77
64
|
*
|
|
78
65
|
* @export
|
|
79
66
|
*/
|
|
80
|
-
export const setOAuthToObject = function (object, name, scopes, configuration) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
});
|
|
67
|
+
export const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
68
|
+
if (configuration && configuration.accessToken) {
|
|
69
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
70
|
+
? await configuration.accessToken(name, scopes)
|
|
71
|
+
: await configuration.accessToken;
|
|
72
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
73
|
+
}
|
|
89
74
|
};
|
|
90
75
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
91
76
|
if (parameter == null)
|
|
@@ -142,8 +127,7 @@ export const toPathString = function (url) {
|
|
|
142
127
|
*/
|
|
143
128
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
144
129
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
145
|
-
|
|
146
|
-
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
|
|
130
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
147
131
|
return axios.request(axiosRequestArgs);
|
|
148
132
|
};
|
|
149
133
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.240
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,14 +13,18 @@
|
|
|
13
13
|
*/
|
|
14
14
|
export class Configuration {
|
|
15
15
|
constructor(param = {}) {
|
|
16
|
-
var _a;
|
|
17
16
|
this.apiKey = param.apiKey;
|
|
18
17
|
this.username = param.username;
|
|
19
18
|
this.password = param.password;
|
|
20
19
|
this.accessToken = param.accessToken;
|
|
21
20
|
this.basePath = param.basePath;
|
|
22
21
|
this.serverIndex = param.serverIndex;
|
|
23
|
-
this.baseOptions =
|
|
22
|
+
this.baseOptions = {
|
|
23
|
+
...param.baseOptions,
|
|
24
|
+
headers: {
|
|
25
|
+
...param.baseOptions?.headers,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
24
28
|
this.formDataCtor = param.formDataCtor;
|
|
25
29
|
}
|
|
26
30
|
/**
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/ClubsApi.md
CHANGED
|
@@ -6,9 +6,9 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getActiveClubs**](#getactiveclubs) | **GET** /api/clubs/active | |
|
|
8
8
|
|[**getAllClubs**](#getallclubs) | **GET** /api/clubs | |
|
|
9
|
-
|[**getAvailableSlotsByClubById**](#getavailableslotsbyclubbyid) | **GET** /api/clubs/{clubID}/availableSlots | |
|
|
10
9
|
|[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | |
|
|
11
10
|
|[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | |
|
|
11
|
+
|[**getAvailableSlotsDaysByClubById**](#getavailableslotsdaysbyclubbyid) | **GET** /api/clubs/{clubID}/availableSlotsDays | |
|
|
12
12
|
|[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/info | |
|
|
13
13
|
|[**getClubMetadata**](#getclubmetadata) | **GET** /api/clubs/{clubId}/metadata | |
|
|
14
14
|
|[**getClubPageInfo**](#getclubpageinfo) | **GET** /api/clubs/club-page/{clubId} | |
|
|
@@ -111,10 +111,9 @@ No authorization required
|
|
|
111
111
|
|
|
112
112
|
[[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)
|
|
113
113
|
|
|
114
|
-
# **
|
|
115
|
-
>
|
|
114
|
+
# **getAvailableSlotsBySports**
|
|
115
|
+
> GetAvailableSlotsBySports200Response getAvailableSlotsBySports()
|
|
116
116
|
|
|
117
|
-
reference to artillery tests
|
|
118
117
|
|
|
119
118
|
### Example
|
|
120
119
|
|
|
@@ -127,10 +126,12 @@ import {
|
|
|
127
126
|
const configuration = new Configuration();
|
|
128
127
|
const apiInstance = new ClubsApi(configuration);
|
|
129
128
|
|
|
130
|
-
let
|
|
129
|
+
let id: string; // (default to undefined)
|
|
130
|
+
let sportId: string; // (default to undefined)
|
|
131
131
|
|
|
132
|
-
const { status, data } = await apiInstance.
|
|
133
|
-
|
|
132
|
+
const { status, data } = await apiInstance.getAvailableSlotsBySports(
|
|
133
|
+
id,
|
|
134
|
+
sportId
|
|
134
135
|
);
|
|
135
136
|
```
|
|
136
137
|
|
|
@@ -138,12 +139,13 @@ const { status, data } = await apiInstance.getAvailableSlotsByClubById(
|
|
|
138
139
|
|
|
139
140
|
|Name | Type | Description | Notes|
|
|
140
141
|
|------------- | ------------- | ------------- | -------------|
|
|
141
|
-
| **
|
|
142
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
143
|
+
| **sportId** | [**string**] | | defaults to undefined|
|
|
142
144
|
|
|
143
145
|
|
|
144
146
|
### Return type
|
|
145
147
|
|
|
146
|
-
**
|
|
148
|
+
**GetAvailableSlotsBySports200Response**
|
|
147
149
|
|
|
148
150
|
### Authorization
|
|
149
151
|
|
|
@@ -158,12 +160,12 @@ No authorization required
|
|
|
158
160
|
### HTTP response details
|
|
159
161
|
| Status code | Description | Response headers |
|
|
160
162
|
|-------------|-------------|------------------|
|
|
161
|
-
|**200** | Available slots | - |
|
|
163
|
+
|**200** | Available slots by sport | - |
|
|
162
164
|
|
|
163
165
|
[[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)
|
|
164
166
|
|
|
165
|
-
# **
|
|
166
|
-
> GetAvailableSlotsBySports200Response
|
|
167
|
+
# **getAvailableSlotsBySportsAndDay**
|
|
168
|
+
> GetAvailableSlotsBySports200Response getAvailableSlotsBySportsAndDay()
|
|
167
169
|
|
|
168
170
|
|
|
169
171
|
### Example
|
|
@@ -179,10 +181,12 @@ const apiInstance = new ClubsApi(configuration);
|
|
|
179
181
|
|
|
180
182
|
let id: string; // (default to undefined)
|
|
181
183
|
let sportId: string; // (default to undefined)
|
|
184
|
+
let day: string; // (default to undefined)
|
|
182
185
|
|
|
183
|
-
const { status, data } = await apiInstance.
|
|
186
|
+
const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
|
|
184
187
|
id,
|
|
185
|
-
sportId
|
|
188
|
+
sportId,
|
|
189
|
+
day
|
|
186
190
|
);
|
|
187
191
|
```
|
|
188
192
|
|
|
@@ -192,6 +196,7 @@ const { status, data } = await apiInstance.getAvailableSlotsBySports(
|
|
|
192
196
|
|------------- | ------------- | ------------- | -------------|
|
|
193
197
|
| **id** | [**string**] | | defaults to undefined|
|
|
194
198
|
| **sportId** | [**string**] | | defaults to undefined|
|
|
199
|
+
| **day** | [**string**] | | defaults to undefined|
|
|
195
200
|
|
|
196
201
|
|
|
197
202
|
### Return type
|
|
@@ -211,13 +216,14 @@ No authorization required
|
|
|
211
216
|
### HTTP response details
|
|
212
217
|
| Status code | Description | Response headers |
|
|
213
218
|
|-------------|-------------|------------------|
|
|
214
|
-
|**200** | Available slots by sport | - |
|
|
219
|
+
|**200** | Available slots by sport and day | - |
|
|
215
220
|
|
|
216
221
|
[[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)
|
|
217
222
|
|
|
218
|
-
# **
|
|
219
|
-
>
|
|
223
|
+
# **getAvailableSlotsDaysByClubById**
|
|
224
|
+
> GetAvailableSlotsDaysByClubById200Response getAvailableSlotsDaysByClubById()
|
|
220
225
|
|
|
226
|
+
reference to artillery tests
|
|
221
227
|
|
|
222
228
|
### Example
|
|
223
229
|
|
|
@@ -230,14 +236,10 @@ import {
|
|
|
230
236
|
const configuration = new Configuration();
|
|
231
237
|
const apiInstance = new ClubsApi(configuration);
|
|
232
238
|
|
|
233
|
-
let
|
|
234
|
-
let sportId: string; // (default to undefined)
|
|
235
|
-
let day: string; // (default to undefined)
|
|
239
|
+
let clubID: string; // (default to undefined)
|
|
236
240
|
|
|
237
|
-
const { status, data } = await apiInstance.
|
|
238
|
-
|
|
239
|
-
sportId,
|
|
240
|
-
day
|
|
241
|
+
const { status, data } = await apiInstance.getAvailableSlotsDaysByClubById(
|
|
242
|
+
clubID
|
|
241
243
|
);
|
|
242
244
|
```
|
|
243
245
|
|
|
@@ -245,14 +247,12 @@ const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
|
|
|
245
247
|
|
|
246
248
|
|Name | Type | Description | Notes|
|
|
247
249
|
|------------- | ------------- | ------------- | -------------|
|
|
248
|
-
| **
|
|
249
|
-
| **sportId** | [**string**] | | defaults to undefined|
|
|
250
|
-
| **day** | [**string**] | | defaults to undefined|
|
|
250
|
+
| **clubID** | [**string**] | | defaults to undefined|
|
|
251
251
|
|
|
252
252
|
|
|
253
253
|
### Return type
|
|
254
254
|
|
|
255
|
-
**
|
|
255
|
+
**GetAvailableSlotsDaysByClubById200Response**
|
|
256
256
|
|
|
257
257
|
### Authorization
|
|
258
258
|
|
|
@@ -267,7 +267,7 @@ No authorization required
|
|
|
267
267
|
### HTTP response details
|
|
268
268
|
| Status code | Description | Response headers |
|
|
269
269
|
|-------------|-------------|------------------|
|
|
270
|
-
|**200** | Available slots
|
|
270
|
+
|**200** | Available slots days | - |
|
|
271
271
|
|
|
272
272
|
[[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)
|
|
273
273
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# GetAvailableSlotsDaysByClubById200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**lastSlotDate** | **string** | | [default to undefined]
|
|
9
|
+
**availableDays** | **Array<string>** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { GetAvailableSlotsDaysByClubById200Response } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: GetAvailableSlotsDaysByClubById200Response = {
|
|
17
|
+
lastSlotDate,
|
|
18
|
+
availableDays,
|
|
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)
|
package/docs/JobsApi.md
CHANGED
|
@@ -16,7 +16,7 @@ All URIs are relative to *http://localhost*
|
|
|
16
16
|
# **captureExpiringAuthorizations**
|
|
17
17
|
> JobResult captureExpiringAuthorizations()
|
|
18
18
|
|
|
19
|
-
Job: Capturer les autorisations de paiement qui expirent bientôt
|
|
19
|
+
Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
|
|
20
20
|
|
|
21
21
|
### Example
|
|
22
22
|
|
|
@@ -60,7 +60,7 @@ No authorization required
|
|
|
60
60
|
# **capturePastReservations**
|
|
61
61
|
> JobResult capturePastReservations()
|
|
62
62
|
|
|
63
|
-
Job: Capturer les paiements pour les réservations passées
|
|
63
|
+
Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
64
64
|
|
|
65
65
|
### Example
|
|
66
66
|
|
|
@@ -104,7 +104,7 @@ No authorization required
|
|
|
104
104
|
# **expireBookingWaitingPayments**
|
|
105
105
|
> JobResult expireBookingWaitingPayments()
|
|
106
106
|
|
|
107
|
-
Job: Expirer les réservations en attente de paiement
|
|
107
|
+
Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
108
108
|
|
|
109
109
|
### Example
|
|
110
110
|
|
|
@@ -148,7 +148,7 @@ No authorization required
|
|
|
148
148
|
# **expireWaitlistPayments**
|
|
149
149
|
> JobResult expireWaitlistPayments()
|
|
150
150
|
|
|
151
|
-
Job: Expirer les paiements en attente sur la waitlist
|
|
151
|
+
Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
152
152
|
|
|
153
153
|
### Example
|
|
154
154
|
|
|
@@ -236,7 +236,7 @@ No authorization required
|
|
|
236
236
|
# **maintainSlots**
|
|
237
237
|
> JobResult maintainSlots()
|
|
238
238
|
|
|
239
|
-
Job: Maintenir les créneaux (slots)
|
|
239
|
+
Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
240
240
|
|
|
241
241
|
### Example
|
|
242
242
|
|
|
@@ -280,7 +280,7 @@ No authorization required
|
|
|
280
280
|
# **releaseOldBookings**
|
|
281
281
|
> JobResult releaseOldBookings()
|
|
282
282
|
|
|
283
|
-
Job: Libérer les anciennes réservations
|
|
283
|
+
Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
284
284
|
|
|
285
285
|
### Example
|
|
286
286
|
|
|
@@ -324,7 +324,7 @@ No authorization required
|
|
|
324
324
|
# **sendBookingReminders**
|
|
325
325
|
> JobResult sendBookingReminders()
|
|
326
326
|
|
|
327
|
-
Job: Envoyer les rappels de réservation et d\'événements
|
|
327
|
+
Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
328
328
|
|
|
329
329
|
### Example
|
|
330
330
|
|
package/index.ts
CHANGED
package/package.json
CHANGED