@kohost/api-client 4.19.8 → 4.20.0
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/models/space.d.cts +10 -0
- package/dist/cjs/schemas/definitions.cjs +1 -0
- package/dist/cjs/schemas/definitions.cjs.map +1 -1
- package/dist/cjs/schemas/definitions.d.cts +1 -1
- package/dist/cjs/schemas/space.cjs +13 -2
- package/dist/cjs/schemas/space.cjs.map +1 -1
- package/dist/cjs/schemas/space.d.cts +33 -4
- package/dist/esm/models/space.d.ts +10 -0
- package/dist/esm/schemas/definitions.d.ts +1 -1
- package/dist/esm/schemas/definitions.js +1 -0
- package/dist/esm/schemas/definitions.js.map +1 -1
- package/dist/esm/schemas/space.d.ts +33 -4
- package/dist/esm/schemas/space.js +13 -2
- package/dist/esm/schemas/space.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,16 @@ import { SpaceSchema, spaceSchema } from '../schemas/space.cjs';
|
|
|
4
4
|
import 'ajv';
|
|
5
5
|
import '../schemas/definitions.cjs';
|
|
6
6
|
import 'json-schema-to-ts';
|
|
7
|
+
import '../schemas/switch.cjs';
|
|
8
|
+
import '../schemas/dimmer.cjs';
|
|
9
|
+
import '../schemas/thermostat.cjs';
|
|
10
|
+
import '../schemas/lock.cjs';
|
|
11
|
+
import '../schemas/windowCovering.cjs';
|
|
12
|
+
import '../schemas/courtesy.cjs';
|
|
13
|
+
import '../schemas/camera.cjs';
|
|
14
|
+
import '../schemas/mediaSource.cjs';
|
|
15
|
+
import '../schemas/motionSensor.cjs';
|
|
16
|
+
import '../schemas/alarm.cjs';
|
|
7
17
|
|
|
8
18
|
/**
|
|
9
19
|
* Data type for Space constructor - exported for backwards compatibility
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/definitions.ts"],"sourcesContent":["const defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lg\",\n \"lg-webos\",\n \"lapi\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"newline\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"dimmer\",\n \"switch\",\n \"motionSensor\",\n \"windowCovering\",\n \"camera\",\n \"mediaSource\",\n \"thermostat\",\n \"lock\",\n \"courtesy\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Communication\",\n \"Config\",\n \"Door Ajar\",\n \"Equipment\",\n \"Temperature\",\n \"Maintenance\",\n \"Cost\",\n \"Registration\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,IACX,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM,CAAC,UAAU,QAAQ;AAAA,MACzB,QAAQ;AAAA,IACV;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU,CAAC,QAAQ,QAAQ,MAAM;AAAA,MACjC,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,MACF;AAAA,IACF;AAAA,IACA,SAA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A,UACJ,MAAM;AAAA,UACN,MAAM;AAAA,QACR;AAAA,QACA,WAAW;AAAA,UACT,MAAM;AAAA,UACN,SAAS;AAAA,QACX;AAAA,QACA,aAAa;AAAA,UACX,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,QAAQ;AAAA,UACV;AAAA,UACA,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,KAAK;AAAA,YACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACzB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAKA,IAAO,sBAAQ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/definitions.ts"],"sourcesContent":["const defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lg\",\n \"lg-webos\",\n \"lapi\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"newline\",\n \"obix\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"dimmer\",\n \"switch\",\n \"motionSensor\",\n \"windowCovering\",\n \"camera\",\n \"mediaSource\",\n \"thermostat\",\n \"lock\",\n \"courtesy\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Communication\",\n \"Config\",\n \"Door Ajar\",\n \"Equipment\",\n \"Temperature\",\n \"Maintenance\",\n \"Cost\",\n \"Registration\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,IACX,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM,CAAC,UAAU,QAAQ;AAAA,MACzB,QAAQ;AAAA,IACV;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU,CAAC,QAAQ,QAAQ,MAAM;AAAA,MACjC,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,MACF;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,YAAY;AAAA,QACV,IAAI;AAAA,UACF,MAAM;AAAA,QACR;AAAA,QACA,OAAO;AAAA,UACL,MAAM;AAAA,QACR;AAAA,QACA,OAAO;AAAA,UACL,MAAM;AAAA,QACR;AAAA,QACA,OAAO;AAAA,UACL,MAAM;AAAA,QACR;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,QACR;AAAA,QACA,OAAO;AAAA,UACL,MAAM;AAAA,QACR;AAAA,QACA,YAAY;AAAA,UACV,MAAM;AAA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ACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,QAAQ;AAAA,UACV;AAAA,UACA,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,KAAK;AAAA,YACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACzB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAKA,IAAO,sBAAQ;","names":[]}
|
|
@@ -75,7 +75,7 @@ declare const defs: {
|
|
|
75
75
|
readonly driver: {
|
|
76
76
|
readonly type: "string";
|
|
77
77
|
readonly description: "Driver used to communicate with the object.";
|
|
78
|
-
readonly enum: readonly ["adlink", "avigilon-alta", "aws-kinesis", "bacnet", "benq", "butler", "comelit", "crestron", "dell", "digital-watchdog", "distech", "dmp", "doorbird", "dormakaba", "dsc", "dsc-itv2", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "newline", "paxton", "pdk", "pelican-wireless", "power-shades", "rachio", "rebrandly", "relay", "rtsp", "salto", "salto-irn", "samsung", "se", "sendgrid", "smartboard", "sonifi", "stay-n-touch", "storable", "twilio", "unifi", "valcom", "veracross", "verkada", "vivotek", "vizio", "wisenet", "cloudflare-images", "cloudflare-stream", "insperia-privacy"];
|
|
78
|
+
readonly enum: readonly ["adlink", "avigilon-alta", "aws-kinesis", "bacnet", "benq", "butler", "comelit", "crestron", "dell", "digital-watchdog", "distech", "dmp", "doorbird", "dormakaba", "dsc", "dsc-itv2", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "newline", "obix", "paxton", "pdk", "pelican-wireless", "power-shades", "rachio", "rebrandly", "relay", "rtsp", "salto", "salto-irn", "samsung", "se", "sendgrid", "smartboard", "sonifi", "stay-n-touch", "storable", "twilio", "unifi", "valcom", "veracross", "verkada", "vivotek", "vizio", "wisenet", "cloudflare-images", "cloudflare-stream", "insperia-privacy"];
|
|
79
79
|
};
|
|
80
80
|
readonly type: {
|
|
81
81
|
readonly type: "string";
|
|
@@ -48,6 +48,7 @@ const spaceSchema = {
|
|
|
48
48
|
"office",
|
|
49
49
|
"building",
|
|
50
50
|
"commonArea",
|
|
51
|
+
"hallway",
|
|
51
52
|
"conferenceRoom",
|
|
52
53
|
"lobby",
|
|
53
54
|
"gym",
|
|
@@ -192,8 +193,18 @@ const spaceSchema = {
|
|
|
192
193
|
devices: {
|
|
193
194
|
type: "array",
|
|
194
195
|
items: {
|
|
195
|
-
|
|
196
|
-
|
|
196
|
+
anyOf: [
|
|
197
|
+
{ $ref: "switch.json" },
|
|
198
|
+
{ $ref: "dimmer.json" },
|
|
199
|
+
{ $ref: "thermostat.json" },
|
|
200
|
+
{ $ref: "lock.json" },
|
|
201
|
+
{ $ref: "windowCovering.json" },
|
|
202
|
+
{ $ref: "courtesy.json" },
|
|
203
|
+
{ $ref: "camera.json" },
|
|
204
|
+
{ $ref: "mediaSource.json" },
|
|
205
|
+
{ $ref: "motionSensor.json" },
|
|
206
|
+
{ $ref: "alarm.json" }
|
|
207
|
+
]
|
|
197
208
|
},
|
|
198
209
|
default: []
|
|
199
210
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/space.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const spaceSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"space.json\",\n title: \"Space\",\n type: \"object\",\n required: [\"id\", \"name\", \"type\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n minLength: 1,\n },\n type: {\n type: \"string\",\n default: \"space\",\n enum: [\"space\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\n \"classRoom\",\n \"hotelRoom\",\n \"office\",\n \"building\",\n \"commonArea\",\n \"conferenceRoom\",\n \"lobby\",\n \"gym\",\n \"pool\",\n \"restaurant\",\n \"unit\",\n \"cafeteria\",\n \"multiPurposeRoom\",\n \"library\",\n \"idf\",\n \"restroom\",\n \"exterior\",\n ],\n },\n floor: {\n type: \"string\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n category: {\n type: \"string\",\n description: \"This is the category id\",\n },\n rooms: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description: \"IDs of rooms in the space\",\n },\n spaces: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description: \"IDs of sub-spaces in the space\",\n },\n occupied: {\n type: \"boolean\",\n },\n inUse: {\n type: \"boolean\",\n },\n eco: {\n type: \"object\",\n additionalProperties: false,\n default: {\n active: false,\n allowed: false,\n previousState: null,\n },\n properties: {\n active: {\n type: \"boolean\",\n default: false,\n },\n activatedAt: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n allowed: {\n type: \"boolean\",\n default: false,\n },\n previousState: {\n type: [\"object\", \"null\"],\n properties: {\n thermostats: {\n type: \"object\",\n patternProperties: {\n \".*\": {\n type: \"object\",\n properties: {\n setpoints: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n cool: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n heat: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n auto: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n additionalProperties: false,\n },\n },\n },\n features: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\"pet\"],\n },\n },\n maximumOccupancy: {\n type: \"number\",\n minimum: 1,\n },\n housekeepingStatus: {\n type: \"string\",\n enum: [\"clean\", \"dirty\", \"inspected\", \"pickup\"],\n },\n serviceStatus: {\n type: \"string\",\n enum: [\"inService\", \"outOfOrder\", \"outOfService\"],\n },\n devices: {\n type: \"array\",\n items: {\n
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/space.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport type { switchSchema } from \"./switch\";\nimport type { dimmerSchema } from \"./dimmer\";\nimport type { thermostatSchema } from \"./thermostat\";\nimport type { lockSchema } from \"./lock\";\nimport type { windowCoveringSchema } from \"./windowCovering\";\nimport type { courtesySchema } from \"./courtesy\";\nimport type { cameraSchema } from \"./camera\";\nimport type { mediaSourceSchema } from \"./mediaSource\";\nimport type { motionSensorSchema } from \"./motionSensor\";\nimport type { alarmSchema } from \"./alarm\";\n\nexport const spaceSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"space.json\",\n title: \"Space\",\n type: \"object\",\n required: [\"id\", \"name\", \"type\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n minLength: 1,\n },\n type: {\n type: \"string\",\n default: \"space\",\n enum: [\"space\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\n \"classRoom\",\n \"hotelRoom\",\n \"office\",\n \"building\",\n \"commonArea\",\n \"hallway\",\n \"conferenceRoom\",\n \"lobby\",\n \"gym\",\n \"pool\",\n \"restaurant\",\n \"unit\",\n \"cafeteria\",\n \"multiPurposeRoom\",\n \"library\",\n \"idf\",\n \"restroom\",\n \"exterior\",\n ],\n },\n floor: {\n type: \"string\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n category: {\n type: \"string\",\n description: \"This is the category id\",\n },\n rooms: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description: \"IDs of rooms in the space\",\n },\n spaces: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description: \"IDs of sub-spaces in the space\",\n },\n occupied: {\n type: \"boolean\",\n },\n inUse: {\n type: \"boolean\",\n },\n eco: {\n type: \"object\",\n additionalProperties: false,\n default: {\n active: false,\n allowed: false,\n previousState: null,\n },\n properties: {\n active: {\n type: \"boolean\",\n default: false,\n },\n activatedAt: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n allowed: {\n type: \"boolean\",\n default: false,\n },\n previousState: {\n type: [\"object\", \"null\"],\n properties: {\n thermostats: {\n type: \"object\",\n patternProperties: {\n \".*\": {\n type: \"object\",\n properties: {\n setpoints: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n cool: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n heat: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n auto: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n additionalProperties: false,\n },\n },\n },\n features: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\"pet\"],\n },\n },\n maximumOccupancy: {\n type: \"number\",\n minimum: 1,\n },\n housekeepingStatus: {\n type: \"string\",\n enum: [\"clean\", \"dirty\", \"inspected\", \"pickup\"],\n },\n serviceStatus: {\n type: \"string\",\n enum: [\"inService\", \"outOfOrder\", \"outOfService\"],\n },\n devices: {\n type: \"array\",\n items: {\n anyOf: [\n { $ref: \"switch.json\" },\n { $ref: \"dimmer.json\" },\n { $ref: \"thermostat.json\" },\n { $ref: \"lock.json\" },\n { $ref: \"windowCovering.json\" },\n { $ref: \"courtesy.json\" },\n { $ref: \"camera.json\" },\n { $ref: \"mediaSource.json\" },\n { $ref: \"motionSensor.json\" },\n { $ref: \"alarm.json\" },\n ],\n },\n default: [],\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type SpaceSchema = FromSchema<\n typeof spaceSchema,\n {\n references: [typeof defs, typeof switchSchema, typeof dimmerSchema, typeof thermostatSchema, typeof lockSchema, typeof windowCoveringSchema, typeof courtesySchema, typeof cameraSchema, typeof mediaSourceSchema, typeof motionSensorSchema, typeof alarmSchema];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAaO,MAAM,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,MAAM;AAAA,EAC/B,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,WAAW;AAAA,IACb;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,MAAM,CAAC,OAAO;AAAA,IAChB;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAA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aAAa;AAAA,QACvB;AAAA,MACF;AAAA,MACA,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { definitionsSchema as defs, ISODateString } from './definitions.cjs';
|
|
2
2
|
import { FromSchema } from 'json-schema-to-ts';
|
|
3
|
+
import { switchSchema } from './switch.cjs';
|
|
4
|
+
import { dimmerSchema } from './dimmer.cjs';
|
|
5
|
+
import { thermostatSchema } from './thermostat.cjs';
|
|
6
|
+
import { lockSchema } from './lock.cjs';
|
|
7
|
+
import { windowCoveringSchema } from './windowCovering.cjs';
|
|
8
|
+
import { courtesySchema } from './courtesy.cjs';
|
|
9
|
+
import { cameraSchema } from './camera.cjs';
|
|
10
|
+
import { mediaSourceSchema } from './mediaSource.cjs';
|
|
11
|
+
import { motionSensorSchema } from './motionSensor.cjs';
|
|
12
|
+
import { alarmSchema } from './alarm.cjs';
|
|
3
13
|
|
|
4
14
|
declare const spaceSchema: {
|
|
5
15
|
readonly $schema: "http://json-schema.org/draft-07/schema";
|
|
@@ -23,7 +33,7 @@ declare const spaceSchema: {
|
|
|
23
33
|
};
|
|
24
34
|
readonly discriminator: {
|
|
25
35
|
readonly type: "string";
|
|
26
|
-
readonly enum: readonly ["classRoom", "hotelRoom", "office", "building", "commonArea", "conferenceRoom", "lobby", "gym", "pool", "restaurant", "unit", "cafeteria", "multiPurposeRoom", "library", "idf", "restroom", "exterior"];
|
|
36
|
+
readonly enum: readonly ["classRoom", "hotelRoom", "office", "building", "commonArea", "hallway", "conferenceRoom", "lobby", "gym", "pool", "restaurant", "unit", "cafeteria", "multiPurposeRoom", "library", "idf", "restroom", "exterior"];
|
|
27
37
|
};
|
|
28
38
|
readonly floor: {
|
|
29
39
|
readonly type: "string";
|
|
@@ -155,8 +165,27 @@ declare const spaceSchema: {
|
|
|
155
165
|
readonly devices: {
|
|
156
166
|
readonly type: "array";
|
|
157
167
|
readonly items: {
|
|
158
|
-
readonly
|
|
159
|
-
|
|
168
|
+
readonly anyOf: readonly [{
|
|
169
|
+
readonly $ref: "switch.json";
|
|
170
|
+
}, {
|
|
171
|
+
readonly $ref: "dimmer.json";
|
|
172
|
+
}, {
|
|
173
|
+
readonly $ref: "thermostat.json";
|
|
174
|
+
}, {
|
|
175
|
+
readonly $ref: "lock.json";
|
|
176
|
+
}, {
|
|
177
|
+
readonly $ref: "windowCovering.json";
|
|
178
|
+
}, {
|
|
179
|
+
readonly $ref: "courtesy.json";
|
|
180
|
+
}, {
|
|
181
|
+
readonly $ref: "camera.json";
|
|
182
|
+
}, {
|
|
183
|
+
readonly $ref: "mediaSource.json";
|
|
184
|
+
}, {
|
|
185
|
+
readonly $ref: "motionSensor.json";
|
|
186
|
+
}, {
|
|
187
|
+
readonly $ref: "alarm.json";
|
|
188
|
+
}];
|
|
160
189
|
};
|
|
161
190
|
readonly default: readonly [];
|
|
162
191
|
};
|
|
@@ -175,7 +204,7 @@ declare const spaceSchema: {
|
|
|
175
204
|
};
|
|
176
205
|
};
|
|
177
206
|
type SpaceSchema = FromSchema<typeof spaceSchema, {
|
|
178
|
-
references: [typeof defs];
|
|
207
|
+
references: [typeof defs, typeof switchSchema, typeof dimmerSchema, typeof thermostatSchema, typeof lockSchema, typeof windowCoveringSchema, typeof courtesySchema, typeof cameraSchema, typeof mediaSourceSchema, typeof motionSensorSchema, typeof alarmSchema];
|
|
179
208
|
deserialize: [
|
|
180
209
|
{
|
|
181
210
|
pattern: {
|
|
@@ -4,6 +4,16 @@ import { SpaceSchema, spaceSchema } from '../schemas/space.js';
|
|
|
4
4
|
import 'ajv';
|
|
5
5
|
import '../schemas/definitions.js';
|
|
6
6
|
import 'json-schema-to-ts';
|
|
7
|
+
import '../schemas/switch.js';
|
|
8
|
+
import '../schemas/dimmer.js';
|
|
9
|
+
import '../schemas/thermostat.js';
|
|
10
|
+
import '../schemas/lock.js';
|
|
11
|
+
import '../schemas/windowCovering.js';
|
|
12
|
+
import '../schemas/courtesy.js';
|
|
13
|
+
import '../schemas/camera.js';
|
|
14
|
+
import '../schemas/mediaSource.js';
|
|
15
|
+
import '../schemas/motionSensor.js';
|
|
16
|
+
import '../schemas/alarm.js';
|
|
7
17
|
|
|
8
18
|
/**
|
|
9
19
|
* Data type for Space constructor - exported for backwards compatibility
|
|
@@ -75,7 +75,7 @@ declare const defs: {
|
|
|
75
75
|
readonly driver: {
|
|
76
76
|
readonly type: "string";
|
|
77
77
|
readonly description: "Driver used to communicate with the object.";
|
|
78
|
-
readonly enum: readonly ["adlink", "avigilon-alta", "aws-kinesis", "bacnet", "benq", "butler", "comelit", "crestron", "dell", "digital-watchdog", "distech", "dmp", "doorbird", "dormakaba", "dsc", "dsc-itv2", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "newline", "paxton", "pdk", "pelican-wireless", "power-shades", "rachio", "rebrandly", "relay", "rtsp", "salto", "salto-irn", "samsung", "se", "sendgrid", "smartboard", "sonifi", "stay-n-touch", "storable", "twilio", "unifi", "valcom", "veracross", "verkada", "vivotek", "vizio", "wisenet", "cloudflare-images", "cloudflare-stream", "insperia-privacy"];
|
|
78
|
+
readonly enum: readonly ["adlink", "avigilon-alta", "aws-kinesis", "bacnet", "benq", "butler", "comelit", "crestron", "dell", "digital-watchdog", "distech", "dmp", "doorbird", "dormakaba", "dsc", "dsc-itv2", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "newline", "obix", "paxton", "pdk", "pelican-wireless", "power-shades", "rachio", "rebrandly", "relay", "rtsp", "salto", "salto-irn", "samsung", "se", "sendgrid", "smartboard", "sonifi", "stay-n-touch", "storable", "twilio", "unifi", "valcom", "veracross", "verkada", "vivotek", "vizio", "wisenet", "cloudflare-images", "cloudflare-stream", "insperia-privacy"];
|
|
79
79
|
};
|
|
80
80
|
readonly type: {
|
|
81
81
|
readonly type: "string";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/definitions.ts"],"sourcesContent":["const defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lg\",\n \"lg-webos\",\n \"lapi\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"newline\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"dimmer\",\n \"switch\",\n \"motionSensor\",\n \"windowCovering\",\n \"camera\",\n \"mediaSource\",\n \"thermostat\",\n \"lock\",\n \"courtesy\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Communication\",\n \"Config\",\n \"Door Ajar\",\n \"Equipment\",\n \"Temperature\",\n \"Maintenance\",\n \"Cost\",\n \"Registration\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":"AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,IACX,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM,CAAC,UAAU,QAAQ;AAAA,MACzB,QAAQ;AAAA,IAC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ACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ,MAAM,CAAC,UAAU,MAAM;AAAA,MACvB,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,MAAM;AAAA,QACR;AAAA,QACA,WAAW;AAAA,UACT,MAAM;AAAA,UACN,SAAS;AAAA,QACX;AAAA,QACA,aAAa;AAAA,UACX,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,QAAQ;AAAA,UACV;AAAA,UACA,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,KAAK;AAAA,YACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACzB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAKA,IAAO,sBAAQ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/definitions.ts"],"sourcesContent":["const defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lg\",\n \"lg-webos\",\n \"lapi\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"newline\",\n \"obix\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"dimmer\",\n \"switch\",\n \"motionSensor\",\n \"windowCovering\",\n \"camera\",\n \"mediaSource\",\n \"thermostat\",\n \"lock\",\n \"courtesy\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Communication\",\n \"Config\",\n \"Door Ajar\",\n \"Equipment\",\n \"Temperature\",\n \"Maintenance\",\n \"Cost\",\n \"Registration\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":"AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,IACX,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM,CAAC,UAAU,QAAQ;AAAA,MACzB,QAAQ;AAAA,IACV;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU,CAAC,QAAQ,QAAQ,MAAM;AAAA,MACjC,YAAY;AAAA,QACV,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,QACA,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,aAAa;AAAA,QACf;AAAA,MACF;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,YAAY;AAAA,QACV,IAAI;AAAA,UACF,MAAM;AAAA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N,SAAS;AAAA,QACX;AAAA,QACA,aAAa;AAAA,UACX,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,IACX;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,QAAQ;AAAA,UACV;AAAA,UACA,OAAO;AAAA,YACL,MAAM;AAAA,UACR;AAAA,UACA,KAAK;AAAA,YACH,MAAM,CAAC,UAAU,MAAM;AAAA,UACzB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAKA,IAAO,sBAAQ;","names":[]}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { definitionsSchema as defs, ISODateString } from './definitions.js';
|
|
2
2
|
import { FromSchema } from 'json-schema-to-ts';
|
|
3
|
+
import { switchSchema } from './switch.js';
|
|
4
|
+
import { dimmerSchema } from './dimmer.js';
|
|
5
|
+
import { thermostatSchema } from './thermostat.js';
|
|
6
|
+
import { lockSchema } from './lock.js';
|
|
7
|
+
import { windowCoveringSchema } from './windowCovering.js';
|
|
8
|
+
import { courtesySchema } from './courtesy.js';
|
|
9
|
+
import { cameraSchema } from './camera.js';
|
|
10
|
+
import { mediaSourceSchema } from './mediaSource.js';
|
|
11
|
+
import { motionSensorSchema } from './motionSensor.js';
|
|
12
|
+
import { alarmSchema } from './alarm.js';
|
|
3
13
|
|
|
4
14
|
declare const spaceSchema: {
|
|
5
15
|
readonly $schema: "http://json-schema.org/draft-07/schema";
|
|
@@ -23,7 +33,7 @@ declare const spaceSchema: {
|
|
|
23
33
|
};
|
|
24
34
|
readonly discriminator: {
|
|
25
35
|
readonly type: "string";
|
|
26
|
-
readonly enum: readonly ["classRoom", "hotelRoom", "office", "building", "commonArea", "conferenceRoom", "lobby", "gym", "pool", "restaurant", "unit", "cafeteria", "multiPurposeRoom", "library", "idf", "restroom", "exterior"];
|
|
36
|
+
readonly enum: readonly ["classRoom", "hotelRoom", "office", "building", "commonArea", "hallway", "conferenceRoom", "lobby", "gym", "pool", "restaurant", "unit", "cafeteria", "multiPurposeRoom", "library", "idf", "restroom", "exterior"];
|
|
27
37
|
};
|
|
28
38
|
readonly floor: {
|
|
29
39
|
readonly type: "string";
|
|
@@ -155,8 +165,27 @@ declare const spaceSchema: {
|
|
|
155
165
|
readonly devices: {
|
|
156
166
|
readonly type: "array";
|
|
157
167
|
readonly items: {
|
|
158
|
-
readonly
|
|
159
|
-
|
|
168
|
+
readonly anyOf: readonly [{
|
|
169
|
+
readonly $ref: "switch.json";
|
|
170
|
+
}, {
|
|
171
|
+
readonly $ref: "dimmer.json";
|
|
172
|
+
}, {
|
|
173
|
+
readonly $ref: "thermostat.json";
|
|
174
|
+
}, {
|
|
175
|
+
readonly $ref: "lock.json";
|
|
176
|
+
}, {
|
|
177
|
+
readonly $ref: "windowCovering.json";
|
|
178
|
+
}, {
|
|
179
|
+
readonly $ref: "courtesy.json";
|
|
180
|
+
}, {
|
|
181
|
+
readonly $ref: "camera.json";
|
|
182
|
+
}, {
|
|
183
|
+
readonly $ref: "mediaSource.json";
|
|
184
|
+
}, {
|
|
185
|
+
readonly $ref: "motionSensor.json";
|
|
186
|
+
}, {
|
|
187
|
+
readonly $ref: "alarm.json";
|
|
188
|
+
}];
|
|
160
189
|
};
|
|
161
190
|
readonly default: readonly [];
|
|
162
191
|
};
|
|
@@ -175,7 +204,7 @@ declare const spaceSchema: {
|
|
|
175
204
|
};
|
|
176
205
|
};
|
|
177
206
|
type SpaceSchema = FromSchema<typeof spaceSchema, {
|
|
178
|
-
references: [typeof defs];
|
|
207
|
+
references: [typeof defs, typeof switchSchema, typeof dimmerSchema, typeof thermostatSchema, typeof lockSchema, typeof windowCoveringSchema, typeof courtesySchema, typeof cameraSchema, typeof mediaSourceSchema, typeof motionSensorSchema, typeof alarmSchema];
|
|
179
208
|
deserialize: [
|
|
180
209
|
{
|
|
181
210
|
pattern: {
|
|
@@ -26,6 +26,7 @@ const spaceSchema = {
|
|
|
26
26
|
"office",
|
|
27
27
|
"building",
|
|
28
28
|
"commonArea",
|
|
29
|
+
"hallway",
|
|
29
30
|
"conferenceRoom",
|
|
30
31
|
"lobby",
|
|
31
32
|
"gym",
|
|
@@ -170,8 +171,18 @@ const spaceSchema = {
|
|
|
170
171
|
devices: {
|
|
171
172
|
type: "array",
|
|
172
173
|
items: {
|
|
173
|
-
|
|
174
|
-
|
|
174
|
+
anyOf: [
|
|
175
|
+
{ $ref: "switch.json" },
|
|
176
|
+
{ $ref: "dimmer.json" },
|
|
177
|
+
{ $ref: "thermostat.json" },
|
|
178
|
+
{ $ref: "lock.json" },
|
|
179
|
+
{ $ref: "windowCovering.json" },
|
|
180
|
+
{ $ref: "courtesy.json" },
|
|
181
|
+
{ $ref: "camera.json" },
|
|
182
|
+
{ $ref: "mediaSource.json" },
|
|
183
|
+
{ $ref: "motionSensor.json" },
|
|
184
|
+
{ $ref: "alarm.json" }
|
|
185
|
+
]
|
|
175
186
|
},
|
|
176
187
|
default: []
|
|
177
188
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/space.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const spaceSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"space.json\",\n title: \"Space\",\n type: \"object\",\n required: [\"id\", \"name\", \"type\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n minLength: 1,\n },\n type: {\n type: \"string\",\n default: \"space\",\n enum: [\"space\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\n \"classRoom\",\n \"hotelRoom\",\n \"office\",\n \"building\",\n \"commonArea\",\n \"conferenceRoom\",\n \"lobby\",\n \"gym\",\n \"pool\",\n \"restaurant\",\n \"unit\",\n \"cafeteria\",\n \"multiPurposeRoom\",\n \"library\",\n \"idf\",\n \"restroom\",\n \"exterior\",\n ],\n },\n floor: {\n type: \"string\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n category: {\n type: \"string\",\n description: \"This is the category id\",\n },\n rooms: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description: \"IDs of rooms in the space\",\n },\n spaces: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description: \"IDs of sub-spaces in the space\",\n },\n occupied: {\n type: \"boolean\",\n },\n inUse: {\n type: \"boolean\",\n },\n eco: {\n type: \"object\",\n additionalProperties: false,\n default: {\n active: false,\n allowed: false,\n previousState: null,\n },\n properties: {\n active: {\n type: \"boolean\",\n default: false,\n },\n activatedAt: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n allowed: {\n type: \"boolean\",\n default: false,\n },\n previousState: {\n type: [\"object\", \"null\"],\n properties: {\n thermostats: {\n type: \"object\",\n patternProperties: {\n \".*\": {\n type: \"object\",\n properties: {\n setpoints: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n cool: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n heat: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n auto: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n additionalProperties: false,\n },\n },\n },\n features: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\"pet\"],\n },\n },\n maximumOccupancy: {\n type: \"number\",\n minimum: 1,\n },\n housekeepingStatus: {\n type: \"string\",\n enum: [\"clean\", \"dirty\", \"inspected\", \"pickup\"],\n },\n serviceStatus: {\n type: \"string\",\n enum: [\"inService\", \"outOfOrder\", \"outOfService\"],\n },\n devices: {\n type: \"array\",\n items: {\n
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/space.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport type { switchSchema } from \"./switch\";\nimport type { dimmerSchema } from \"./dimmer\";\nimport type { thermostatSchema } from \"./thermostat\";\nimport type { lockSchema } from \"./lock\";\nimport type { windowCoveringSchema } from \"./windowCovering\";\nimport type { courtesySchema } from \"./courtesy\";\nimport type { cameraSchema } from \"./camera\";\nimport type { mediaSourceSchema } from \"./mediaSource\";\nimport type { motionSensorSchema } from \"./motionSensor\";\nimport type { alarmSchema } from \"./alarm\";\n\nexport const spaceSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"space.json\",\n title: \"Space\",\n type: \"object\",\n required: [\"id\", \"name\", \"type\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n minLength: 1,\n },\n type: {\n type: \"string\",\n default: \"space\",\n enum: [\"space\"],\n },\n discriminator: {\n type: \"string\",\n enum: [\n \"classRoom\",\n \"hotelRoom\",\n \"office\",\n \"building\",\n \"commonArea\",\n \"hallway\",\n \"conferenceRoom\",\n \"lobby\",\n \"gym\",\n \"pool\",\n \"restaurant\",\n \"unit\",\n \"cafeteria\",\n \"multiPurposeRoom\",\n \"library\",\n \"idf\",\n \"restroom\",\n \"exterior\",\n ],\n },\n floor: {\n type: \"string\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n category: {\n type: \"string\",\n description: \"This is the category id\",\n },\n rooms: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description: \"IDs of rooms in the space\",\n },\n spaces: {\n type: \"array\",\n items: {\n type: \"string\",\n },\n description: \"IDs of sub-spaces in the space\",\n },\n occupied: {\n type: \"boolean\",\n },\n inUse: {\n type: \"boolean\",\n },\n eco: {\n type: \"object\",\n additionalProperties: false,\n default: {\n active: false,\n allowed: false,\n previousState: null,\n },\n properties: {\n active: {\n type: \"boolean\",\n default: false,\n },\n activatedAt: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n allowed: {\n type: \"boolean\",\n default: false,\n },\n previousState: {\n type: [\"object\", \"null\"],\n properties: {\n thermostats: {\n type: \"object\",\n patternProperties: {\n \".*\": {\n type: \"object\",\n properties: {\n setpoints: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n cool: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n heat: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n auto: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n additionalProperties: false,\n },\n },\n },\n features: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\"pet\"],\n },\n },\n maximumOccupancy: {\n type: \"number\",\n minimum: 1,\n },\n housekeepingStatus: {\n type: \"string\",\n enum: [\"clean\", \"dirty\", \"inspected\", \"pickup\"],\n },\n serviceStatus: {\n type: \"string\",\n enum: [\"inService\", \"outOfOrder\", \"outOfService\"],\n },\n devices: {\n type: \"array\",\n items: {\n anyOf: [\n { $ref: \"switch.json\" },\n { $ref: \"dimmer.json\" },\n { $ref: \"thermostat.json\" },\n { $ref: \"lock.json\" },\n { $ref: \"windowCovering.json\" },\n { $ref: \"courtesy.json\" },\n { $ref: \"camera.json\" },\n { $ref: \"mediaSource.json\" },\n { $ref: \"motionSensor.json\" },\n { $ref: \"alarm.json\" },\n ],\n },\n default: [],\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n} as const;\n\nexport type SpaceSchema = FromSchema<\n typeof spaceSchema,\n {\n references: [typeof defs, typeof switchSchema, typeof dimmerSchema, typeof thermostatSchema, typeof lockSchema, typeof windowCoveringSchema, typeof courtesySchema, typeof cameraSchema, typeof mediaSourceSchema, typeof motionSensorSchema, typeof alarmSchema];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAaO,MAAM,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,MAAM;AAAA,EAC/B,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,WAAW;AAAA,IACb;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,MAAM,CAAC,OAAO;AAAA,IAChB;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM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