@awarevue/api-types 2.0.24 → 2.0.26
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/_legacy/index.js +18 -2
- package/dist/_legacy/milestone.js +2 -1
- package/dist/_legacy/orchid.js +2 -1
- package/dist/alarm-automation.js +37 -26
- package/dist/api/agent-protocol/index.js +17 -1
- package/dist/api/agent-protocol/protocol.js +219 -212
- package/dist/api/commands/alarm.js +46 -43
- package/dist/api/commands/all.js +25 -22
- package/dist/api/commands/camera-lift.js +13 -10
- package/dist/api/commands/camera.js +65 -61
- package/dist/api/commands/display.js +27 -24
- package/dist/api/commands/door.js +21 -18
- package/dist/api/commands/index.js +28 -12
- package/dist/api/commands/intercom-terminal.js +2 -1
- package/dist/api/commands/io-board.js +11 -8
- package/dist/api/commands/nvr-exporter.js +20 -17
- package/dist/api/commands/pbx.js +13 -10
- package/dist/api/commands/presence-tracker.js +25 -22
- package/dist/api/commands/server.js +21 -18
- package/dist/api/error.js +93 -89
- package/dist/api/events/alarm.js +53 -50
- package/dist/api/events/all.js +57 -53
- package/dist/api/events/camera.js +68 -65
- package/dist/api/events/display.js +6 -3
- package/dist/api/events/door.js +60 -57
- package/dist/api/events/index.js +28 -12
- package/dist/api/events/intercom-terminal.js +16 -13
- package/dist/api/events/io-board.js +10 -7
- package/dist/api/events/nvr-exporter.js +14 -11
- package/dist/api/events/panic-button.js +8 -5
- package/dist/api/events/presence-tracker.js +29 -26
- package/dist/api/events/reader.js +11 -8
- package/dist/api/events/server.js +12 -9
- package/dist/api/index.js +25 -9
- package/dist/api/mqtt/index.js +17 -1
- package/dist/api/mqtt/payloads.js +15 -12
- package/dist/api/queries/all.js +23 -20
- package/dist/api/queries/camera.js +19 -16
- package/dist/api/queries/index.js +21 -5
- package/dist/api/queries/nvr-analytics-server.js +57 -54
- package/dist/api/queries/nvr-exporter.js +26 -23
- package/dist/api/queries/nvr-recorder.js +32 -29
- package/dist/api/rest/access-rule.js +14 -8
- package/dist/api/rest/agreement.js +6 -3
- package/dist/api/rest/alarm.js +2 -1
- package/dist/api/rest/api-keys.js +11 -8
- package/dist/api/rest/app.js +11 -8
- package/dist/api/rest/auth.js +12 -9
- package/dist/api/rest/automation.js +13 -10
- package/dist/api/rest/aware-config.js +2 -1
- package/dist/api/rest/bookmarks.js +17 -14
- package/dist/api/rest/cast.js +11 -5
- package/dist/api/rest/custom-field.js +6 -3
- package/dist/api/rest/device-event.js +2 -1
- package/dist/api/rest/device-group.js +19 -13
- package/dist/api/rest/file.js +2 -1
- package/dist/api/rest/index.js +50 -34
- package/dist/api/rest/io-device.js +21 -14
- package/dist/api/rest/layout.js +23 -17
- package/dist/api/rest/macros.js +6 -3
- package/dist/api/rest/media.js +55 -52
- package/dist/api/rest/module-config.js +2 -1
- package/dist/api/rest/notifications.js +11 -8
- package/dist/api/rest/person-agreement.js +11 -5
- package/dist/api/rest/person-presence.js +26 -23
- package/dist/api/rest/person-type.js +6 -3
- package/dist/api/rest/person.js +11 -5
- package/dist/api/rest/query.js +13 -8
- package/dist/api/rest/schedule.js +11 -8
- package/dist/api/rest/security-level.js +6 -3
- package/dist/api/rest/template.js +13 -10
- package/dist/api/rest/token-conversion.js +6 -3
- package/dist/api/rest/user.js +31 -28
- package/dist/api/rest/view.js +20 -14
- package/dist/api/rest/webrtc-playback.js +12 -6
- package/dist/api/rest/zone.js +14 -8
- package/dist/api/state/index.js +2 -1
- package/dist/api/ws/device-communication.js +46 -38
- package/dist/api/ws/index.js +21 -5
- package/dist/api/ws/notifications.js +17 -10
- package/dist/api/ws/progress.js +37 -30
- package/dist/api/ws/web-rtc-signaling.js +72 -65
- package/dist/api/ws/web-socket.js +5 -2
- package/dist/index.js +22 -6
- package/dist/objects/access-rule.js +32 -29
- package/dist/objects/agent-metadata.js +33 -30
- package/dist/objects/agreement.js +10 -7
- package/dist/objects/all.js +7 -4
- package/dist/objects/api-key.js +10 -7
- package/dist/objects/automation-rule.js +28 -25
- package/dist/objects/bookmark.js +14 -11
- package/dist/objects/credential.js +15 -9
- package/dist/objects/custom-field.js +11 -8
- package/dist/objects/device/alarm.js +6 -3
- package/dist/objects/device/any-device.js +206 -203
- package/dist/objects/device/camera-lift.js +6 -3
- package/dist/objects/device/camera.js +30 -27
- package/dist/objects/device/device-gateway.js +4 -1
- package/dist/objects/device/device-import.js +26 -23
- package/dist/objects/device/device-relation.js +16 -13
- package/dist/objects/device/display.js +6 -3
- package/dist/objects/device/door.js +10 -7
- package/dist/objects/device/index.js +38 -22
- package/dist/objects/device/intercom-operator.js +4 -1
- package/dist/objects/device/intercom-terminal.js +20 -17
- package/dist/objects/device/io-board.js +8 -5
- package/dist/objects/device/motion-sensor.js +6 -3
- package/dist/objects/device/nvr-analytics-server.js +8 -5
- package/dist/objects/device/nvr-exporter.js +9 -6
- package/dist/objects/device/nvr-recorder.js +8 -5
- package/dist/objects/device/panic-button.js +6 -3
- package/dist/objects/device/pbx.js +7 -4
- package/dist/objects/device/presence-tracker.js +4 -1
- package/dist/objects/device/reader.js +4 -1
- package/dist/objects/device/server.js +4 -1
- package/dist/objects/device/system.js +7 -4
- package/dist/objects/device-group.js +11 -8
- package/dist/objects/index.js +44 -28
- package/dist/objects/layout.js +23 -20
- package/dist/objects/macro.js +20 -17
- package/dist/objects/module-config.js +2 -1
- package/dist/objects/notification.js +15 -12
- package/dist/objects/person-agreement.js +10 -7
- package/dist/objects/person-presence.js +32 -29
- package/dist/objects/person-type.js +17 -11
- package/dist/objects/person.js +42 -39
- package/dist/objects/role.js +11 -8
- package/dist/objects/schedule.js +45 -39
- package/dist/objects/security-level.js +13 -10
- package/dist/objects/template.js +10 -7
- package/dist/objects/token-conversion.js +10 -7
- package/dist/objects/user.js +14 -11
- package/dist/objects/view.js +53 -50
- package/dist/objects/world-object.js +8 -5
- package/dist/objects/zone.js +16 -13
- package/dist/package.json +1 -1
- package/dist/permissions.js +149 -146
- package/dist/primitives.js +30 -27
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sDisplaySpecs = exports.DISPLAY = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.DISPLAY = 'display';
|
|
3
6
|
// SPECS
|
|
4
|
-
|
|
7
|
+
exports.sDisplaySpecs = zod_1.z.object({});
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sDoorSpecs = exports.DOOR = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.DOOR = 'door';
|
|
3
6
|
// SPECS
|
|
4
|
-
|
|
5
|
-
canReportOpenState: z.boolean(),
|
|
6
|
-
canReportLockState: z.boolean(),
|
|
7
|
-
canControlLock: z.boolean(),
|
|
8
|
-
canRelease: z.boolean(),
|
|
7
|
+
exports.sDoorSpecs = zod_1.z.object({
|
|
8
|
+
canReportOpenState: zod_1.z.boolean(),
|
|
9
|
+
canReportLockState: zod_1.z.boolean(),
|
|
10
|
+
canControlLock: zod_1.z.boolean(),
|
|
11
|
+
canRelease: zod_1.z.boolean(),
|
|
9
12
|
});
|
|
@@ -1,22 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./camera"), exports);
|
|
18
|
+
__exportStar(require("./door"), exports);
|
|
19
|
+
__exportStar(require("./any-device"), exports);
|
|
20
|
+
__exportStar(require("./device-import"), exports);
|
|
21
|
+
__exportStar(require("./device-relation"), exports);
|
|
22
|
+
__exportStar(require("./reader"), exports);
|
|
23
|
+
__exportStar(require("./io-board"), exports);
|
|
24
|
+
__exportStar(require("./camera-lift"), exports);
|
|
25
|
+
__exportStar(require("./motion-sensor"), exports);
|
|
26
|
+
__exportStar(require("./intercom-operator"), exports);
|
|
27
|
+
__exportStar(require("./intercom-terminal"), exports);
|
|
28
|
+
__exportStar(require("./panic-button"), exports);
|
|
29
|
+
__exportStar(require("./pbx"), exports);
|
|
30
|
+
__exportStar(require("./server"), exports);
|
|
31
|
+
__exportStar(require("./alarm"), exports);
|
|
32
|
+
__exportStar(require("./device-gateway"), exports);
|
|
33
|
+
__exportStar(require("./presence-tracker"), exports);
|
|
34
|
+
__exportStar(require("./display"), exports);
|
|
35
|
+
__exportStar(require("./nvr-recorder"), exports);
|
|
36
|
+
__exportStar(require("./nvr-exporter"), exports);
|
|
37
|
+
__exportStar(require("./nvr-analytics-server"), exports);
|
|
38
|
+
__exportStar(require("./system"), exports);
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sIntercomTerminalState = exports.sAddIntercomTerminal = exports.sIntercomTerminalSpecs = exports.INTERCOM_TERMINAL = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.INTERCOM_TERMINAL = 'intercom-terminal';
|
|
3
6
|
// SPECS
|
|
4
|
-
|
|
5
|
-
sipUri: z.string(),
|
|
6
|
-
sipUser: z.string(),
|
|
7
|
-
sipPassword: z.string(),
|
|
8
|
-
sipRealm: z.string(),
|
|
9
|
-
remoteExtension: z.string(),
|
|
7
|
+
exports.sIntercomTerminalSpecs = zod_1.z.object({
|
|
8
|
+
sipUri: zod_1.z.string(),
|
|
9
|
+
sipUser: zod_1.z.string(),
|
|
10
|
+
sipPassword: zod_1.z.string(),
|
|
11
|
+
sipRealm: zod_1.z.string(),
|
|
12
|
+
remoteExtension: zod_1.z.string(),
|
|
10
13
|
});
|
|
11
|
-
|
|
12
|
-
name: z.string(),
|
|
13
|
-
foreignRef: z.string(),
|
|
14
|
-
specs: sIntercomTerminalSpecs,
|
|
14
|
+
exports.sAddIntercomTerminal = zod_1.z.object({
|
|
15
|
+
name: zod_1.z.string(),
|
|
16
|
+
foreignRef: zod_1.z.string(),
|
|
17
|
+
specs: exports.sIntercomTerminalSpecs,
|
|
15
18
|
});
|
|
16
19
|
// STATE
|
|
17
|
-
const sCallState = z.enum(['connecting', 'connected', 'ringing', 'terminated']);
|
|
18
|
-
|
|
20
|
+
const sCallState = zod_1.z.enum(['connecting', 'connected', 'ringing', 'terminated']);
|
|
21
|
+
exports.sIntercomTerminalState = zod_1.z.object({
|
|
19
22
|
callState: sCallState.nullable(),
|
|
20
|
-
connected: z.boolean(),
|
|
21
|
-
callId: z.string().nullable(),
|
|
22
|
-
peer: z.string().nullable(),
|
|
23
|
+
connected: zod_1.z.boolean(),
|
|
24
|
+
callId: zod_1.z.string().nullable(),
|
|
25
|
+
peer: zod_1.z.string().nullable(),
|
|
23
26
|
});
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sIoBoardSpecs = exports.IO_BOARD = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.IO_BOARD = 'io-board';
|
|
3
6
|
// SPECS
|
|
4
|
-
|
|
5
|
-
inputs: z.array(z.string().nonempty()),
|
|
6
|
-
outputs: z.array(z.string().nonempty()),
|
|
7
|
+
exports.sIoBoardSpecs = zod_1.z.object({
|
|
8
|
+
inputs: zod_1.z.array(zod_1.z.string().nonempty()),
|
|
9
|
+
outputs: zod_1.z.array(zod_1.z.string().nonempty()),
|
|
7
10
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sMotionSensorSpecs = exports.MOTION_SENSOR = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.MOTION_SENSOR = 'motion-sensor';
|
|
3
6
|
// SPECS
|
|
4
|
-
|
|
7
|
+
exports.sMotionSensorSpecs = zod_1.z.object({});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sAnalyticsServerStateDto = exports.sAnalyticsServerSpecs = exports.NVR_ANALYTICS_SERVER = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.NVR_ANALYTICS_SERVER = 'nvr-analytics-server';
|
|
6
|
+
exports.sAnalyticsServerSpecs = zod_1.z.object({});
|
|
7
|
+
exports.sAnalyticsServerStateDto = zod_1.z.object({
|
|
8
|
+
connected: zod_1.z.boolean(),
|
|
6
9
|
});
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sExporterStateDto = exports.sExporterSpecs = exports.NVR_EXPORTER = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.NVR_EXPORTER = 'nvr-exporter';
|
|
6
|
+
exports.sExporterSpecs = zod_1.z.object({});
|
|
7
|
+
exports.sExporterStateDto = zod_1.z.object({
|
|
8
|
+
connected: zod_1.z.boolean(),
|
|
9
|
+
exportsInProgress: zod_1.z.array(zod_1.z.string().nonempty()),
|
|
7
10
|
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sRecorderStateDto = exports.sRecorderSpecs = exports.NVR_RECORDER = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.NVR_RECORDER = 'nvr-recorder';
|
|
6
|
+
exports.sRecorderSpecs = zod_1.z.object({});
|
|
7
|
+
exports.sRecorderStateDto = zod_1.z.object({
|
|
8
|
+
connected: zod_1.z.boolean(),
|
|
6
9
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sPanicButtonSpecs = exports.PANIC_BUTTON = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PANIC_BUTTON = 'panic-button';
|
|
3
6
|
// SPECS
|
|
4
|
-
|
|
7
|
+
exports.sPanicButtonSpecs = zod_1.z.object({});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sPbxSpecs = exports.PBX = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PBX = 'pbx';
|
|
3
6
|
// SPECS
|
|
4
|
-
|
|
5
|
-
sipWsUrl: z.string(),
|
|
7
|
+
exports.sPbxSpecs = zod_1.z.object({
|
|
8
|
+
sipWsUrl: zod_1.z.string(),
|
|
6
9
|
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sSystemDeviceStateDto = exports.sSystemDeviceSpecs = exports.SYSTEM = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.SYSTEM = 'system';
|
|
3
6
|
// SPECS
|
|
4
|
-
|
|
7
|
+
exports.sSystemDeviceSpecs = zod_1.z.object({});
|
|
5
8
|
// STATE
|
|
6
|
-
|
|
9
|
+
exports.sSystemDeviceStateDto = zod_1.z.record(zod_1.z.unknown());
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sDeviceGroup = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.sDeviceGroup = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
code: zod_1.z.string().nullable(),
|
|
8
|
+
displayName: zod_1.z.string(),
|
|
9
|
+
createdOn: zod_1.z.string(),
|
|
10
|
+
lastModifiedOn: zod_1.z.string(),
|
|
11
|
+
devices: zod_1.z.array(zod_1.z.string().nonempty()),
|
|
9
12
|
});
|
package/dist/objects/index.js
CHANGED
|
@@ -1,28 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./access-rule"), exports);
|
|
18
|
+
__exportStar(require("./agreement"), exports);
|
|
19
|
+
__exportStar(require("./all"), exports);
|
|
20
|
+
__exportStar(require("./custom-field"), exports);
|
|
21
|
+
__exportStar(require("./token-conversion"), exports);
|
|
22
|
+
__exportStar(require("./api-key"), exports);
|
|
23
|
+
__exportStar(require("./automation-rule"), exports);
|
|
24
|
+
__exportStar(require("./device-group"), exports);
|
|
25
|
+
__exportStar(require("./layout"), exports);
|
|
26
|
+
__exportStar(require("./person"), exports);
|
|
27
|
+
__exportStar(require("./role"), exports);
|
|
28
|
+
__exportStar(require("./user"), exports);
|
|
29
|
+
__exportStar(require("./view"), exports);
|
|
30
|
+
__exportStar(require("./zone"), exports);
|
|
31
|
+
__exportStar(require("./bookmark"), exports);
|
|
32
|
+
__exportStar(require("./macro"), exports);
|
|
33
|
+
__exportStar(require("./person-presence"), exports);
|
|
34
|
+
__exportStar(require("./person-type"), exports);
|
|
35
|
+
__exportStar(require("./schedule"), exports);
|
|
36
|
+
__exportStar(require("./security-level"), exports);
|
|
37
|
+
__exportStar(require("./notification"), exports);
|
|
38
|
+
__exportStar(require("./credential"), exports);
|
|
39
|
+
__exportStar(require("./template"), exports);
|
|
40
|
+
__exportStar(require("./person-agreement"), exports);
|
|
41
|
+
__exportStar(require("./agent-metadata"), exports);
|
|
42
|
+
__exportStar(require("./world-object"), exports);
|
|
43
|
+
__exportStar(require("./device"), exports);
|
|
44
|
+
__exportStar(require("./module-config"), exports);
|
package/dist/objects/layout.js
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sLayoutDto = exports.sLayoutDeviceDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.sLayoutDeviceDto = zod_1.z.object({
|
|
6
|
+
deviceId: zod_1.z.string(),
|
|
7
|
+
x: zod_1.z.number(),
|
|
8
|
+
y: zod_1.z.number(),
|
|
9
|
+
scale: zod_1.z.number(),
|
|
10
|
+
rotation: zod_1.z.number(),
|
|
11
|
+
fov: zod_1.z.number(),
|
|
12
|
+
far: zod_1.z.number(),
|
|
10
13
|
});
|
|
11
|
-
|
|
12
|
-
id: z.string(),
|
|
13
|
-
name: z.string(),
|
|
14
|
-
thumbnailUrl: z.string(),
|
|
15
|
-
imageUrl: z.string(),
|
|
16
|
-
order: z.number(),
|
|
17
|
-
isDefault: z.boolean(),
|
|
18
|
-
devices: z.array(sLayoutDeviceDto),
|
|
19
|
-
colorize: z.boolean(),
|
|
20
|
-
createdOn: z.string(),
|
|
21
|
-
lastModifiedOn: z.string(),
|
|
14
|
+
exports.sLayoutDto = zod_1.z.object({
|
|
15
|
+
id: zod_1.z.string(),
|
|
16
|
+
name: zod_1.z.string(),
|
|
17
|
+
thumbnailUrl: zod_1.z.string(),
|
|
18
|
+
imageUrl: zod_1.z.string(),
|
|
19
|
+
order: zod_1.z.number(),
|
|
20
|
+
isDefault: zod_1.z.boolean(),
|
|
21
|
+
devices: zod_1.z.array(exports.sLayoutDeviceDto),
|
|
22
|
+
colorize: zod_1.z.boolean(),
|
|
23
|
+
createdOn: zod_1.z.string(),
|
|
24
|
+
lastModifiedOn: zod_1.z.string(),
|
|
22
25
|
});
|
package/dist/objects/macro.js
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sMacroDto = exports.sMacroItemDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.sMacroItemDto = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string().nullable(),
|
|
7
|
+
stepId: zod_1.z.string().nonempty(),
|
|
8
|
+
deviceId: zod_1.z.string().uuid().nonempty(),
|
|
9
|
+
command: zod_1.z.string().nonempty(),
|
|
10
|
+
params: zod_1.z.record(zod_1.z.unknown()),
|
|
8
11
|
});
|
|
9
|
-
|
|
10
|
-
id: z.string().nonempty(),
|
|
11
|
-
displayName: z.string().nonempty(),
|
|
12
|
-
code: z.string().nullable().describe('The code of the macro rule'),
|
|
13
|
-
module: z
|
|
12
|
+
exports.sMacroDto = zod_1.z.object({
|
|
13
|
+
id: zod_1.z.string().nonempty(),
|
|
14
|
+
displayName: zod_1.z.string().nonempty(),
|
|
15
|
+
code: zod_1.z.string().nullable().describe('The code of the macro rule'),
|
|
16
|
+
module: zod_1.z
|
|
14
17
|
.string()
|
|
15
18
|
.nullable()
|
|
16
19
|
.describe('The module the macro rule belongs to'),
|
|
17
|
-
metadata: z.record(z.unknown()),
|
|
18
|
-
createdOn: z.string(),
|
|
19
|
-
lastModifiedOn: z.string(),
|
|
20
|
-
createdBy: z.string().nullable(),
|
|
21
|
-
items: z.array(sMacroItemDto),
|
|
20
|
+
metadata: zod_1.z.record(zod_1.z.unknown()),
|
|
21
|
+
createdOn: zod_1.z.string(),
|
|
22
|
+
lastModifiedOn: zod_1.z.string(),
|
|
23
|
+
createdBy: zod_1.z.string().nullable(),
|
|
24
|
+
items: zod_1.z.array(exports.sMacroItemDto),
|
|
22
25
|
});
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sNotificationDto = void 0;
|
|
4
|
+
const primitives_1 = require("../primitives");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
exports.sNotificationDto = zod_1.z.object({
|
|
7
|
+
id: zod_1.z.string().nonempty(),
|
|
8
|
+
source: primitives_1.sDeviceId,
|
|
9
|
+
message: zod_1.z.string().nonempty(),
|
|
10
|
+
severity: primitives_1.sNotificationSeverity,
|
|
11
|
+
metadata: zod_1.z.record(zod_1.z.unknown()),
|
|
12
|
+
notificationRef: zod_1.z.string().nonempty().nullable(),
|
|
13
|
+
createdOn: zod_1.z.number().int().nonnegative(),
|
|
14
|
+
acknowledgedBy: zod_1.z.string().nonempty().nullable(),
|
|
15
|
+
acknowledgedOn: zod_1.z.number().int().nonnegative().nullable(),
|
|
13
16
|
});
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sPersonAgeementDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.sPersonAgeementDto = zod_1.z.object({
|
|
6
|
+
personId: zod_1.z.string(),
|
|
7
|
+
agreementId: zod_1.z.string(),
|
|
8
|
+
agreementImage: zod_1.z.string(),
|
|
9
|
+
createdOn: zod_1.z.string().date(),
|
|
10
|
+
lastModifiedOn: zod_1.z.string().date(),
|
|
8
11
|
});
|
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sPersonPresenceActionDto = exports.sPersonPresenceDto = exports.sPresenceZoneDto = exports.sPresencePersonDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.sPresencePersonDto = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
firstName: zod_1.z.string(),
|
|
8
|
+
lastName: zod_1.z.string(),
|
|
9
|
+
avatarId: zod_1.z.string().nullable(),
|
|
10
|
+
type: zod_1.z.string().min(1).max(16),
|
|
11
|
+
position: zod_1.z.string().max(128).nullable(),
|
|
9
12
|
});
|
|
10
|
-
|
|
11
|
-
id: z.string(),
|
|
12
|
-
displayName: z.string(),
|
|
13
|
-
isGlobal: z
|
|
13
|
+
exports.sPresenceZoneDto = zod_1.z.object({
|
|
14
|
+
id: zod_1.z.string(),
|
|
15
|
+
displayName: zod_1.z.string(),
|
|
16
|
+
isGlobal: zod_1.z
|
|
14
17
|
.boolean()
|
|
15
18
|
.describe('Whether the zone is the designated global zone'),
|
|
16
19
|
});
|
|
17
|
-
|
|
18
|
-
id: z.string(),
|
|
19
|
-
person: sPresencePersonDto,
|
|
20
|
-
zone: z.union([sPresenceZoneDto, z.string()]),
|
|
21
|
-
online: z.boolean().nullable(),
|
|
22
|
-
onLeave: z.boolean(),
|
|
23
|
-
lastCheckInOn: z.number().nullable(),
|
|
24
|
-
lastCheckOutOn: z.number().nullable(),
|
|
25
|
-
securityChecked: z.boolean(),
|
|
20
|
+
exports.sPersonPresenceDto = zod_1.z.object({
|
|
21
|
+
id: zod_1.z.string(),
|
|
22
|
+
person: exports.sPresencePersonDto,
|
|
23
|
+
zone: zod_1.z.union([exports.sPresenceZoneDto, zod_1.z.string()]),
|
|
24
|
+
online: zod_1.z.boolean().nullable(),
|
|
25
|
+
onLeave: zod_1.z.boolean(),
|
|
26
|
+
lastCheckInOn: zod_1.z.number().nullable(),
|
|
27
|
+
lastCheckOutOn: zod_1.z.number().nullable(),
|
|
28
|
+
securityChecked: zod_1.z.boolean(),
|
|
26
29
|
});
|
|
27
|
-
|
|
28
|
-
id: z.string(),
|
|
29
|
-
person: z.union([sPresencePersonDto, z.string()]),
|
|
30
|
-
zone: z.union([sPresenceZoneDto, z.string()]),
|
|
31
|
-
timestamp: z.number(),
|
|
32
|
-
checkInOrOut: z.boolean(),
|
|
33
|
-
isLeave: z.boolean(),
|
|
34
|
-
checkCompleted: z.boolean(),
|
|
30
|
+
exports.sPersonPresenceActionDto = zod_1.z.object({
|
|
31
|
+
id: zod_1.z.string(),
|
|
32
|
+
person: zod_1.z.union([exports.sPresencePersonDto, zod_1.z.string()]),
|
|
33
|
+
zone: zod_1.z.union([exports.sPresenceZoneDto, zod_1.z.string()]),
|
|
34
|
+
timestamp: zod_1.z.number(),
|
|
35
|
+
checkInOrOut: zod_1.z.boolean(),
|
|
36
|
+
isLeave: zod_1.z.boolean(),
|
|
37
|
+
checkCompleted: zod_1.z.boolean(),
|
|
35
38
|
});
|