@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.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.233
5
+ * The version of the OpenAPI document: 1.0.240
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.233
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 = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
37
+ this.basePath = configuration.basePath ?? basePath;
39
38
  }
40
39
  }
41
40
  }
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.233
5
+ * The version of the OpenAPI document: 1.0.240
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,22 +4,13 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.233
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
- return __awaiter(this, void 0, void 0, function* () {
45
- if (configuration && configuration.apiKey) {
46
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
47
- ? yield configuration.apiKey(keyParamName)
48
- : yield configuration.apiKey;
49
- object[keyParamName] = localVarApiKeyValue;
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
- return __awaiter(this, void 0, void 0, function* () {
68
- if (configuration && configuration.accessToken) {
69
- const accessToken = typeof configuration.accessToken === 'function'
70
- ? yield configuration.accessToken()
71
- : yield configuration.accessToken;
72
- object["Authorization"] = "Bearer " + accessToken;
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
- return __awaiter(this, void 0, void 0, function* () {
82
- if (configuration && configuration.accessToken) {
83
- const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
84
- ? yield configuration.accessToken(name, scopes)
85
- : yield configuration.accessToken;
86
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
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
- var _a;
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
  };
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.233
5
+ * The version of the OpenAPI document: 1.0.240
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.233
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 = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
22
+ this.baseOptions = {
23
+ ...param.baseOptions,
24
+ headers: {
25
+ ...param.baseOptions?.headers,
26
+ },
27
+ };
24
28
  this.formDataCtor = param.formDataCtor;
25
29
  }
26
30
  /**
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.233
5
+ * The version of the OpenAPI document: 1.0.240
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.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.233
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).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.233
5
+ * The version of the OpenAPI document: 1.0.240
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.233
8
+ * The version of the OpenAPI document: 1.0.240
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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
- # **getAvailableSlotsByClubById**
115
- > GetSlotsByClubById200Response getAvailableSlotsByClubById()
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 clubID: string; //Club id (default to undefined)
129
+ let id: string; // (default to undefined)
130
+ let sportId: string; // (default to undefined)
131
131
 
132
- const { status, data } = await apiInstance.getAvailableSlotsByClubById(
133
- clubID
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
- | **clubID** | [**string**] | Club id | defaults to undefined|
142
+ | **id** | [**string**] | | defaults to undefined|
143
+ | **sportId** | [**string**] | | defaults to undefined|
142
144
 
143
145
 
144
146
  ### Return type
145
147
 
146
- **GetSlotsByClubById200Response**
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
- # **getAvailableSlotsBySports**
166
- > GetAvailableSlotsBySports200Response getAvailableSlotsBySports()
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.getAvailableSlotsBySports(
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
- # **getAvailableSlotsBySportsAndDay**
219
- > GetAvailableSlotsBySports200Response getAvailableSlotsBySportsAndDay()
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 id: string; // (default to undefined)
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.getAvailableSlotsBySportsAndDay(
238
- id,
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
- | **id** | [**string**] | | defaults to undefined|
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
- **GetAvailableSlotsBySports200Response**
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 by sport and day | - |
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 Fréquence recommandée: Toutes les 30 minutes
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 Fréquence recommandée: Toutes les heures
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 Fréquence recommandée: Toutes les minutes
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 Fréquence recommandée: Toutes les minutes
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) Fréquence recommandée: Une fois par jour (2h du matin)
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 Fréquence recommandée: Toutes les minutes
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 Fréquence recommandée: Toutes les heures
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
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.233
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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.238",
3
+ "version": "1.0.240",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "declaration": true,
4
- "target": "ES6",
4
+ "target": "es2020",
5
5
  "module": "commonjs",
6
6
  "noImplicitAny": true,
7
7
  "outDir": "dist",