@tennac-booking/sdk 1.0.220 → 1.0.222
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 +0 -1
- package/README.md +2 -2
- package/api.ts +45 -57
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +45 -57
- package/dist/api.js +14946 -9332
- package/dist/base.d.ts +1 -1
- package/dist/base.js +32 -11
- package/dist/common.d.ts +1 -1
- package/dist/common.js +133 -41
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +21 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingPopulated.md +2 -2
- package/docs/BookingSummary.md +0 -4
- package/docs/BookingsApi.md +1 -1
- package/docs/CreateBookingRequest.md +0 -2
- package/docs/CreateOpenBookingRequest.md +2 -2
- package/docs/JobsApi.md +7 -7
- package/docs/OpenBookingInfo.md +3 -3
- package/docs/PlayerPrice.md +3 -1
- package/index.ts +1 -1
- package/package.json +2 -4
- package/tsconfig.json +5 -2
- package/dist/esm/api.d.ts +0 -26477
- package/dist/esm/api.js +0 -17869
- package/dist/esm/base.d.ts +0 -66
- package/dist/esm/base.js +0 -60
- package/dist/esm/common.d.ts +0 -65
- package/dist/esm/common.js +0 -149
- package/dist/esm/configuration.d.ts +0 -91
- package/dist/esm/configuration.js +0 -40
- package/dist/esm/index.d.ts +0 -13
- package/dist/esm/index.js +0 -15
- package/tsconfig.esm.json +0 -7
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
|
@@ -5,16 +5,31 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.221
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
15
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
31
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
|
-
|
|
32
|
+
var axios_1 = require("axios");
|
|
18
33
|
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
19
34
|
/**
|
|
20
35
|
*
|
|
@@ -31,8 +46,10 @@ exports.COLLECTION_FORMATS = {
|
|
|
31
46
|
* @export
|
|
32
47
|
* @class BaseAPI
|
|
33
48
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
49
|
+
var BaseAPI = /** @class */ (function () {
|
|
50
|
+
function BaseAPI(configuration, basePath, axios) {
|
|
51
|
+
if (basePath === void 0) { basePath = exports.BASE_PATH; }
|
|
52
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
36
53
|
var _a;
|
|
37
54
|
this.basePath = basePath;
|
|
38
55
|
this.axios = axios;
|
|
@@ -41,7 +58,8 @@ class BaseAPI {
|
|
|
41
58
|
this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
|
|
42
59
|
}
|
|
43
60
|
}
|
|
44
|
-
|
|
61
|
+
return BaseAPI;
|
|
62
|
+
}());
|
|
45
63
|
exports.BaseAPI = BaseAPI;
|
|
46
64
|
;
|
|
47
65
|
/**
|
|
@@ -50,13 +68,16 @@ exports.BaseAPI = BaseAPI;
|
|
|
50
68
|
* @class RequiredError
|
|
51
69
|
* @extends {Error}
|
|
52
70
|
*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
71
|
+
var RequiredError = /** @class */ (function (_super) {
|
|
72
|
+
__extends(RequiredError, _super);
|
|
73
|
+
function RequiredError(field, msg) {
|
|
74
|
+
var _this = _super.call(this, msg) || this;
|
|
75
|
+
_this.field = field;
|
|
76
|
+
_this.name = "RequiredError";
|
|
77
|
+
return _this;
|
|
58
78
|
}
|
|
59
|
-
|
|
79
|
+
return RequiredError;
|
|
80
|
+
}(Error));
|
|
60
81
|
exports.RequiredError = RequiredError;
|
|
61
82
|
/**
|
|
62
83
|
*
|
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
|
@@ -5,13 +5,24 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.221
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
15
26
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
27
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
28
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -21,9 +32,36 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
32
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
33
|
});
|
|
23
34
|
};
|
|
35
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
36
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
37
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
38
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
|
+
function step(op) {
|
|
40
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
41
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
42
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
43
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
44
|
+
switch (op[0]) {
|
|
45
|
+
case 0: case 1: t = op; break;
|
|
46
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
47
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
48
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
49
|
+
default:
|
|
50
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
51
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
52
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
53
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
54
|
+
if (t[2]) _.ops.pop();
|
|
55
|
+
_.trys.pop(); continue;
|
|
56
|
+
}
|
|
57
|
+
op = body.call(thisArg, _);
|
|
58
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
59
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
60
|
+
}
|
|
61
|
+
};
|
|
24
62
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
63
|
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
26
|
-
|
|
64
|
+
var base_1 = require("./base");
|
|
27
65
|
/**
|
|
28
66
|
*
|
|
29
67
|
* @export
|
|
@@ -34,9 +72,9 @@ exports.DUMMY_BASE_URL = 'https://example.com';
|
|
|
34
72
|
* @throws {RequiredError}
|
|
35
73
|
* @export
|
|
36
74
|
*/
|
|
37
|
-
|
|
75
|
+
var assertParamExists = function (functionName, paramName, paramValue) {
|
|
38
76
|
if (paramValue === null || paramValue === undefined) {
|
|
39
|
-
throw new base_1.RequiredError(paramName,
|
|
77
|
+
throw new base_1.RequiredError(paramName, "Required parameter ".concat(paramName, " was null or undefined when calling ").concat(functionName, "."));
|
|
40
78
|
}
|
|
41
79
|
};
|
|
42
80
|
exports.assertParamExists = assertParamExists;
|
|
@@ -44,14 +82,29 @@ exports.assertParamExists = assertParamExists;
|
|
|
44
82
|
*
|
|
45
83
|
* @export
|
|
46
84
|
*/
|
|
47
|
-
|
|
48
|
-
return __awaiter(this, void 0, void 0, function
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
:
|
|
53
|
-
|
|
54
|
-
|
|
85
|
+
var setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
87
|
+
var localVarApiKeyValue, _a;
|
|
88
|
+
return __generator(this, function (_b) {
|
|
89
|
+
switch (_b.label) {
|
|
90
|
+
case 0:
|
|
91
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
92
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
93
|
+
return [4 /*yield*/, configuration.apiKey(keyParamName)];
|
|
94
|
+
case 1:
|
|
95
|
+
_a = _b.sent();
|
|
96
|
+
return [3 /*break*/, 4];
|
|
97
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
98
|
+
case 3:
|
|
99
|
+
_a = _b.sent();
|
|
100
|
+
_b.label = 4;
|
|
101
|
+
case 4:
|
|
102
|
+
localVarApiKeyValue = _a;
|
|
103
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
104
|
+
_b.label = 5;
|
|
105
|
+
case 5: return [2 /*return*/];
|
|
106
|
+
}
|
|
107
|
+
});
|
|
55
108
|
});
|
|
56
109
|
};
|
|
57
110
|
exports.setApiKeyToObject = setApiKeyToObject;
|
|
@@ -59,7 +112,7 @@ exports.setApiKeyToObject = setApiKeyToObject;
|
|
|
59
112
|
*
|
|
60
113
|
* @export
|
|
61
114
|
*/
|
|
62
|
-
|
|
115
|
+
var setBasicAuthToObject = function (object, configuration) {
|
|
63
116
|
if (configuration && (configuration.username || configuration.password)) {
|
|
64
117
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
65
118
|
}
|
|
@@ -69,14 +122,29 @@ exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
|
69
122
|
*
|
|
70
123
|
* @export
|
|
71
124
|
*/
|
|
72
|
-
|
|
73
|
-
return __awaiter(this, void 0, void 0, function
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
:
|
|
78
|
-
|
|
79
|
-
|
|
125
|
+
var setBearerAuthToObject = function (object, configuration) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
127
|
+
var accessToken, _a;
|
|
128
|
+
return __generator(this, function (_b) {
|
|
129
|
+
switch (_b.label) {
|
|
130
|
+
case 0:
|
|
131
|
+
if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
|
|
132
|
+
if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
|
|
133
|
+
return [4 /*yield*/, configuration.accessToken()];
|
|
134
|
+
case 1:
|
|
135
|
+
_a = _b.sent();
|
|
136
|
+
return [3 /*break*/, 4];
|
|
137
|
+
case 2: return [4 /*yield*/, configuration.accessToken];
|
|
138
|
+
case 3:
|
|
139
|
+
_a = _b.sent();
|
|
140
|
+
_b.label = 4;
|
|
141
|
+
case 4:
|
|
142
|
+
accessToken = _a;
|
|
143
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
144
|
+
_b.label = 5;
|
|
145
|
+
case 5: return [2 /*return*/];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
80
148
|
});
|
|
81
149
|
};
|
|
82
150
|
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
@@ -84,26 +152,44 @@ exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
|
84
152
|
*
|
|
85
153
|
* @export
|
|
86
154
|
*/
|
|
87
|
-
|
|
88
|
-
return __awaiter(this, void 0, void 0, function
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
:
|
|
93
|
-
|
|
94
|
-
|
|
155
|
+
var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
157
|
+
var localVarAccessTokenValue, _a;
|
|
158
|
+
return __generator(this, function (_b) {
|
|
159
|
+
switch (_b.label) {
|
|
160
|
+
case 0:
|
|
161
|
+
if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
|
|
162
|
+
if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
|
|
163
|
+
return [4 /*yield*/, configuration.accessToken(name, scopes)];
|
|
164
|
+
case 1:
|
|
165
|
+
_a = _b.sent();
|
|
166
|
+
return [3 /*break*/, 4];
|
|
167
|
+
case 2: return [4 /*yield*/, configuration.accessToken];
|
|
168
|
+
case 3:
|
|
169
|
+
_a = _b.sent();
|
|
170
|
+
_b.label = 4;
|
|
171
|
+
case 4:
|
|
172
|
+
localVarAccessTokenValue = _a;
|
|
173
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
174
|
+
_b.label = 5;
|
|
175
|
+
case 5: return [2 /*return*/];
|
|
176
|
+
}
|
|
177
|
+
});
|
|
95
178
|
});
|
|
96
179
|
};
|
|
97
180
|
exports.setOAuthToObject = setOAuthToObject;
|
|
98
|
-
function setFlattenedQueryParams(urlSearchParams, parameter, key
|
|
181
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key) {
|
|
182
|
+
if (key === void 0) { key = ""; }
|
|
99
183
|
if (parameter == null)
|
|
100
184
|
return;
|
|
101
185
|
if (typeof parameter === "object") {
|
|
102
186
|
if (Array.isArray(parameter)) {
|
|
103
|
-
parameter.forEach(item
|
|
187
|
+
parameter.forEach(function (item) { return setFlattenedQueryParams(urlSearchParams, item, key); });
|
|
104
188
|
}
|
|
105
189
|
else {
|
|
106
|
-
Object.keys(parameter).forEach(
|
|
190
|
+
Object.keys(parameter).forEach(function (currentKey) {
|
|
191
|
+
return setFlattenedQueryParams(urlSearchParams, parameter[currentKey], "".concat(key).concat(key !== '' ? '.' : '').concat(currentKey));
|
|
192
|
+
});
|
|
107
193
|
}
|
|
108
194
|
}
|
|
109
195
|
else {
|
|
@@ -119,8 +205,12 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
119
205
|
*
|
|
120
206
|
* @export
|
|
121
207
|
*/
|
|
122
|
-
|
|
123
|
-
|
|
208
|
+
var setSearchParams = function (url) {
|
|
209
|
+
var objects = [];
|
|
210
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
211
|
+
objects[_i - 1] = arguments[_i];
|
|
212
|
+
}
|
|
213
|
+
var searchParams = new URLSearchParams(url.search);
|
|
124
214
|
setFlattenedQueryParams(searchParams, objects);
|
|
125
215
|
url.search = searchParams.toString();
|
|
126
216
|
};
|
|
@@ -129,9 +219,9 @@ exports.setSearchParams = setSearchParams;
|
|
|
129
219
|
*
|
|
130
220
|
* @export
|
|
131
221
|
*/
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
222
|
+
var serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
223
|
+
var nonString = typeof value !== 'string';
|
|
224
|
+
var needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
135
225
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
136
226
|
: nonString;
|
|
137
227
|
return needsSerialization
|
|
@@ -143,7 +233,7 @@ exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
|
143
233
|
*
|
|
144
234
|
* @export
|
|
145
235
|
*/
|
|
146
|
-
|
|
236
|
+
var toPathString = function (url) {
|
|
147
237
|
return url.pathname + url.search + url.hash;
|
|
148
238
|
};
|
|
149
239
|
exports.toPathString = toPathString;
|
|
@@ -151,10 +241,12 @@ exports.toPathString = toPathString;
|
|
|
151
241
|
*
|
|
152
242
|
* @export
|
|
153
243
|
*/
|
|
154
|
-
|
|
155
|
-
return (axios
|
|
244
|
+
var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
245
|
+
return function (axios, basePath) {
|
|
156
246
|
var _a;
|
|
157
|
-
|
|
247
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
248
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
249
|
+
var axiosRequestArgs = __assign(__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 });
|
|
158
250
|
return axios.request(axiosRequestArgs);
|
|
159
251
|
};
|
|
160
252
|
};
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -5,17 +5,29 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.221
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
15
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
27
|
exports.Configuration = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
28
|
+
var Configuration = /** @class */ (function () {
|
|
29
|
+
function Configuration(param) {
|
|
30
|
+
if (param === void 0) { param = {}; }
|
|
19
31
|
var _a;
|
|
20
32
|
this.apiKey = param.apiKey;
|
|
21
33
|
this.username = param.username;
|
|
@@ -23,7 +35,7 @@ class Configuration {
|
|
|
23
35
|
this.accessToken = param.accessToken;
|
|
24
36
|
this.basePath = param.basePath;
|
|
25
37
|
this.serverIndex = param.serverIndex;
|
|
26
|
-
this.baseOptions =
|
|
38
|
+
this.baseOptions = __assign(__assign({}, param.baseOptions), { headers: __assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
27
39
|
this.formDataCtor = param.formDataCtor;
|
|
28
40
|
}
|
|
29
41
|
/**
|
|
@@ -36,9 +48,10 @@ class Configuration {
|
|
|
36
48
|
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
37
49
|
* @return True if the given MIME is JSON, false otherwise.
|
|
38
50
|
*/
|
|
39
|
-
isJsonMime(mime) {
|
|
40
|
-
|
|
51
|
+
Configuration.prototype.isJsonMime = function (mime) {
|
|
52
|
+
var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
41
53
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
42
|
-
}
|
|
43
|
-
|
|
54
|
+
};
|
|
55
|
+
return Configuration;
|
|
56
|
+
}());
|
|
44
57
|
exports.Configuration = Configuration;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/BookingPopulated.md
CHANGED
|
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
|
|
|
24
24
|
**isOpen** | **boolean** | | [default to undefined]
|
|
25
25
|
**description** | **string** | | [optional] [default to undefined]
|
|
26
26
|
**minLevel** | **string** | | [optional] [default to undefined]
|
|
27
|
-
**
|
|
27
|
+
**maxPlayersDesired** | **number** | | [optional] [default to undefined]
|
|
28
28
|
|
|
29
29
|
## Example
|
|
30
30
|
|
|
@@ -51,7 +51,7 @@ const instance: BookingPopulated = {
|
|
|
51
51
|
isOpen,
|
|
52
52
|
description,
|
|
53
53
|
minLevel,
|
|
54
|
-
|
|
54
|
+
maxPlayersDesired,
|
|
55
55
|
};
|
|
56
56
|
```
|
|
57
57
|
|
package/docs/BookingSummary.md
CHANGED
|
@@ -16,8 +16,6 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**slotIds** | **Array<string>** | | [default to undefined]
|
|
17
17
|
**isPublic** | **boolean** | | [default to undefined]
|
|
18
18
|
**isOpen** | **boolean** | | [default to undefined]
|
|
19
|
-
**maxPlayers** | **number** | | [optional] [default to undefined]
|
|
20
|
-
**maxPlayersDesired** | **number** | | [optional] [default to undefined]
|
|
21
19
|
**description** | **string** | | [optional] [default to undefined]
|
|
22
20
|
**minLevel** | **string** | | [optional] [default to undefined]
|
|
23
21
|
**initialPlayers** | [**Array<BookingPlayerInfo>**](BookingPlayerInfo.md) | | [optional] [default to undefined]
|
|
@@ -72,8 +70,6 @@ const instance: BookingSummary = {
|
|
|
72
70
|
slotIds,
|
|
73
71
|
isPublic,
|
|
74
72
|
isOpen,
|
|
75
|
-
maxPlayers,
|
|
76
|
-
maxPlayersDesired,
|
|
77
73
|
description,
|
|
78
74
|
minLevel,
|
|
79
75
|
initialPlayers,
|
package/docs/BookingsApi.md
CHANGED
|
@@ -279,7 +279,7 @@ No authorization required
|
|
|
279
279
|
# **getOpenBookingBasePrice**
|
|
280
280
|
> OpenBookingBasePriceResponse getOpenBookingBasePrice()
|
|
281
281
|
|
|
282
|
-
Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
|
|
282
|
+
Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur stocké lors de la création.
|
|
283
283
|
|
|
284
284
|
### Example
|
|
285
285
|
|
|
@@ -12,7 +12,6 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
|
|
13
13
|
**creditToUseInCents** | **number** | | [optional] [default to undefined]
|
|
14
14
|
**maxPlayersDesired** | **number** | Pour créneau ouvert: nombre maximal de joueurs souhaités (incluant le créateur) | [optional] [default to undefined]
|
|
15
|
-
**maxPlayers** | **number** | Pour créneau ouvert: nombre maximal de joueurs total (incluant le créateur) - alias de maxPlayersDesired | [optional] [default to undefined]
|
|
16
15
|
|
|
17
16
|
## Example
|
|
18
17
|
|
|
@@ -27,7 +26,6 @@ const instance: CreateBookingRequest = {
|
|
|
27
26
|
useDefaultPaymentMethod,
|
|
28
27
|
creditToUseInCents,
|
|
29
28
|
maxPlayersDesired,
|
|
30
|
-
maxPlayers,
|
|
31
29
|
};
|
|
32
30
|
```
|
|
33
31
|
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
12
12
|
**useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
|
|
13
13
|
**creditToUseInCents** | **number** | Crédit à utiliser en centimes | [optional] [default to undefined]
|
|
14
|
-
**
|
|
14
|
+
**maxPlayersDesired** | **number** | Nombre maximal de joueurs souhaités (incluant le créateur) | [default to undefined]
|
|
15
15
|
**description** | **string** | Description de la réservation ouverte | [optional] [default to undefined]
|
|
16
16
|
**minLevel** | **string** | Niveau minimal souhaité pour rejoindre | [optional] [default to undefined]
|
|
17
17
|
|
|
@@ -27,7 +27,7 @@ const instance: CreateOpenBookingRequest = {
|
|
|
27
27
|
paymentMethod,
|
|
28
28
|
useDefaultPaymentMethod,
|
|
29
29
|
creditToUseInCents,
|
|
30
|
-
|
|
30
|
+
maxPlayersDesired,
|
|
31
31
|
description,
|
|
32
32
|
minLevel,
|
|
33
33
|
};
|
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/docs/OpenBookingInfo.md
CHANGED
|
@@ -19,9 +19,9 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**sport** | [**OpenBookingSportInfo**](OpenBookingSportInfo.md) | | [optional] [default to undefined]
|
|
20
20
|
**minLevel** | **string** | Niveau minimal souhaité | [optional] [default to undefined]
|
|
21
21
|
**description** | **string** | Description de la réservation | [optional] [default to undefined]
|
|
22
|
-
**maxPlayers** | **number** | Nombre maximal de joueurs | [optional] [default to undefined]
|
|
22
|
+
**maxPlayers** | **number** | Nombre maximal de joueurs souhaités | [optional] [default to undefined]
|
|
23
23
|
**currentPlayersCount** | **number** | Nombre de joueurs actuels | [default to undefined]
|
|
24
|
-
**
|
|
24
|
+
**joinPrice** | **number** | Prix de base pour rejoindre la réservation (en centimes, stocké lors de la création) | [optional] [default to undefined]
|
|
25
25
|
|
|
26
26
|
## Example
|
|
27
27
|
|
|
@@ -45,7 +45,7 @@ const instance: OpenBookingInfo = {
|
|
|
45
45
|
description,
|
|
46
46
|
maxPlayers,
|
|
47
47
|
currentPlayersCount,
|
|
48
|
-
|
|
48
|
+
joinPrice,
|
|
49
49
|
};
|
|
50
50
|
```
|
|
51
51
|
|
package/docs/PlayerPrice.md
CHANGED
|
@@ -8,10 +8,11 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**playerId** | **string** | | [default to undefined]
|
|
9
9
|
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**subscriptions** | [**Array<SubscriptionInfo>**](SubscriptionInfo.md) | | [default to undefined]
|
|
11
|
+
**subscriptions** | [**Array<SubscriptionInfo>**](SubscriptionInfo.md) | | [optional] [default to undefined]
|
|
12
12
|
**creditAvailablesInCents** | **number** | | [optional] [default to undefined]
|
|
13
13
|
**creditUsedInCents** | **number** | | [optional] [default to undefined]
|
|
14
14
|
**price** | **number** | | [default to undefined]
|
|
15
|
+
**paysAlsoFor** | **Array<string>** | | [optional] [default to undefined]
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const instance: PlayerPrice = {
|
|
|
26
27
|
creditAvailablesInCents,
|
|
27
28
|
creditUsedInCents,
|
|
28
29
|
price,
|
|
30
|
+
paysAlsoFor,
|
|
29
31
|
};
|
|
30
32
|
```
|
|
31
33
|
|
package/index.ts
CHANGED