@awarevue/api-types 2.0.22 → 2.0.24
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.d.ts +2 -0
- package/dist/_legacy/index.js +2 -0
- package/dist/_legacy/milestone.js +1 -0
- package/dist/_legacy/orchid.js +1 -0
- package/dist/alarm-automation.d.ts +3 -3
- package/dist/alarm-automation.js +26 -37
- package/dist/api/agent-protocol/index.d.ts +1 -0
- package/dist/api/agent-protocol/index.js +1 -0
- package/dist/{agent-communication → api/agent-protocol}/protocol.d.ts +407 -598
- package/dist/api/agent-protocol/protocol.js +382 -0
- package/dist/api/commands/alarm.js +59 -0
- package/dist/{commands → api/commands}/all.d.ts +83 -83
- package/dist/{commands → api/commands}/all.js +22 -25
- package/dist/api/commands/camera-lift.js +14 -0
- package/dist/api/commands/camera.js +93 -0
- package/dist/api/commands/display.js +34 -0
- package/dist/api/commands/door.js +24 -0
- package/dist/api/commands/index.js +12 -0
- package/dist/api/commands/intercom-terminal.js +2 -0
- package/dist/api/commands/io-board.js +12 -0
- package/dist/api/commands/nvr-exporter.js +23 -0
- package/dist/api/commands/pbx.js +14 -0
- package/dist/api/commands/presence-tracker.js +30 -0
- package/dist/api/commands/server.js +24 -0
- package/dist/api/error.js +181 -0
- package/dist/api/events/alarm.js +52 -0
- package/dist/{events → api/events}/all.d.ts +8 -8
- package/dist/api/events/all.js +124 -0
- package/dist/api/events/camera.js +84 -0
- package/dist/api/events/display.js +6 -0
- package/dist/api/events/door.js +59 -0
- package/dist/api/events/index.js +12 -0
- package/dist/api/events/intercom-terminal.js +16 -0
- package/dist/api/events/io-board.js +10 -0
- package/dist/api/events/nvr-exporter.js +18 -0
- package/dist/api/events/panic-button.js +8 -0
- package/dist/api/events/presence-tracker.js +30 -0
- package/dist/api/events/reader.js +10 -0
- package/dist/{events → api/events}/server.d.ts +5 -5
- package/dist/api/events/server.js +12 -0
- package/dist/api/index.d.ts +9 -4
- package/dist/api/index.js +9 -20
- package/dist/api/mqtt/index.d.ts +1 -0
- package/dist/api/mqtt/index.js +1 -0
- package/dist/api/mqtt/payloads.js +18 -0
- package/dist/api/queries/all.js +25 -0
- package/dist/api/queries/camera.js +24 -0
- package/dist/api/queries/index.js +5 -0
- package/dist/api/queries/nvr-analytics-server.js +73 -0
- package/dist/api/queries/nvr-exporter.js +33 -0
- package/dist/api/queries/nvr-recorder.js +39 -0
- package/dist/api/rest/access-rule.d.ts +117 -0
- package/dist/api/rest/access-rule.js +10 -0
- package/dist/{access-control → api/rest}/agreement.d.ts +0 -20
- package/dist/api/rest/agreement.js +7 -0
- package/dist/api/rest/alarm.js +1 -0
- package/dist/{api-keys.d.ts → api/rest/api-keys.d.ts} +0 -20
- package/dist/api/rest/api-keys.js +11 -0
- package/dist/api/rest/app.js +9 -0
- package/dist/api/rest/auth.js +16 -0
- package/dist/{automation.d.ts → api/rest/automation.d.ts} +0 -217
- package/dist/api/rest/automation.js +14 -0
- package/dist/api/rest/aware-config.js +1 -0
- package/dist/{bookmarks.d.ts → api/rest/bookmarks.d.ts} +0 -49
- package/dist/api/rest/bookmarks.js +18 -0
- package/dist/api/rest/cast.js +7 -0
- package/dist/{custom-field.d.ts → api/rest/custom-field.d.ts} +1 -19
- package/dist/api/rest/custom-field.js +3 -0
- package/dist/{device-event.d.ts → api/rest/device-event.d.ts} +1 -1
- package/dist/api/rest/device-event.js +1 -0
- package/dist/{device-group.d.ts → api/rest/device-group.d.ts} +0 -23
- package/dist/api/rest/device-group.js +17 -0
- package/dist/api/rest/file.js +1 -0
- package/dist/api/rest/index.d.ts +34 -0
- package/dist/api/rest/index.js +34 -0
- package/dist/{device-factory.d.ts → api/rest/io-device.d.ts} +1 -1
- package/dist/api/rest/io-device.js +19 -0
- package/dist/{layout.d.ts → api/rest/layout.d.ts} +6 -107
- package/dist/api/rest/layout.js +19 -0
- package/dist/{macros.d.ts → api/rest/macros.d.ts} +0 -82
- package/dist/api/rest/macros.js +8 -0
- package/dist/api/rest/media.js +65 -0
- package/dist/api/rest/module-config.d.ts +19 -0
- package/dist/api/rest/module-config.js +1 -0
- package/dist/api/rest/notifications.d.ts +21 -0
- package/dist/api/rest/notifications.js +9 -0
- package/dist/api/rest/person-agreement.d.ts +15 -0
- package/dist/api/rest/person-agreement.js +6 -0
- package/dist/api/rest/person-presence.d.ts +72 -0
- package/dist/api/rest/person-presence.js +29 -0
- package/dist/{access-control → api/rest}/person-type.d.ts +1 -33
- package/dist/api/rest/person-type.js +8 -0
- package/dist/api/rest/person.d.ts +128 -0
- package/dist/api/rest/person.js +8 -0
- package/dist/api/{query.js → rest/query.js} +8 -13
- package/dist/api/rest/schedule.d.ts +249 -0
- package/dist/api/rest/schedule.js +9 -0
- package/dist/{security-level.d.ts → api/rest/security-level.d.ts} +0 -29
- package/dist/api/rest/security-level.js +5 -0
- package/dist/{template.d.ts → api/rest/template.d.ts} +1 -18
- package/dist/api/rest/template.js +12 -0
- package/dist/{token-conversion.d.ts → api/rest/token-conversion.d.ts} +0 -22
- package/dist/api/rest/token-conversion.js +5 -0
- package/dist/{user.d.ts → api/rest/user.d.ts} +10 -60
- package/dist/api/rest/user.js +32 -0
- package/dist/api/rest/view.d.ts +397 -0
- package/dist/api/rest/view.js +16 -0
- package/dist/api/rest/webrtc-playback.js +8 -0
- package/dist/{access-control → api/rest}/zone.d.ts +0 -29
- package/dist/api/rest/zone.js +10 -0
- package/dist/api/state/index.d.ts +10 -0
- package/dist/api/state/index.js +1 -0
- package/dist/api/ws/device-communication.js +55 -0
- package/dist/api/ws/index.js +5 -0
- package/dist/api/ws/notifications.js +20 -0
- package/dist/api/ws/progress.js +44 -0
- package/dist/api/ws/web-rtc-signaling.js +92 -0
- package/dist/api/ws/web-socket.js +2 -0
- package/dist/index.d.ts +1 -36
- package/dist/index.js +6 -57
- package/dist/{access-control → objects}/access-rule.d.ts +9 -78
- package/dist/objects/access-rule.js +36 -0
- package/dist/objects/agent-metadata.d.ts +192 -0
- package/dist/objects/agent-metadata.js +49 -0
- package/dist/objects/agreement.d.ts +21 -0
- package/dist/objects/agreement.js +8 -0
- package/dist/{objects.d.ts → objects/all.d.ts} +18 -11
- package/dist/{objects.js → objects/all.js} +4 -7
- package/dist/objects/api-key.d.ts +21 -0
- package/dist/objects/api-key.js +8 -0
- package/dist/objects/automation-rule.d.ts +218 -0
- package/dist/objects/automation-rule.js +51 -0
- package/dist/objects/bookmark.d.ts +50 -0
- package/dist/objects/bookmark.js +13 -0
- package/dist/objects/credential.js +11 -0
- package/dist/objects/custom-field.d.ts +20 -0
- package/dist/objects/custom-field.js +14 -0
- package/dist/{device → objects/device}/alarm.js +3 -6
- package/dist/{device → objects/device}/any-device.d.ts +510 -510
- package/dist/objects/device/any-device.js +239 -0
- package/dist/objects/device/camera-lift.js +4 -0
- package/dist/objects/device/camera.js +32 -0
- package/dist/objects/device/device-gateway.js +2 -0
- package/dist/{device-import.d.ts → objects/device/device-import.d.ts} +44 -44
- package/dist/objects/device/device-import.js +30 -0
- package/dist/{device-relation.js → objects/device/device-relation.js} +13 -16
- package/dist/objects/device/display.js +4 -0
- package/dist/objects/device/door.js +9 -0
- package/dist/{device → objects/device}/index.d.ts +2 -0
- package/dist/objects/device/index.js +22 -0
- package/dist/objects/device/intercom-operator.js +1 -0
- package/dist/objects/device/intercom-terminal.js +23 -0
- package/dist/objects/device/io-board.js +7 -0
- package/dist/objects/device/motion-sensor.js +4 -0
- package/dist/objects/device/nvr-analytics-server.js +6 -0
- package/dist/objects/device/nvr-exporter.js +7 -0
- package/dist/objects/device/nvr-recorder.js +6 -0
- package/dist/objects/device/panic-button.js +4 -0
- package/dist/objects/device/pbx.js +6 -0
- package/dist/objects/device/presence-tracker.js +1 -0
- package/dist/objects/device/reader.js +1 -0
- package/dist/{device → objects/device}/server.d.ts +1 -1
- package/dist/objects/device/server.js +1 -0
- package/dist/objects/device/system.js +6 -0
- package/dist/objects/device-group.d.ts +24 -0
- package/dist/objects/device-group.js +9 -0
- package/dist/objects/index.d.ts +28 -0
- package/dist/objects/index.js +28 -0
- package/dist/objects/layout.d.ts +102 -0
- package/dist/objects/layout.js +22 -0
- package/dist/objects/macro.d.ts +83 -0
- package/dist/objects/macro.js +22 -0
- package/dist/{module-config.d.ts → objects/module-config.d.ts} +1 -18
- package/dist/objects/module-config.js +1 -0
- package/dist/{notifications.d.ts → objects/notification.d.ts} +0 -20
- package/dist/objects/notification.js +13 -0
- package/dist/{access-control → objects}/person-agreement.d.ts +1 -15
- package/dist/objects/person-agreement.js +8 -0
- package/dist/{access-control → objects}/person-presence.d.ts +2 -73
- package/dist/objects/person-presence.js +35 -0
- package/dist/objects/person-type.d.ts +33 -0
- package/dist/objects/person-type.js +16 -0
- package/dist/{access-control → objects}/person.d.ts +74 -140
- package/dist/objects/person.js +42 -0
- package/dist/objects/role.d.ts +21 -0
- package/dist/objects/role.js +15 -0
- package/dist/{access-control → objects}/schedule.d.ts +4 -129
- package/dist/objects/schedule.js +53 -0
- package/dist/objects/security-level.d.ts +30 -0
- package/dist/objects/security-level.js +11 -0
- package/dist/objects/template.d.ts +20 -0
- package/dist/objects/template.js +8 -0
- package/dist/objects/token-conversion.d.ts +23 -0
- package/dist/objects/token-conversion.js +8 -0
- package/dist/objects/user.d.ts +31 -0
- package/dist/objects/user.js +12 -0
- package/dist/{view.d.ts → objects/view.d.ts} +3 -399
- package/dist/objects/view.js +64 -0
- package/dist/{world-objects.js → objects/world-object.js} +5 -8
- package/dist/objects/zone.d.ts +41 -0
- package/dist/objects/zone.js +15 -0
- package/dist/package.json +1 -1
- package/dist/permissions.js +146 -149
- package/dist/primitives.d.ts +30 -30
- package/dist/primitives.js +27 -30
- package/package.json +1 -1
- package/dist/access-control/access-rule.js +0 -49
- package/dist/access-control/agreement.js +0 -20
- package/dist/access-control/credential.js +0 -17
- package/dist/access-control/index.d.ts +0 -9
- package/dist/access-control/index.js +0 -25
- package/dist/access-control/person-agreement.js +0 -19
- package/dist/access-control/person-presence.js +0 -66
- package/dist/access-control/person-type.js +0 -29
- package/dist/access-control/person.js +0 -53
- package/dist/access-control/schedule.js +0 -65
- package/dist/access-control/zone.js +0 -28
- package/dist/agent-communication/index.d.ts +0 -2
- package/dist/agent-communication/index.js +0 -18
- package/dist/agent-communication/mqtt-payloads.js +0 -21
- package/dist/agent-communication/protocol.js +0 -436
- package/dist/api/alarm.js +0 -2
- package/dist/api/auth.js +0 -19
- package/dist/api/media.js +0 -68
- package/dist/api-keys.js +0 -21
- package/dist/app.js +0 -12
- package/dist/automation.js +0 -66
- package/dist/aware-config.js +0 -2
- package/dist/bookmarks.js +0 -32
- package/dist/cast.js +0 -13
- package/dist/commands/alarm.js +0 -62
- package/dist/commands/camera-lift.js +0 -17
- package/dist/commands/camera.js +0 -97
- package/dist/commands/display.js +0 -37
- package/dist/commands/door.js +0 -27
- package/dist/commands/index.js +0 -28
- package/dist/commands/intercom-terminal.js +0 -3
- package/dist/commands/io-board.js +0 -15
- package/dist/commands/nvr-exporter.js +0 -26
- package/dist/commands/pbx.js +0 -17
- package/dist/commands/presence-tracker.js +0 -33
- package/dist/commands/server.js +0 -27
- package/dist/custom-field.js +0 -19
- package/dist/device/any-device.js +0 -242
- package/dist/device/camera-lift.js +0 -7
- package/dist/device/camera.js +0 -35
- package/dist/device/device-gateway.js +0 -5
- package/dist/device/display.js +0 -7
- package/dist/device/door.js +0 -12
- package/dist/device/index.js +0 -36
- package/dist/device/intercom-operator.js +0 -4
- package/dist/device/intercom-terminal.js +0 -26
- package/dist/device/io-board.js +0 -10
- package/dist/device/motion-sensor.js +0 -7
- package/dist/device/nvr-analytics-server.js +0 -9
- package/dist/device/nvr-exporter.js +0 -10
- package/dist/device/nvr-recorder.js +0 -9
- package/dist/device/panic-button.js +0 -7
- package/dist/device/pbx.js +0 -9
- package/dist/device/presence-tracker.js +0 -4
- package/dist/device/reader.js +0 -4
- package/dist/device/server.js +0 -4
- package/dist/device/system.js +0 -9
- package/dist/device-event.js +0 -2
- package/dist/device-factory.js +0 -26
- package/dist/device-group.js +0 -31
- package/dist/device-import.js +0 -33
- package/dist/device-state.d.ts +0 -10
- package/dist/device-state.js +0 -2
- package/dist/error.js +0 -185
- package/dist/events/alarm.js +0 -55
- package/dist/events/all.js +0 -128
- package/dist/events/camera.js +0 -87
- package/dist/events/display.js +0 -9
- package/dist/events/door.js +0 -62
- package/dist/events/index.js +0 -28
- package/dist/events/intercom-terminal.js +0 -19
- package/dist/events/io-board.js +0 -13
- package/dist/events/nvr-exporter.js +0 -21
- package/dist/events/panic-button.js +0 -11
- package/dist/events/presence-tracker.js +0 -33
- package/dist/events/reader.js +0 -13
- package/dist/events/server.js +0 -15
- package/dist/file.js +0 -2
- package/dist/layout.js +0 -45
- package/dist/macros.js +0 -32
- package/dist/messages/device-communication.js +0 -63
- package/dist/messages/index.js +0 -21
- package/dist/messages/notifications.js +0 -27
- package/dist/messages/progress.js +0 -51
- package/dist/messages/web-rtc-signaling.js +0 -99
- package/dist/messages/web-socket.js +0 -5
- package/dist/milestone.js +0 -2
- package/dist/module-config.js +0 -2
- package/dist/notifications.js +0 -23
- package/dist/orchid.js +0 -2
- package/dist/queries/all.js +0 -28
- package/dist/queries/camera.js +0 -27
- package/dist/queries/index.js +0 -21
- package/dist/queries/nvr-analytics-server.js +0 -76
- package/dist/queries/nvr-exporter.js +0 -36
- package/dist/queries/nvr-recorder.js +0 -42
- package/dist/security-level.js +0 -18
- package/dist/template.js +0 -21
- package/dist/token-conversion.js +0 -15
- package/dist/user.js +0 -57
- package/dist/view.js +0 -84
- package/dist/webrtc-playback.js +0 -14
- package/dist/{milestone.d.ts → _legacy/milestone.d.ts} +0 -0
- package/dist/{orchid.d.ts → _legacy/orchid.d.ts} +0 -0
- package/dist/{commands → api/commands}/alarm.d.ts +0 -0
- package/dist/{commands → api/commands}/camera-lift.d.ts +0 -0
- package/dist/{commands → api/commands}/camera.d.ts +0 -0
- package/dist/{commands → api/commands}/display.d.ts +0 -0
- package/dist/{commands → api/commands}/door.d.ts +0 -0
- package/dist/{commands → api/commands}/index.d.ts +0 -0
- package/dist/{commands → api/commands}/intercom-terminal.d.ts +0 -0
- package/dist/{commands → api/commands}/io-board.d.ts +0 -0
- package/dist/{commands → api/commands}/nvr-exporter.d.ts +86 -86
- package/dist/{commands → api/commands}/pbx.d.ts +0 -0
- package/dist/{commands → api/commands}/presence-tracker.d.ts +0 -0
- package/dist/{commands → api/commands}/server.d.ts +78 -78
- package/dist/{error.d.ts → api/error.d.ts} +0 -0
- package/dist/{events → api/events}/alarm.d.ts +0 -0
- package/dist/{events → api/events}/camera.d.ts +0 -0
- package/dist/{events → api/events}/display.d.ts +0 -0
- package/dist/{events → api/events}/door.d.ts +0 -0
- package/dist/{events → api/events}/index.d.ts +0 -0
- package/dist/{events → api/events}/intercom-terminal.d.ts +0 -0
- package/dist/{events → api/events}/io-board.d.ts +0 -0
- package/dist/{events → api/events}/nvr-exporter.d.ts +4 -4
- package/dist/{events → api/events}/panic-button.d.ts +0 -0
- package/dist/{events → api/events}/presence-tracker.d.ts +8 -8
- package/dist/{events → api/events}/reader.d.ts +0 -0
- package/dist/{agent-communication/mqtt-payloads.d.ts → api/mqtt/payloads.d.ts} +0 -0
- package/dist/{queries → api/queries}/all.d.ts +83 -83
- package/dist/{queries → api/queries}/camera.d.ts +0 -0
- package/dist/{queries → api/queries}/index.d.ts +0 -0
- package/dist/{queries → api/queries}/nvr-analytics-server.d.ts +4 -4
- package/dist/{queries → api/queries}/nvr-exporter.d.ts +0 -0
- package/dist/{queries → api/queries}/nvr-recorder.d.ts +162 -162
- package/dist/api/{alarm.d.ts → rest/alarm.d.ts} +0 -0
- package/dist/{app.d.ts → api/rest/app.d.ts} +0 -0
- package/dist/api/{auth.d.ts → rest/auth.d.ts} +0 -0
- package/dist/{aware-config.d.ts → api/rest/aware-config.d.ts} +0 -0
- package/dist/{cast.d.ts → api/rest/cast.d.ts} +0 -0
- package/dist/{file.d.ts → api/rest/file.d.ts} +0 -0
- package/dist/api/{media.d.ts → rest/media.d.ts} +2 -2
- /package/dist/api/{query.d.ts → rest/query.d.ts} +0 -0
- /package/dist/{webrtc-playback.d.ts → api/rest/webrtc-playback.d.ts} +0 -0
- /package/dist/{messages → api/ws}/device-communication.d.ts +0 -0
- /package/dist/{messages → api/ws}/index.d.ts +0 -0
- /package/dist/{messages → api/ws}/notifications.d.ts +0 -0
- /package/dist/{messages → api/ws}/progress.d.ts +0 -0
- /package/dist/{messages → api/ws}/web-rtc-signaling.d.ts +0 -0
- /package/dist/{messages → api/ws}/web-socket.d.ts +0 -0
- /package/dist/{access-control → objects}/credential.d.ts +0 -0
- /package/dist/{device → objects/device}/alarm.d.ts +0 -0
- /package/dist/{device → objects/device}/camera-lift.d.ts +0 -0
- /package/dist/{device → objects/device}/camera.d.ts +0 -0
- /package/dist/{device → objects/device}/device-gateway.d.ts +0 -0
- /package/dist/{device-relation.d.ts → objects/device/device-relation.d.ts} +0 -0
- /package/dist/{device → objects/device}/display.d.ts +0 -0
- /package/dist/{device → objects/device}/door.d.ts +0 -0
- /package/dist/{device → objects/device}/intercom-operator.d.ts +0 -0
- /package/dist/{device → objects/device}/intercom-terminal.d.ts +0 -0
- /package/dist/{device → objects/device}/io-board.d.ts +0 -0
- /package/dist/{device → objects/device}/motion-sensor.d.ts +0 -0
- /package/dist/{device → objects/device}/nvr-analytics-server.d.ts +0 -0
- /package/dist/{device → objects/device}/nvr-exporter.d.ts +0 -0
- /package/dist/{device → objects/device}/nvr-recorder.d.ts +0 -0
- /package/dist/{device → objects/device}/panic-button.d.ts +0 -0
- /package/dist/{device → objects/device}/pbx.d.ts +0 -0
- /package/dist/{device → objects/device}/presence-tracker.d.ts +0 -0
- /package/dist/{device → objects/device}/reader.d.ts +0 -0
- /package/dist/{device → objects/device}/system.d.ts +0 -0
- /package/dist/{world-objects.d.ts → objects/world-object.d.ts} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sConversionTypeEnum: z.ZodEnum<["hex-to-decimal"]>;
|
|
3
|
+
export declare const sTokenConversionDto: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
type: z.ZodEnum<["hex-to-decimal"]>;
|
|
7
|
+
jsonData: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
type: "hex-to-decimal";
|
|
11
|
+
id: string;
|
|
12
|
+
jsonData: {} & {
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
name: string;
|
|
17
|
+
type: "hex-to-decimal";
|
|
18
|
+
id: string;
|
|
19
|
+
jsonData: {} & {
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
}>;
|
|
23
|
+
export type TokenConversionDto = z.infer<typeof sTokenConversionDto>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const sConversionTypeEnum = z.enum(['hex-to-decimal']);
|
|
3
|
+
export const sTokenConversionDto = z.object({
|
|
4
|
+
id: z.string().uuid(),
|
|
5
|
+
name: z.string().min(1).max(64),
|
|
6
|
+
type: sConversionTypeEnum,
|
|
7
|
+
jsonData: z.object({}).passthrough(), // Allows any JSON object structure
|
|
8
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sUserPassword: z.ZodString;
|
|
3
|
+
export declare const sUserDto: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
firstName: z.ZodString;
|
|
6
|
+
lastName: z.ZodString;
|
|
7
|
+
email: z.ZodNullable<z.ZodString>;
|
|
8
|
+
username: z.ZodString;
|
|
9
|
+
isActive: z.ZodBoolean;
|
|
10
|
+
isRoot: z.ZodBoolean;
|
|
11
|
+
roles: z.ZodArray<z.ZodString, "many">;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
id: string;
|
|
14
|
+
username: string;
|
|
15
|
+
email: string | null;
|
|
16
|
+
firstName: string;
|
|
17
|
+
lastName: string;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
isRoot: boolean;
|
|
20
|
+
roles: string[];
|
|
21
|
+
}, {
|
|
22
|
+
id: string;
|
|
23
|
+
username: string;
|
|
24
|
+
email: string | null;
|
|
25
|
+
firstName: string;
|
|
26
|
+
lastName: string;
|
|
27
|
+
isActive: boolean;
|
|
28
|
+
isRoot: boolean;
|
|
29
|
+
roles: string[];
|
|
30
|
+
}>;
|
|
31
|
+
export type UserDto = z.infer<typeof sUserDto>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const sUserPassword = z.string().min(4).max(64);
|
|
3
|
+
export const sUserDto = z.object({
|
|
4
|
+
id: z.string(),
|
|
5
|
+
firstName: z.string(),
|
|
6
|
+
lastName: z.string(),
|
|
7
|
+
email: z.string().nullable(),
|
|
8
|
+
username: z.string(),
|
|
9
|
+
isActive: z.boolean(),
|
|
10
|
+
isRoot: z.boolean(),
|
|
11
|
+
roles: z.array(z.string()),
|
|
12
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from 'zod';
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const sLayoutArea: z.ZodObject<{
|
|
3
3
|
area: z.ZodString;
|
|
4
4
|
type: z.ZodLiteral<"layout">;
|
|
@@ -261,398 +261,6 @@ export declare const sViewConfig: z.ZodObject<{
|
|
|
261
261
|
})[];
|
|
262
262
|
hotspotArea?: string | undefined;
|
|
263
263
|
}>;
|
|
264
|
-
export declare const sAddViewRequest: z.ZodObject<{
|
|
265
|
-
name: z.ZodString;
|
|
266
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
267
|
-
isPublic: z.ZodBoolean;
|
|
268
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
269
|
-
config: z.ZodObject<{
|
|
270
|
-
rows: z.ZodNumber;
|
|
271
|
-
columns: z.ZodNumber;
|
|
272
|
-
areas: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
|
|
273
|
-
hotspotArea: z.ZodOptional<z.ZodString>;
|
|
274
|
-
contents: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
275
|
-
area: z.ZodString;
|
|
276
|
-
type: z.ZodLiteral<"layout">;
|
|
277
|
-
layoutId: z.ZodString;
|
|
278
|
-
}, "strip", z.ZodTypeAny, {
|
|
279
|
-
type: "layout";
|
|
280
|
-
area: string;
|
|
281
|
-
layoutId: string;
|
|
282
|
-
}, {
|
|
283
|
-
type: "layout";
|
|
284
|
-
area: string;
|
|
285
|
-
layoutId: string;
|
|
286
|
-
}>, z.ZodObject<{
|
|
287
|
-
area: z.ZodString;
|
|
288
|
-
type: z.ZodLiteral<"layoutSelector">;
|
|
289
|
-
}, "strip", z.ZodTypeAny, {
|
|
290
|
-
type: "layoutSelector";
|
|
291
|
-
area: string;
|
|
292
|
-
}, {
|
|
293
|
-
type: "layoutSelector";
|
|
294
|
-
area: string;
|
|
295
|
-
}>, z.ZodObject<{
|
|
296
|
-
area: z.ZodString;
|
|
297
|
-
type: z.ZodLiteral<"device">;
|
|
298
|
-
deviceId: z.ZodString;
|
|
299
|
-
}, "strip", z.ZodTypeAny, {
|
|
300
|
-
type: "device";
|
|
301
|
-
area: string;
|
|
302
|
-
deviceId: string;
|
|
303
|
-
}, {
|
|
304
|
-
type: "device";
|
|
305
|
-
area: string;
|
|
306
|
-
deviceId: string;
|
|
307
|
-
}>, z.ZodObject<{
|
|
308
|
-
area: z.ZodString;
|
|
309
|
-
type: z.ZodLiteral<"deviceCarousel">;
|
|
310
|
-
deviceIds: z.ZodArray<z.ZodString, "many">;
|
|
311
|
-
timeIntervalMs: z.ZodNumber;
|
|
312
|
-
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
type: "deviceCarousel";
|
|
314
|
-
area: string;
|
|
315
|
-
deviceIds: string[];
|
|
316
|
-
timeIntervalMs: number;
|
|
317
|
-
}, {
|
|
318
|
-
type: "deviceCarousel";
|
|
319
|
-
area: string;
|
|
320
|
-
deviceIds: string[];
|
|
321
|
-
timeIntervalMs: number;
|
|
322
|
-
}>, z.ZodObject<{
|
|
323
|
-
area: z.ZodString;
|
|
324
|
-
type: z.ZodLiteral<"playbackTrack">;
|
|
325
|
-
controllerId: z.ZodString;
|
|
326
|
-
source: z.ZodString;
|
|
327
|
-
}, "strip", z.ZodTypeAny, {
|
|
328
|
-
type: "playbackTrack";
|
|
329
|
-
source: string;
|
|
330
|
-
area: string;
|
|
331
|
-
controllerId: string;
|
|
332
|
-
}, {
|
|
333
|
-
type: "playbackTrack";
|
|
334
|
-
source: string;
|
|
335
|
-
area: string;
|
|
336
|
-
controllerId: string;
|
|
337
|
-
}>]>, "many">;
|
|
338
|
-
}, "strip", z.ZodTypeAny, {
|
|
339
|
-
columns: number;
|
|
340
|
-
rows: number;
|
|
341
|
-
areas: string[][];
|
|
342
|
-
contents: ({
|
|
343
|
-
type: "layout";
|
|
344
|
-
area: string;
|
|
345
|
-
layoutId: string;
|
|
346
|
-
} | {
|
|
347
|
-
type: "layoutSelector";
|
|
348
|
-
area: string;
|
|
349
|
-
} | {
|
|
350
|
-
type: "device";
|
|
351
|
-
area: string;
|
|
352
|
-
deviceId: string;
|
|
353
|
-
} | {
|
|
354
|
-
type: "deviceCarousel";
|
|
355
|
-
area: string;
|
|
356
|
-
deviceIds: string[];
|
|
357
|
-
timeIntervalMs: number;
|
|
358
|
-
} | {
|
|
359
|
-
type: "playbackTrack";
|
|
360
|
-
source: string;
|
|
361
|
-
area: string;
|
|
362
|
-
controllerId: string;
|
|
363
|
-
})[];
|
|
364
|
-
hotspotArea?: string | undefined;
|
|
365
|
-
}, {
|
|
366
|
-
columns: number;
|
|
367
|
-
rows: number;
|
|
368
|
-
areas: string[][];
|
|
369
|
-
contents: ({
|
|
370
|
-
type: "layout";
|
|
371
|
-
area: string;
|
|
372
|
-
layoutId: string;
|
|
373
|
-
} | {
|
|
374
|
-
type: "layoutSelector";
|
|
375
|
-
area: string;
|
|
376
|
-
} | {
|
|
377
|
-
type: "device";
|
|
378
|
-
area: string;
|
|
379
|
-
deviceId: string;
|
|
380
|
-
} | {
|
|
381
|
-
type: "deviceCarousel";
|
|
382
|
-
area: string;
|
|
383
|
-
deviceIds: string[];
|
|
384
|
-
timeIntervalMs: number;
|
|
385
|
-
} | {
|
|
386
|
-
type: "playbackTrack";
|
|
387
|
-
source: string;
|
|
388
|
-
area: string;
|
|
389
|
-
controllerId: string;
|
|
390
|
-
})[];
|
|
391
|
-
hotspotArea?: string | undefined;
|
|
392
|
-
}>;
|
|
393
|
-
}, "strip", z.ZodTypeAny, {
|
|
394
|
-
name: string;
|
|
395
|
-
config: {
|
|
396
|
-
columns: number;
|
|
397
|
-
rows: number;
|
|
398
|
-
areas: string[][];
|
|
399
|
-
contents: ({
|
|
400
|
-
type: "layout";
|
|
401
|
-
area: string;
|
|
402
|
-
layoutId: string;
|
|
403
|
-
} | {
|
|
404
|
-
type: "layoutSelector";
|
|
405
|
-
area: string;
|
|
406
|
-
} | {
|
|
407
|
-
type: "device";
|
|
408
|
-
area: string;
|
|
409
|
-
deviceId: string;
|
|
410
|
-
} | {
|
|
411
|
-
type: "deviceCarousel";
|
|
412
|
-
area: string;
|
|
413
|
-
deviceIds: string[];
|
|
414
|
-
timeIntervalMs: number;
|
|
415
|
-
} | {
|
|
416
|
-
type: "playbackTrack";
|
|
417
|
-
source: string;
|
|
418
|
-
area: string;
|
|
419
|
-
controllerId: string;
|
|
420
|
-
})[];
|
|
421
|
-
hotspotArea?: string | undefined;
|
|
422
|
-
};
|
|
423
|
-
isPublic: boolean;
|
|
424
|
-
order?: number | undefined;
|
|
425
|
-
isDefault?: boolean | undefined;
|
|
426
|
-
}, {
|
|
427
|
-
name: string;
|
|
428
|
-
config: {
|
|
429
|
-
columns: number;
|
|
430
|
-
rows: number;
|
|
431
|
-
areas: string[][];
|
|
432
|
-
contents: ({
|
|
433
|
-
type: "layout";
|
|
434
|
-
area: string;
|
|
435
|
-
layoutId: string;
|
|
436
|
-
} | {
|
|
437
|
-
type: "layoutSelector";
|
|
438
|
-
area: string;
|
|
439
|
-
} | {
|
|
440
|
-
type: "device";
|
|
441
|
-
area: string;
|
|
442
|
-
deviceId: string;
|
|
443
|
-
} | {
|
|
444
|
-
type: "deviceCarousel";
|
|
445
|
-
area: string;
|
|
446
|
-
deviceIds: string[];
|
|
447
|
-
timeIntervalMs: number;
|
|
448
|
-
} | {
|
|
449
|
-
type: "playbackTrack";
|
|
450
|
-
source: string;
|
|
451
|
-
area: string;
|
|
452
|
-
controllerId: string;
|
|
453
|
-
})[];
|
|
454
|
-
hotspotArea?: string | undefined;
|
|
455
|
-
};
|
|
456
|
-
isPublic: boolean;
|
|
457
|
-
order?: number | undefined;
|
|
458
|
-
isDefault?: boolean | undefined;
|
|
459
|
-
}>;
|
|
460
|
-
export declare const sUpdateViewRequest: z.ZodObject<{
|
|
461
|
-
name: z.ZodOptional<z.ZodString>;
|
|
462
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
463
|
-
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
464
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
465
|
-
config: z.ZodOptional<z.ZodObject<{
|
|
466
|
-
rows: z.ZodNumber;
|
|
467
|
-
columns: z.ZodNumber;
|
|
468
|
-
areas: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
|
|
469
|
-
hotspotArea: z.ZodOptional<z.ZodString>;
|
|
470
|
-
contents: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
471
|
-
area: z.ZodString;
|
|
472
|
-
type: z.ZodLiteral<"layout">;
|
|
473
|
-
layoutId: z.ZodString;
|
|
474
|
-
}, "strip", z.ZodTypeAny, {
|
|
475
|
-
type: "layout";
|
|
476
|
-
area: string;
|
|
477
|
-
layoutId: string;
|
|
478
|
-
}, {
|
|
479
|
-
type: "layout";
|
|
480
|
-
area: string;
|
|
481
|
-
layoutId: string;
|
|
482
|
-
}>, z.ZodObject<{
|
|
483
|
-
area: z.ZodString;
|
|
484
|
-
type: z.ZodLiteral<"layoutSelector">;
|
|
485
|
-
}, "strip", z.ZodTypeAny, {
|
|
486
|
-
type: "layoutSelector";
|
|
487
|
-
area: string;
|
|
488
|
-
}, {
|
|
489
|
-
type: "layoutSelector";
|
|
490
|
-
area: string;
|
|
491
|
-
}>, z.ZodObject<{
|
|
492
|
-
area: z.ZodString;
|
|
493
|
-
type: z.ZodLiteral<"device">;
|
|
494
|
-
deviceId: z.ZodString;
|
|
495
|
-
}, "strip", z.ZodTypeAny, {
|
|
496
|
-
type: "device";
|
|
497
|
-
area: string;
|
|
498
|
-
deviceId: string;
|
|
499
|
-
}, {
|
|
500
|
-
type: "device";
|
|
501
|
-
area: string;
|
|
502
|
-
deviceId: string;
|
|
503
|
-
}>, z.ZodObject<{
|
|
504
|
-
area: z.ZodString;
|
|
505
|
-
type: z.ZodLiteral<"deviceCarousel">;
|
|
506
|
-
deviceIds: z.ZodArray<z.ZodString, "many">;
|
|
507
|
-
timeIntervalMs: z.ZodNumber;
|
|
508
|
-
}, "strip", z.ZodTypeAny, {
|
|
509
|
-
type: "deviceCarousel";
|
|
510
|
-
area: string;
|
|
511
|
-
deviceIds: string[];
|
|
512
|
-
timeIntervalMs: number;
|
|
513
|
-
}, {
|
|
514
|
-
type: "deviceCarousel";
|
|
515
|
-
area: string;
|
|
516
|
-
deviceIds: string[];
|
|
517
|
-
timeIntervalMs: number;
|
|
518
|
-
}>, z.ZodObject<{
|
|
519
|
-
area: z.ZodString;
|
|
520
|
-
type: z.ZodLiteral<"playbackTrack">;
|
|
521
|
-
controllerId: z.ZodString;
|
|
522
|
-
source: z.ZodString;
|
|
523
|
-
}, "strip", z.ZodTypeAny, {
|
|
524
|
-
type: "playbackTrack";
|
|
525
|
-
source: string;
|
|
526
|
-
area: string;
|
|
527
|
-
controllerId: string;
|
|
528
|
-
}, {
|
|
529
|
-
type: "playbackTrack";
|
|
530
|
-
source: string;
|
|
531
|
-
area: string;
|
|
532
|
-
controllerId: string;
|
|
533
|
-
}>]>, "many">;
|
|
534
|
-
}, "strip", z.ZodTypeAny, {
|
|
535
|
-
columns: number;
|
|
536
|
-
rows: number;
|
|
537
|
-
areas: string[][];
|
|
538
|
-
contents: ({
|
|
539
|
-
type: "layout";
|
|
540
|
-
area: string;
|
|
541
|
-
layoutId: string;
|
|
542
|
-
} | {
|
|
543
|
-
type: "layoutSelector";
|
|
544
|
-
area: string;
|
|
545
|
-
} | {
|
|
546
|
-
type: "device";
|
|
547
|
-
area: string;
|
|
548
|
-
deviceId: string;
|
|
549
|
-
} | {
|
|
550
|
-
type: "deviceCarousel";
|
|
551
|
-
area: string;
|
|
552
|
-
deviceIds: string[];
|
|
553
|
-
timeIntervalMs: number;
|
|
554
|
-
} | {
|
|
555
|
-
type: "playbackTrack";
|
|
556
|
-
source: string;
|
|
557
|
-
area: string;
|
|
558
|
-
controllerId: string;
|
|
559
|
-
})[];
|
|
560
|
-
hotspotArea?: string | undefined;
|
|
561
|
-
}, {
|
|
562
|
-
columns: number;
|
|
563
|
-
rows: number;
|
|
564
|
-
areas: string[][];
|
|
565
|
-
contents: ({
|
|
566
|
-
type: "layout";
|
|
567
|
-
area: string;
|
|
568
|
-
layoutId: string;
|
|
569
|
-
} | {
|
|
570
|
-
type: "layoutSelector";
|
|
571
|
-
area: string;
|
|
572
|
-
} | {
|
|
573
|
-
type: "device";
|
|
574
|
-
area: string;
|
|
575
|
-
deviceId: string;
|
|
576
|
-
} | {
|
|
577
|
-
type: "deviceCarousel";
|
|
578
|
-
area: string;
|
|
579
|
-
deviceIds: string[];
|
|
580
|
-
timeIntervalMs: number;
|
|
581
|
-
} | {
|
|
582
|
-
type: "playbackTrack";
|
|
583
|
-
source: string;
|
|
584
|
-
area: string;
|
|
585
|
-
controllerId: string;
|
|
586
|
-
})[];
|
|
587
|
-
hotspotArea?: string | undefined;
|
|
588
|
-
}>>;
|
|
589
|
-
}, "strip", z.ZodTypeAny, {
|
|
590
|
-
name?: string | undefined;
|
|
591
|
-
order?: number | undefined;
|
|
592
|
-
isDefault?: boolean | undefined;
|
|
593
|
-
config?: {
|
|
594
|
-
columns: number;
|
|
595
|
-
rows: number;
|
|
596
|
-
areas: string[][];
|
|
597
|
-
contents: ({
|
|
598
|
-
type: "layout";
|
|
599
|
-
area: string;
|
|
600
|
-
layoutId: string;
|
|
601
|
-
} | {
|
|
602
|
-
type: "layoutSelector";
|
|
603
|
-
area: string;
|
|
604
|
-
} | {
|
|
605
|
-
type: "device";
|
|
606
|
-
area: string;
|
|
607
|
-
deviceId: string;
|
|
608
|
-
} | {
|
|
609
|
-
type: "deviceCarousel";
|
|
610
|
-
area: string;
|
|
611
|
-
deviceIds: string[];
|
|
612
|
-
timeIntervalMs: number;
|
|
613
|
-
} | {
|
|
614
|
-
type: "playbackTrack";
|
|
615
|
-
source: string;
|
|
616
|
-
area: string;
|
|
617
|
-
controllerId: string;
|
|
618
|
-
})[];
|
|
619
|
-
hotspotArea?: string | undefined;
|
|
620
|
-
} | undefined;
|
|
621
|
-
isPublic?: boolean | undefined;
|
|
622
|
-
}, {
|
|
623
|
-
name?: string | undefined;
|
|
624
|
-
order?: number | undefined;
|
|
625
|
-
isDefault?: boolean | undefined;
|
|
626
|
-
config?: {
|
|
627
|
-
columns: number;
|
|
628
|
-
rows: number;
|
|
629
|
-
areas: string[][];
|
|
630
|
-
contents: ({
|
|
631
|
-
type: "layout";
|
|
632
|
-
area: string;
|
|
633
|
-
layoutId: string;
|
|
634
|
-
} | {
|
|
635
|
-
type: "layoutSelector";
|
|
636
|
-
area: string;
|
|
637
|
-
} | {
|
|
638
|
-
type: "device";
|
|
639
|
-
area: string;
|
|
640
|
-
deviceId: string;
|
|
641
|
-
} | {
|
|
642
|
-
type: "deviceCarousel";
|
|
643
|
-
area: string;
|
|
644
|
-
deviceIds: string[];
|
|
645
|
-
timeIntervalMs: number;
|
|
646
|
-
} | {
|
|
647
|
-
type: "playbackTrack";
|
|
648
|
-
source: string;
|
|
649
|
-
area: string;
|
|
650
|
-
controllerId: string;
|
|
651
|
-
})[];
|
|
652
|
-
hotspotArea?: string | undefined;
|
|
653
|
-
} | undefined;
|
|
654
|
-
isPublic?: boolean | undefined;
|
|
655
|
-
}>;
|
|
656
264
|
export type ViewConfig = z.infer<typeof sViewConfig>;
|
|
657
265
|
export declare const sViewInfo: z.ZodIntersection<z.ZodObject<{
|
|
658
266
|
name: z.ZodString;
|
|
@@ -807,18 +415,18 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
|
|
|
807
415
|
name: string;
|
|
808
416
|
id: string;
|
|
809
417
|
order: number;
|
|
810
|
-
isDefault: boolean;
|
|
811
418
|
createdOn: string;
|
|
812
419
|
lastModifiedOn: string;
|
|
420
|
+
isDefault: boolean;
|
|
813
421
|
createdBy: string;
|
|
814
422
|
isPublic: boolean;
|
|
815
423
|
}, {
|
|
816
424
|
name: string;
|
|
817
425
|
id: string;
|
|
818
426
|
order: number;
|
|
819
|
-
isDefault: boolean;
|
|
820
427
|
createdOn: string;
|
|
821
428
|
lastModifiedOn: string;
|
|
429
|
+
isDefault: boolean;
|
|
822
430
|
createdBy: string;
|
|
823
431
|
isPublic: boolean;
|
|
824
432
|
}>, z.ZodObject<{
|
|
@@ -946,7 +554,3 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
|
|
|
946
554
|
hotspotArea?: string | undefined;
|
|
947
555
|
}>>;
|
|
948
556
|
export type ViewDto = z.infer<typeof sViewDto>;
|
|
949
|
-
export type AddViewRequest = z.infer<typeof sAddViewRequest>;
|
|
950
|
-
export type UpdateViewRequest = {
|
|
951
|
-
id: string;
|
|
952
|
-
} & z.infer<typeof sUpdateViewRequest>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const sLayoutArea = z.object({
|
|
3
|
+
area: z.string().nonempty(),
|
|
4
|
+
type: z.literal('layout'),
|
|
5
|
+
layoutId: z.string().nonempty(),
|
|
6
|
+
});
|
|
7
|
+
export const sLayoutSelectorArea = z.object({
|
|
8
|
+
area: z.string().nonempty(),
|
|
9
|
+
type: z.literal('layoutSelector'),
|
|
10
|
+
});
|
|
11
|
+
export const sDeviceArea = z.object({
|
|
12
|
+
area: z.string().nonempty(),
|
|
13
|
+
type: z.literal('device'),
|
|
14
|
+
deviceId: z.string().nonempty(),
|
|
15
|
+
});
|
|
16
|
+
export const sDeviceCarouselArea = z.object({
|
|
17
|
+
area: z.string().nonempty(),
|
|
18
|
+
type: z.literal('deviceCarousel'),
|
|
19
|
+
deviceIds: z.array(z.string().nonempty()),
|
|
20
|
+
timeIntervalMs: z.number().nonnegative(),
|
|
21
|
+
});
|
|
22
|
+
export const sPlaybackTrackArea = z.object({
|
|
23
|
+
area: z.string().nonempty(),
|
|
24
|
+
type: z.literal('playbackTrack'),
|
|
25
|
+
controllerId: z.string().nonempty(),
|
|
26
|
+
source: z
|
|
27
|
+
.string()
|
|
28
|
+
.nonempty()
|
|
29
|
+
.describe('The track within the controller. It is the device ID for the camera in the track.'),
|
|
30
|
+
});
|
|
31
|
+
export const sViewAreaContents = z.union([
|
|
32
|
+
sLayoutArea,
|
|
33
|
+
sLayoutSelectorArea,
|
|
34
|
+
sDeviceArea,
|
|
35
|
+
sDeviceCarouselArea,
|
|
36
|
+
sPlaybackTrackArea,
|
|
37
|
+
]);
|
|
38
|
+
export const sViewConfig = z.object({
|
|
39
|
+
rows: z.number(),
|
|
40
|
+
columns: z.number(),
|
|
41
|
+
areas: z.array(z.array(z.string().nonempty())),
|
|
42
|
+
hotspotArea: z.string().optional(),
|
|
43
|
+
contents: z.array(sViewAreaContents),
|
|
44
|
+
});
|
|
45
|
+
export const sViewInfo = z
|
|
46
|
+
.object({
|
|
47
|
+
name: z.string(),
|
|
48
|
+
order: z.number(),
|
|
49
|
+
isPublic: z.boolean(),
|
|
50
|
+
isDefault: z.boolean(),
|
|
51
|
+
})
|
|
52
|
+
.and(sViewConfig);
|
|
53
|
+
export const sViewDto = z
|
|
54
|
+
.object({
|
|
55
|
+
id: z.string(),
|
|
56
|
+
name: z.string(),
|
|
57
|
+
order: z.number(),
|
|
58
|
+
isPublic: z.boolean(),
|
|
59
|
+
isDefault: z.boolean(),
|
|
60
|
+
createdBy: z.string(),
|
|
61
|
+
createdOn: z.string(),
|
|
62
|
+
lastModifiedOn: z.string(),
|
|
63
|
+
})
|
|
64
|
+
.and(sViewConfig);
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exports.sWorldObject = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.string().describe('The unique identifier of the world object'),
|
|
7
|
-
label: zod_1.z.string().describe('The label of the world object'),
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const sWorldObject = z.object({
|
|
3
|
+
id: z.string().describe('The unique identifier of the world object'),
|
|
4
|
+
label: z.string().describe('The label of the world object'),
|
|
8
5
|
});
|
|
9
|
-
|
|
6
|
+
export const worldObjects = [
|
|
10
7
|
{
|
|
11
8
|
id: 'person',
|
|
12
9
|
label: 'Person',
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sZoneProps: z.ZodObject<{
|
|
3
|
+
displayName: z.ZodString;
|
|
4
|
+
devices: z.ZodArray<z.ZodString, "many">;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
displayName: string;
|
|
7
|
+
devices: string[];
|
|
8
|
+
}, {
|
|
9
|
+
displayName: string;
|
|
10
|
+
devices: string[];
|
|
11
|
+
}>;
|
|
12
|
+
export declare const sZoneDto: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
displayName: z.ZodString;
|
|
15
|
+
createdOn: z.ZodString;
|
|
16
|
+
lastModifiedOn: z.ZodString;
|
|
17
|
+
devices: z.ZodArray<z.ZodString, "many">;
|
|
18
|
+
isGlobal: z.ZodBoolean;
|
|
19
|
+
refs: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
20
|
+
version: z.ZodNumber;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
id: string;
|
|
23
|
+
version: number;
|
|
24
|
+
displayName: string;
|
|
25
|
+
createdOn: string;
|
|
26
|
+
lastModifiedOn: string;
|
|
27
|
+
refs: Record<string, string | string[]>;
|
|
28
|
+
devices: string[];
|
|
29
|
+
isGlobal: boolean;
|
|
30
|
+
}, {
|
|
31
|
+
id: string;
|
|
32
|
+
version: number;
|
|
33
|
+
displayName: string;
|
|
34
|
+
createdOn: string;
|
|
35
|
+
lastModifiedOn: string;
|
|
36
|
+
refs: Record<string, string | string[]>;
|
|
37
|
+
devices: string[];
|
|
38
|
+
isGlobal: boolean;
|
|
39
|
+
}>;
|
|
40
|
+
export type ZoneDto = z.infer<typeof sZoneDto>;
|
|
41
|
+
export type ZoneProps = z.infer<typeof sZoneProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const sZoneProps = z.object({
|
|
3
|
+
displayName: z.string().nonempty(),
|
|
4
|
+
devices: z.array(z.string().nonempty()),
|
|
5
|
+
});
|
|
6
|
+
export const sZoneDto = z.object({
|
|
7
|
+
id: z.string(),
|
|
8
|
+
displayName: z.string(),
|
|
9
|
+
createdOn: z.string(),
|
|
10
|
+
lastModifiedOn: z.string(),
|
|
11
|
+
devices: z.array(z.string()),
|
|
12
|
+
isGlobal: z.boolean(),
|
|
13
|
+
refs: z.record(z.union([z.string(), z.array(z.string())])),
|
|
14
|
+
version: z.number(),
|
|
15
|
+
});
|