@awarevue/api-types 2.0.21 → 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 +412 -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} +9 -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 -434
- 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,128 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const sCreatePersonRequest: z.ZodObject<{
|
|
3
|
+
firstName: z.ZodString;
|
|
4
|
+
lastName: z.ZodString;
|
|
5
|
+
position: z.ZodNullable<z.ZodString>;
|
|
6
|
+
accessSuspended: z.ZodBoolean;
|
|
7
|
+
staffMember: z.ZodBoolean;
|
|
8
|
+
validFrom: z.ZodNullable<z.ZodString>;
|
|
9
|
+
validTo: z.ZodNullable<z.ZodString>;
|
|
10
|
+
avatarId: z.ZodNullable<z.ZodString>;
|
|
11
|
+
credentials: z.ZodArray<z.ZodObject<{
|
|
12
|
+
type: z.ZodEnum<["card", "pin", "fingerprint"]>;
|
|
13
|
+
value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
14
|
+
note: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
type: "card" | "pin" | "fingerprint";
|
|
17
|
+
value: string | Record<string, unknown>;
|
|
18
|
+
note: string | null;
|
|
19
|
+
}, {
|
|
20
|
+
type: "card" | "pin" | "fingerprint";
|
|
21
|
+
value: string | Record<string, unknown>;
|
|
22
|
+
note: string | null;
|
|
23
|
+
}>, "many">;
|
|
24
|
+
accessRules: z.ZodArray<z.ZodString, "many">;
|
|
25
|
+
customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
26
|
+
type: z.ZodString;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
type: string;
|
|
29
|
+
position: string | null;
|
|
30
|
+
firstName: string;
|
|
31
|
+
lastName: string;
|
|
32
|
+
avatarId: string | null;
|
|
33
|
+
accessSuspended: boolean;
|
|
34
|
+
staffMember: boolean;
|
|
35
|
+
validFrom: string | null;
|
|
36
|
+
validTo: string | null;
|
|
37
|
+
credentials: {
|
|
38
|
+
type: "card" | "pin" | "fingerprint";
|
|
39
|
+
value: string | Record<string, unknown>;
|
|
40
|
+
note: string | null;
|
|
41
|
+
}[];
|
|
42
|
+
accessRules: string[];
|
|
43
|
+
customFields: Record<string, string> | null;
|
|
44
|
+
}, {
|
|
45
|
+
type: string;
|
|
46
|
+
position: string | null;
|
|
47
|
+
firstName: string;
|
|
48
|
+
lastName: string;
|
|
49
|
+
avatarId: string | null;
|
|
50
|
+
accessSuspended: boolean;
|
|
51
|
+
staffMember: boolean;
|
|
52
|
+
validFrom: string | null;
|
|
53
|
+
validTo: string | null;
|
|
54
|
+
credentials: {
|
|
55
|
+
type: "card" | "pin" | "fingerprint";
|
|
56
|
+
value: string | Record<string, unknown>;
|
|
57
|
+
note: string | null;
|
|
58
|
+
}[];
|
|
59
|
+
accessRules: string[];
|
|
60
|
+
customFields: Record<string, string> | null;
|
|
61
|
+
}>;
|
|
62
|
+
export declare const sUpdatePersonRequest: z.ZodObject<{
|
|
63
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
64
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
65
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
accessSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
staffMember: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
validFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
+
type: z.ZodEnum<["card", "pin", "fingerprint"]>;
|
|
73
|
+
value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
74
|
+
note: z.ZodNullable<z.ZodString>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
type: "card" | "pin" | "fingerprint";
|
|
77
|
+
value: string | Record<string, unknown>;
|
|
78
|
+
note: string | null;
|
|
79
|
+
}, {
|
|
80
|
+
type: "card" | "pin" | "fingerprint";
|
|
81
|
+
value: string | Record<string, unknown>;
|
|
82
|
+
note: string | null;
|
|
83
|
+
}>, "many">>;
|
|
84
|
+
accessRules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
85
|
+
customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
86
|
+
type: z.ZodOptional<z.ZodString>;
|
|
87
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
type?: string | undefined;
|
|
90
|
+
position?: string | null | undefined;
|
|
91
|
+
firstName?: string | undefined;
|
|
92
|
+
lastName?: string | undefined;
|
|
93
|
+
avatarId?: string | null | undefined;
|
|
94
|
+
accessSuspended?: boolean | undefined;
|
|
95
|
+
staffMember?: boolean | undefined;
|
|
96
|
+
validFrom?: string | null | undefined;
|
|
97
|
+
validTo?: string | null | undefined;
|
|
98
|
+
credentials?: {
|
|
99
|
+
type: "card" | "pin" | "fingerprint";
|
|
100
|
+
value: string | Record<string, unknown>;
|
|
101
|
+
note: string | null;
|
|
102
|
+
}[] | undefined;
|
|
103
|
+
accessRules?: string[] | undefined;
|
|
104
|
+
customFields?: Record<string, string> | null | undefined;
|
|
105
|
+
archived?: boolean | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
type?: string | undefined;
|
|
108
|
+
position?: string | null | undefined;
|
|
109
|
+
firstName?: string | undefined;
|
|
110
|
+
lastName?: string | undefined;
|
|
111
|
+
avatarId?: string | null | undefined;
|
|
112
|
+
accessSuspended?: boolean | undefined;
|
|
113
|
+
staffMember?: boolean | undefined;
|
|
114
|
+
validFrom?: string | null | undefined;
|
|
115
|
+
validTo?: string | null | undefined;
|
|
116
|
+
credentials?: {
|
|
117
|
+
type: "card" | "pin" | "fingerprint";
|
|
118
|
+
value: string | Record<string, unknown>;
|
|
119
|
+
note: string | null;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
accessRules?: string[] | undefined;
|
|
122
|
+
customFields?: Record<string, string> | null | undefined;
|
|
123
|
+
archived?: boolean | undefined;
|
|
124
|
+
}>;
|
|
125
|
+
export type CreatePersonRequest = z.infer<typeof sCreatePersonRequest>;
|
|
126
|
+
export type UpdatePersonRequest = {
|
|
127
|
+
id: string;
|
|
128
|
+
} & z.infer<typeof sUpdatePersonRequest>;
|
|
@@ -1,28 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.sPaginatedQueryResponseOf = exports.sPaginatedQueryRequestOf = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const sPaginatedQueryRequestOf = (criteriaSchema) => zod_1.z
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const sPaginatedQueryRequestOf = (criteriaSchema) => z
|
|
6
3
|
.object({
|
|
7
|
-
q:
|
|
8
|
-
offset:
|
|
4
|
+
q: z.string().optional().describe('Not supported yet'),
|
|
5
|
+
offset: z
|
|
9
6
|
.number()
|
|
10
7
|
.optional()
|
|
11
8
|
.describe('Offset of the first item to return'),
|
|
12
|
-
limit:
|
|
9
|
+
limit: z
|
|
13
10
|
.number()
|
|
14
11
|
.optional()
|
|
15
12
|
.describe('Maximum number of items to return'),
|
|
16
13
|
})
|
|
17
14
|
.merge(criteriaSchema.partial());
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
total: zod_1.z
|
|
15
|
+
export const sPaginatedQueryResponseOf = (itemSchema) => z.object({
|
|
16
|
+
items: z.array(itemSchema).describe('Array of items matching the query'),
|
|
17
|
+
total: z
|
|
22
18
|
.number()
|
|
23
19
|
.describe('Total number of items matching the query (only one page is shown at a time)'),
|
|
24
20
|
});
|
|
25
|
-
exports.sPaginatedQueryResponseOf = sPaginatedQueryResponseOf;
|
|
26
21
|
// example usage:
|
|
27
22
|
// import { sPaginatedQueryRequestOf, sPaginatedQueryResponseOf } from 'aware-api-types';
|
|
28
23
|
// import { z } from 'zod';
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
3
|
+
displayName: z.ZodString;
|
|
4
|
+
flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
|
|
5
|
+
include: z.ZodNullable<z.ZodObject<{
|
|
6
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
7
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
8
|
+
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
9
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
10
|
+
from: z.ZodNumber;
|
|
11
|
+
to: z.ZodNumber;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
14
|
+
from: number;
|
|
15
|
+
to: number;
|
|
16
|
+
}, {
|
|
17
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
18
|
+
from: number;
|
|
19
|
+
to: number;
|
|
20
|
+
}>, "many">;
|
|
21
|
+
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
24
|
+
startDate: string | null;
|
|
25
|
+
endDate: string | null;
|
|
26
|
+
timeIntervals: {
|
|
27
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
28
|
+
from: number;
|
|
29
|
+
to: number;
|
|
30
|
+
}[];
|
|
31
|
+
}, {
|
|
32
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
33
|
+
startDate: string | null;
|
|
34
|
+
endDate: string | null;
|
|
35
|
+
timeIntervals: {
|
|
36
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
37
|
+
from: number;
|
|
38
|
+
to: number;
|
|
39
|
+
}[];
|
|
40
|
+
}>>;
|
|
41
|
+
exclude: z.ZodNullable<z.ZodObject<{
|
|
42
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
43
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
44
|
+
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
45
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
46
|
+
from: z.ZodNumber;
|
|
47
|
+
to: z.ZodNumber;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
50
|
+
from: number;
|
|
51
|
+
to: number;
|
|
52
|
+
}, {
|
|
53
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
54
|
+
from: number;
|
|
55
|
+
to: number;
|
|
56
|
+
}>, "many">;
|
|
57
|
+
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
60
|
+
startDate: string | null;
|
|
61
|
+
endDate: string | null;
|
|
62
|
+
timeIntervals: {
|
|
63
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
64
|
+
from: number;
|
|
65
|
+
to: number;
|
|
66
|
+
}[];
|
|
67
|
+
}, {
|
|
68
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
69
|
+
startDate: string | null;
|
|
70
|
+
endDate: string | null;
|
|
71
|
+
timeIntervals: {
|
|
72
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
73
|
+
from: number;
|
|
74
|
+
to: number;
|
|
75
|
+
}[];
|
|
76
|
+
}>>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
include: {
|
|
79
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
80
|
+
startDate: string | null;
|
|
81
|
+
endDate: string | null;
|
|
82
|
+
timeIntervals: {
|
|
83
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
84
|
+
from: number;
|
|
85
|
+
to: number;
|
|
86
|
+
}[];
|
|
87
|
+
} | null;
|
|
88
|
+
exclude: {
|
|
89
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
90
|
+
startDate: string | null;
|
|
91
|
+
endDate: string | null;
|
|
92
|
+
timeIntervals: {
|
|
93
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
94
|
+
from: number;
|
|
95
|
+
to: number;
|
|
96
|
+
}[];
|
|
97
|
+
} | null;
|
|
98
|
+
displayName: string;
|
|
99
|
+
flag: "always" | "never" | null;
|
|
100
|
+
}, {
|
|
101
|
+
include: {
|
|
102
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
103
|
+
startDate: string | null;
|
|
104
|
+
endDate: string | null;
|
|
105
|
+
timeIntervals: {
|
|
106
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
107
|
+
from: number;
|
|
108
|
+
to: number;
|
|
109
|
+
}[];
|
|
110
|
+
} | null;
|
|
111
|
+
exclude: {
|
|
112
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
113
|
+
startDate: string | null;
|
|
114
|
+
endDate: string | null;
|
|
115
|
+
timeIntervals: {
|
|
116
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
117
|
+
from: number;
|
|
118
|
+
to: number;
|
|
119
|
+
}[];
|
|
120
|
+
} | null;
|
|
121
|
+
displayName: string;
|
|
122
|
+
flag: "always" | "never" | null;
|
|
123
|
+
}>;
|
|
124
|
+
export type CreateScheduleRequest = z.infer<typeof sCreateScheduleRequest>;
|
|
125
|
+
export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
126
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
127
|
+
flag: z.ZodOptional<z.ZodNullable<z.ZodEnum<["always", "never"]>>>;
|
|
128
|
+
include: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
129
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
130
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
131
|
+
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
132
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
133
|
+
from: z.ZodNumber;
|
|
134
|
+
to: z.ZodNumber;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
137
|
+
from: number;
|
|
138
|
+
to: number;
|
|
139
|
+
}, {
|
|
140
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
141
|
+
from: number;
|
|
142
|
+
to: number;
|
|
143
|
+
}>, "many">;
|
|
144
|
+
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
147
|
+
startDate: string | null;
|
|
148
|
+
endDate: string | null;
|
|
149
|
+
timeIntervals: {
|
|
150
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
151
|
+
from: number;
|
|
152
|
+
to: number;
|
|
153
|
+
}[];
|
|
154
|
+
}, {
|
|
155
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
156
|
+
startDate: string | null;
|
|
157
|
+
endDate: string | null;
|
|
158
|
+
timeIntervals: {
|
|
159
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
160
|
+
from: number;
|
|
161
|
+
to: number;
|
|
162
|
+
}[];
|
|
163
|
+
}>>>;
|
|
164
|
+
exclude: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
165
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
166
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
167
|
+
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
168
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
169
|
+
from: z.ZodNumber;
|
|
170
|
+
to: z.ZodNumber;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
173
|
+
from: number;
|
|
174
|
+
to: number;
|
|
175
|
+
}, {
|
|
176
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
177
|
+
from: number;
|
|
178
|
+
to: number;
|
|
179
|
+
}>, "many">;
|
|
180
|
+
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
183
|
+
startDate: string | null;
|
|
184
|
+
endDate: string | null;
|
|
185
|
+
timeIntervals: {
|
|
186
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
187
|
+
from: number;
|
|
188
|
+
to: number;
|
|
189
|
+
}[];
|
|
190
|
+
}, {
|
|
191
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
192
|
+
startDate: string | null;
|
|
193
|
+
endDate: string | null;
|
|
194
|
+
timeIntervals: {
|
|
195
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
196
|
+
from: number;
|
|
197
|
+
to: number;
|
|
198
|
+
}[];
|
|
199
|
+
}>>>;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
include?: {
|
|
202
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
203
|
+
startDate: string | null;
|
|
204
|
+
endDate: string | null;
|
|
205
|
+
timeIntervals: {
|
|
206
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
207
|
+
from: number;
|
|
208
|
+
to: number;
|
|
209
|
+
}[];
|
|
210
|
+
} | null | undefined;
|
|
211
|
+
exclude?: {
|
|
212
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
213
|
+
startDate: string | null;
|
|
214
|
+
endDate: string | null;
|
|
215
|
+
timeIntervals: {
|
|
216
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
217
|
+
from: number;
|
|
218
|
+
to: number;
|
|
219
|
+
}[];
|
|
220
|
+
} | null | undefined;
|
|
221
|
+
displayName?: string | undefined;
|
|
222
|
+
flag?: "always" | "never" | null | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
include?: {
|
|
225
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
226
|
+
startDate: string | null;
|
|
227
|
+
endDate: string | null;
|
|
228
|
+
timeIntervals: {
|
|
229
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
230
|
+
from: number;
|
|
231
|
+
to: number;
|
|
232
|
+
}[];
|
|
233
|
+
} | null | undefined;
|
|
234
|
+
exclude?: {
|
|
235
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
236
|
+
startDate: string | null;
|
|
237
|
+
endDate: string | null;
|
|
238
|
+
timeIntervals: {
|
|
239
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
240
|
+
from: number;
|
|
241
|
+
to: number;
|
|
242
|
+
}[];
|
|
243
|
+
} | null | undefined;
|
|
244
|
+
displayName?: string | undefined;
|
|
245
|
+
flag?: "always" | "never" | null | undefined;
|
|
246
|
+
}>;
|
|
247
|
+
export type UpdateScheduleRequest = {
|
|
248
|
+
id: string;
|
|
249
|
+
} & z.infer<typeof sUpdateScheduleRequest>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { sFlagType, sScheduleDetailsRequest, sScheduleProps, } from '../../objects/schedule';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const sCreateScheduleRequest = sScheduleProps;
|
|
4
|
+
export const sUpdateScheduleRequest = z.object({
|
|
5
|
+
displayName: z.string().optional(),
|
|
6
|
+
flag: sFlagType.nullable().optional(),
|
|
7
|
+
include: sScheduleDetailsRequest.nullable().optional(),
|
|
8
|
+
exclude: sScheduleDetailsRequest.nullable().optional(),
|
|
9
|
+
});
|
|
@@ -1,32 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const sSecurityLevelDto: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
order: z.ZodNumber;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
active: z.ZodBoolean;
|
|
7
|
-
color: z.ZodString;
|
|
8
|
-
checkFrequency: z.ZodNumber;
|
|
9
|
-
checkOnExit: z.ZodBoolean;
|
|
10
|
-
default: z.ZodBoolean;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
name: string;
|
|
13
|
-
default: boolean;
|
|
14
|
-
id: string;
|
|
15
|
-
active: boolean;
|
|
16
|
-
color: string;
|
|
17
|
-
order: number;
|
|
18
|
-
checkFrequency: number;
|
|
19
|
-
checkOnExit: boolean;
|
|
20
|
-
}, {
|
|
21
|
-
name: string;
|
|
22
|
-
default: boolean;
|
|
23
|
-
id: string;
|
|
24
|
-
active: boolean;
|
|
25
|
-
color: string;
|
|
26
|
-
order: number;
|
|
27
|
-
checkFrequency: number;
|
|
28
|
-
checkOnExit: boolean;
|
|
29
|
-
}>;
|
|
30
2
|
export declare const sAddSecurityLevelRequest: z.ZodObject<Omit<{
|
|
31
3
|
id: z.ZodString;
|
|
32
4
|
order: z.ZodNumber;
|
|
@@ -78,6 +50,5 @@ export declare const sUpdateSecurityLevelRequest: z.ZodObject<{
|
|
|
78
50
|
checkFrequency?: number | undefined;
|
|
79
51
|
checkOnExit?: boolean | undefined;
|
|
80
52
|
}>;
|
|
81
|
-
export type SecurityLevelDto = z.infer<typeof sSecurityLevelDto>;
|
|
82
53
|
export type AddSecurityLevelRequest = z.infer<typeof sAddSecurityLevelRequest>;
|
|
83
54
|
export type UpdateSecurityLevelRequest = z.infer<typeof sUpdateSecurityLevelRequest>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { TemplateDto } from '../../objects/template';
|
|
1
2
|
import { z } from 'zod';
|
|
2
|
-
export declare const TemplateTypeEnum: z.ZodEnum<["id", "report"]>;
|
|
3
3
|
export declare const sNewTemplateRequest: z.ZodObject<{
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
type: z.ZodEnum<["id", "report"]>;
|
|
@@ -26,25 +26,8 @@ export declare const sUpdateTemplateRequest: z.ZodObject<{
|
|
|
26
26
|
type?: "id" | "report" | undefined;
|
|
27
27
|
templateHtmlId?: string | undefined;
|
|
28
28
|
}>;
|
|
29
|
-
export declare const sTemplateDto: z.ZodObject<{
|
|
30
|
-
id: z.ZodString;
|
|
31
|
-
name: z.ZodString;
|
|
32
|
-
type: z.ZodEnum<["id", "report"]>;
|
|
33
|
-
templateHtmlId: z.ZodString;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
name: string;
|
|
36
|
-
type: "id" | "report";
|
|
37
|
-
id: string;
|
|
38
|
-
templateHtmlId: string;
|
|
39
|
-
}, {
|
|
40
|
-
name: string;
|
|
41
|
-
type: "id" | "report";
|
|
42
|
-
id: string;
|
|
43
|
-
templateHtmlId: string;
|
|
44
|
-
}>;
|
|
45
29
|
export type NewTemplateRequest = z.infer<typeof sNewTemplateRequest>;
|
|
46
30
|
export type UpdateTemplateRequest = z.infer<typeof sUpdateTemplateRequest>;
|
|
47
|
-
export type TemplateDto = z.infer<typeof sTemplateDto>;
|
|
48
31
|
export type TemplateRequestQueryParams = {
|
|
49
32
|
type: TemplateDto['type'];
|
|
50
33
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { sTemplateTypeEnum } from '../../objects/template';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const sNewTemplateRequest = z.object({
|
|
4
|
+
name: z.string().min(1).max(64),
|
|
5
|
+
type: sTemplateTypeEnum,
|
|
6
|
+
templateHtmlId: z.string().uuid(),
|
|
7
|
+
});
|
|
8
|
+
export const sUpdateTemplateRequest = z.object({
|
|
9
|
+
name: z.string().min(1).max(64).optional(),
|
|
10
|
+
type: sTemplateTypeEnum.optional(),
|
|
11
|
+
templateHtmlId: z.string().uuid().optional(),
|
|
12
|
+
});
|
|
@@ -1,25 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const ConversionTypeEnum: 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
2
|
export declare const sAddTokenConversionRequest: z.ZodObject<Omit<{
|
|
24
3
|
id: z.ZodString;
|
|
25
4
|
name: z.ZodString;
|
|
@@ -51,6 +30,5 @@ export declare const sUpdateTokenConversionRequest: z.ZodObject<{
|
|
|
51
30
|
type?: "hex-to-decimal" | undefined;
|
|
52
31
|
jsonData?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
53
32
|
}>;
|
|
54
|
-
export type TokenConversionDto = z.infer<typeof sTokenConversionDto>;
|
|
55
33
|
export type AddTokenConversionRequest = z.infer<typeof sAddTokenConversionRequest>;
|
|
56
34
|
export type UpdateTokenConversionRequest = z.infer<typeof sUpdateTokenConversionRequest>;
|