@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.
Files changed (36) hide show
  1. package/dist/cjs/schemas/definitions.json +1 -0
  2. package/dist/esm/Client.js +525 -237
  3. package/dist/esm/Client.js.map +4 -4
  4. package/dist/esm/Models.js +6 -1
  5. package/dist/esm/Models.js.map +2 -2
  6. package/dist/esm/defs.js +525 -237
  7. package/dist/esm/defs.js.map +4 -4
  8. package/dist/esm/utils.js +6 -1
  9. package/dist/esm/utils.js.map +2 -2
  10. package/dist/types/Client/index.d.ts.map +1 -1
  11. package/dist/types/Errors/index.d.ts +12 -12
  12. package/dist/types/Errors/index.d.ts.map +1 -1
  13. package/dist/types/Events/Event.d.ts +10 -9
  14. package/dist/types/Events/Event.d.ts.map +1 -1
  15. package/dist/types/schemas/AlarmSchema.d.ts +1 -0
  16. package/dist/types/schemas/CameraSchema.d.ts +1 -0
  17. package/dist/types/schemas/CategorySchema.d.ts +1 -0
  18. package/dist/types/schemas/CourtesySchema.d.ts +1 -0
  19. package/dist/types/schemas/CredentialSchema.d.ts +1 -0
  20. package/dist/types/schemas/DimmerSchema.d.ts +1 -0
  21. package/dist/types/schemas/GatewaySchema.d.ts +1 -0
  22. package/dist/types/schemas/LockSchema.d.ts +1 -0
  23. package/dist/types/schemas/MediaSourceSchema.d.ts +1 -0
  24. package/dist/types/schemas/MotionSensorSchema.d.ts +1 -0
  25. package/dist/types/schemas/ProductSchema.d.ts +1 -0
  26. package/dist/types/schemas/ReservationSchema.d.ts +1 -0
  27. package/dist/types/schemas/RoomSchema.d.ts +10 -0
  28. package/dist/types/schemas/SpaceSchema.d.ts +1 -0
  29. package/dist/types/schemas/SwitchSchema.d.ts +1 -0
  30. package/dist/types/schemas/SystemUserSchema.d.ts +1 -0
  31. package/dist/types/schemas/ThermostatSchema.d.ts +1 -0
  32. package/dist/types/schemas/UserSchema.d.ts +1 -0
  33. package/dist/types/schemas/WindowCoveringSchema.d.ts +1 -0
  34. package/dist/types/utils/errorFactory.d.ts +1 -1
  35. package/dist/types/utils/errorFactory.d.ts.map +1 -1
  36. package/package.json +1 -1
package/dist/esm/utils.js CHANGED
@@ -6879,6 +6879,7 @@ var require_discriminator = __commonJS({
6879
6879
  var codegen_1 = require_codegen();
6880
6880
  var types_1 = require_types();
6881
6881
  var compile_1 = require_compile();
6882
+ var ref_error_1 = require_ref_error();
6882
6883
  var util_1 = require_util();
6883
6884
  var error = {
6884
6885
  message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`,
@@ -6933,9 +6934,12 @@ var require_discriminator = __commonJS({
6933
6934
  for (let i = 0; i < oneOf.length; i++) {
6934
6935
  let sch = oneOf[i];
6935
6936
  if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
6936
- sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref);
6937
+ const ref = sch.$ref;
6938
+ sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref);
6937
6939
  if (sch instanceof compile_1.SchemaEnv)
6938
6940
  sch = sch.schema;
6941
+ if (sch === void 0)
6942
+ throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref);
6939
6943
  }
6940
6944
  const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];
6941
6945
  if (typeof propSch != "object") {
@@ -7629,6 +7633,7 @@ var require_definitions = __commonJS({
7629
7633
  "twilio",
7630
7634
  "valcom",
7631
7635
  "vizio",
7636
+ "wisenet",
7632
7637
  "cloudflare-images",
7633
7638
  "cloudflare-stream",
7634
7639
  "insperia-privacy"