@awarevue/api-types 2.0.22 → 2.0.23
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 +27 -0
- package/dist/objects/index.js +27 -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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { AccessControlCapabilityReport } from '../../objects';
|
|
1
2
|
import { ModuleConfig, ModuleConfigMetadata } from '../module-config';
|
|
2
|
-
import { AccessControlCapabilityReport } from '../agent-communication';
|
|
3
3
|
export declare const SERVER = "server";
|
|
4
4
|
export type AccessControlProviderState = AccessControlCapabilityReport & {
|
|
5
5
|
syncInProgress: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const SERVER = 'server';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sDeviceGroup: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
code: z.ZodNullable<z.ZodString>;
|
|
5
|
+
displayName: z.ZodString;
|
|
6
|
+
createdOn: z.ZodString;
|
|
7
|
+
lastModifiedOn: z.ZodString;
|
|
8
|
+
devices: z.ZodArray<z.ZodString, "many">;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
code: string | null;
|
|
11
|
+
id: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
createdOn: string;
|
|
14
|
+
lastModifiedOn: string;
|
|
15
|
+
devices: string[];
|
|
16
|
+
}, {
|
|
17
|
+
code: string | null;
|
|
18
|
+
id: string;
|
|
19
|
+
displayName: string;
|
|
20
|
+
createdOn: string;
|
|
21
|
+
lastModifiedOn: string;
|
|
22
|
+
devices: string[];
|
|
23
|
+
}>;
|
|
24
|
+
export type DeviceGroupDto = z.infer<typeof sDeviceGroup>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from './access-rule';
|
|
2
|
+
export * from './agreement';
|
|
3
|
+
export * from './all';
|
|
4
|
+
export * from './custom-field';
|
|
5
|
+
export * from './token-conversion';
|
|
6
|
+
export * from './api-key';
|
|
7
|
+
export * from './automation-rule';
|
|
8
|
+
export * from './device-group';
|
|
9
|
+
export * from './layout';
|
|
10
|
+
export * from './person';
|
|
11
|
+
export * from './role';
|
|
12
|
+
export * from './user';
|
|
13
|
+
export * from './view';
|
|
14
|
+
export * from './zone';
|
|
15
|
+
export * from './bookmark';
|
|
16
|
+
export * from './macro';
|
|
17
|
+
export * from './person-presence';
|
|
18
|
+
export * from './person-type';
|
|
19
|
+
export * from './schedule';
|
|
20
|
+
export * from './security-level';
|
|
21
|
+
export * from './notification';
|
|
22
|
+
export * from './credential';
|
|
23
|
+
export * from './template';
|
|
24
|
+
export * from './person-agreement';
|
|
25
|
+
export * from './agent-metadata';
|
|
26
|
+
export * from './world-object';
|
|
27
|
+
export * from './device';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from './access-rule';
|
|
2
|
+
export * from './agreement';
|
|
3
|
+
export * from './all';
|
|
4
|
+
export * from './custom-field';
|
|
5
|
+
export * from './token-conversion';
|
|
6
|
+
export * from './api-key';
|
|
7
|
+
export * from './automation-rule';
|
|
8
|
+
export * from './device-group';
|
|
9
|
+
export * from './layout';
|
|
10
|
+
export * from './person';
|
|
11
|
+
export * from './role';
|
|
12
|
+
export * from './user';
|
|
13
|
+
export * from './view';
|
|
14
|
+
export * from './zone';
|
|
15
|
+
export * from './bookmark';
|
|
16
|
+
export * from './macro';
|
|
17
|
+
export * from './person-presence';
|
|
18
|
+
export * from './person-type';
|
|
19
|
+
export * from './schedule';
|
|
20
|
+
export * from './security-level';
|
|
21
|
+
export * from './notification';
|
|
22
|
+
export * from './credential';
|
|
23
|
+
export * from './template';
|
|
24
|
+
export * from './person-agreement';
|
|
25
|
+
export * from './agent-metadata';
|
|
26
|
+
export * from './world-object';
|
|
27
|
+
export * from './device';
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sLayoutDeviceDto: z.ZodObject<{
|
|
3
|
+
deviceId: z.ZodString;
|
|
4
|
+
x: z.ZodNumber;
|
|
5
|
+
y: z.ZodNumber;
|
|
6
|
+
scale: z.ZodNumber;
|
|
7
|
+
rotation: z.ZodNumber;
|
|
8
|
+
fov: z.ZodNumber;
|
|
9
|
+
far: z.ZodNumber;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
scale: number;
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
deviceId: string;
|
|
15
|
+
rotation: number;
|
|
16
|
+
fov: number;
|
|
17
|
+
far: number;
|
|
18
|
+
}, {
|
|
19
|
+
scale: number;
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
deviceId: string;
|
|
23
|
+
rotation: number;
|
|
24
|
+
fov: number;
|
|
25
|
+
far: number;
|
|
26
|
+
}>;
|
|
27
|
+
export type LayoutDeviceDto = z.infer<typeof sLayoutDeviceDto>;
|
|
28
|
+
export declare const sLayoutDto: z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
thumbnailUrl: z.ZodString;
|
|
32
|
+
imageUrl: z.ZodString;
|
|
33
|
+
order: z.ZodNumber;
|
|
34
|
+
isDefault: z.ZodBoolean;
|
|
35
|
+
devices: z.ZodArray<z.ZodObject<{
|
|
36
|
+
deviceId: z.ZodString;
|
|
37
|
+
x: z.ZodNumber;
|
|
38
|
+
y: z.ZodNumber;
|
|
39
|
+
scale: z.ZodNumber;
|
|
40
|
+
rotation: z.ZodNumber;
|
|
41
|
+
fov: z.ZodNumber;
|
|
42
|
+
far: z.ZodNumber;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
scale: number;
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
deviceId: string;
|
|
48
|
+
rotation: number;
|
|
49
|
+
fov: number;
|
|
50
|
+
far: number;
|
|
51
|
+
}, {
|
|
52
|
+
scale: number;
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
deviceId: string;
|
|
56
|
+
rotation: number;
|
|
57
|
+
fov: number;
|
|
58
|
+
far: number;
|
|
59
|
+
}>, "many">;
|
|
60
|
+
colorize: z.ZodBoolean;
|
|
61
|
+
createdOn: z.ZodString;
|
|
62
|
+
lastModifiedOn: z.ZodString;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
name: string;
|
|
65
|
+
id: string;
|
|
66
|
+
order: number;
|
|
67
|
+
createdOn: string;
|
|
68
|
+
lastModifiedOn: string;
|
|
69
|
+
thumbnailUrl: string;
|
|
70
|
+
imageUrl: string;
|
|
71
|
+
isDefault: boolean;
|
|
72
|
+
devices: {
|
|
73
|
+
scale: number;
|
|
74
|
+
x: number;
|
|
75
|
+
y: number;
|
|
76
|
+
deviceId: string;
|
|
77
|
+
rotation: number;
|
|
78
|
+
fov: number;
|
|
79
|
+
far: number;
|
|
80
|
+
}[];
|
|
81
|
+
colorize: boolean;
|
|
82
|
+
}, {
|
|
83
|
+
name: string;
|
|
84
|
+
id: string;
|
|
85
|
+
order: number;
|
|
86
|
+
createdOn: string;
|
|
87
|
+
lastModifiedOn: string;
|
|
88
|
+
thumbnailUrl: string;
|
|
89
|
+
imageUrl: string;
|
|
90
|
+
isDefault: boolean;
|
|
91
|
+
devices: {
|
|
92
|
+
scale: number;
|
|
93
|
+
x: number;
|
|
94
|
+
y: number;
|
|
95
|
+
deviceId: string;
|
|
96
|
+
rotation: number;
|
|
97
|
+
fov: number;
|
|
98
|
+
far: number;
|
|
99
|
+
}[];
|
|
100
|
+
colorize: boolean;
|
|
101
|
+
}>;
|
|
102
|
+
export type LayoutDto = z.infer<typeof sLayoutDto>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const sLayoutDeviceDto = z.object({
|
|
3
|
+
deviceId: z.string(),
|
|
4
|
+
x: z.number(),
|
|
5
|
+
y: z.number(),
|
|
6
|
+
scale: z.number(),
|
|
7
|
+
rotation: z.number(),
|
|
8
|
+
fov: z.number(),
|
|
9
|
+
far: z.number(),
|
|
10
|
+
});
|
|
11
|
+
export const sLayoutDto = z.object({
|
|
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(),
|
|
22
|
+
});
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sMacroItemDto: z.ZodObject<{
|
|
3
|
+
id: z.ZodNullable<z.ZodString>;
|
|
4
|
+
stepId: z.ZodString;
|
|
5
|
+
deviceId: z.ZodString;
|
|
6
|
+
command: z.ZodString;
|
|
7
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
id: string | null;
|
|
10
|
+
params: Record<string, unknown>;
|
|
11
|
+
deviceId: string;
|
|
12
|
+
command: string;
|
|
13
|
+
stepId: string;
|
|
14
|
+
}, {
|
|
15
|
+
id: string | null;
|
|
16
|
+
params: Record<string, unknown>;
|
|
17
|
+
deviceId: string;
|
|
18
|
+
command: string;
|
|
19
|
+
stepId: string;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const sMacroDto: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
displayName: z.ZodString;
|
|
24
|
+
code: z.ZodNullable<z.ZodString>;
|
|
25
|
+
module: z.ZodNullable<z.ZodString>;
|
|
26
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
27
|
+
createdOn: z.ZodString;
|
|
28
|
+
lastModifiedOn: z.ZodString;
|
|
29
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
30
|
+
items: z.ZodArray<z.ZodObject<{
|
|
31
|
+
id: z.ZodNullable<z.ZodString>;
|
|
32
|
+
stepId: z.ZodString;
|
|
33
|
+
deviceId: z.ZodString;
|
|
34
|
+
command: z.ZodString;
|
|
35
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
id: string | null;
|
|
38
|
+
params: Record<string, unknown>;
|
|
39
|
+
deviceId: string;
|
|
40
|
+
command: string;
|
|
41
|
+
stepId: string;
|
|
42
|
+
}, {
|
|
43
|
+
id: string | null;
|
|
44
|
+
params: Record<string, unknown>;
|
|
45
|
+
deviceId: string;
|
|
46
|
+
command: string;
|
|
47
|
+
stepId: string;
|
|
48
|
+
}>, "many">;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
code: string | null;
|
|
51
|
+
id: string;
|
|
52
|
+
module: string | null;
|
|
53
|
+
metadata: Record<string, unknown>;
|
|
54
|
+
items: {
|
|
55
|
+
id: string | null;
|
|
56
|
+
params: Record<string, unknown>;
|
|
57
|
+
deviceId: string;
|
|
58
|
+
command: string;
|
|
59
|
+
stepId: string;
|
|
60
|
+
}[];
|
|
61
|
+
displayName: string;
|
|
62
|
+
createdOn: string;
|
|
63
|
+
lastModifiedOn: string;
|
|
64
|
+
createdBy: string | null;
|
|
65
|
+
}, {
|
|
66
|
+
code: string | null;
|
|
67
|
+
id: string;
|
|
68
|
+
module: string | null;
|
|
69
|
+
metadata: Record<string, unknown>;
|
|
70
|
+
items: {
|
|
71
|
+
id: string | null;
|
|
72
|
+
params: Record<string, unknown>;
|
|
73
|
+
deviceId: string;
|
|
74
|
+
command: string;
|
|
75
|
+
stepId: string;
|
|
76
|
+
}[];
|
|
77
|
+
displayName: string;
|
|
78
|
+
createdOn: string;
|
|
79
|
+
lastModifiedOn: string;
|
|
80
|
+
createdBy: string | null;
|
|
81
|
+
}>;
|
|
82
|
+
export type MacroItemDto = z.infer<typeof sMacroItemDto>;
|
|
83
|
+
export type MacroDto = z.infer<typeof sMacroDto>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const sMacroItemDto = z.object({
|
|
3
|
+
id: z.string().nullable(),
|
|
4
|
+
stepId: z.string().nonempty(),
|
|
5
|
+
deviceId: z.string().uuid().nonempty(),
|
|
6
|
+
command: z.string().nonempty(),
|
|
7
|
+
params: z.record(z.unknown()),
|
|
8
|
+
});
|
|
9
|
+
export const sMacroDto = z.object({
|
|
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
|
|
14
|
+
.string()
|
|
15
|
+
.nullable()
|
|
16
|
+
.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),
|
|
22
|
+
});
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { JSONSchema4 } from 'json-schema';
|
|
2
|
-
import { UiHint } from './agent-
|
|
2
|
+
import { UiHint } from './agent-metadata';
|
|
3
3
|
export interface ModuleConfig {
|
|
4
4
|
app: {
|
|
5
5
|
modules: string[];
|
|
6
6
|
};
|
|
7
7
|
[moduleName: string]: Record<string, unknown>;
|
|
8
8
|
}
|
|
9
|
-
export interface SaveProviderConfigRq {
|
|
10
|
-
provider: string;
|
|
11
|
-
enabled: boolean;
|
|
12
|
-
config: Record<string, unknown>;
|
|
13
|
-
}
|
|
14
9
|
export interface ModuleConfigMetadata {
|
|
15
10
|
allModules: string[];
|
|
16
11
|
moduleTitles: Record<string, string>;
|
|
@@ -18,15 +13,3 @@ export interface ModuleConfigMetadata {
|
|
|
18
13
|
moduleSchemas: Record<string, JSONSchema4>;
|
|
19
14
|
moduleUiHints: Record<string, UiHint[]>;
|
|
20
15
|
}
|
|
21
|
-
export interface ConfigIssue {
|
|
22
|
-
paths: string[];
|
|
23
|
-
message: string;
|
|
24
|
-
provider: string;
|
|
25
|
-
}
|
|
26
|
-
export interface ModuleConfigSpecs {
|
|
27
|
-
provider: string;
|
|
28
|
-
title: string;
|
|
29
|
-
schema: JSONSchema4;
|
|
30
|
-
default: Record<string, unknown>;
|
|
31
|
-
uiHints?: UiHint[];
|
|
32
|
-
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -31,23 +31,3 @@ export declare const sNotificationDto: z.ZodObject<{
|
|
|
31
31
|
acknowledgedOn: number | null;
|
|
32
32
|
}>;
|
|
33
33
|
export type NotificationDto = z.infer<typeof sNotificationDto>;
|
|
34
|
-
export declare const sNotificationSearchParams: z.ZodObject<{
|
|
35
|
-
deviceId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
36
|
-
severity: z.ZodOptional<z.ZodArray<z.ZodEnum<["info", "warning", "critical"]>, "many">>;
|
|
37
|
-
acknowledged: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
-
timeFrom: z.ZodOptional<z.ZodNumber>;
|
|
39
|
-
timeTo: z.ZodOptional<z.ZodNumber>;
|
|
40
|
-
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
deviceId?: string[] | undefined;
|
|
42
|
-
timeFrom?: number | undefined;
|
|
43
|
-
timeTo?: number | undefined;
|
|
44
|
-
severity?: ("info" | "warning" | "critical")[] | undefined;
|
|
45
|
-
acknowledged?: boolean | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
deviceId?: string[] | undefined;
|
|
48
|
-
timeFrom?: number | undefined;
|
|
49
|
-
timeTo?: number | undefined;
|
|
50
|
-
severity?: ("info" | "warning" | "critical")[] | undefined;
|
|
51
|
-
acknowledged?: boolean | undefined;
|
|
52
|
-
}>;
|
|
53
|
-
export type NotificationSearchParams = z.infer<typeof sNotificationSearchParams>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { sDeviceId, sNotificationSeverity } from '../primitives';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const sNotificationDto = z.object({
|
|
4
|
+
id: z.string().nonempty(),
|
|
5
|
+
source: sDeviceId,
|
|
6
|
+
message: z.string().nonempty(),
|
|
7
|
+
severity: sNotificationSeverity,
|
|
8
|
+
metadata: z.record(z.unknown()),
|
|
9
|
+
notificationRef: z.string().nonempty().nullable(),
|
|
10
|
+
createdOn: z.number().int().nonnegative(),
|
|
11
|
+
acknowledgedBy: z.string().nonempty().nullable(),
|
|
12
|
+
acknowledgedOn: z.number().int().nonnegative().nullable(),
|
|
13
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from 'zod';
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const sPersonAgeementDto: z.ZodObject<{
|
|
3
3
|
personId: z.ZodString;
|
|
4
4
|
agreementId: z.ZodString;
|
|
@@ -19,17 +19,3 @@ export declare const sPersonAgeementDto: z.ZodObject<{
|
|
|
19
19
|
agreementImage: string;
|
|
20
20
|
}>;
|
|
21
21
|
export type PersonAgreementDto = z.infer<typeof sPersonAgeementDto>;
|
|
22
|
-
export declare const sCreatePersonAgreementRequest: z.ZodObject<{
|
|
23
|
-
personId: z.ZodString;
|
|
24
|
-
agreementId: z.ZodString;
|
|
25
|
-
agreementImage: z.ZodString;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
personId: string;
|
|
28
|
-
agreementId: string;
|
|
29
|
-
agreementImage: string;
|
|
30
|
-
}, {
|
|
31
|
-
personId: string;
|
|
32
|
-
agreementId: string;
|
|
33
|
-
agreementImage: string;
|
|
34
|
-
}>;
|
|
35
|
-
export type CreatePersonAgreementRequest = z.infer<typeof sCreatePersonAgreementRequest>;
|
|
@@ -163,6 +163,7 @@ export declare const sPersonPresenceActionDto: z.ZodObject<{
|
|
|
163
163
|
checkCompleted: z.ZodBoolean;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
165
|
id: string;
|
|
166
|
+
timestamp: number;
|
|
166
167
|
person: string | {
|
|
167
168
|
type: string;
|
|
168
169
|
id: string;
|
|
@@ -176,12 +177,12 @@ export declare const sPersonPresenceActionDto: z.ZodObject<{
|
|
|
176
177
|
displayName: string;
|
|
177
178
|
isGlobal: boolean;
|
|
178
179
|
};
|
|
179
|
-
timestamp: number;
|
|
180
180
|
checkInOrOut: boolean;
|
|
181
181
|
isLeave: boolean;
|
|
182
182
|
checkCompleted: boolean;
|
|
183
183
|
}, {
|
|
184
184
|
id: string;
|
|
185
|
+
timestamp: number;
|
|
185
186
|
person: string | {
|
|
186
187
|
type: string;
|
|
187
188
|
id: string;
|
|
@@ -195,80 +196,8 @@ export declare const sPersonPresenceActionDto: z.ZodObject<{
|
|
|
195
196
|
displayName: string;
|
|
196
197
|
isGlobal: boolean;
|
|
197
198
|
};
|
|
198
|
-
timestamp: number;
|
|
199
199
|
checkInOrOut: boolean;
|
|
200
200
|
isLeave: boolean;
|
|
201
201
|
checkCompleted: boolean;
|
|
202
202
|
}>;
|
|
203
203
|
export type PersonPresenceActionDto = z.infer<typeof sPersonPresenceActionDto>;
|
|
204
|
-
export declare const sPersonPresenceQuery: z.ZodObject<{
|
|
205
|
-
persons: z.ZodArray<z.ZodString, "many">;
|
|
206
|
-
zones: z.ZodArray<z.ZodString, "many">;
|
|
207
|
-
online: z.ZodBoolean;
|
|
208
|
-
}, "strip", z.ZodTypeAny, {
|
|
209
|
-
online: boolean;
|
|
210
|
-
persons: string[];
|
|
211
|
-
zones: string[];
|
|
212
|
-
}, {
|
|
213
|
-
online: boolean;
|
|
214
|
-
persons: string[];
|
|
215
|
-
zones: string[];
|
|
216
|
-
}>;
|
|
217
|
-
export type PersonPresenceQuery = z.infer<typeof sPersonPresenceQuery>;
|
|
218
|
-
export declare const sPersonTogglePresence: z.ZodUnion<[z.ZodObject<{
|
|
219
|
-
personId: z.ZodString;
|
|
220
|
-
zoneId: z.ZodString;
|
|
221
|
-
credentialToken: z.ZodUndefined;
|
|
222
|
-
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
personId: string;
|
|
224
|
-
zoneId: string;
|
|
225
|
-
credentialToken?: undefined;
|
|
226
|
-
}, {
|
|
227
|
-
personId: string;
|
|
228
|
-
zoneId: string;
|
|
229
|
-
credentialToken?: undefined;
|
|
230
|
-
}>, z.ZodObject<{
|
|
231
|
-
credentialToken: z.ZodString;
|
|
232
|
-
zoneId: z.ZodString;
|
|
233
|
-
personId: z.ZodUndefined;
|
|
234
|
-
}, "strip", z.ZodTypeAny, {
|
|
235
|
-
zoneId: string;
|
|
236
|
-
credentialToken: string;
|
|
237
|
-
personId?: undefined;
|
|
238
|
-
}, {
|
|
239
|
-
zoneId: string;
|
|
240
|
-
credentialToken: string;
|
|
241
|
-
personId?: undefined;
|
|
242
|
-
}>]>;
|
|
243
|
-
export declare const sPersonCheckIn: z.ZodObject<{
|
|
244
|
-
personId: z.ZodString;
|
|
245
|
-
zoneId: z.ZodString;
|
|
246
|
-
checkCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
-
}, "strip", z.ZodTypeAny, {
|
|
248
|
-
personId: string;
|
|
249
|
-
zoneId: string;
|
|
250
|
-
checkCompleted?: boolean | undefined;
|
|
251
|
-
}, {
|
|
252
|
-
personId: string;
|
|
253
|
-
zoneId: string;
|
|
254
|
-
checkCompleted?: boolean | undefined;
|
|
255
|
-
}>;
|
|
256
|
-
export declare const sPersonCheckOut: z.ZodObject<{
|
|
257
|
-
personId: z.ZodString;
|
|
258
|
-
zoneId: z.ZodString;
|
|
259
|
-
leave: z.ZodNullable<z.ZodBoolean>;
|
|
260
|
-
checkCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
261
|
-
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
personId: string;
|
|
263
|
-
zoneId: string;
|
|
264
|
-
leave: boolean | null;
|
|
265
|
-
checkCompleted?: boolean | undefined;
|
|
266
|
-
}, {
|
|
267
|
-
personId: string;
|
|
268
|
-
zoneId: string;
|
|
269
|
-
leave: boolean | null;
|
|
270
|
-
checkCompleted?: boolean | undefined;
|
|
271
|
-
}>;
|
|
272
|
-
export type PresenceToggleRequest = z.infer<typeof sPersonTogglePresence>;
|
|
273
|
-
export type PresenceCheckInRequest = z.infer<typeof sPersonCheckIn>;
|
|
274
|
-
export type PresenceCheckOutRequest = z.infer<typeof sPersonCheckOut>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const sPresencePersonDto = z.object({
|
|
3
|
+
id: z.string(),
|
|
4
|
+
firstName: z.string(),
|
|
5
|
+
lastName: z.string(),
|
|
6
|
+
avatarId: z.string().nullable(),
|
|
7
|
+
type: z.string().min(1).max(16),
|
|
8
|
+
position: z.string().max(128).nullable(),
|
|
9
|
+
});
|
|
10
|
+
export const sPresenceZoneDto = z.object({
|
|
11
|
+
id: z.string(),
|
|
12
|
+
displayName: z.string(),
|
|
13
|
+
isGlobal: z
|
|
14
|
+
.boolean()
|
|
15
|
+
.describe('Whether the zone is the designated global zone'),
|
|
16
|
+
});
|
|
17
|
+
export const sPersonPresenceDto = z.object({
|
|
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(),
|
|
26
|
+
});
|
|
27
|
+
export const sPersonPresenceActionDto = z.object({
|
|
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(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const sPersonTypeDto: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
displayName: z.ZodString;
|
|
5
|
+
accessControlUser: z.ZodBoolean;
|
|
6
|
+
systemUser: z.ZodBoolean;
|
|
7
|
+
agreements: z.ZodArray<z.ZodString, "many">;
|
|
8
|
+
securityCheck: z.ZodBoolean;
|
|
9
|
+
inOnCreation: z.ZodBoolean;
|
|
10
|
+
createdOn: z.ZodString;
|
|
11
|
+
lastModifiedOn: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
id: string;
|
|
14
|
+
displayName: string;
|
|
15
|
+
createdOn: string;
|
|
16
|
+
lastModifiedOn: string;
|
|
17
|
+
agreements: string[];
|
|
18
|
+
accessControlUser: boolean;
|
|
19
|
+
systemUser: boolean;
|
|
20
|
+
securityCheck: boolean;
|
|
21
|
+
inOnCreation: boolean;
|
|
22
|
+
}, {
|
|
23
|
+
id: string;
|
|
24
|
+
displayName: string;
|
|
25
|
+
createdOn: string;
|
|
26
|
+
lastModifiedOn: string;
|
|
27
|
+
agreements: string[];
|
|
28
|
+
accessControlUser: boolean;
|
|
29
|
+
systemUser: boolean;
|
|
30
|
+
securityCheck: boolean;
|
|
31
|
+
inOnCreation: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
export type PersonTypeDto = z.infer<typeof sPersonTypeDto>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export const sPersonTypeDto = z.object({
|
|
3
|
+
id: z
|
|
4
|
+
.string()
|
|
5
|
+
.min(1)
|
|
6
|
+
.max(16)
|
|
7
|
+
.regex(/^[a-z-]+$/, 'Type must contain only lowercase letters (a-z) and hyphens'),
|
|
8
|
+
displayName: z.string().min(1).max(64),
|
|
9
|
+
accessControlUser: z.boolean(),
|
|
10
|
+
systemUser: z.boolean(),
|
|
11
|
+
agreements: z.array(z.string().uuid()),
|
|
12
|
+
securityCheck: z.boolean(),
|
|
13
|
+
inOnCreation: z.boolean(),
|
|
14
|
+
createdOn: z.string().date(),
|
|
15
|
+
lastModifiedOn: z.string().date(),
|
|
16
|
+
});
|