@kohost/api-client 3.3.16 → 3.3.18
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/cjs/schemas/definitions.json +1 -0
- package/dist/esm/Client.js +525 -237
- package/dist/esm/Client.js.map +4 -4
- package/dist/esm/Models.js +6 -1
- package/dist/esm/Models.js.map +2 -2
- package/dist/esm/defs.js +525 -237
- package/dist/esm/defs.js.map +4 -4
- package/dist/esm/utils.js +6 -1
- package/dist/esm/utils.js.map +2 -2
- package/dist/types/Client/index.d.ts.map +1 -1
- package/dist/types/Errors/index.d.ts +12 -12
- package/dist/types/Errors/index.d.ts.map +1 -1
- package/dist/types/Events/Event.d.ts +10 -9
- package/dist/types/Events/Event.d.ts.map +1 -1
- package/dist/types/schemas/AlarmSchema.d.ts +1 -0
- package/dist/types/schemas/CameraSchema.d.ts +1 -0
- package/dist/types/schemas/CategorySchema.d.ts +1 -0
- package/dist/types/schemas/CourtesySchema.d.ts +1 -0
- package/dist/types/schemas/CredentialSchema.d.ts +1 -0
- package/dist/types/schemas/DimmerSchema.d.ts +1 -0
- package/dist/types/schemas/GatewaySchema.d.ts +1 -0
- package/dist/types/schemas/LockSchema.d.ts +1 -0
- package/dist/types/schemas/MediaSourceSchema.d.ts +1 -0
- package/dist/types/schemas/MotionSensorSchema.d.ts +1 -0
- package/dist/types/schemas/ProductSchema.d.ts +1 -0
- package/dist/types/schemas/ReservationSchema.d.ts +1 -0
- package/dist/types/schemas/RoomSchema.d.ts +10 -0
- package/dist/types/schemas/SpaceSchema.d.ts +1 -0
- package/dist/types/schemas/SwitchSchema.d.ts +1 -0
- package/dist/types/schemas/SystemUserSchema.d.ts +1 -0
- package/dist/types/schemas/ThermostatSchema.d.ts +1 -0
- package/dist/types/schemas/UserSchema.d.ts +1 -0
- package/dist/types/schemas/WindowCoveringSchema.d.ts +1 -0
- package/dist/types/utils/errorFactory.d.ts +1 -1
- package/dist/types/utils/errorFactory.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/esm/Models.js
CHANGED
|
@@ -6836,6 +6836,7 @@ var require_discriminator = __commonJS({
|
|
|
6836
6836
|
var codegen_1 = require_codegen();
|
|
6837
6837
|
var types_1 = require_types();
|
|
6838
6838
|
var compile_1 = require_compile();
|
|
6839
|
+
var ref_error_1 = require_ref_error();
|
|
6839
6840
|
var util_1 = require_util();
|
|
6840
6841
|
var error = {
|
|
6841
6842
|
message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`,
|
|
@@ -6890,9 +6891,12 @@ var require_discriminator = __commonJS({
|
|
|
6890
6891
|
for (let i = 0; i < oneOf.length; i++) {
|
|
6891
6892
|
let sch = oneOf[i];
|
|
6892
6893
|
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
|
|
6893
|
-
|
|
6894
|
+
const ref = sch.$ref;
|
|
6895
|
+
sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref);
|
|
6894
6896
|
if (sch instanceof compile_1.SchemaEnv)
|
|
6895
6897
|
sch = sch.schema;
|
|
6898
|
+
if (sch === void 0)
|
|
6899
|
+
throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref);
|
|
6896
6900
|
}
|
|
6897
6901
|
const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];
|
|
6898
6902
|
if (typeof propSch != "object") {
|
|
@@ -7586,6 +7590,7 @@ var require_definitions = __commonJS({
|
|
|
7586
7590
|
"twilio",
|
|
7587
7591
|
"valcom",
|
|
7588
7592
|
"vizio",
|
|
7593
|
+
"wisenet",
|
|
7589
7594
|
"cloudflare-images",
|
|
7590
7595
|
"cloudflare-stream",
|
|
7591
7596
|
"insperia-privacy"
|