@kohost/api-client 4.23.2 → 4.24.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/alarm.cjs +1 -1
- package/dist/cjs/models/alarm.cjs.map +1 -1
- package/dist/cjs/schemas/alarm.cjs +16 -3
- package/dist/cjs/schemas/alarm.cjs.map +1 -1
- package/dist/cjs/schemas/alarm.d.cts +16 -3
- 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/validate.d.cts +168 -168
- package/dist/esm/models/alarm.js +1 -1
- package/dist/esm/models/alarm.js.map +1 -1
- package/dist/esm/schemas/alarm.d.ts +16 -3
- package/dist/esm/schemas/alarm.js +16 -3
- package/dist/esm/schemas/alarm.js.map +1 -1
- 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/package.json +1 -1
|
@@ -39,10 +39,10 @@ class Alarm extends import_entity.Entity {
|
|
|
39
39
|
if (data.alerts !== void 0) this.alerts = data.alerts;
|
|
40
40
|
this.areas = data.areas;
|
|
41
41
|
this.zones = data.zones;
|
|
42
|
+
if (data.credentials !== void 0) this.credentials = data.credentials;
|
|
42
43
|
if (data.supportedNotifications !== void 0)
|
|
43
44
|
this.supportedNotifications = data.supportedNotifications;
|
|
44
45
|
if (data.notification !== void 0) this.notification = data.notification;
|
|
45
|
-
if (data.code !== void 0) this.code = data.code;
|
|
46
46
|
if (data.chime !== void 0) this.chime = data.chime;
|
|
47
47
|
if (data.watts !== void 0) this.watts = data.watts;
|
|
48
48
|
if (data.icon !== void 0) this.icon = data.icon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/models/alarm.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateAlarm as validate } from \"../validate.js\";\nimport { alarmSchema, type AlarmSchema } from \"../schemas/alarm.js\";\n\n/**\n * Data type for Alarm constructor - exported for backwards compatibility\n */\nexport type AlarmData = AlarmSchema;\n\n/**\n * Any smart alarm system\n */\nexport interface Alarm extends AlarmSchema {}\nexport class Alarm extends Entity {\n declare schema: typeof alarmSchema;\n declare validator: typeof validate;\n\n constructor(data: AlarmSchema) {\n super(data);\n this.id = data.id;\n if (data.name !== undefined) this.name = data.name;\n if (data.offline !== undefined) this.offline = data.offline;\n this.type = data.type;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n this.driver = data.driver;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n this.areas = data.areas;\n this.zones = data.zones;\n if (data.
|
|
1
|
+
{"version":3,"sources":["../../../.generated/models/alarm.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateAlarm as validate } from \"../validate.js\";\nimport { alarmSchema, type AlarmSchema } from \"../schemas/alarm.js\";\n\n/**\n * Data type for Alarm constructor - exported for backwards compatibility\n */\nexport type AlarmData = AlarmSchema;\n\n/**\n * Any smart alarm system\n */\nexport interface Alarm extends AlarmSchema {}\nexport class Alarm extends Entity {\n declare schema: typeof alarmSchema;\n declare validator: typeof validate;\n\n constructor(data: AlarmSchema) {\n super(data);\n this.id = data.id;\n if (data.name !== undefined) this.name = data.name;\n if (data.offline !== undefined) this.offline = data.offline;\n this.type = data.type;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n this.driver = data.driver;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n this.areas = data.areas;\n this.zones = data.zones;\n if (data.credentials !== undefined) this.credentials = data.credentials;\n if (data.supportedNotifications !== undefined)\n this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n if (data.chime !== undefined) this.chime = data.chime;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined)\n this.firmwareVersion = data.firmwareVersion;\n if (data.address !== undefined) this.address = data.address;\n if (data.batteryLevel !== undefined) this.batteryLevel = data.batteryLevel;\n if (data.powerLevel !== undefined) this.powerLevel = data.powerLevel;\n if (data.monitoringTrouble !== undefined)\n this.monitoringTrouble = data.monitoringTrouble;\n if (data.bellTrouble !== undefined) this.bellTrouble = data.bellTrouble;\n }\n}\n\nObject.defineProperty(Alarm.prototype, \"schema\", {\n value: alarmSchema,\n});\n\nObject.defineProperty(Alarm.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAAuB;AACvB,sBAA0C;AAC1C,mBAA8C;AAWvC,MAAM,cAAc,qBAAO;AAAA,EAflC,OAekC;AAAA;AAAA;AAAA,EAIhC,YAAY,MAAmB;AAC7B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,SAAS,KAAK;AACnB,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,SAAK,QAAQ,KAAK;AAClB,SAAK,QAAQ,KAAK;AAClB,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,2BAA2B;AAClC,WAAK,yBAAyB,KAAK;AACrC,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,oBAAoB;AAC3B,WAAK,kBAAkB,KAAK;AAC9B,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,eAAe,OAAW,MAAK,aAAa,KAAK;AAC1D,QAAI,KAAK,sBAAsB;AAC7B,WAAK,oBAAoB,KAAK;AAChC,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAAA,EAC9D;AACF;AAEA,OAAO,eAAe,MAAM,WAAW,UAAU;AAAA,EAC/C,OAAO;AACT,CAAC;AAED,OAAO,eAAe,MAAM,WAAW,aAAa;AAAA,EAClD,KAAK,kCAAY;AACf,WAAO,gBAAAA;AAAA,EACT,GAFK;AAGP,CAAC;","names":["validate"]}
|
|
@@ -117,15 +117,28 @@ const alarmSchema = {
|
|
|
117
117
|
additionalProperties: false
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
+
credentials: {
|
|
121
|
+
type: "array",
|
|
122
|
+
readOnly: true,
|
|
123
|
+
items: {
|
|
124
|
+
type: "object",
|
|
125
|
+
properties: {
|
|
126
|
+
id: {
|
|
127
|
+
$ref: "definitions.json#/definitions/id"
|
|
128
|
+
},
|
|
129
|
+
name: {
|
|
130
|
+
type: "string",
|
|
131
|
+
description: "Name of the credential"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
120
136
|
supportedNotifications: {
|
|
121
137
|
$ref: "definitions.json#/definitions/supportedNotifications"
|
|
122
138
|
},
|
|
123
139
|
notification: {
|
|
124
140
|
$ref: "definitions.json#/definitions/notification"
|
|
125
141
|
},
|
|
126
|
-
code: {
|
|
127
|
-
type: "string"
|
|
128
|
-
},
|
|
129
142
|
chime: {
|
|
130
143
|
type: "boolean",
|
|
131
144
|
description: "Chime enabled"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/alarm.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const alarmSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"alarm.json\",\n title: \"Alarm\",\n description: \"Any smart alarm system\",\n type: \"object\",\n definitions: {\n securityMode: {\n type: [\"string\", \"null\"],\n enum: [\n \"arming\",\n \"disarming\",\n \"armed\",\n \"disarmed\",\n \"intrusion\",\n \"fire\",\n \"medical\",\n null,\n ],\n },\n },\n required: [\"id\", \"type\", \"areas\", \"zones\", \"driver\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n description: \"Name of the alarm\",\n },\n offline: {\n type: \"boolean\",\n },\n type: {\n type: \"string\",\n enum: [\"alarm\"],\n default: \"alarm\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\",\n },\n areas: {\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 supportedSecurityModes: {\n type: \"array\",\n items: { $ref: \"#/definitions/securityMode\" },\n },\n securityMode: {\n $ref: \"#/definitions/securityMode\",\n },\n },\n additionalProperties: false,\n },\n },\n zones: {\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 secure: {\n type: [\"boolean\", \"null\"],\n },\n bypassed: {\n type: [\"boolean\", \"null\"],\n },\n offline: {\n type: \"boolean\",\n },\n batteryLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n },\n },\n additionalProperties: false,\n },\n },\n
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/alarm.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const alarmSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"alarm.json\",\n title: \"Alarm\",\n description: \"Any smart alarm system\",\n type: \"object\",\n definitions: {\n securityMode: {\n type: [\"string\", \"null\"],\n enum: [\n \"arming\",\n \"disarming\",\n \"armed\",\n \"disarmed\",\n \"intrusion\",\n \"fire\",\n \"medical\",\n null,\n ],\n },\n },\n required: [\"id\", \"type\", \"areas\", \"zones\", \"driver\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n description: \"Name of the alarm\",\n },\n offline: {\n type: \"boolean\",\n },\n type: {\n type: \"string\",\n enum: [\"alarm\"],\n default: \"alarm\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\",\n },\n areas: {\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 supportedSecurityModes: {\n type: \"array\",\n items: { $ref: \"#/definitions/securityMode\" },\n },\n securityMode: {\n $ref: \"#/definitions/securityMode\",\n },\n },\n additionalProperties: false,\n },\n },\n zones: {\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 secure: {\n type: [\"boolean\", \"null\"],\n },\n bypassed: {\n type: [\"boolean\", \"null\"],\n },\n offline: {\n type: \"boolean\",\n },\n batteryLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n },\n },\n additionalProperties: false,\n },\n },\n credentials: {\n type: \"array\",\n readOnly: true,\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n description: \"Name of the credential\",\n },\n }\n }\n },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: {\n $ref: \"definitions.json#/definitions/notification\",\n },\n chime: {\n type: \"boolean\",\n description: \"Chime enabled\",\n },\n watts: {\n $ref: \"definitions.json#/definitions/watts\",\n },\n icon: {\n type: \"string\",\n },\n manufacturer: {\n type: \"string\",\n },\n modelNumber: {\n type: \"string\",\n },\n serialNumber: {\n type: \"string\",\n },\n firmwareVersion: {\n type: \"string\",\n },\n address: {\n $ref: \"definitions.json#/definitions/address\",\n },\n batteryLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n },\n powerLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n },\n monitoringTrouble: {\n type: \"boolean\",\n },\n bellTrouble: {\n type: \"boolean\",\n },\n },\n} as const;\n\nexport type AlarmSchema = FromSchema<\n typeof alarmSchema,\n {\n references: [typeof defs];\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;AAGO,MAAM,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,aAAa;AAAA,IACX,cAAc;AAAA,MACZ,MAAM,CAAC,UAAU,MAAM;AAAA,MACvB,MAAM;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,UAAU,C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,sBAAsB;AAAA,MACxB;AAAA,IACF;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,UAAU;AAAA,MACV,OAAO;AAAA,QACL,MAAM;AAAA,QACN,YAAY;AAAA,UACV,IAAI;AAAA,YACF,MAAM;AAAA,UACR;AAAA,UACA,MAAM;AAAA,YACJ,MAAM;AAAA,YACN,aAAa;AAAA,UACf;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,MACZ,MAAM;AAAA,IACR;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,mBAAmB;AAAA,MACjB,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
|
@@ -91,15 +91,28 @@ declare const alarmSchema: {
|
|
|
91
91
|
readonly additionalProperties: false;
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
+
readonly credentials: {
|
|
95
|
+
readonly type: "array";
|
|
96
|
+
readonly readOnly: true;
|
|
97
|
+
readonly items: {
|
|
98
|
+
readonly type: "object";
|
|
99
|
+
readonly properties: {
|
|
100
|
+
readonly id: {
|
|
101
|
+
readonly $ref: "definitions.json#/definitions/id";
|
|
102
|
+
};
|
|
103
|
+
readonly name: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
readonly description: "Name of the credential";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
94
110
|
readonly supportedNotifications: {
|
|
95
111
|
readonly $ref: "definitions.json#/definitions/supportedNotifications";
|
|
96
112
|
};
|
|
97
113
|
readonly notification: {
|
|
98
114
|
readonly $ref: "definitions.json#/definitions/notification";
|
|
99
115
|
};
|
|
100
|
-
readonly code: {
|
|
101
|
-
readonly type: "string";
|
|
102
|
-
};
|
|
103
116
|
readonly chime: {
|
|
104
117
|
readonly type: "boolean";
|
|
105
118
|
readonly description: "Chime enabled";
|
|
@@ -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 \"earbridge\",\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 \"mobile-mule\",\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 \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\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 id: {\n type: \"string\"\n },\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;AAA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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 \"earbridge\",\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 \"mobile-mule\",\n \"modbus\",\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 \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\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 id: {\n type: \"string\"\n },\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,IAC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AAA,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", "earbridge", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "mobile-mule", "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"];
|
|
78
|
+
readonly enum: readonly ["adlink", "avigilon-alta", "aws-kinesis", "bacnet", "benq", "butler", "comelit", "crestron", "dell", "digital-watchdog", "distech", "dmp", "doorbird", "dormakaba", "dsc", "dsc-itv2", "earbridge", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "mobile-mule", "modbus", "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";
|
package/dist/cjs/validate.d.cts
CHANGED
|
@@ -1,149 +1,149 @@
|
|
|
1
1
|
import * as ajv from 'ajv';
|
|
2
2
|
|
|
3
3
|
declare const validateAlarm: ajv.ValidateFunction<{
|
|
4
|
-
id: any;
|
|
5
4
|
type: any;
|
|
6
|
-
|
|
5
|
+
id: any;
|
|
7
6
|
areas: any;
|
|
7
|
+
zones: any;
|
|
8
8
|
driver: any;
|
|
9
|
-
} & {
|
|
10
|
-
id: any;
|
|
11
9
|
} & {
|
|
12
10
|
type: any;
|
|
13
11
|
} & {
|
|
14
|
-
|
|
12
|
+
id: any;
|
|
15
13
|
} & {
|
|
16
14
|
areas: any;
|
|
15
|
+
} & {
|
|
16
|
+
zones: any;
|
|
17
17
|
} & {
|
|
18
18
|
driver: any;
|
|
19
19
|
}>;
|
|
20
20
|
declare const validateAnnouncement: ajv.ValidateFunction<{
|
|
21
|
-
id: any;
|
|
22
21
|
type: any;
|
|
23
|
-
body: any;
|
|
24
|
-
} & {
|
|
25
22
|
id: any;
|
|
23
|
+
body: any;
|
|
26
24
|
} & {
|
|
27
25
|
type: any;
|
|
26
|
+
} & {
|
|
27
|
+
id: any;
|
|
28
28
|
} & {
|
|
29
29
|
body: any;
|
|
30
30
|
}>;
|
|
31
31
|
declare const validateAutomation: ajv.ValidateFunction<{
|
|
32
|
-
id: any;
|
|
33
32
|
type: any;
|
|
33
|
+
id: any;
|
|
34
34
|
trigger: any;
|
|
35
35
|
actions: any;
|
|
36
|
-
} & {
|
|
37
|
-
id: any;
|
|
38
36
|
} & {
|
|
39
37
|
type: any;
|
|
38
|
+
} & {
|
|
39
|
+
id: any;
|
|
40
40
|
} & {
|
|
41
41
|
trigger: any;
|
|
42
42
|
} & {
|
|
43
43
|
actions: any;
|
|
44
44
|
}>;
|
|
45
45
|
declare const validateCamera: ajv.ValidateFunction<{
|
|
46
|
-
id: any;
|
|
47
46
|
type: any;
|
|
48
|
-
driver: any;
|
|
49
|
-
} & {
|
|
50
47
|
id: any;
|
|
48
|
+
driver: any;
|
|
51
49
|
} & {
|
|
52
50
|
type: any;
|
|
51
|
+
} & {
|
|
52
|
+
id: any;
|
|
53
53
|
} & {
|
|
54
54
|
driver: any;
|
|
55
55
|
}>;
|
|
56
56
|
declare const validateCategory: ajv.ValidateFunction<{
|
|
57
|
-
id: any;
|
|
58
57
|
type: any;
|
|
59
|
-
discriminator: any;
|
|
60
|
-
} & {
|
|
61
58
|
id: any;
|
|
59
|
+
discriminator: any;
|
|
62
60
|
} & {
|
|
63
61
|
type: any;
|
|
62
|
+
} & {
|
|
63
|
+
id: any;
|
|
64
64
|
} & {
|
|
65
65
|
discriminator: any;
|
|
66
66
|
}>;
|
|
67
67
|
declare const validateCourtesy: ajv.ValidateFunction<{
|
|
68
|
-
id: any;
|
|
69
68
|
type: any;
|
|
70
|
-
|
|
69
|
+
id: any;
|
|
71
70
|
driver: any;
|
|
72
71
|
supportedStates: any;
|
|
73
|
-
|
|
74
|
-
id: any;
|
|
72
|
+
state: any;
|
|
75
73
|
} & {
|
|
76
74
|
type: any;
|
|
77
75
|
} & {
|
|
78
|
-
|
|
76
|
+
id: any;
|
|
79
77
|
} & {
|
|
80
78
|
driver: any;
|
|
81
79
|
} & {
|
|
82
80
|
supportedStates: any;
|
|
81
|
+
} & {
|
|
82
|
+
state: any;
|
|
83
83
|
}>;
|
|
84
84
|
declare const validateCredential: ajv.ValidateFunction<{
|
|
85
|
-
id: any;
|
|
86
85
|
type: any;
|
|
87
|
-
expires: any;
|
|
88
|
-
credential: any;
|
|
89
|
-
} & {
|
|
90
86
|
id: any;
|
|
87
|
+
credential: any;
|
|
88
|
+
expires: any;
|
|
91
89
|
} & {
|
|
92
90
|
type: any;
|
|
93
91
|
} & {
|
|
94
|
-
|
|
92
|
+
id: any;
|
|
95
93
|
} & {
|
|
96
94
|
credential: any;
|
|
95
|
+
} & {
|
|
96
|
+
expires: any;
|
|
97
97
|
}>;
|
|
98
98
|
declare const validateDepartment: ajv.ValidateFunction<{
|
|
99
|
-
id: any;
|
|
100
|
-
type: any;
|
|
101
99
|
name: any;
|
|
102
|
-
|
|
100
|
+
type: any;
|
|
103
101
|
id: any;
|
|
102
|
+
} & {
|
|
103
|
+
name: any;
|
|
104
104
|
} & {
|
|
105
105
|
type: any;
|
|
106
106
|
} & {
|
|
107
|
-
|
|
107
|
+
id: any;
|
|
108
108
|
}>;
|
|
109
109
|
declare const validateDeviceRouter: ajv.ValidateFunction<{
|
|
110
|
-
id: any;
|
|
111
110
|
type: any;
|
|
112
|
-
organizationId: any;
|
|
113
|
-
driver: any;
|
|
114
|
-
} & {
|
|
115
111
|
id: any;
|
|
112
|
+
driver: any;
|
|
113
|
+
organizationId: any;
|
|
116
114
|
} & {
|
|
117
115
|
type: any;
|
|
118
116
|
} & {
|
|
119
|
-
|
|
117
|
+
id: any;
|
|
120
118
|
} & {
|
|
121
119
|
driver: any;
|
|
120
|
+
} & {
|
|
121
|
+
organizationId: any;
|
|
122
122
|
}>;
|
|
123
123
|
declare const validateDimmer: ajv.ValidateFunction<{
|
|
124
|
-
id: any;
|
|
125
124
|
type: any;
|
|
126
|
-
level: any;
|
|
127
|
-
driver: any;
|
|
128
|
-
} & {
|
|
129
125
|
id: any;
|
|
126
|
+
driver: any;
|
|
127
|
+
level: any;
|
|
130
128
|
} & {
|
|
131
129
|
type: any;
|
|
132
130
|
} & {
|
|
133
|
-
|
|
131
|
+
id: any;
|
|
134
132
|
} & {
|
|
135
133
|
driver: any;
|
|
134
|
+
} & {
|
|
135
|
+
level: any;
|
|
136
136
|
}>;
|
|
137
137
|
declare const validateDiscoveredDevice: ajv.ValidateFunction<{
|
|
138
|
-
id: any;
|
|
139
138
|
name: any;
|
|
139
|
+
id: any;
|
|
140
140
|
discriminator: any;
|
|
141
141
|
deviceId: any;
|
|
142
142
|
deviceData: any;
|
|
143
|
-
} & {
|
|
144
|
-
id: any;
|
|
145
143
|
} & {
|
|
146
144
|
name: any;
|
|
145
|
+
} & {
|
|
146
|
+
id: any;
|
|
147
147
|
} & {
|
|
148
148
|
discriminator: any;
|
|
149
149
|
} & {
|
|
@@ -152,40 +152,40 @@ declare const validateDiscoveredDevice: ajv.ValidateFunction<{
|
|
|
152
152
|
deviceData: any;
|
|
153
153
|
}>;
|
|
154
154
|
declare const validateEmailMessage: ajv.ValidateFunction<{
|
|
155
|
-
id: any;
|
|
156
155
|
type: any;
|
|
156
|
+
status: any;
|
|
157
|
+
id: any;
|
|
157
158
|
to: any;
|
|
158
159
|
from: any;
|
|
159
160
|
subject: any;
|
|
161
|
+
} & {
|
|
162
|
+
type: any;
|
|
163
|
+
} & {
|
|
160
164
|
status: any;
|
|
161
165
|
} & {
|
|
162
166
|
id: any;
|
|
163
|
-
} & {
|
|
164
|
-
type: any;
|
|
165
167
|
} & {
|
|
166
168
|
to: any;
|
|
167
169
|
} & {
|
|
168
170
|
from: any;
|
|
169
171
|
} & {
|
|
170
172
|
subject: any;
|
|
171
|
-
} & {
|
|
172
|
-
status: any;
|
|
173
173
|
}>;
|
|
174
174
|
declare const validateEnergyReport: ajv.ValidateFunction<{
|
|
175
|
+
type: any;
|
|
175
176
|
id: any;
|
|
176
177
|
roomId: any;
|
|
177
|
-
type: any;
|
|
178
178
|
first: any;
|
|
179
179
|
last: any;
|
|
180
180
|
consumption: any;
|
|
181
181
|
totals: any;
|
|
182
182
|
costPerKw: any;
|
|
183
|
+
} & {
|
|
184
|
+
type: any;
|
|
183
185
|
} & {
|
|
184
186
|
id: any;
|
|
185
187
|
} & {
|
|
186
188
|
roomId: any;
|
|
187
|
-
} & {
|
|
188
|
-
type: any;
|
|
189
189
|
} & {
|
|
190
190
|
first: any;
|
|
191
191
|
} & {
|
|
@@ -198,24 +198,24 @@ declare const validateEnergyReport: ajv.ValidateFunction<{
|
|
|
198
198
|
costPerKw: any;
|
|
199
199
|
}>;
|
|
200
200
|
declare const validateEnergyReportShard: ajv.ValidateFunction<{
|
|
201
|
+
type: any;
|
|
201
202
|
data: any;
|
|
202
203
|
id: any;
|
|
203
|
-
roomId: any;
|
|
204
|
-
type: any;
|
|
205
204
|
expires: any;
|
|
205
|
+
roomId: any;
|
|
206
206
|
first: any;
|
|
207
207
|
last: any;
|
|
208
208
|
ndata: any;
|
|
209
|
+
} & {
|
|
210
|
+
type: any;
|
|
209
211
|
} & {
|
|
210
212
|
data: any;
|
|
211
213
|
} & {
|
|
212
214
|
id: any;
|
|
213
|
-
} & {
|
|
214
|
-
roomId: any;
|
|
215
|
-
} & {
|
|
216
|
-
type: any;
|
|
217
215
|
} & {
|
|
218
216
|
expires: any;
|
|
217
|
+
} & {
|
|
218
|
+
roomId: any;
|
|
219
219
|
} & {
|
|
220
220
|
first: any;
|
|
221
221
|
} & {
|
|
@@ -224,30 +224,30 @@ declare const validateEnergyReportShard: ajv.ValidateFunction<{
|
|
|
224
224
|
ndata: any;
|
|
225
225
|
}>;
|
|
226
226
|
declare const validateGateway: ajv.ValidateFunction<{
|
|
227
|
-
id: any;
|
|
228
227
|
type: any;
|
|
229
228
|
status: any;
|
|
230
|
-
driver: any;
|
|
231
|
-
} & {
|
|
232
229
|
id: any;
|
|
230
|
+
driver: any;
|
|
233
231
|
} & {
|
|
234
232
|
type: any;
|
|
235
233
|
} & {
|
|
236
234
|
status: any;
|
|
235
|
+
} & {
|
|
236
|
+
id: any;
|
|
237
237
|
} & {
|
|
238
238
|
driver: any;
|
|
239
239
|
}>;
|
|
240
240
|
declare const validateGroup: ajv.ValidateFunction<{
|
|
241
|
-
id: any;
|
|
242
|
-
type: any;
|
|
243
241
|
name: any;
|
|
242
|
+
type: any;
|
|
243
|
+
id: any;
|
|
244
244
|
kind: any;
|
|
245
245
|
} & {
|
|
246
|
-
|
|
246
|
+
name: any;
|
|
247
247
|
} & {
|
|
248
248
|
type: any;
|
|
249
249
|
} & {
|
|
250
|
-
|
|
250
|
+
id: any;
|
|
251
251
|
} & {
|
|
252
252
|
kind: any;
|
|
253
253
|
}>;
|
|
@@ -259,66 +259,66 @@ declare const validateIdentification: ajv.ValidateFunction<{
|
|
|
259
259
|
type: any;
|
|
260
260
|
}>;
|
|
261
261
|
declare const validateIssue: ajv.ValidateFunction<{
|
|
262
|
-
id: any;
|
|
263
|
-
type: any;
|
|
264
262
|
name: any;
|
|
265
|
-
|
|
263
|
+
type: any;
|
|
266
264
|
id: any;
|
|
265
|
+
} & {
|
|
266
|
+
name: any;
|
|
267
267
|
} & {
|
|
268
268
|
type: any;
|
|
269
269
|
} & {
|
|
270
|
-
|
|
270
|
+
id: any;
|
|
271
271
|
}>;
|
|
272
272
|
declare const validateLock: ajv.ValidateFunction<{
|
|
273
|
-
id: any;
|
|
274
273
|
type: any;
|
|
275
|
-
state: any;
|
|
276
|
-
driver: any;
|
|
277
|
-
} & {
|
|
278
274
|
id: any;
|
|
275
|
+
driver: any;
|
|
276
|
+
state: any;
|
|
279
277
|
} & {
|
|
280
278
|
type: any;
|
|
281
279
|
} & {
|
|
282
|
-
|
|
280
|
+
id: any;
|
|
283
281
|
} & {
|
|
284
282
|
driver: any;
|
|
283
|
+
} & {
|
|
284
|
+
state: any;
|
|
285
285
|
}>;
|
|
286
286
|
declare const validateLog: ajv.ValidateFunction<{
|
|
287
|
-
id: any;
|
|
288
|
-
type: any;
|
|
289
287
|
name: any;
|
|
288
|
+
type: any;
|
|
289
|
+
id: any;
|
|
290
290
|
driver: any;
|
|
291
291
|
timestamp: any;
|
|
292
292
|
} & {
|
|
293
|
-
|
|
293
|
+
name: any;
|
|
294
294
|
} & {
|
|
295
295
|
type: any;
|
|
296
296
|
} & {
|
|
297
|
-
|
|
297
|
+
id: any;
|
|
298
298
|
} & {
|
|
299
299
|
driver: any;
|
|
300
300
|
} & {
|
|
301
301
|
timestamp: any;
|
|
302
302
|
}>;
|
|
303
303
|
declare const validateMediaFile: ajv.ValidateFunction<{
|
|
304
|
-
id: any;
|
|
305
304
|
type: any;
|
|
306
|
-
} & {
|
|
307
305
|
id: any;
|
|
308
306
|
} & {
|
|
309
307
|
type: any;
|
|
308
|
+
} & {
|
|
309
|
+
id: any;
|
|
310
310
|
}>;
|
|
311
311
|
declare const validateMediaSource: ajv.ValidateFunction<{
|
|
312
|
-
id: any;
|
|
313
312
|
type: any;
|
|
313
|
+
id: any;
|
|
314
314
|
driver: any;
|
|
315
315
|
discriminator: any;
|
|
316
316
|
audio: any;
|
|
317
317
|
video: any;
|
|
318
|
-
} & {
|
|
319
|
-
id: any;
|
|
320
318
|
} & {
|
|
321
319
|
type: any;
|
|
320
|
+
} & {
|
|
321
|
+
id: any;
|
|
322
322
|
} & {
|
|
323
323
|
driver: any;
|
|
324
324
|
} & {
|
|
@@ -329,29 +329,29 @@ declare const validateMediaSource: ajv.ValidateFunction<{
|
|
|
329
329
|
video: any;
|
|
330
330
|
}>;
|
|
331
331
|
declare const validateMotionSensor: ajv.ValidateFunction<{
|
|
332
|
-
id: any;
|
|
333
332
|
type: any;
|
|
334
|
-
driver: any;
|
|
335
|
-
} & {
|
|
336
333
|
id: any;
|
|
334
|
+
driver: any;
|
|
337
335
|
} & {
|
|
338
336
|
type: any;
|
|
337
|
+
} & {
|
|
338
|
+
id: any;
|
|
339
339
|
} & {
|
|
340
340
|
driver: any;
|
|
341
341
|
}>;
|
|
342
342
|
declare const validateNotification: ajv.ValidateFunction<{
|
|
343
|
-
id: any;
|
|
344
343
|
type: any;
|
|
345
|
-
content: any;
|
|
346
|
-
discriminator: any;
|
|
347
|
-
} & {
|
|
348
344
|
id: any;
|
|
345
|
+
discriminator: any;
|
|
346
|
+
content: any;
|
|
349
347
|
} & {
|
|
350
348
|
type: any;
|
|
351
349
|
} & {
|
|
352
|
-
|
|
350
|
+
id: any;
|
|
353
351
|
} & {
|
|
354
352
|
discriminator: any;
|
|
353
|
+
} & {
|
|
354
|
+
content: any;
|
|
355
355
|
}>;
|
|
356
356
|
declare const validateOrder: ajv.ValidateFunction<{
|
|
357
357
|
type: any;
|
|
@@ -362,16 +362,16 @@ declare const validateOrder: ajv.ValidateFunction<{
|
|
|
362
362
|
status: any;
|
|
363
363
|
}>;
|
|
364
364
|
declare const validateOrganization: ajv.ValidateFunction<{
|
|
365
|
-
id: any;
|
|
366
|
-
type: any;
|
|
367
365
|
name: any;
|
|
366
|
+
type: any;
|
|
367
|
+
id: any;
|
|
368
368
|
accountNumber: any;
|
|
369
369
|
} & {
|
|
370
|
-
|
|
370
|
+
name: any;
|
|
371
371
|
} & {
|
|
372
372
|
type: any;
|
|
373
373
|
} & {
|
|
374
|
-
|
|
374
|
+
id: any;
|
|
375
375
|
} & {
|
|
376
376
|
accountNumber: any;
|
|
377
377
|
}>;
|
|
@@ -387,25 +387,25 @@ declare const validatePayment: ajv.ValidateFunction<{
|
|
|
387
387
|
maskedNumber: any;
|
|
388
388
|
}>;
|
|
389
389
|
declare const validatePolicy: ajv.ValidateFunction<{
|
|
390
|
-
|
|
390
|
+
name: any;
|
|
391
391
|
type: any;
|
|
392
|
+
id: any;
|
|
393
|
+
discriminator: any;
|
|
392
394
|
organizationId: any;
|
|
393
395
|
propertyId: any;
|
|
394
|
-
name: any;
|
|
395
|
-
discriminator: any;
|
|
396
396
|
permissions: any;
|
|
397
397
|
} & {
|
|
398
|
-
|
|
398
|
+
name: any;
|
|
399
399
|
} & {
|
|
400
400
|
type: any;
|
|
401
401
|
} & {
|
|
402
|
-
|
|
402
|
+
id: any;
|
|
403
403
|
} & {
|
|
404
|
-
|
|
404
|
+
discriminator: any;
|
|
405
405
|
} & {
|
|
406
|
-
|
|
406
|
+
organizationId: any;
|
|
407
407
|
} & {
|
|
408
|
-
|
|
408
|
+
propertyId: any;
|
|
409
409
|
} & {
|
|
410
410
|
permissions: any;
|
|
411
411
|
}>;
|
|
@@ -421,18 +421,18 @@ declare const validateProduct: ajv.ValidateFunction<{
|
|
|
421
421
|
price: any;
|
|
422
422
|
}>;
|
|
423
423
|
declare const validateProperty: ajv.ValidateFunction<{
|
|
424
|
-
id: any;
|
|
425
|
-
type: any;
|
|
426
424
|
name: any;
|
|
425
|
+
type: any;
|
|
426
|
+
id: any;
|
|
427
427
|
discriminator: any;
|
|
428
428
|
timezone: any;
|
|
429
429
|
organization: any;
|
|
430
430
|
} & {
|
|
431
|
-
|
|
431
|
+
name: any;
|
|
432
432
|
} & {
|
|
433
433
|
type: any;
|
|
434
434
|
} & {
|
|
435
|
-
|
|
435
|
+
id: any;
|
|
436
436
|
} & {
|
|
437
437
|
discriminator: any;
|
|
438
438
|
} & {
|
|
@@ -455,9 +455,9 @@ declare const validateReservation: ajv.ValidateFunction<{
|
|
|
455
455
|
checkOutDateTime: any;
|
|
456
456
|
}>;
|
|
457
457
|
declare const validateRoom: ajv.ValidateFunction<{
|
|
458
|
-
id: any;
|
|
459
|
-
courtesy: any;
|
|
460
458
|
name: any;
|
|
459
|
+
courtesy: any;
|
|
460
|
+
id: any;
|
|
461
461
|
dimmers: any;
|
|
462
462
|
thermostats: any;
|
|
463
463
|
switches: any;
|
|
@@ -467,11 +467,11 @@ declare const validateRoom: ajv.ValidateFunction<{
|
|
|
467
467
|
motionSensors: any;
|
|
468
468
|
alarms: any;
|
|
469
469
|
} & {
|
|
470
|
-
|
|
470
|
+
name: any;
|
|
471
471
|
} & {
|
|
472
472
|
courtesy: any;
|
|
473
473
|
} & {
|
|
474
|
-
|
|
474
|
+
id: any;
|
|
475
475
|
} & {
|
|
476
476
|
dimmers: any;
|
|
477
477
|
} & {
|
|
@@ -490,38 +490,38 @@ declare const validateRoom: ajv.ValidateFunction<{
|
|
|
490
490
|
alarms: any;
|
|
491
491
|
}>;
|
|
492
492
|
declare const validateScene: ajv.ValidateFunction<{
|
|
493
|
-
id: any;
|
|
494
|
-
type: any;
|
|
495
493
|
name: any;
|
|
496
|
-
|
|
494
|
+
type: any;
|
|
497
495
|
id: any;
|
|
496
|
+
} & {
|
|
497
|
+
name: any;
|
|
498
498
|
} & {
|
|
499
499
|
type: any;
|
|
500
500
|
} & {
|
|
501
|
-
|
|
501
|
+
id: any;
|
|
502
502
|
}>;
|
|
503
503
|
declare const validateServer: ajv.ValidateFunction<{
|
|
504
|
-
id: any;
|
|
505
504
|
type: any;
|
|
506
|
-
} & {
|
|
507
505
|
id: any;
|
|
508
506
|
} & {
|
|
509
507
|
type: any;
|
|
508
|
+
} & {
|
|
509
|
+
id: any;
|
|
510
510
|
}>;
|
|
511
511
|
declare const validateSession: ajv.ValidateFunction<{
|
|
512
|
+
type: any;
|
|
512
513
|
data: any;
|
|
513
514
|
id: any;
|
|
514
|
-
type: any;
|
|
515
515
|
expires: any;
|
|
516
516
|
organizationId: any;
|
|
517
517
|
userId: any;
|
|
518
518
|
userAgent: any;
|
|
519
|
+
} & {
|
|
520
|
+
type: any;
|
|
519
521
|
} & {
|
|
520
522
|
data: any;
|
|
521
523
|
} & {
|
|
522
524
|
id: any;
|
|
523
|
-
} & {
|
|
524
|
-
type: any;
|
|
525
525
|
} & {
|
|
526
526
|
expires: any;
|
|
527
527
|
} & {
|
|
@@ -532,64 +532,64 @@ declare const validateSession: ajv.ValidateFunction<{
|
|
|
532
532
|
userAgent: any;
|
|
533
533
|
}>;
|
|
534
534
|
declare const validateShortLink: ajv.ValidateFunction<{
|
|
535
|
-
url: any;
|
|
536
535
|
destination: any;
|
|
537
|
-
} & {
|
|
538
536
|
url: any;
|
|
539
537
|
} & {
|
|
540
538
|
destination: any;
|
|
539
|
+
} & {
|
|
540
|
+
url: any;
|
|
541
541
|
}>;
|
|
542
542
|
declare const validateSmsMessage: ajv.ValidateFunction<{
|
|
543
|
-
id: any;
|
|
544
543
|
type: any;
|
|
544
|
+
status: any;
|
|
545
|
+
id: any;
|
|
545
546
|
to: any;
|
|
546
547
|
from: any;
|
|
548
|
+
} & {
|
|
549
|
+
type: any;
|
|
550
|
+
} & {
|
|
547
551
|
status: any;
|
|
548
552
|
} & {
|
|
549
553
|
id: any;
|
|
550
|
-
} & {
|
|
551
|
-
type: any;
|
|
552
554
|
} & {
|
|
553
555
|
to: any;
|
|
554
556
|
} & {
|
|
555
557
|
from: any;
|
|
556
|
-
} & {
|
|
557
|
-
status: any;
|
|
558
558
|
}>;
|
|
559
559
|
declare const validateSpace: ajv.ValidateFunction<{
|
|
560
|
-
id: any;
|
|
561
|
-
type: any;
|
|
562
560
|
name: any;
|
|
563
|
-
|
|
561
|
+
type: any;
|
|
564
562
|
id: any;
|
|
563
|
+
} & {
|
|
564
|
+
name: any;
|
|
565
565
|
} & {
|
|
566
566
|
type: any;
|
|
567
567
|
} & {
|
|
568
|
-
|
|
568
|
+
id: any;
|
|
569
569
|
}>;
|
|
570
570
|
declare const validateSwitch: ajv.ValidateFunction<{
|
|
571
|
-
id: any;
|
|
572
571
|
type: any;
|
|
573
|
-
state: any;
|
|
574
|
-
driver: any;
|
|
575
|
-
} & {
|
|
576
572
|
id: any;
|
|
573
|
+
driver: any;
|
|
574
|
+
state: any;
|
|
577
575
|
} & {
|
|
578
576
|
type: any;
|
|
579
577
|
} & {
|
|
580
|
-
|
|
578
|
+
id: any;
|
|
581
579
|
} & {
|
|
582
580
|
driver: any;
|
|
581
|
+
} & {
|
|
582
|
+
state: any;
|
|
583
583
|
}>;
|
|
584
584
|
declare const validateSystem: ajv.ValidateFunction<{
|
|
585
|
-
id: any;
|
|
586
585
|
type: any;
|
|
586
|
+
id: any;
|
|
587
587
|
driver: any;
|
|
588
588
|
entities: any;
|
|
589
|
-
} & {
|
|
590
|
-
id: any;
|
|
591
589
|
} & {
|
|
592
590
|
type: any;
|
|
591
|
+
} & {
|
|
592
|
+
id: any;
|
|
593
593
|
} & {
|
|
594
594
|
driver: any;
|
|
595
595
|
} & {
|
|
@@ -607,33 +607,33 @@ declare const validateSystemUser: ajv.ValidateFunction<{
|
|
|
607
607
|
lastName: any;
|
|
608
608
|
}>;
|
|
609
609
|
declare const validateThermostat: ajv.ValidateFunction<{
|
|
610
|
-
id: any;
|
|
611
610
|
type: any;
|
|
612
|
-
|
|
611
|
+
id: any;
|
|
612
|
+
driver: any;
|
|
613
613
|
hvacMode: any;
|
|
614
614
|
fanMode: any;
|
|
615
|
-
driver: any;
|
|
616
615
|
hvacState: any;
|
|
617
616
|
fanState: any;
|
|
617
|
+
setpoints: any;
|
|
618
618
|
temperatureScale: any;
|
|
619
619
|
supportedHvacModes: any;
|
|
620
620
|
supportedFanModes: any;
|
|
621
|
-
} & {
|
|
622
|
-
id: any;
|
|
623
621
|
} & {
|
|
624
622
|
type: any;
|
|
625
623
|
} & {
|
|
626
|
-
|
|
624
|
+
id: any;
|
|
625
|
+
} & {
|
|
626
|
+
driver: any;
|
|
627
627
|
} & {
|
|
628
628
|
hvacMode: any;
|
|
629
629
|
} & {
|
|
630
630
|
fanMode: any;
|
|
631
|
-
} & {
|
|
632
|
-
driver: any;
|
|
633
631
|
} & {
|
|
634
632
|
hvacState: any;
|
|
635
633
|
} & {
|
|
636
634
|
fanState: any;
|
|
635
|
+
} & {
|
|
636
|
+
setpoints: any;
|
|
637
637
|
} & {
|
|
638
638
|
temperatureScale: any;
|
|
639
639
|
} & {
|
|
@@ -642,26 +642,20 @@ declare const validateThermostat: ajv.ValidateFunction<{
|
|
|
642
642
|
supportedFanModes: any;
|
|
643
643
|
}>;
|
|
644
644
|
declare const validateTicket: ajv.ValidateFunction<{
|
|
645
|
-
id: any;
|
|
646
645
|
status: any;
|
|
647
|
-
|
|
648
|
-
createdAt: any;
|
|
649
|
-
updatedAt: any;
|
|
646
|
+
id: any;
|
|
650
647
|
conversation: any;
|
|
651
648
|
requester: any;
|
|
652
649
|
openedBy: any;
|
|
653
650
|
assignedTo: any;
|
|
654
651
|
priority: any;
|
|
655
|
-
} & {
|
|
656
|
-
id: any;
|
|
657
|
-
} & {
|
|
658
|
-
status: any;
|
|
659
|
-
} & {
|
|
660
652
|
tags: any;
|
|
661
|
-
} & {
|
|
662
653
|
createdAt: any;
|
|
663
|
-
} & {
|
|
664
654
|
updatedAt: any;
|
|
655
|
+
} & {
|
|
656
|
+
status: any;
|
|
657
|
+
} & {
|
|
658
|
+
id: any;
|
|
665
659
|
} & {
|
|
666
660
|
conversation: any;
|
|
667
661
|
} & {
|
|
@@ -672,16 +666,22 @@ declare const validateTicket: ajv.ValidateFunction<{
|
|
|
672
666
|
assignedTo: any;
|
|
673
667
|
} & {
|
|
674
668
|
priority: any;
|
|
669
|
+
} & {
|
|
670
|
+
tags: any;
|
|
671
|
+
} & {
|
|
672
|
+
createdAt: any;
|
|
673
|
+
} & {
|
|
674
|
+
updatedAt: any;
|
|
675
675
|
}>;
|
|
676
676
|
declare const validateTimeSheet: ajv.ValidateFunction<{
|
|
677
|
-
id: any;
|
|
678
677
|
type: any;
|
|
678
|
+
id: any;
|
|
679
679
|
userId: any;
|
|
680
680
|
day: any;
|
|
681
|
-
} & {
|
|
682
|
-
id: any;
|
|
683
681
|
} & {
|
|
684
682
|
type: any;
|
|
683
|
+
} & {
|
|
684
|
+
id: any;
|
|
685
685
|
} & {
|
|
686
686
|
userId: any;
|
|
687
687
|
} & {
|
|
@@ -699,29 +699,29 @@ declare const validateUser: ajv.ValidateFunction<{
|
|
|
699
699
|
lastName: any;
|
|
700
700
|
}>;
|
|
701
701
|
declare const validateVendor: ajv.ValidateFunction<{
|
|
702
|
+
name: any;
|
|
702
703
|
id: any;
|
|
703
704
|
email: any;
|
|
705
|
+
} & {
|
|
704
706
|
name: any;
|
|
705
707
|
} & {
|
|
706
708
|
id: any;
|
|
707
709
|
} & {
|
|
708
710
|
email: any;
|
|
709
|
-
} & {
|
|
710
|
-
name: any;
|
|
711
711
|
}>;
|
|
712
712
|
declare const validateWindowCovering: ajv.ValidateFunction<{
|
|
713
|
-
id: any;
|
|
714
713
|
type: any;
|
|
715
|
-
position: any;
|
|
716
|
-
driver: any;
|
|
717
|
-
} & {
|
|
718
714
|
id: any;
|
|
715
|
+
driver: any;
|
|
716
|
+
position: any;
|
|
719
717
|
} & {
|
|
720
718
|
type: any;
|
|
721
719
|
} & {
|
|
722
|
-
|
|
720
|
+
id: any;
|
|
723
721
|
} & {
|
|
724
722
|
driver: any;
|
|
723
|
+
} & {
|
|
724
|
+
position: any;
|
|
725
725
|
}>;
|
|
726
726
|
|
|
727
727
|
export { validateAlarm, validateAnnouncement, validateAutomation, validateCamera, validateCategory, validateCourtesy, validateCredential, validateDepartment, validateDeviceRouter, validateDimmer, validateDiscoveredDevice, validateEmailMessage, validateEnergyReport, validateEnergyReportShard, validateGateway, validateGroup, validateIdentification, validateIssue, validateLock, validateLog, validateMediaFile, validateMediaSource, validateMotionSensor, validateNotification, validateOrder, validateOrganization, validatePayment, validatePolicy, validateProduct, validateProperty, validateReservation, validateRoom, validateScene, validateServer, validateSession, validateShortLink, validateSmsMessage, validateSpace, validateSwitch, validateSystem, validateSystemUser, validateThermostat, validateTicket, validateTimeSheet, validateUser, validateVendor, validateWindowCovering };
|
package/dist/esm/models/alarm.js
CHANGED
|
@@ -18,10 +18,10 @@ class Alarm extends Entity {
|
|
|
18
18
|
if (data.alerts !== void 0) this.alerts = data.alerts;
|
|
19
19
|
this.areas = data.areas;
|
|
20
20
|
this.zones = data.zones;
|
|
21
|
+
if (data.credentials !== void 0) this.credentials = data.credentials;
|
|
21
22
|
if (data.supportedNotifications !== void 0)
|
|
22
23
|
this.supportedNotifications = data.supportedNotifications;
|
|
23
24
|
if (data.notification !== void 0) this.notification = data.notification;
|
|
24
|
-
if (data.code !== void 0) this.code = data.code;
|
|
25
25
|
if (data.chime !== void 0) this.chime = data.chime;
|
|
26
26
|
if (data.watts !== void 0) this.watts = data.watts;
|
|
27
27
|
if (data.icon !== void 0) this.icon = data.icon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/models/alarm.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateAlarm as validate } from \"../validate.js\";\nimport { alarmSchema, type AlarmSchema } from \"../schemas/alarm.js\";\n\n/**\n * Data type for Alarm constructor - exported for backwards compatibility\n */\nexport type AlarmData = AlarmSchema;\n\n/**\n * Any smart alarm system\n */\nexport interface Alarm extends AlarmSchema {}\nexport class Alarm extends Entity {\n declare schema: typeof alarmSchema;\n declare validator: typeof validate;\n\n constructor(data: AlarmSchema) {\n super(data);\n this.id = data.id;\n if (data.name !== undefined) this.name = data.name;\n if (data.offline !== undefined) this.offline = data.offline;\n this.type = data.type;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n this.driver = data.driver;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n this.areas = data.areas;\n this.zones = data.zones;\n if (data.
|
|
1
|
+
{"version":3,"sources":["../../../.generated/models/alarm.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateAlarm as validate } from \"../validate.js\";\nimport { alarmSchema, type AlarmSchema } from \"../schemas/alarm.js\";\n\n/**\n * Data type for Alarm constructor - exported for backwards compatibility\n */\nexport type AlarmData = AlarmSchema;\n\n/**\n * Any smart alarm system\n */\nexport interface Alarm extends AlarmSchema {}\nexport class Alarm extends Entity {\n declare schema: typeof alarmSchema;\n declare validator: typeof validate;\n\n constructor(data: AlarmSchema) {\n super(data);\n this.id = data.id;\n if (data.name !== undefined) this.name = data.name;\n if (data.offline !== undefined) this.offline = data.offline;\n this.type = data.type;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n this.driver = data.driver;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n this.areas = data.areas;\n this.zones = data.zones;\n if (data.credentials !== undefined) this.credentials = data.credentials;\n if (data.supportedNotifications !== undefined)\n this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n if (data.chime !== undefined) this.chime = data.chime;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined)\n this.firmwareVersion = data.firmwareVersion;\n if (data.address !== undefined) this.address = data.address;\n if (data.batteryLevel !== undefined) this.batteryLevel = data.batteryLevel;\n if (data.powerLevel !== undefined) this.powerLevel = data.powerLevel;\n if (data.monitoringTrouble !== undefined)\n this.monitoringTrouble = data.monitoringTrouble;\n if (data.bellTrouble !== undefined) this.bellTrouble = data.bellTrouble;\n }\n}\n\nObject.defineProperty(Alarm.prototype, \"schema\", {\n value: alarmSchema,\n});\n\nObject.defineProperty(Alarm.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,iBAAiB,gBAAgB;AAC1C,SAAS,mBAAqC;AAWvC,MAAM,cAAc,OAAO;AAAA,EAflC,OAekC;AAAA;AAAA;AAAA,EAIhC,YAAY,MAAmB;AAC7B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,SAAS,KAAK;AACnB,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,SAAK,QAAQ,KAAK;AAClB,SAAK,QAAQ,KAAK;AAClB,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,2BAA2B;AAClC,WAAK,yBAAyB,KAAK;AACrC,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,oBAAoB;AAC3B,WAAK,kBAAkB,KAAK;AAC9B,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,eAAe,OAAW,MAAK,aAAa,KAAK;AAC1D,QAAI,KAAK,sBAAsB;AAC7B,WAAK,oBAAoB,KAAK;AAChC,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAAA,EAC9D;AACF;AAEA,OAAO,eAAe,MAAM,WAAW,UAAU;AAAA,EAC/C,OAAO;AACT,CAAC;AAED,OAAO,eAAe,MAAM,WAAW,aAAa;AAAA,EAClD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
|
|
@@ -91,15 +91,28 @@ declare const alarmSchema: {
|
|
|
91
91
|
readonly additionalProperties: false;
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
+
readonly credentials: {
|
|
95
|
+
readonly type: "array";
|
|
96
|
+
readonly readOnly: true;
|
|
97
|
+
readonly items: {
|
|
98
|
+
readonly type: "object";
|
|
99
|
+
readonly properties: {
|
|
100
|
+
readonly id: {
|
|
101
|
+
readonly $ref: "definitions.json#/definitions/id";
|
|
102
|
+
};
|
|
103
|
+
readonly name: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
readonly description: "Name of the credential";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
94
110
|
readonly supportedNotifications: {
|
|
95
111
|
readonly $ref: "definitions.json#/definitions/supportedNotifications";
|
|
96
112
|
};
|
|
97
113
|
readonly notification: {
|
|
98
114
|
readonly $ref: "definitions.json#/definitions/notification";
|
|
99
115
|
};
|
|
100
|
-
readonly code: {
|
|
101
|
-
readonly type: "string";
|
|
102
|
-
};
|
|
103
116
|
readonly chime: {
|
|
104
117
|
readonly type: "boolean";
|
|
105
118
|
readonly description: "Chime enabled";
|
|
@@ -95,15 +95,28 @@ const alarmSchema = {
|
|
|
95
95
|
additionalProperties: false
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
|
+
credentials: {
|
|
99
|
+
type: "array",
|
|
100
|
+
readOnly: true,
|
|
101
|
+
items: {
|
|
102
|
+
type: "object",
|
|
103
|
+
properties: {
|
|
104
|
+
id: {
|
|
105
|
+
$ref: "definitions.json#/definitions/id"
|
|
106
|
+
},
|
|
107
|
+
name: {
|
|
108
|
+
type: "string",
|
|
109
|
+
description: "Name of the credential"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
98
114
|
supportedNotifications: {
|
|
99
115
|
$ref: "definitions.json#/definitions/supportedNotifications"
|
|
100
116
|
},
|
|
101
117
|
notification: {
|
|
102
118
|
$ref: "definitions.json#/definitions/notification"
|
|
103
119
|
},
|
|
104
|
-
code: {
|
|
105
|
-
type: "string"
|
|
106
|
-
},
|
|
107
120
|
chime: {
|
|
108
121
|
type: "boolean",
|
|
109
122
|
description: "Chime enabled"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.generated/schemas/alarm.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const alarmSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"alarm.json\",\n title: \"Alarm\",\n description: \"Any smart alarm system\",\n type: \"object\",\n definitions: {\n securityMode: {\n type: [\"string\", \"null\"],\n enum: [\n \"arming\",\n \"disarming\",\n \"armed\",\n \"disarmed\",\n \"intrusion\",\n \"fire\",\n \"medical\",\n null,\n ],\n },\n },\n required: [\"id\", \"type\", \"areas\", \"zones\", \"driver\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n description: \"Name of the alarm\",\n },\n offline: {\n type: \"boolean\",\n },\n type: {\n type: \"string\",\n enum: [\"alarm\"],\n default: \"alarm\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\",\n },\n areas: {\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 supportedSecurityModes: {\n type: \"array\",\n items: { $ref: \"#/definitions/securityMode\" },\n },\n securityMode: {\n $ref: \"#/definitions/securityMode\",\n },\n },\n additionalProperties: false,\n },\n },\n zones: {\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 secure: {\n type: [\"boolean\", \"null\"],\n },\n bypassed: {\n type: [\"boolean\", \"null\"],\n },\n offline: {\n type: \"boolean\",\n },\n batteryLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n },\n },\n additionalProperties: false,\n },\n },\n
|
|
1
|
+
{"version":3,"sources":["../../../.generated/schemas/alarm.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const alarmSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"alarm.json\",\n title: \"Alarm\",\n description: \"Any smart alarm system\",\n type: \"object\",\n definitions: {\n securityMode: {\n type: [\"string\", \"null\"],\n enum: [\n \"arming\",\n \"disarming\",\n \"armed\",\n \"disarmed\",\n \"intrusion\",\n \"fire\",\n \"medical\",\n null,\n ],\n },\n },\n required: [\"id\", \"type\", \"areas\", \"zones\", \"driver\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n description: \"Name of the alarm\",\n },\n offline: {\n type: \"boolean\",\n },\n type: {\n type: \"string\",\n enum: [\"alarm\"],\n default: \"alarm\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\",\n },\n areas: {\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 supportedSecurityModes: {\n type: \"array\",\n items: { $ref: \"#/definitions/securityMode\" },\n },\n securityMode: {\n $ref: \"#/definitions/securityMode\",\n },\n },\n additionalProperties: false,\n },\n },\n zones: {\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 secure: {\n type: [\"boolean\", \"null\"],\n },\n bypassed: {\n type: [\"boolean\", \"null\"],\n },\n offline: {\n type: \"boolean\",\n },\n batteryLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n },\n },\n additionalProperties: false,\n },\n },\n credentials: {\n type: \"array\",\n readOnly: true,\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n description: \"Name of the credential\",\n },\n }\n }\n },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: {\n $ref: \"definitions.json#/definitions/notification\",\n },\n chime: {\n type: \"boolean\",\n description: \"Chime enabled\",\n },\n watts: {\n $ref: \"definitions.json#/definitions/watts\",\n },\n icon: {\n type: \"string\",\n },\n manufacturer: {\n type: \"string\",\n },\n modelNumber: {\n type: \"string\",\n },\n serialNumber: {\n type: \"string\",\n },\n firmwareVersion: {\n type: \"string\",\n },\n address: {\n $ref: \"definitions.json#/definitions/address\",\n },\n batteryLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n },\n powerLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n },\n monitoringTrouble: {\n type: \"boolean\",\n },\n bellTrouble: {\n type: \"boolean\",\n },\n },\n} as const;\n\nexport type AlarmSchema = FromSchema<\n typeof alarmSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,aAAa;AAAA,IACX,cAAc;AAAA,MACZ,MAAM,CAAC,UAAU,MAAM;AAAA,MACvB,MAAM;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,UAAU,CAAC,MAAM,QAAQ,SAAS,SAAS,QAAQ;AAAA,EACnD,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,MAAM,CAAC,OAAO;AAAA,MACd,SAAS;AAAA,IACX;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,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,wBAAwB;AAAA,YACtB,MAAM;AAAA,YACN,OAAO,EAAE,MAAM,6BAA6B;AAAA,UAC9C;AAAA,UACA,cAAc;AAAA,YACZ,MAAM;AAAA,UACR;AAAA,QACF;AAAA,QACA,sBAAsB;AAAA,MACxB;AAAA,IACF;AAAA,I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M;AAAA,IACR;AAAA,IACA,mBAAmB;AAAA,MACjB,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,IACR;AAAA,EACF;AACF;","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", "earbridge", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "mobile-mule", "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"];
|
|
78
|
+
readonly enum: readonly ["adlink", "avigilon-alta", "aws-kinesis", "bacnet", "benq", "butler", "comelit", "crestron", "dell", "digital-watchdog", "distech", "dmp", "doorbird", "dormakaba", "dsc", "dsc-itv2", "earbridge", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "mobile-mule", "modbus", "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 \"earbridge\",\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 \"mobile-mule\",\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 \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\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 id: {\n type: \"string\"\n },\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;AAA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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 \"earbridge\",\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 \"mobile-mule\",\n \"modbus\",\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 \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\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 id: {\n type: \"string\"\n },\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;A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