@tennac-booking/sdk 1.0.240 → 1.0.242

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/dist/esm/base.js CHANGED
@@ -30,11 +30,12 @@ export const COLLECTION_FORMATS = {
30
30
  */
31
31
  export class BaseAPI {
32
32
  constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
33
+ var _a;
33
34
  this.basePath = basePath;
34
35
  this.axios = axios;
35
36
  if (configuration) {
36
37
  this.configuration = configuration;
37
- this.basePath = configuration.basePath ?? basePath;
38
+ this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
38
39
  }
39
40
  }
40
41
  }
@@ -11,6 +11,15 @@
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
+ };
14
23
  import { RequiredError } from "./base";
15
24
  /**
16
25
  *
@@ -31,13 +40,15 @@ export const assertParamExists = function (functionName, paramName, paramValue)
31
40
  *
32
41
  * @export
33
42
  */
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
- }
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
+ });
41
52
  };
42
53
  /**
43
54
  *
@@ -52,25 +63,29 @@ export const setBasicAuthToObject = function (object, configuration) {
52
63
  *
53
64
  * @export
54
65
  */
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
- }
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
+ });
62
75
  };
63
76
  /**
64
77
  *
65
78
  * @export
66
79
  */
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
- }
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
+ });
74
89
  };
75
90
  function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
76
91
  if (parameter == null)
@@ -127,7 +142,8 @@ export const toPathString = function (url) {
127
142
  */
128
143
  export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
129
144
  return (axios = globalAxios, basePath = BASE_PATH) => {
130
- const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
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 });
131
147
  return axios.request(axiosRequestArgs);
132
148
  };
133
149
  };
@@ -13,18 +13,14 @@
13
13
  */
14
14
  export class Configuration {
15
15
  constructor(param = {}) {
16
+ var _a;
16
17
  this.apiKey = param.apiKey;
17
18
  this.username = param.username;
18
19
  this.password = param.password;
19
20
  this.accessToken = param.accessToken;
20
21
  this.basePath = param.basePath;
21
22
  this.serverIndex = param.serverIndex;
22
- this.baseOptions = {
23
- ...param.baseOptions,
24
- headers: {
25
- ...param.baseOptions?.headers,
26
- },
27
- };
23
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
28
24
  this.formDataCtor = param.formDataCtor;
29
25
  }
30
26
  /**
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
22
22
  **participationType** | **string** | | [default to undefined]
23
23
  **participants** | [**Array<EventUser>**](EventUser.md) | | [optional] [default to undefined]
24
24
  **teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
25
+ **registeredAvatars** | **Array<string>** | | [optional] [default to undefined]
25
26
  **playerLimit** | **number** | | [optional] [default to undefined]
26
27
  **teamLimit** | **number** | | [optional] [default to undefined]
27
28
  **playersPerTeam** | **number** | | [optional] [default to undefined]
@@ -60,6 +61,7 @@ const instance: EventResponse = {
60
61
  participationType,
61
62
  participants,
62
63
  teams,
64
+ registeredAvatars,
63
65
  playerLimit,
64
66
  teamLimit,
65
67
  playersPerTeam,
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/docs/UsersApi.md CHANGED
@@ -2050,12 +2050,16 @@ let q: string; // (default to undefined)
2050
2050
  let page: number; // (optional) (default to undefined)
2051
2051
  let limit: number; // (optional) (default to undefined)
2052
2052
  let excludeIds: Array<string>; // (optional) (default to undefined)
2053
+ let eventId: string; // (optional) (default to undefined)
2054
+ let openBookingId: string; // (optional) (default to undefined)
2053
2055
 
2054
2056
  const { status, data } = await apiInstance.searchPartner(
2055
2057
  q,
2056
2058
  page,
2057
2059
  limit,
2058
- excludeIds
2060
+ excludeIds,
2061
+ eventId,
2062
+ openBookingId
2059
2063
  );
2060
2064
  ```
2061
2065
 
@@ -2067,6 +2071,8 @@ const { status, data } = await apiInstance.searchPartner(
2067
2071
  | **page** | [**number**] | | (optional) defaults to undefined|
2068
2072
  | **limit** | [**number**] | | (optional) defaults to undefined|
2069
2073
  | **excludeIds** | **Array&lt;string&gt;** | | (optional) defaults to undefined|
2074
+ | **eventId** | [**string**] | | (optional) defaults to undefined|
2075
+ | **openBookingId** | [**string**] | | (optional) defaults to undefined|
2070
2076
 
2071
2077
 
2072
2078
  ### Return type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.240",
3
+ "version": "1.0.242",
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": "es2020",
4
+ "target": "ES6",
5
5
  "module": "commonjs",
6
6
  "noImplicitAny": true,
7
7
  "outDir": "dist",