@kohost/api-client 4.0.4 → 4.0.5
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/{chunk-EBJTC6MA.js → chunk-5I2BBUZP.js} +11 -1
- package/dist/{chunk-EBJTC6MA.js.map → chunk-5I2BBUZP.js.map} +1 -1
- package/dist/{chunk-HKJ2B2AA.js → chunk-FU4IK6I4.js} +3 -1
- package/dist/{chunk-MYWOGDCQ.js → chunk-SHLRCTB4.js} +7 -3
- package/dist/{chunk-MYWOGDCQ.js.map → chunk-SHLRCTB4.js.map} +1 -1
- package/dist/{chunk-KBBL6OJS.js → chunk-SLDNFNED.js} +290 -90
- package/dist/{chunk-KBBL6OJS.js.map → chunk-SLDNFNED.js.map} +1 -1
- package/dist/{chunk-36WNTEIW.js → chunk-SORMAXAX.js} +35 -2
- package/dist/{chunk-36WNTEIW.js.map → chunk-SORMAXAX.js.map} +1 -1
- package/dist/{chunk-W2G36LNI.js → chunk-UZQ2AWUY.js} +8 -1
- package/dist/{chunk-W2G36LNI.js.map → chunk-UZQ2AWUY.js.map} +1 -1
- package/dist/client.cjs +39 -7
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +39 -9
- package/dist/client.js.map +1 -1
- package/dist/commands.cjs +85 -0
- package/dist/commands.cjs.map +1 -1
- package/dist/commands.js +87 -1
- package/dist/commands.js.map +1 -1
- package/dist/defs.js +1 -1
- package/dist/errors.cjs +37 -0
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.js +3 -3
- package/dist/events.cjs +4 -0
- package/dist/events.cjs.map +1 -1
- package/dist/events.js +2 -2
- package/dist/index.cjs +1098 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1098 -96
- package/dist/index.js.map +1 -1
- package/dist/models.cjs +292 -86
- package/dist/models.cjs.map +1 -1
- package/dist/models.js +3 -3
- package/dist/socketIoClient.cjs +7 -3
- package/dist/socketIoClient.cjs.map +1 -1
- package/dist/socketIoClient.d.cts +1 -1
- package/dist/socketIoClient.d.ts +1 -1
- package/dist/socketIoClient.js +9 -4
- package/dist/socketIoClient.js.map +1 -1
- package/dist/useCases.cjs +640 -0
- package/dist/useCases.cjs.map +1 -1
- package/dist/useCases.js +640 -2
- package/dist/useCases.js.map +1 -1
- package/dist/utils.cjs +328 -86
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +10 -5
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-HKJ2B2AA.js.map → chunk-FU4IK6I4.js.map} +0 -0
package/dist/utils.cjs
CHANGED
|
@@ -2,6 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
5
6
|
var __commonJS = (cb, mod) => function __require() {
|
|
6
7
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
7
8
|
};
|
|
@@ -23,7 +24,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
23
24
|
var require_fast_deep_equal = __commonJS({
|
|
24
25
|
"node_modules/fast-deep-equal/index.js"(exports, module2) {
|
|
25
26
|
"use strict";
|
|
26
|
-
module2.exports = function equal(a, b) {
|
|
27
|
+
module2.exports = /* @__PURE__ */ __name(function equal(a, b) {
|
|
27
28
|
if (a === b) return true;
|
|
28
29
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
29
30
|
if (a.constructor !== b.constructor) return false;
|
|
@@ -50,7 +51,7 @@ var require_fast_deep_equal = __commonJS({
|
|
|
50
51
|
return true;
|
|
51
52
|
}
|
|
52
53
|
return a !== a && b !== b;
|
|
53
|
-
};
|
|
54
|
+
}, "equal");
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
|
|
@@ -86,6 +87,7 @@ var require_ucs2length = __commonJS({
|
|
|
86
87
|
}
|
|
87
88
|
return length;
|
|
88
89
|
}
|
|
90
|
+
__name(ucs2length, "ucs2length");
|
|
89
91
|
exports.default = ucs2length;
|
|
90
92
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
91
93
|
}
|
|
@@ -100,6 +102,7 @@ var require_formats = __commonJS({
|
|
|
100
102
|
function fmtDef(validate, compare) {
|
|
101
103
|
return { validate, compare };
|
|
102
104
|
}
|
|
105
|
+
__name(fmtDef, "fmtDef");
|
|
103
106
|
exports.fullFormats = {
|
|
104
107
|
// date: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
105
108
|
date: fmtDef(date, compareDate),
|
|
@@ -166,6 +169,7 @@ var require_formats = __commonJS({
|
|
|
166
169
|
function isLeapYear(year) {
|
|
167
170
|
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
168
171
|
}
|
|
172
|
+
__name(isLeapYear, "isLeapYear");
|
|
169
173
|
var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
170
174
|
var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
171
175
|
function date(str) {
|
|
@@ -177,6 +181,7 @@ var require_formats = __commonJS({
|
|
|
177
181
|
const day = +matches[3];
|
|
178
182
|
return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]);
|
|
179
183
|
}
|
|
184
|
+
__name(date, "date");
|
|
180
185
|
function compareDate(d1, d2) {
|
|
181
186
|
if (!(d1 && d2))
|
|
182
187
|
return void 0;
|
|
@@ -186,9 +191,10 @@ var require_formats = __commonJS({
|
|
|
186
191
|
return -1;
|
|
187
192
|
return 0;
|
|
188
193
|
}
|
|
194
|
+
__name(compareDate, "compareDate");
|
|
189
195
|
var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
|
|
190
196
|
function getTime(strictTimeZone) {
|
|
191
|
-
return function time(str) {
|
|
197
|
+
return /* @__PURE__ */ __name(function time(str) {
|
|
192
198
|
const matches = TIME.exec(str);
|
|
193
199
|
if (!matches)
|
|
194
200
|
return false;
|
|
@@ -206,8 +212,9 @@ var require_formats = __commonJS({
|
|
|
206
212
|
const utcMin = min - tzM * tzSign;
|
|
207
213
|
const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0);
|
|
208
214
|
return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61;
|
|
209
|
-
};
|
|
215
|
+
}, "time");
|
|
210
216
|
}
|
|
217
|
+
__name(getTime, "getTime");
|
|
211
218
|
function compareTime(s1, s2) {
|
|
212
219
|
if (!(s1 && s2))
|
|
213
220
|
return void 0;
|
|
@@ -217,6 +224,7 @@ var require_formats = __commonJS({
|
|
|
217
224
|
return void 0;
|
|
218
225
|
return t1 - t2;
|
|
219
226
|
}
|
|
227
|
+
__name(compareTime, "compareTime");
|
|
220
228
|
function compareIsoTime(t1, t2) {
|
|
221
229
|
if (!(t1 && t2))
|
|
222
230
|
return void 0;
|
|
@@ -232,14 +240,16 @@ var require_formats = __commonJS({
|
|
|
232
240
|
return -1;
|
|
233
241
|
return 0;
|
|
234
242
|
}
|
|
243
|
+
__name(compareIsoTime, "compareIsoTime");
|
|
235
244
|
var DATE_TIME_SEPARATOR = /t|\s/i;
|
|
236
245
|
function getDateTime(strictTimeZone) {
|
|
237
246
|
const time = getTime(strictTimeZone);
|
|
238
|
-
return function date_time(str) {
|
|
247
|
+
return /* @__PURE__ */ __name(function date_time(str) {
|
|
239
248
|
const dateTime = str.split(DATE_TIME_SEPARATOR);
|
|
240
249
|
return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1]);
|
|
241
|
-
};
|
|
250
|
+
}, "date_time");
|
|
242
251
|
}
|
|
252
|
+
__name(getDateTime, "getDateTime");
|
|
243
253
|
function compareDateTime(dt1, dt2) {
|
|
244
254
|
if (!(dt1 && dt2))
|
|
245
255
|
return void 0;
|
|
@@ -249,6 +259,7 @@ var require_formats = __commonJS({
|
|
|
249
259
|
return void 0;
|
|
250
260
|
return d1 - d2;
|
|
251
261
|
}
|
|
262
|
+
__name(compareDateTime, "compareDateTime");
|
|
252
263
|
function compareIsoDateTime(dt1, dt2) {
|
|
253
264
|
if (!(dt1 && dt2))
|
|
254
265
|
return void 0;
|
|
@@ -259,27 +270,33 @@ var require_formats = __commonJS({
|
|
|
259
270
|
return void 0;
|
|
260
271
|
return res || compareTime(t1, t2);
|
|
261
272
|
}
|
|
273
|
+
__name(compareIsoDateTime, "compareIsoDateTime");
|
|
262
274
|
var NOT_URI_FRAGMENT = /\/|:/;
|
|
263
275
|
var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
264
276
|
function uri(str) {
|
|
265
277
|
return NOT_URI_FRAGMENT.test(str) && URI.test(str);
|
|
266
278
|
}
|
|
279
|
+
__name(uri, "uri");
|
|
267
280
|
var BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
|
|
268
281
|
function byte(str) {
|
|
269
282
|
BYTE.lastIndex = 0;
|
|
270
283
|
return BYTE.test(str);
|
|
271
284
|
}
|
|
285
|
+
__name(byte, "byte");
|
|
272
286
|
var MIN_INT32 = -(2 ** 31);
|
|
273
287
|
var MAX_INT32 = 2 ** 31 - 1;
|
|
274
288
|
function validateInt32(value) {
|
|
275
289
|
return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;
|
|
276
290
|
}
|
|
291
|
+
__name(validateInt32, "validateInt32");
|
|
277
292
|
function validateInt64(value) {
|
|
278
293
|
return Number.isInteger(value);
|
|
279
294
|
}
|
|
295
|
+
__name(validateInt64, "validateInt64");
|
|
280
296
|
function validateNumber() {
|
|
281
297
|
return true;
|
|
282
298
|
}
|
|
299
|
+
__name(validateNumber, "validateNumber");
|
|
283
300
|
var Z_ANCHOR = /[^\\]\\Z/;
|
|
284
301
|
function regex(str) {
|
|
285
302
|
if (Z_ANCHOR.test(str))
|
|
@@ -291,6 +308,7 @@ var require_formats = __commonJS({
|
|
|
291
308
|
return false;
|
|
292
309
|
}
|
|
293
310
|
}
|
|
311
|
+
__name(regex, "regex");
|
|
294
312
|
}
|
|
295
313
|
});
|
|
296
314
|
|
|
@@ -305,6 +323,9 @@ module.exports = __toCommonJS(utils_exports);
|
|
|
305
323
|
|
|
306
324
|
// src/errors/appError.js
|
|
307
325
|
var AppError = class _AppError extends Error {
|
|
326
|
+
static {
|
|
327
|
+
__name(this, "AppError");
|
|
328
|
+
}
|
|
308
329
|
constructor(message = "Internal Server Error", options) {
|
|
309
330
|
super(message, options);
|
|
310
331
|
this.type = this.constructor.name;
|
|
@@ -316,6 +337,9 @@ var AppError = class _AppError extends Error {
|
|
|
316
337
|
|
|
317
338
|
// src/errors/authenticationError.js
|
|
318
339
|
var AuthenticationError = class _AuthenticationError extends AppError {
|
|
340
|
+
static {
|
|
341
|
+
__name(this, "AuthenticationError");
|
|
342
|
+
}
|
|
319
343
|
constructor(message = "Authentication Error", options = {}) {
|
|
320
344
|
super(message, options);
|
|
321
345
|
this.statusCode = 401;
|
|
@@ -326,6 +350,9 @@ var AuthenticationError = class _AuthenticationError extends AppError {
|
|
|
326
350
|
|
|
327
351
|
// src/errors/authorizationError.js
|
|
328
352
|
var AuthorizationError = class _AuthorizationError extends AppError {
|
|
353
|
+
static {
|
|
354
|
+
__name(this, "AuthorizationError");
|
|
355
|
+
}
|
|
329
356
|
constructor(message = "Authorization Error", options = {}) {
|
|
330
357
|
super(message, options);
|
|
331
358
|
this.statusCode = 403;
|
|
@@ -336,6 +363,9 @@ var AuthorizationError = class _AuthorizationError extends AppError {
|
|
|
336
363
|
|
|
337
364
|
// src/errors/conflictError.js
|
|
338
365
|
var ConflictError = class _ConflictError extends AppError {
|
|
366
|
+
static {
|
|
367
|
+
__name(this, "ConflictError");
|
|
368
|
+
}
|
|
339
369
|
constructor(message = "Bad Request", options = {}) {
|
|
340
370
|
super(message, options);
|
|
341
371
|
this.statusCode = 409;
|
|
@@ -346,6 +376,9 @@ var ConflictError = class _ConflictError extends AppError {
|
|
|
346
376
|
|
|
347
377
|
// src/errors/deviceCommError.js
|
|
348
378
|
var DeviceCommError = class _DeviceCommError extends AppError {
|
|
379
|
+
static {
|
|
380
|
+
__name(this, "DeviceCommError");
|
|
381
|
+
}
|
|
349
382
|
constructor(message = "Device Communication Error", options = {}) {
|
|
350
383
|
super(message, options);
|
|
351
384
|
this.statusCode = 503;
|
|
@@ -356,6 +389,9 @@ var DeviceCommError = class _DeviceCommError extends AppError {
|
|
|
356
389
|
|
|
357
390
|
// src/errors/loginError.js
|
|
358
391
|
var LoginError = class _LoginError extends AppError {
|
|
392
|
+
static {
|
|
393
|
+
__name(this, "LoginError");
|
|
394
|
+
}
|
|
359
395
|
constructor(message = "Invalid Login information provided", options = {}) {
|
|
360
396
|
super(message, options);
|
|
361
397
|
this.statusCode = 401;
|
|
@@ -366,6 +402,9 @@ var LoginError = class _LoginError extends AppError {
|
|
|
366
402
|
|
|
367
403
|
// src/errors/notFoundError.js
|
|
368
404
|
var NotFoundError = class _NotFoundError extends AppError {
|
|
405
|
+
static {
|
|
406
|
+
__name(this, "NotFoundError");
|
|
407
|
+
}
|
|
369
408
|
constructor(message = "Resource Not Found", options = {}) {
|
|
370
409
|
super(message, options);
|
|
371
410
|
this.statusCode = 404;
|
|
@@ -376,6 +415,9 @@ var NotFoundError = class _NotFoundError extends AppError {
|
|
|
376
415
|
|
|
377
416
|
// src/errors/requestError.js
|
|
378
417
|
var RequestError = class _RequestError extends AppError {
|
|
418
|
+
static {
|
|
419
|
+
__name(this, "RequestError");
|
|
420
|
+
}
|
|
379
421
|
constructor(message = "Bad Request", options = {}) {
|
|
380
422
|
super(message, options);
|
|
381
423
|
this.statusCode = 400;
|
|
@@ -386,6 +428,9 @@ var RequestError = class _RequestError extends AppError {
|
|
|
386
428
|
|
|
387
429
|
// src/errors/systemCommError.js
|
|
388
430
|
var SystemCommError = class _SystemCommError extends AppError {
|
|
431
|
+
static {
|
|
432
|
+
__name(this, "SystemCommError");
|
|
433
|
+
}
|
|
389
434
|
constructor(message = "System Communication Error", options = {}) {
|
|
390
435
|
super(message, options);
|
|
391
436
|
this.statusCode = 503;
|
|
@@ -396,6 +441,9 @@ var SystemCommError = class _SystemCommError extends AppError {
|
|
|
396
441
|
|
|
397
442
|
// src/errors/tokenExpiredError.js
|
|
398
443
|
var TokenExpiredError = class _TokenExpiredError extends AppError {
|
|
444
|
+
static {
|
|
445
|
+
__name(this, "TokenExpiredError");
|
|
446
|
+
}
|
|
399
447
|
constructor(message = "Token Expired", options = {}) {
|
|
400
448
|
super(message, options);
|
|
401
449
|
this.statusCode = 401;
|
|
@@ -406,6 +454,9 @@ var TokenExpiredError = class _TokenExpiredError extends AppError {
|
|
|
406
454
|
|
|
407
455
|
// src/errors/unprocessableRequestError.js
|
|
408
456
|
var UnprocessableRequestError = class _UnprocessableRequestError extends AppError {
|
|
457
|
+
static {
|
|
458
|
+
__name(this, "UnprocessableRequestError");
|
|
459
|
+
}
|
|
409
460
|
constructor(message = "Unprocessable Request Error", options = {}) {
|
|
410
461
|
super(message, options);
|
|
411
462
|
this.statusCode = 422;
|
|
@@ -416,6 +467,9 @@ var UnprocessableRequestError = class _UnprocessableRequestError extends AppErro
|
|
|
416
467
|
|
|
417
468
|
// src/errors/validationError.js
|
|
418
469
|
var ValidationError = class _ValidationError extends AppError {
|
|
470
|
+
static {
|
|
471
|
+
__name(this, "ValidationError");
|
|
472
|
+
}
|
|
419
473
|
constructor(message = "Validation Error", options = {}) {
|
|
420
474
|
super(message, options);
|
|
421
475
|
this.statusCode = 400;
|
|
@@ -507,6 +561,9 @@ var amqpExchanges = {
|
|
|
507
561
|
|
|
508
562
|
// src/events/event.js
|
|
509
563
|
var Event = class {
|
|
564
|
+
static {
|
|
565
|
+
__name(this, "Event");
|
|
566
|
+
}
|
|
510
567
|
constructor(data, context = {}) {
|
|
511
568
|
this.data = [];
|
|
512
569
|
this.context = context;
|
|
@@ -933,6 +990,9 @@ var SystemWindowCoveringUpdate = class extends Event {
|
|
|
933
990
|
|
|
934
991
|
// src/models/entity.js
|
|
935
992
|
var Entity = class {
|
|
993
|
+
static {
|
|
994
|
+
__name(this, "Entity");
|
|
995
|
+
}
|
|
936
996
|
constructor(data) {
|
|
937
997
|
if (!this.schema) {
|
|
938
998
|
throw new Error("Schema is not defined");
|
|
@@ -1251,6 +1311,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1251
1311
|
validate12.errors = vErrors;
|
|
1252
1312
|
return errors === 0;
|
|
1253
1313
|
}
|
|
1314
|
+
__name(validate12, "validate12");
|
|
1254
1315
|
function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1255
1316
|
let vErrors = null;
|
|
1256
1317
|
let errors = 0;
|
|
@@ -2105,6 +2166,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2105
2166
|
validate10.errors = vErrors;
|
|
2106
2167
|
return errors === 0;
|
|
2107
2168
|
}
|
|
2169
|
+
__name(validate10, "validate10");
|
|
2108
2170
|
var validateAnnouncement = validate14;
|
|
2109
2171
|
var schema21 = {
|
|
2110
2172
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -2653,6 +2715,7 @@ function validate15(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2653
2715
|
validate15.errors = vErrors;
|
|
2654
2716
|
return errors === 0;
|
|
2655
2717
|
}
|
|
2718
|
+
__name(validate15, "validate15");
|
|
2656
2719
|
function validate14(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
2657
2720
|
let vErrors = null;
|
|
2658
2721
|
let errors = 0;
|
|
@@ -3001,6 +3064,7 @@ function validate14(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3001
3064
|
validate14.errors = vErrors;
|
|
3002
3065
|
return errors === 0;
|
|
3003
3066
|
}
|
|
3067
|
+
__name(validate14, "validate14");
|
|
3004
3068
|
var validateCamera = validate17;
|
|
3005
3069
|
var schema29 = {
|
|
3006
3070
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -3196,6 +3260,7 @@ function validate18(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3196
3260
|
validate18.errors = vErrors;
|
|
3197
3261
|
return errors === 0;
|
|
3198
3262
|
}
|
|
3263
|
+
__name(validate18, "validate18");
|
|
3199
3264
|
function validate17(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3200
3265
|
let vErrors = null;
|
|
3201
3266
|
let errors = 0;
|
|
@@ -3917,6 +3982,7 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3917
3982
|
validate17.errors = vErrors;
|
|
3918
3983
|
return errors === 0;
|
|
3919
3984
|
}
|
|
3985
|
+
__name(validate17, "validate17");
|
|
3920
3986
|
var validateCategory = validate20;
|
|
3921
3987
|
var schema38 = {
|
|
3922
3988
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -4255,6 +4321,7 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4255
4321
|
validate20.errors = vErrors;
|
|
4256
4322
|
return errors === 0;
|
|
4257
4323
|
}
|
|
4324
|
+
__name(validate20, "validate20");
|
|
4258
4325
|
var validateCourtesy = validate22;
|
|
4259
4326
|
var schema42 = {
|
|
4260
4327
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -4391,6 +4458,7 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4391
4458
|
validate23.errors = vErrors;
|
|
4392
4459
|
return errors === 0;
|
|
4393
4460
|
}
|
|
4461
|
+
__name(validate23, "validate23");
|
|
4394
4462
|
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4395
4463
|
let vErrors = null;
|
|
4396
4464
|
let errors = 0;
|
|
@@ -4863,6 +4931,7 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4863
4931
|
validate22.errors = vErrors;
|
|
4864
4932
|
return errors === 0;
|
|
4865
4933
|
}
|
|
4934
|
+
__name(validate22, "validate22");
|
|
4866
4935
|
var validateCredential = validate25;
|
|
4867
4936
|
var schema52 = {
|
|
4868
4937
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -5237,6 +5306,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5237
5306
|
validate25.errors = vErrors;
|
|
5238
5307
|
return errors === 0;
|
|
5239
5308
|
}
|
|
5309
|
+
__name(validate25, "validate25");
|
|
5240
5310
|
var validateDeviceRouter = validate26;
|
|
5241
5311
|
var schema56 = {
|
|
5242
5312
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -5450,6 +5520,7 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5450
5520
|
validate26.errors = vErrors;
|
|
5451
5521
|
return errors === 0;
|
|
5452
5522
|
}
|
|
5523
|
+
__name(validate26, "validate26");
|
|
5453
5524
|
var validateDimmer = validate27;
|
|
5454
5525
|
var schema58 = {
|
|
5455
5526
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -5580,6 +5651,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5580
5651
|
validate28.errors = vErrors;
|
|
5581
5652
|
return errors === 0;
|
|
5582
5653
|
}
|
|
5654
|
+
__name(validate28, "validate28");
|
|
5583
5655
|
function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
5584
5656
|
let vErrors = null;
|
|
5585
5657
|
let errors = 0;
|
|
@@ -5990,6 +6062,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5990
6062
|
validate27.errors = vErrors;
|
|
5991
6063
|
return errors === 0;
|
|
5992
6064
|
}
|
|
6065
|
+
__name(validate27, "validate27");
|
|
5993
6066
|
var validateDiscoveredDevice = validate30;
|
|
5994
6067
|
var schema67 = {
|
|
5995
6068
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -6331,6 +6404,7 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6331
6404
|
validate30.errors = vErrors;
|
|
6332
6405
|
return errors === 0;
|
|
6333
6406
|
}
|
|
6407
|
+
__name(validate30, "validate30");
|
|
6334
6408
|
var validateEmailMessage = validate31;
|
|
6335
6409
|
var schema70 = {
|
|
6336
6410
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -6853,6 +6927,7 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6853
6927
|
validate31.errors = vErrors;
|
|
6854
6928
|
return errors === 0;
|
|
6855
6929
|
}
|
|
6930
|
+
__name(validate31, "validate31");
|
|
6856
6931
|
var validateEnergyReport = validate32;
|
|
6857
6932
|
var schema75 = {
|
|
6858
6933
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -7701,6 +7776,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7701
7776
|
validate32.errors = vErrors;
|
|
7702
7777
|
return errors === 0;
|
|
7703
7778
|
}
|
|
7779
|
+
__name(validate32, "validate32");
|
|
7704
7780
|
var validateEnergyReportShard = validate33;
|
|
7705
7781
|
var schema80 = {
|
|
7706
7782
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -8507,6 +8583,7 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8507
8583
|
validate33.errors = vErrors;
|
|
8508
8584
|
return errors === 0;
|
|
8509
8585
|
}
|
|
8586
|
+
__name(validate33, "validate33");
|
|
8510
8587
|
var validateGateway = validate34;
|
|
8511
8588
|
function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
8512
8589
|
let vErrors = null;
|
|
@@ -8615,6 +8692,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8615
8692
|
validate35.errors = vErrors;
|
|
8616
8693
|
return errors === 0;
|
|
8617
8694
|
}
|
|
8695
|
+
__name(validate35, "validate35");
|
|
8618
8696
|
function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
8619
8697
|
let vErrors = null;
|
|
8620
8698
|
let errors = 0;
|
|
@@ -8958,6 +9036,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8958
9036
|
validate34.errors = vErrors;
|
|
8959
9037
|
return errors === 0;
|
|
8960
9038
|
}
|
|
9039
|
+
__name(validate34, "validate34");
|
|
8961
9040
|
var validateIdentification = validate37;
|
|
8962
9041
|
var schema95 = {
|
|
8963
9042
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -9377,6 +9456,7 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9377
9456
|
validate37.errors = vErrors;
|
|
9378
9457
|
return errors === 0;
|
|
9379
9458
|
}
|
|
9459
|
+
__name(validate37, "validate37");
|
|
9380
9460
|
var validateIssue = validate38;
|
|
9381
9461
|
var schema98 = {
|
|
9382
9462
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -9788,6 +9868,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9788
9868
|
validate38.errors = vErrors;
|
|
9789
9869
|
return errors === 0;
|
|
9790
9870
|
}
|
|
9871
|
+
__name(validate38, "validate38");
|
|
9791
9872
|
var validateLock = validate45;
|
|
9792
9873
|
var schema110 = {
|
|
9793
9874
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -9948,6 +10029,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9948
10029
|
validate46.errors = vErrors;
|
|
9949
10030
|
return errors === 0;
|
|
9950
10031
|
}
|
|
10032
|
+
__name(validate46, "validate46");
|
|
9951
10033
|
function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
9952
10034
|
let vErrors = null;
|
|
9953
10035
|
let errors = 0;
|
|
@@ -10488,6 +10570,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
10488
10570
|
validate45.errors = vErrors;
|
|
10489
10571
|
return errors === 0;
|
|
10490
10572
|
}
|
|
10573
|
+
__name(validate45, "validate45");
|
|
10491
10574
|
var validateLog = validate48;
|
|
10492
10575
|
var schema120 = {
|
|
10493
10576
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -11135,6 +11218,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11135
11218
|
validate48.errors = vErrors;
|
|
11136
11219
|
return errors === 0;
|
|
11137
11220
|
}
|
|
11221
|
+
__name(validate48, "validate48");
|
|
11138
11222
|
var validateMediaFile = validate15;
|
|
11139
11223
|
var validateMediaSource = validate49;
|
|
11140
11224
|
var schema121 = {
|
|
@@ -11431,6 +11515,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
11431
11515
|
validate50.errors = vErrors;
|
|
11432
11516
|
return errors === 0;
|
|
11433
11517
|
}
|
|
11518
|
+
__name(validate50, "validate50");
|
|
11434
11519
|
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
11435
11520
|
let vErrors = null;
|
|
11436
11521
|
let errors = 0;
|
|
@@ -12404,6 +12489,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12404
12489
|
validate49.errors = vErrors;
|
|
12405
12490
|
return errors === 0;
|
|
12406
12491
|
}
|
|
12492
|
+
__name(validate49, "validate49");
|
|
12407
12493
|
var validateMotionSensor = validate52;
|
|
12408
12494
|
function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
12409
12495
|
let vErrors = null;
|
|
@@ -12512,6 +12598,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12512
12598
|
validate53.errors = vErrors;
|
|
12513
12599
|
return errors === 0;
|
|
12514
12600
|
}
|
|
12601
|
+
__name(validate53, "validate53");
|
|
12515
12602
|
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
12516
12603
|
let vErrors = null;
|
|
12517
12604
|
let errors = 0;
|
|
@@ -12840,6 +12927,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
12840
12927
|
validate52.errors = vErrors;
|
|
12841
12928
|
return errors === 0;
|
|
12842
12929
|
}
|
|
12930
|
+
__name(validate52, "validate52");
|
|
12843
12931
|
var validateOrder = validate55;
|
|
12844
12932
|
var schema141 = {
|
|
12845
12933
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -14174,6 +14262,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
14174
14262
|
validate55.errors = vErrors;
|
|
14175
14263
|
return errors === 0;
|
|
14176
14264
|
}
|
|
14265
|
+
__name(validate55, "validate55");
|
|
14177
14266
|
var validateOrganization = validate56;
|
|
14178
14267
|
var schema147 = {
|
|
14179
14268
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -15103,6 +15192,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15103
15192
|
validate56.errors = vErrors;
|
|
15104
15193
|
return errors === 0;
|
|
15105
15194
|
}
|
|
15195
|
+
__name(validate56, "validate56");
|
|
15106
15196
|
var validatePayment = validate57;
|
|
15107
15197
|
var schema151 = {
|
|
15108
15198
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -15361,6 +15451,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15361
15451
|
validate57.errors = vErrors;
|
|
15362
15452
|
return errors === 0;
|
|
15363
15453
|
}
|
|
15454
|
+
__name(validate57, "validate57");
|
|
15364
15455
|
var validatePolicy = validate58;
|
|
15365
15456
|
var schema154 = {
|
|
15366
15457
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -15877,6 +15968,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
15877
15968
|
validate58.errors = vErrors;
|
|
15878
15969
|
return errors === 0;
|
|
15879
15970
|
}
|
|
15971
|
+
__name(validate58, "validate58");
|
|
15880
15972
|
var validateProduct = validate59;
|
|
15881
15973
|
var schema156 = {
|
|
15882
15974
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -16219,6 +16311,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
16219
16311
|
validate59.errors = vErrors;
|
|
16220
16312
|
return errors === 0;
|
|
16221
16313
|
}
|
|
16314
|
+
__name(validate59, "validate59");
|
|
16222
16315
|
var validateProperty = validate61;
|
|
16223
16316
|
var schema160 = {
|
|
16224
16317
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -18957,6 +19050,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
18957
19050
|
validate61.errors = vErrors;
|
|
18958
19051
|
return errors === 0;
|
|
18959
19052
|
}
|
|
19053
|
+
__name(validate61, "validate61");
|
|
18960
19054
|
var validateReservation = validate63;
|
|
18961
19055
|
var schema163 = {
|
|
18962
19056
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -19235,6 +19329,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
19235
19329
|
validate64.errors = vErrors;
|
|
19236
19330
|
return errors === 0;
|
|
19237
19331
|
}
|
|
19332
|
+
__name(validate64, "validate64");
|
|
19238
19333
|
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
19239
19334
|
let vErrors = null;
|
|
19240
19335
|
let errors = 0;
|
|
@@ -20096,6 +20191,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20096
20191
|
validate63.errors = vErrors;
|
|
20097
20192
|
return errors === 0;
|
|
20098
20193
|
}
|
|
20194
|
+
__name(validate63, "validate63");
|
|
20099
20195
|
var validateRoom = validate66;
|
|
20100
20196
|
var schema170 = {
|
|
20101
20197
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -20271,6 +20367,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20271
20367
|
validate69.errors = vErrors;
|
|
20272
20368
|
return errors === 0;
|
|
20273
20369
|
}
|
|
20370
|
+
__name(validate69, "validate69");
|
|
20274
20371
|
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
20275
20372
|
let vErrors = null;
|
|
20276
20373
|
let errors = 0;
|
|
@@ -20697,6 +20794,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20697
20794
|
validate68.errors = vErrors;
|
|
20698
20795
|
return errors === 0;
|
|
20699
20796
|
}
|
|
20797
|
+
__name(validate68, "validate68");
|
|
20700
20798
|
var schema181 = {
|
|
20701
20799
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
20702
20800
|
$id: "thermostat.json",
|
|
@@ -20896,6 +20994,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
20896
20994
|
validate73.errors = vErrors;
|
|
20897
20995
|
return errors === 0;
|
|
20898
20996
|
}
|
|
20997
|
+
__name(validate73, "validate73");
|
|
20899
20998
|
var schema193 = { type: ["number", "null"], minimum: 0, maximum: 99 };
|
|
20900
20999
|
function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
20901
21000
|
let vErrors = null;
|
|
@@ -21085,6 +21184,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
21085
21184
|
validate75.errors = vErrors;
|
|
21086
21185
|
return errors === 0;
|
|
21087
21186
|
}
|
|
21187
|
+
__name(validate75, "validate75");
|
|
21088
21188
|
function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
21089
21189
|
let vErrors = null;
|
|
21090
21190
|
let errors = 0;
|
|
@@ -22097,6 +22197,7 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
22097
22197
|
validate72.errors = vErrors;
|
|
22098
22198
|
return errors === 0;
|
|
22099
22199
|
}
|
|
22200
|
+
__name(validate72, "validate72");
|
|
22100
22201
|
var schema198 = {
|
|
22101
22202
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
22102
22203
|
$id: "windowCovering.json",
|
|
@@ -22234,6 +22335,7 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
22234
22335
|
validate82.errors = vErrors;
|
|
22235
22336
|
return errors === 0;
|
|
22236
22337
|
}
|
|
22338
|
+
__name(validate82, "validate82");
|
|
22237
22339
|
function validate81(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
22238
22340
|
let vErrors = null;
|
|
22239
22341
|
let errors = 0;
|
|
@@ -22679,6 +22781,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
22679
22781
|
validate81.errors = vErrors;
|
|
22680
22782
|
return errors === 0;
|
|
22681
22783
|
}
|
|
22784
|
+
__name(validate81, "validate81");
|
|
22682
22785
|
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
22683
22786
|
let vErrors = null;
|
|
22684
22787
|
let errors = 0;
|
|
@@ -23295,6 +23398,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
23295
23398
|
validate66.errors = vErrors;
|
|
23296
23399
|
return errors === 0;
|
|
23297
23400
|
}
|
|
23401
|
+
__name(validate66, "validate66");
|
|
23298
23402
|
var validateScene = validate90;
|
|
23299
23403
|
var schema210 = {
|
|
23300
23404
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -23445,6 +23549,7 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
23445
23549
|
validate91.errors = vErrors;
|
|
23446
23550
|
return errors === 0;
|
|
23447
23551
|
}
|
|
23552
|
+
__name(validate91, "validate91");
|
|
23448
23553
|
function validate93(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
23449
23554
|
let vErrors = null;
|
|
23450
23555
|
let errors = 0;
|
|
@@ -23517,6 +23622,7 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
23517
23622
|
validate93.errors = vErrors;
|
|
23518
23623
|
return errors === 0;
|
|
23519
23624
|
}
|
|
23625
|
+
__name(validate93, "validate93");
|
|
23520
23626
|
function validate98(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
23521
23627
|
let vErrors = null;
|
|
23522
23628
|
let errors = 0;
|
|
@@ -23553,6 +23659,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
23553
23659
|
validate98.errors = vErrors;
|
|
23554
23660
|
return errors === 0;
|
|
23555
23661
|
}
|
|
23662
|
+
__name(validate98, "validate98");
|
|
23556
23663
|
function validate90(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
23557
23664
|
let vErrors = null;
|
|
23558
23665
|
let errors = 0;
|
|
@@ -24727,6 +24834,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
24727
24834
|
validate90.errors = vErrors;
|
|
24728
24835
|
return errors === 0;
|
|
24729
24836
|
}
|
|
24837
|
+
__name(validate90, "validate90");
|
|
24730
24838
|
var validateShortLink = validate100;
|
|
24731
24839
|
var schema228 = {
|
|
24732
24840
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -24957,6 +25065,7 @@ function validate100(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
24957
25065
|
validate100.errors = vErrors;
|
|
24958
25066
|
return errors === 0;
|
|
24959
25067
|
}
|
|
25068
|
+
__name(validate100, "validate100");
|
|
24960
25069
|
var validateSmsMessage = validate101;
|
|
24961
25070
|
var schema231 = {
|
|
24962
25071
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -25423,6 +25532,7 @@ function validate101(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
25423
25532
|
validate101.errors = vErrors;
|
|
25424
25533
|
return errors === 0;
|
|
25425
25534
|
}
|
|
25535
|
+
__name(validate101, "validate101");
|
|
25426
25536
|
var validateSpace = validate102;
|
|
25427
25537
|
var schema236 = {
|
|
25428
25538
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -25588,6 +25698,7 @@ function validate103(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
25588
25698
|
validate103.errors = vErrors;
|
|
25589
25699
|
return errors === 0;
|
|
25590
25700
|
}
|
|
25701
|
+
__name(validate103, "validate103");
|
|
25591
25702
|
function validate102(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
25592
25703
|
let vErrors = null;
|
|
25593
25704
|
let errors = 0;
|
|
@@ -26485,6 +26596,7 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
26485
26596
|
validate102.errors = vErrors;
|
|
26486
26597
|
return errors === 0;
|
|
26487
26598
|
}
|
|
26599
|
+
__name(validate102, "validate102");
|
|
26488
26600
|
var validateSwitch = validate68;
|
|
26489
26601
|
var validateSystemUser = validate108;
|
|
26490
26602
|
var schema241 = {
|
|
@@ -26715,6 +26827,7 @@ function validate112(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
26715
26827
|
validate112.errors = vErrors;
|
|
26716
26828
|
return errors === 0;
|
|
26717
26829
|
}
|
|
26830
|
+
__name(validate112, "validate112");
|
|
26718
26831
|
function validate108(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
26719
26832
|
let vErrors = null;
|
|
26720
26833
|
let errors = 0;
|
|
@@ -27593,6 +27706,7 @@ function validate108(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
27593
27706
|
validate108.errors = vErrors;
|
|
27594
27707
|
return errors === 0;
|
|
27595
27708
|
}
|
|
27709
|
+
__name(validate108, "validate108");
|
|
27596
27710
|
var validateThermostat = validate72;
|
|
27597
27711
|
var validateTicket = validate39;
|
|
27598
27712
|
var schema100 = {
|
|
@@ -29593,6 +29707,7 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
29593
29707
|
validate39.errors = vErrors;
|
|
29594
29708
|
return errors === 0;
|
|
29595
29709
|
}
|
|
29710
|
+
__name(validate39, "validate39");
|
|
29596
29711
|
var validateTimeSheet = validate114;
|
|
29597
29712
|
var schema250 = {
|
|
29598
29713
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -30163,6 +30278,7 @@ function validate114(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
30163
30278
|
validate114.errors = vErrors;
|
|
30164
30279
|
return errors === 0;
|
|
30165
30280
|
}
|
|
30281
|
+
__name(validate114, "validate114");
|
|
30166
30282
|
var validateUser = validate115;
|
|
30167
30283
|
var schema254 = {
|
|
30168
30284
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -30452,6 +30568,7 @@ function validate122(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
30452
30568
|
validate122.errors = vErrors;
|
|
30453
30569
|
return errors === 0;
|
|
30454
30570
|
}
|
|
30571
|
+
__name(validate122, "validate122");
|
|
30455
30572
|
function validate115(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
30456
30573
|
let vErrors = null;
|
|
30457
30574
|
let errors = 0;
|
|
@@ -31889,6 +32006,7 @@ function validate115(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
31889
32006
|
validate115.errors = vErrors;
|
|
31890
32007
|
return errors === 0;
|
|
31891
32008
|
}
|
|
32009
|
+
__name(validate115, "validate115");
|
|
31892
32010
|
var validateVendor = validate124;
|
|
31893
32011
|
var schema261 = {
|
|
31894
32012
|
$schema: "http://json-schema.org/draft-07/schema",
|
|
@@ -32403,10 +32521,14 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
32403
32521
|
validate124.errors = vErrors;
|
|
32404
32522
|
return errors === 0;
|
|
32405
32523
|
}
|
|
32524
|
+
__name(validate124, "validate124");
|
|
32406
32525
|
var validateWindowCovering = validate81;
|
|
32407
32526
|
|
|
32408
32527
|
// src/models/alarm.js
|
|
32409
32528
|
var Alarm = class extends Entity {
|
|
32529
|
+
static {
|
|
32530
|
+
__name(this, "Alarm");
|
|
32531
|
+
}
|
|
32410
32532
|
/**
|
|
32411
32533
|
* @typedef {Object} AlarmData Any smart alarm system
|
|
32412
32534
|
* @property {string} id - Identifier of the object.
|
|
@@ -32501,13 +32623,16 @@ Object.defineProperty(Alarm.prototype, "schema", {
|
|
|
32501
32623
|
}
|
|
32502
32624
|
});
|
|
32503
32625
|
Object.defineProperty(Alarm.prototype, "validator", {
|
|
32504
|
-
get: function() {
|
|
32626
|
+
get: /* @__PURE__ */ __name(function() {
|
|
32505
32627
|
return validateAlarm;
|
|
32506
|
-
}
|
|
32628
|
+
}, "get")
|
|
32507
32629
|
});
|
|
32508
32630
|
|
|
32509
32631
|
// src/models/announcement.js
|
|
32510
32632
|
var Announcement = class extends Entity {
|
|
32633
|
+
static {
|
|
32634
|
+
__name(this, "Announcement");
|
|
32635
|
+
}
|
|
32511
32636
|
/**
|
|
32512
32637
|
* @typedef {Object} AnnouncementData Announcement message sent to users
|
|
32513
32638
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -32562,13 +32687,16 @@ Object.defineProperty(Announcement.prototype, "schema", {
|
|
|
32562
32687
|
}
|
|
32563
32688
|
});
|
|
32564
32689
|
Object.defineProperty(Announcement.prototype, "validator", {
|
|
32565
|
-
get: function() {
|
|
32690
|
+
get: /* @__PURE__ */ __name(function() {
|
|
32566
32691
|
return validateAnnouncement;
|
|
32567
|
-
}
|
|
32692
|
+
}, "get")
|
|
32568
32693
|
});
|
|
32569
32694
|
|
|
32570
32695
|
// src/models/camera.js
|
|
32571
32696
|
var Camera = class extends Entity {
|
|
32697
|
+
static {
|
|
32698
|
+
__name(this, "Camera");
|
|
32699
|
+
}
|
|
32572
32700
|
/**
|
|
32573
32701
|
* @typedef {Object} CameraData Any smart camera
|
|
32574
32702
|
* @property {string} id - Identifier of the object.
|
|
@@ -32683,13 +32811,16 @@ Object.defineProperty(Camera.prototype, "schema", {
|
|
|
32683
32811
|
}
|
|
32684
32812
|
});
|
|
32685
32813
|
Object.defineProperty(Camera.prototype, "validator", {
|
|
32686
|
-
get: function() {
|
|
32814
|
+
get: /* @__PURE__ */ __name(function() {
|
|
32687
32815
|
return validateCamera;
|
|
32688
|
-
}
|
|
32816
|
+
}, "get")
|
|
32689
32817
|
});
|
|
32690
32818
|
|
|
32691
32819
|
// src/models/category.js
|
|
32692
32820
|
var Category = class extends Entity {
|
|
32821
|
+
static {
|
|
32822
|
+
__name(this, "Category");
|
|
32823
|
+
}
|
|
32693
32824
|
/**
|
|
32694
32825
|
* @typedef {Object} CategoryData
|
|
32695
32826
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -32743,13 +32874,16 @@ Object.defineProperty(Category.prototype, "schema", {
|
|
|
32743
32874
|
}
|
|
32744
32875
|
});
|
|
32745
32876
|
Object.defineProperty(Category.prototype, "validator", {
|
|
32746
|
-
get: function() {
|
|
32877
|
+
get: /* @__PURE__ */ __name(function() {
|
|
32747
32878
|
return validateCategory;
|
|
32748
|
-
}
|
|
32879
|
+
}, "get")
|
|
32749
32880
|
});
|
|
32750
32881
|
|
|
32751
32882
|
// src/models/courtesy.js
|
|
32752
32883
|
var Courtesy = class extends Entity {
|
|
32884
|
+
static {
|
|
32885
|
+
__name(this, "Courtesy");
|
|
32886
|
+
}
|
|
32753
32887
|
/**
|
|
32754
32888
|
* @typedef {Object} CourtesyData Any smart courtesy system
|
|
32755
32889
|
* @property {string} id - Identifier of the object.
|
|
@@ -32813,13 +32947,16 @@ Object.defineProperty(Courtesy.prototype, "schema", {
|
|
|
32813
32947
|
}
|
|
32814
32948
|
});
|
|
32815
32949
|
Object.defineProperty(Courtesy.prototype, "validator", {
|
|
32816
|
-
get: function() {
|
|
32950
|
+
get: /* @__PURE__ */ __name(function() {
|
|
32817
32951
|
return validateCourtesy;
|
|
32818
|
-
}
|
|
32952
|
+
}, "get")
|
|
32819
32953
|
});
|
|
32820
32954
|
|
|
32821
32955
|
// src/models/credential.js
|
|
32822
32956
|
var Credential = class extends Entity {
|
|
32957
|
+
static {
|
|
32958
|
+
__name(this, "Credential");
|
|
32959
|
+
}
|
|
32823
32960
|
/**
|
|
32824
32961
|
* @typedef {Object} CredentialData
|
|
32825
32962
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -32889,13 +33026,16 @@ Object.defineProperty(Credential.prototype, "schema", {
|
|
|
32889
33026
|
}
|
|
32890
33027
|
});
|
|
32891
33028
|
Object.defineProperty(Credential.prototype, "validator", {
|
|
32892
|
-
get: function() {
|
|
33029
|
+
get: /* @__PURE__ */ __name(function() {
|
|
32893
33030
|
return validateCredential;
|
|
32894
|
-
}
|
|
33031
|
+
}, "get")
|
|
32895
33032
|
});
|
|
32896
33033
|
|
|
32897
33034
|
// src/models/deviceRouter.js
|
|
32898
33035
|
var DeviceRouter = class extends Entity {
|
|
33036
|
+
static {
|
|
33037
|
+
__name(this, "DeviceRouter");
|
|
33038
|
+
}
|
|
32899
33039
|
/**
|
|
32900
33040
|
* @typedef {Object} DeviceRouterData A device router contains instructions on where to route devices based on their organization and driver.
|
|
32901
33041
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -32938,13 +33078,16 @@ Object.defineProperty(DeviceRouter.prototype, "schema", {
|
|
|
32938
33078
|
}
|
|
32939
33079
|
});
|
|
32940
33080
|
Object.defineProperty(DeviceRouter.prototype, "validator", {
|
|
32941
|
-
get: function() {
|
|
33081
|
+
get: /* @__PURE__ */ __name(function() {
|
|
32942
33082
|
return validateDeviceRouter;
|
|
32943
|
-
}
|
|
33083
|
+
}, "get")
|
|
32944
33084
|
});
|
|
32945
33085
|
|
|
32946
33086
|
// src/models/dimmer.js
|
|
32947
33087
|
var Dimmer = class extends Entity {
|
|
33088
|
+
static {
|
|
33089
|
+
__name(this, "Dimmer");
|
|
33090
|
+
}
|
|
32948
33091
|
/**
|
|
32949
33092
|
* @typedef {Object} DimmerData Any smart dimmer
|
|
32950
33093
|
* @property {string} id - Identifier of the object.
|
|
@@ -33001,13 +33144,16 @@ Object.defineProperty(Dimmer.prototype, "schema", {
|
|
|
33001
33144
|
}
|
|
33002
33145
|
});
|
|
33003
33146
|
Object.defineProperty(Dimmer.prototype, "validator", {
|
|
33004
|
-
get: function() {
|
|
33147
|
+
get: /* @__PURE__ */ __name(function() {
|
|
33005
33148
|
return validateDimmer;
|
|
33006
|
-
}
|
|
33149
|
+
}, "get")
|
|
33007
33150
|
});
|
|
33008
33151
|
|
|
33009
33152
|
// src/models/discoveredDevice.js
|
|
33010
33153
|
var DiscoveredDevice = class extends Entity {
|
|
33154
|
+
static {
|
|
33155
|
+
__name(this, "DiscoveredDevice");
|
|
33156
|
+
}
|
|
33011
33157
|
/**
|
|
33012
33158
|
* @typedef {Object} DiscoveredDeviceData A device that has been discovered by Kohost, but not yet added to the Kohost system.
|
|
33013
33159
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -33072,13 +33218,16 @@ Object.defineProperty(DiscoveredDevice.prototype, "schema", {
|
|
|
33072
33218
|
}
|
|
33073
33219
|
});
|
|
33074
33220
|
Object.defineProperty(DiscoveredDevice.prototype, "validator", {
|
|
33075
|
-
get: function() {
|
|
33221
|
+
get: /* @__PURE__ */ __name(function() {
|
|
33076
33222
|
return validateDiscoveredDevice;
|
|
33077
|
-
}
|
|
33223
|
+
}, "get")
|
|
33078
33224
|
});
|
|
33079
33225
|
|
|
33080
33226
|
// src/models/emailMessage.js
|
|
33081
33227
|
var EmailMessage = class extends Entity {
|
|
33228
|
+
static {
|
|
33229
|
+
__name(this, "EmailMessage");
|
|
33230
|
+
}
|
|
33082
33231
|
/**
|
|
33083
33232
|
* @typedef {Object} EmailMessageData
|
|
33084
33233
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -33169,13 +33318,16 @@ Object.defineProperty(EmailMessage.prototype, "schema", {
|
|
|
33169
33318
|
}
|
|
33170
33319
|
});
|
|
33171
33320
|
Object.defineProperty(EmailMessage.prototype, "validator", {
|
|
33172
|
-
get: function() {
|
|
33321
|
+
get: /* @__PURE__ */ __name(function() {
|
|
33173
33322
|
return validateEmailMessage;
|
|
33174
|
-
}
|
|
33323
|
+
}, "get")
|
|
33175
33324
|
});
|
|
33176
33325
|
|
|
33177
33326
|
// src/models/energyReport.js
|
|
33178
33327
|
var EnergyReport = class extends Entity {
|
|
33328
|
+
static {
|
|
33329
|
+
__name(this, "EnergyReport");
|
|
33330
|
+
}
|
|
33179
33331
|
/**
|
|
33180
33332
|
* @typedef {Object} EnergyReportData Hourly Report for Energy based on energy report shards
|
|
33181
33333
|
* @property {string} id - Identifier of the object.
|
|
@@ -33258,13 +33410,16 @@ Object.defineProperty(EnergyReport.prototype, "schema", {
|
|
|
33258
33410
|
}
|
|
33259
33411
|
});
|
|
33260
33412
|
Object.defineProperty(EnergyReport.prototype, "validator", {
|
|
33261
|
-
get: function() {
|
|
33413
|
+
get: /* @__PURE__ */ __name(function() {
|
|
33262
33414
|
return validateEnergyReport;
|
|
33263
|
-
}
|
|
33415
|
+
}, "get")
|
|
33264
33416
|
});
|
|
33265
33417
|
|
|
33266
33418
|
// src/models/energyReportShard.js
|
|
33267
33419
|
var EnergyReportShard = class extends Entity {
|
|
33420
|
+
static {
|
|
33421
|
+
__name(this, "EnergyReportShard");
|
|
33422
|
+
}
|
|
33268
33423
|
/**
|
|
33269
33424
|
* @typedef {Object} EnergyReportShardData Shard used for Energy Reports
|
|
33270
33425
|
* @property {string} id - Identifier of the object.
|
|
@@ -33339,13 +33494,16 @@ Object.defineProperty(EnergyReportShard.prototype, "schema", {
|
|
|
33339
33494
|
}
|
|
33340
33495
|
});
|
|
33341
33496
|
Object.defineProperty(EnergyReportShard.prototype, "validator", {
|
|
33342
|
-
get: function() {
|
|
33497
|
+
get: /* @__PURE__ */ __name(function() {
|
|
33343
33498
|
return validateEnergyReportShard;
|
|
33344
|
-
}
|
|
33499
|
+
}, "get")
|
|
33345
33500
|
});
|
|
33346
33501
|
|
|
33347
33502
|
// src/models/gateway.js
|
|
33348
33503
|
var Gateway = class extends Entity {
|
|
33504
|
+
static {
|
|
33505
|
+
__name(this, "Gateway");
|
|
33506
|
+
}
|
|
33349
33507
|
/**
|
|
33350
33508
|
* @typedef {Object} GatewayData Any smart gateway that is an entrypoint for controlling devices
|
|
33351
33509
|
* @property {string} id - Identifier of the object.
|
|
@@ -33396,13 +33554,16 @@ Object.defineProperty(Gateway.prototype, "schema", {
|
|
|
33396
33554
|
}
|
|
33397
33555
|
});
|
|
33398
33556
|
Object.defineProperty(Gateway.prototype, "validator", {
|
|
33399
|
-
get: function() {
|
|
33557
|
+
get: /* @__PURE__ */ __name(function() {
|
|
33400
33558
|
return validateGateway;
|
|
33401
|
-
}
|
|
33559
|
+
}, "get")
|
|
33402
33560
|
});
|
|
33403
33561
|
|
|
33404
33562
|
// src/models/identification.js
|
|
33405
33563
|
var Identification = class extends Entity {
|
|
33564
|
+
static {
|
|
33565
|
+
__name(this, "Identification");
|
|
33566
|
+
}
|
|
33406
33567
|
/**
|
|
33407
33568
|
* @typedef {Object} IdentificationData
|
|
33408
33569
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -33469,13 +33630,16 @@ Object.defineProperty(Identification.prototype, "schema", {
|
|
|
33469
33630
|
}
|
|
33470
33631
|
});
|
|
33471
33632
|
Object.defineProperty(Identification.prototype, "validator", {
|
|
33472
|
-
get: function() {
|
|
33633
|
+
get: /* @__PURE__ */ __name(function() {
|
|
33473
33634
|
return validateIdentification;
|
|
33474
|
-
}
|
|
33635
|
+
}, "get")
|
|
33475
33636
|
});
|
|
33476
33637
|
|
|
33477
33638
|
// src/models/issue.js
|
|
33478
33639
|
var Issue = class extends Entity {
|
|
33640
|
+
static {
|
|
33641
|
+
__name(this, "Issue");
|
|
33642
|
+
}
|
|
33479
33643
|
/**
|
|
33480
33644
|
* @typedef {Object} IssueData An issue associated with ticketing and concierge.
|
|
33481
33645
|
* @property {string} id - Identifier of the object.
|
|
@@ -33536,13 +33700,16 @@ Object.defineProperty(Issue.prototype, "schema", {
|
|
|
33536
33700
|
}
|
|
33537
33701
|
});
|
|
33538
33702
|
Object.defineProperty(Issue.prototype, "validator", {
|
|
33539
|
-
get: function() {
|
|
33703
|
+
get: /* @__PURE__ */ __name(function() {
|
|
33540
33704
|
return validateIssue;
|
|
33541
|
-
}
|
|
33705
|
+
}, "get")
|
|
33542
33706
|
});
|
|
33543
33707
|
|
|
33544
33708
|
// src/models/lock.js
|
|
33545
33709
|
var Lock = class extends Entity {
|
|
33710
|
+
static {
|
|
33711
|
+
__name(this, "Lock");
|
|
33712
|
+
}
|
|
33546
33713
|
/**
|
|
33547
33714
|
* @typedef {Object} LockData Any smart lock
|
|
33548
33715
|
* @property {string} id - Identifier of the object.
|
|
@@ -33635,13 +33802,16 @@ Object.defineProperty(Lock.prototype, "schema", {
|
|
|
33635
33802
|
}
|
|
33636
33803
|
});
|
|
33637
33804
|
Object.defineProperty(Lock.prototype, "validator", {
|
|
33638
|
-
get: function() {
|
|
33805
|
+
get: /* @__PURE__ */ __name(function() {
|
|
33639
33806
|
return validateLock;
|
|
33640
|
-
}
|
|
33807
|
+
}, "get")
|
|
33641
33808
|
});
|
|
33642
33809
|
|
|
33643
33810
|
// src/models/log.js
|
|
33644
33811
|
var Log = class extends Entity {
|
|
33812
|
+
static {
|
|
33813
|
+
__name(this, "Log");
|
|
33814
|
+
}
|
|
33645
33815
|
/**
|
|
33646
33816
|
* @typedef {Object} LogData
|
|
33647
33817
|
* @property {"log"} [type] - Default: "log"
|
|
@@ -33727,13 +33897,16 @@ Object.defineProperty(Log.prototype, "schema", {
|
|
|
33727
33897
|
}
|
|
33728
33898
|
});
|
|
33729
33899
|
Object.defineProperty(Log.prototype, "validator", {
|
|
33730
|
-
get: function() {
|
|
33900
|
+
get: /* @__PURE__ */ __name(function() {
|
|
33731
33901
|
return validateLog;
|
|
33732
|
-
}
|
|
33902
|
+
}, "get")
|
|
33733
33903
|
});
|
|
33734
33904
|
|
|
33735
33905
|
// src/models/mediaFile.js
|
|
33736
33906
|
var MediaFile = class extends Entity {
|
|
33907
|
+
static {
|
|
33908
|
+
__name(this, "MediaFile");
|
|
33909
|
+
}
|
|
33737
33910
|
/**
|
|
33738
33911
|
* @typedef {Object} MediaFileData Any media file
|
|
33739
33912
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -33823,13 +33996,16 @@ Object.defineProperty(MediaFile.prototype, "schema", {
|
|
|
33823
33996
|
}
|
|
33824
33997
|
});
|
|
33825
33998
|
Object.defineProperty(MediaFile.prototype, "validator", {
|
|
33826
|
-
get: function() {
|
|
33999
|
+
get: /* @__PURE__ */ __name(function() {
|
|
33827
34000
|
return validateMediaFile;
|
|
33828
|
-
}
|
|
34001
|
+
}, "get")
|
|
33829
34002
|
});
|
|
33830
34003
|
|
|
33831
34004
|
// src/models/mediaSource.js
|
|
33832
34005
|
var MediaSource = class extends Entity {
|
|
34006
|
+
static {
|
|
34007
|
+
__name(this, "MediaSource");
|
|
34008
|
+
}
|
|
33833
34009
|
/**
|
|
33834
34010
|
* @typedef {Object} MediaSourceData Any media source
|
|
33835
34011
|
* @property {string} id - Identifier of the object.
|
|
@@ -34081,13 +34257,16 @@ Object.defineProperty(MediaSource.prototype, "schema", {
|
|
|
34081
34257
|
}
|
|
34082
34258
|
});
|
|
34083
34259
|
Object.defineProperty(MediaSource.prototype, "validator", {
|
|
34084
|
-
get: function() {
|
|
34260
|
+
get: /* @__PURE__ */ __name(function() {
|
|
34085
34261
|
return validateMediaSource;
|
|
34086
|
-
}
|
|
34262
|
+
}, "get")
|
|
34087
34263
|
});
|
|
34088
34264
|
|
|
34089
34265
|
// src/models/motionSensor.js
|
|
34090
34266
|
var MotionSensor = class extends Entity {
|
|
34267
|
+
static {
|
|
34268
|
+
__name(this, "MotionSensor");
|
|
34269
|
+
}
|
|
34091
34270
|
/**
|
|
34092
34271
|
* @typedef {Object} MotionSensorData Any smart motion sensor
|
|
34093
34272
|
* @property {string} id - Identifier of the object.
|
|
@@ -34136,13 +34315,16 @@ Object.defineProperty(MotionSensor.prototype, "schema", {
|
|
|
34136
34315
|
}
|
|
34137
34316
|
});
|
|
34138
34317
|
Object.defineProperty(MotionSensor.prototype, "validator", {
|
|
34139
|
-
get: function() {
|
|
34318
|
+
get: /* @__PURE__ */ __name(function() {
|
|
34140
34319
|
return validateMotionSensor;
|
|
34141
|
-
}
|
|
34320
|
+
}, "get")
|
|
34142
34321
|
});
|
|
34143
34322
|
|
|
34144
34323
|
// src/models/order.js
|
|
34145
34324
|
var Order = class extends Entity {
|
|
34325
|
+
static {
|
|
34326
|
+
__name(this, "Order");
|
|
34327
|
+
}
|
|
34146
34328
|
/**
|
|
34147
34329
|
* @typedef {Object} OrderData A purchase order for products or services.
|
|
34148
34330
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -34372,13 +34554,16 @@ Object.defineProperty(Order.prototype, "schema", {
|
|
|
34372
34554
|
}
|
|
34373
34555
|
});
|
|
34374
34556
|
Object.defineProperty(Order.prototype, "validator", {
|
|
34375
|
-
get: function() {
|
|
34557
|
+
get: /* @__PURE__ */ __name(function() {
|
|
34376
34558
|
return validateOrder;
|
|
34377
|
-
}
|
|
34559
|
+
}, "get")
|
|
34378
34560
|
});
|
|
34379
34561
|
|
|
34380
34562
|
// src/models/organization.js
|
|
34381
34563
|
var Organization = class extends Entity {
|
|
34564
|
+
static {
|
|
34565
|
+
__name(this, "Organization");
|
|
34566
|
+
}
|
|
34382
34567
|
/**
|
|
34383
34568
|
* @typedef {Object} OrganizationData An organization is a group or entity that subscribes to Kohost software.
|
|
34384
34569
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -34533,13 +34718,16 @@ Object.defineProperty(Organization.prototype, "schema", {
|
|
|
34533
34718
|
}
|
|
34534
34719
|
});
|
|
34535
34720
|
Object.defineProperty(Organization.prototype, "validator", {
|
|
34536
|
-
get: function() {
|
|
34721
|
+
get: /* @__PURE__ */ __name(function() {
|
|
34537
34722
|
return validateOrganization;
|
|
34538
|
-
}
|
|
34723
|
+
}, "get")
|
|
34539
34724
|
});
|
|
34540
34725
|
|
|
34541
34726
|
// src/models/payment.js
|
|
34542
34727
|
var Payment = class extends Entity {
|
|
34728
|
+
static {
|
|
34729
|
+
__name(this, "Payment");
|
|
34730
|
+
}
|
|
34543
34731
|
/**
|
|
34544
34732
|
* @typedef {Object} PaymentData
|
|
34545
34733
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -34602,13 +34790,16 @@ Object.defineProperty(Payment.prototype, "schema", {
|
|
|
34602
34790
|
}
|
|
34603
34791
|
});
|
|
34604
34792
|
Object.defineProperty(Payment.prototype, "validator", {
|
|
34605
|
-
get: function() {
|
|
34793
|
+
get: /* @__PURE__ */ __name(function() {
|
|
34606
34794
|
return validatePayment;
|
|
34607
|
-
}
|
|
34795
|
+
}, "get")
|
|
34608
34796
|
});
|
|
34609
34797
|
|
|
34610
34798
|
// src/models/policy.js
|
|
34611
34799
|
var Policy = class extends Entity {
|
|
34800
|
+
static {
|
|
34801
|
+
__name(this, "Policy");
|
|
34802
|
+
}
|
|
34612
34803
|
/**
|
|
34613
34804
|
* @typedef {Object} PolicyData A policy is a set of permissions that can be applied to a user to limit their access to resources.
|
|
34614
34805
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -34677,13 +34868,16 @@ Object.defineProperty(Policy.prototype, "schema", {
|
|
|
34677
34868
|
}
|
|
34678
34869
|
});
|
|
34679
34870
|
Object.defineProperty(Policy.prototype, "validator", {
|
|
34680
|
-
get: function() {
|
|
34871
|
+
get: /* @__PURE__ */ __name(function() {
|
|
34681
34872
|
return validatePolicy;
|
|
34682
|
-
}
|
|
34873
|
+
}, "get")
|
|
34683
34874
|
});
|
|
34684
34875
|
|
|
34685
34876
|
// src/models/product.js
|
|
34686
34877
|
var Product = class extends Entity {
|
|
34878
|
+
static {
|
|
34879
|
+
__name(this, "Product");
|
|
34880
|
+
}
|
|
34687
34881
|
/**
|
|
34688
34882
|
* @typedef {Object} ProductData
|
|
34689
34883
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -34740,13 +34934,16 @@ Object.defineProperty(Product.prototype, "schema", {
|
|
|
34740
34934
|
}
|
|
34741
34935
|
});
|
|
34742
34936
|
Object.defineProperty(Product.prototype, "validator", {
|
|
34743
|
-
get: function() {
|
|
34937
|
+
get: /* @__PURE__ */ __name(function() {
|
|
34744
34938
|
return validateProduct;
|
|
34745
|
-
}
|
|
34939
|
+
}, "get")
|
|
34746
34940
|
});
|
|
34747
34941
|
|
|
34748
34942
|
// src/models/property.js
|
|
34749
34943
|
var Property = class extends Entity {
|
|
34944
|
+
static {
|
|
34945
|
+
__name(this, "Property");
|
|
34946
|
+
}
|
|
34750
34947
|
/**
|
|
34751
34948
|
* @typedef {Object} PropertyData A property is a physical asset or building
|
|
34752
34949
|
* @property {string} id - Identifier of the object.
|
|
@@ -35155,13 +35352,16 @@ Object.defineProperty(Property.prototype, "schema", {
|
|
|
35155
35352
|
}
|
|
35156
35353
|
});
|
|
35157
35354
|
Object.defineProperty(Property.prototype, "validator", {
|
|
35158
|
-
get: function() {
|
|
35355
|
+
get: /* @__PURE__ */ __name(function() {
|
|
35159
35356
|
return validateProperty;
|
|
35160
|
-
}
|
|
35357
|
+
}, "get")
|
|
35161
35358
|
});
|
|
35162
35359
|
|
|
35163
35360
|
// src/models/reservation.js
|
|
35164
35361
|
var Reservation = class extends Entity {
|
|
35362
|
+
static {
|
|
35363
|
+
__name(this, "Reservation");
|
|
35364
|
+
}
|
|
35165
35365
|
/**
|
|
35166
35366
|
* @typedef {Object} ReservationData
|
|
35167
35367
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -35344,13 +35544,16 @@ Object.defineProperty(Reservation.prototype, "schema", {
|
|
|
35344
35544
|
}
|
|
35345
35545
|
});
|
|
35346
35546
|
Object.defineProperty(Reservation.prototype, "validator", {
|
|
35347
|
-
get: function() {
|
|
35547
|
+
get: /* @__PURE__ */ __name(function() {
|
|
35348
35548
|
return validateReservation;
|
|
35349
|
-
}
|
|
35549
|
+
}, "get")
|
|
35350
35550
|
});
|
|
35351
35551
|
|
|
35352
35552
|
// src/models/room.js
|
|
35353
35553
|
var Room = class extends Entity {
|
|
35554
|
+
static {
|
|
35555
|
+
__name(this, "Room");
|
|
35556
|
+
}
|
|
35354
35557
|
/**
|
|
35355
35558
|
* @typedef {Object} RoomData A room represents a physical space of controllable IoT devices
|
|
35356
35559
|
* @property {string} id - Identifier of the object.
|
|
@@ -35548,13 +35751,16 @@ Object.defineProperty(Room.prototype, "schema", {
|
|
|
35548
35751
|
}
|
|
35549
35752
|
});
|
|
35550
35753
|
Object.defineProperty(Room.prototype, "validator", {
|
|
35551
|
-
get: function() {
|
|
35754
|
+
get: /* @__PURE__ */ __name(function() {
|
|
35552
35755
|
return validateRoom;
|
|
35553
|
-
}
|
|
35756
|
+
}, "get")
|
|
35554
35757
|
});
|
|
35555
35758
|
|
|
35556
35759
|
// src/models/scene.js
|
|
35557
35760
|
var Scene = class extends Entity {
|
|
35761
|
+
static {
|
|
35762
|
+
__name(this, "Scene");
|
|
35763
|
+
}
|
|
35558
35764
|
/**
|
|
35559
35765
|
* @typedef {Object} SceneData A room represents a physical space of controllable IoT devices
|
|
35560
35766
|
* @property {string} id - Identifier of the object.
|
|
@@ -35681,13 +35887,16 @@ Object.defineProperty(Scene.prototype, "schema", {
|
|
|
35681
35887
|
}
|
|
35682
35888
|
});
|
|
35683
35889
|
Object.defineProperty(Scene.prototype, "validator", {
|
|
35684
|
-
get: function() {
|
|
35890
|
+
get: /* @__PURE__ */ __name(function() {
|
|
35685
35891
|
return validateScene;
|
|
35686
|
-
}
|
|
35892
|
+
}, "get")
|
|
35687
35893
|
});
|
|
35688
35894
|
|
|
35689
35895
|
// src/models/shortLink.js
|
|
35690
35896
|
var ShortLink = class extends Entity {
|
|
35897
|
+
static {
|
|
35898
|
+
__name(this, "ShortLink");
|
|
35899
|
+
}
|
|
35691
35900
|
/**
|
|
35692
35901
|
* @typedef {Object} ShortLinkData
|
|
35693
35902
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -35729,13 +35938,16 @@ Object.defineProperty(ShortLink.prototype, "schema", {
|
|
|
35729
35938
|
}
|
|
35730
35939
|
});
|
|
35731
35940
|
Object.defineProperty(ShortLink.prototype, "validator", {
|
|
35732
|
-
get: function() {
|
|
35941
|
+
get: /* @__PURE__ */ __name(function() {
|
|
35733
35942
|
return validateShortLink;
|
|
35734
|
-
}
|
|
35943
|
+
}, "get")
|
|
35735
35944
|
});
|
|
35736
35945
|
|
|
35737
35946
|
// src/models/smsMessage.js
|
|
35738
35947
|
var SmsMessage = class extends Entity {
|
|
35948
|
+
static {
|
|
35949
|
+
__name(this, "SmsMessage");
|
|
35950
|
+
}
|
|
35739
35951
|
/**
|
|
35740
35952
|
* @typedef {Object} SmsMessageData
|
|
35741
35953
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -35809,13 +36021,16 @@ Object.defineProperty(SmsMessage.prototype, "schema", {
|
|
|
35809
36021
|
}
|
|
35810
36022
|
});
|
|
35811
36023
|
Object.defineProperty(SmsMessage.prototype, "validator", {
|
|
35812
|
-
get: function() {
|
|
36024
|
+
get: /* @__PURE__ */ __name(function() {
|
|
35813
36025
|
return validateSmsMessage;
|
|
35814
|
-
}
|
|
36026
|
+
}, "get")
|
|
35815
36027
|
});
|
|
35816
36028
|
|
|
35817
36029
|
// src/models/space.js
|
|
35818
36030
|
var Space = class extends Entity {
|
|
36031
|
+
static {
|
|
36032
|
+
__name(this, "Space");
|
|
36033
|
+
}
|
|
35819
36034
|
/**
|
|
35820
36035
|
* @typedef {Object} SpaceData
|
|
35821
36036
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -35991,13 +36206,16 @@ Object.defineProperty(Space.prototype, "schema", {
|
|
|
35991
36206
|
}
|
|
35992
36207
|
});
|
|
35993
36208
|
Object.defineProperty(Space.prototype, "validator", {
|
|
35994
|
-
get: function() {
|
|
36209
|
+
get: /* @__PURE__ */ __name(function() {
|
|
35995
36210
|
return validateSpace;
|
|
35996
|
-
}
|
|
36211
|
+
}, "get")
|
|
35997
36212
|
});
|
|
35998
36213
|
|
|
35999
36214
|
// src/models/switch.js
|
|
36000
36215
|
var Switch = class extends Entity {
|
|
36216
|
+
static {
|
|
36217
|
+
__name(this, "Switch");
|
|
36218
|
+
}
|
|
36001
36219
|
/**
|
|
36002
36220
|
* @typedef {Object} SwitchData Any smart switch
|
|
36003
36221
|
* @property {string} id - Identifier of the object.
|
|
@@ -36057,13 +36275,16 @@ Object.defineProperty(Switch.prototype, "schema", {
|
|
|
36057
36275
|
}
|
|
36058
36276
|
});
|
|
36059
36277
|
Object.defineProperty(Switch.prototype, "validator", {
|
|
36060
|
-
get: function() {
|
|
36278
|
+
get: /* @__PURE__ */ __name(function() {
|
|
36061
36279
|
return validateSwitch;
|
|
36062
|
-
}
|
|
36280
|
+
}, "get")
|
|
36063
36281
|
});
|
|
36064
36282
|
|
|
36065
36283
|
// src/models/systemUser.js
|
|
36066
36284
|
var SystemUser = class extends Entity {
|
|
36285
|
+
static {
|
|
36286
|
+
__name(this, "SystemUser");
|
|
36287
|
+
}
|
|
36067
36288
|
/**
|
|
36068
36289
|
* @typedef {Object} SystemUserData A system user is a user that originated from an external 3rd party system.
|
|
36069
36290
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -36170,13 +36391,16 @@ Object.defineProperty(SystemUser.prototype, "schema", {
|
|
|
36170
36391
|
}
|
|
36171
36392
|
});
|
|
36172
36393
|
Object.defineProperty(SystemUser.prototype, "validator", {
|
|
36173
|
-
get: function() {
|
|
36394
|
+
get: /* @__PURE__ */ __name(function() {
|
|
36174
36395
|
return validateSystemUser;
|
|
36175
|
-
}
|
|
36396
|
+
}, "get")
|
|
36176
36397
|
});
|
|
36177
36398
|
|
|
36178
36399
|
// src/models/thermostat.js
|
|
36179
36400
|
var Thermostat = class extends Entity {
|
|
36401
|
+
static {
|
|
36402
|
+
__name(this, "Thermostat");
|
|
36403
|
+
}
|
|
36180
36404
|
/**
|
|
36181
36405
|
* @typedef {Object} ThermostatData Any smart thermostat
|
|
36182
36406
|
* @property {string} id - Identifier of the object.
|
|
@@ -36336,13 +36560,16 @@ Object.defineProperty(Thermostat.prototype, "schema", {
|
|
|
36336
36560
|
}
|
|
36337
36561
|
});
|
|
36338
36562
|
Object.defineProperty(Thermostat.prototype, "validator", {
|
|
36339
|
-
get: function() {
|
|
36563
|
+
get: /* @__PURE__ */ __name(function() {
|
|
36340
36564
|
return validateThermostat;
|
|
36341
|
-
}
|
|
36565
|
+
}, "get")
|
|
36342
36566
|
});
|
|
36343
36567
|
|
|
36344
36568
|
// src/models/ticket.js
|
|
36345
36569
|
var Ticket = class extends Entity {
|
|
36570
|
+
static {
|
|
36571
|
+
__name(this, "Ticket");
|
|
36572
|
+
}
|
|
36346
36573
|
/**
|
|
36347
36574
|
* @typedef {Object} TicketData A ticket is a request from a user.
|
|
36348
36575
|
* @property {string} id - Identifier of the object.
|
|
@@ -36546,13 +36773,16 @@ Object.defineProperty(Ticket.prototype, "schema", {
|
|
|
36546
36773
|
}
|
|
36547
36774
|
});
|
|
36548
36775
|
Object.defineProperty(Ticket.prototype, "validator", {
|
|
36549
|
-
get: function() {
|
|
36776
|
+
get: /* @__PURE__ */ __name(function() {
|
|
36550
36777
|
return validateTicket;
|
|
36551
|
-
}
|
|
36778
|
+
}, "get")
|
|
36552
36779
|
});
|
|
36553
36780
|
|
|
36554
36781
|
// src/models/timeSheet.js
|
|
36555
36782
|
var TimeSheet = class extends Entity {
|
|
36783
|
+
static {
|
|
36784
|
+
__name(this, "TimeSheet");
|
|
36785
|
+
}
|
|
36556
36786
|
/**
|
|
36557
36787
|
* @typedef {Object} TimeSheetData
|
|
36558
36788
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -36617,13 +36847,16 @@ Object.defineProperty(TimeSheet.prototype, "schema", {
|
|
|
36617
36847
|
}
|
|
36618
36848
|
});
|
|
36619
36849
|
Object.defineProperty(TimeSheet.prototype, "validator", {
|
|
36620
|
-
get: function() {
|
|
36850
|
+
get: /* @__PURE__ */ __name(function() {
|
|
36621
36851
|
return validateTimeSheet;
|
|
36622
|
-
}
|
|
36852
|
+
}, "get")
|
|
36623
36853
|
});
|
|
36624
36854
|
|
|
36625
36855
|
// src/models/user.js
|
|
36626
36856
|
var User = class extends Entity {
|
|
36857
|
+
static {
|
|
36858
|
+
__name(this, "User");
|
|
36859
|
+
}
|
|
36627
36860
|
/**
|
|
36628
36861
|
* @typedef {Object} UserData
|
|
36629
36862
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -36829,13 +37062,16 @@ Object.defineProperty(User.prototype, "schema", {
|
|
|
36829
37062
|
}
|
|
36830
37063
|
});
|
|
36831
37064
|
Object.defineProperty(User.prototype, "validator", {
|
|
36832
|
-
get: function() {
|
|
37065
|
+
get: /* @__PURE__ */ __name(function() {
|
|
36833
37066
|
return validateUser;
|
|
36834
|
-
}
|
|
37067
|
+
}, "get")
|
|
36835
37068
|
});
|
|
36836
37069
|
|
|
36837
37070
|
// src/models/vendor.js
|
|
36838
37071
|
var Vendor = class extends Entity {
|
|
37072
|
+
static {
|
|
37073
|
+
__name(this, "Vendor");
|
|
37074
|
+
}
|
|
36839
37075
|
/**
|
|
36840
37076
|
* @typedef {Object} VendorData
|
|
36841
37077
|
* @property {string} [id] - Identifier of the object.
|
|
@@ -36886,13 +37122,16 @@ Object.defineProperty(Vendor.prototype, "schema", {
|
|
|
36886
37122
|
}
|
|
36887
37123
|
});
|
|
36888
37124
|
Object.defineProperty(Vendor.prototype, "validator", {
|
|
36889
|
-
get: function() {
|
|
37125
|
+
get: /* @__PURE__ */ __name(function() {
|
|
36890
37126
|
return validateVendor;
|
|
36891
|
-
}
|
|
37127
|
+
}, "get")
|
|
36892
37128
|
});
|
|
36893
37129
|
|
|
36894
37130
|
// src/models/windowCovering.js
|
|
36895
37131
|
var WindowCovering = class extends Entity {
|
|
37132
|
+
static {
|
|
37133
|
+
__name(this, "WindowCovering");
|
|
37134
|
+
}
|
|
36896
37135
|
/**
|
|
36897
37136
|
* @typedef {Object} WindowCoveringData Any smart window covering
|
|
36898
37137
|
* @property {string} id - Identifier of the object.
|
|
@@ -36959,9 +37198,9 @@ Object.defineProperty(WindowCovering.prototype, "schema", {
|
|
|
36959
37198
|
}
|
|
36960
37199
|
});
|
|
36961
37200
|
Object.defineProperty(WindowCovering.prototype, "validator", {
|
|
36962
|
-
get: function() {
|
|
37201
|
+
get: /* @__PURE__ */ __name(function() {
|
|
36963
37202
|
return validateWindowCovering;
|
|
36964
|
-
}
|
|
37203
|
+
}, "get")
|
|
36965
37204
|
});
|
|
36966
37205
|
|
|
36967
37206
|
// src/utils.js
|
|
@@ -37049,6 +37288,7 @@ function entityFactory(type) {
|
|
|
37049
37288
|
throw new Error("Unknown entity type: " + type);
|
|
37050
37289
|
}
|
|
37051
37290
|
}
|
|
37291
|
+
__name(entityFactory, "entityFactory");
|
|
37052
37292
|
function errorFactory(errName) {
|
|
37053
37293
|
switch (errName) {
|
|
37054
37294
|
case "AppError":
|
|
@@ -37079,10 +37319,12 @@ function errorFactory(errName) {
|
|
|
37079
37319
|
return new Error("Invalid error name: " + errName);
|
|
37080
37320
|
}
|
|
37081
37321
|
}
|
|
37322
|
+
__name(errorFactory, "errorFactory");
|
|
37082
37323
|
function eventFactory(eventName) {
|
|
37083
37324
|
const AllEvents = Object.values(events_exports);
|
|
37084
37325
|
const Event2 = AllEvents.find((E) => E.prototype.name === eventName);
|
|
37085
37326
|
if (!Event2) throw new Error("Invalid event name: " + eventName);
|
|
37086
37327
|
return Event2;
|
|
37087
37328
|
}
|
|
37329
|
+
__name(eventFactory, "eventFactory");
|
|
37088
37330
|
//# sourceMappingURL=utils.cjs.map
|