@awarevue/api-types 2.0.34 → 2.0.35
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/api/events/door.js
CHANGED
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.doorEventSchemaByKind = exports.sDoorTamperRestoredEvent = exports.sDoorAcuOnlineEvent = exports.sDoorMainsRestoredEvent = exports.sDoorAcuNotRespondingEvent = exports.sDoorMainsFailedEvent = exports.sDoorRelockEvent = exports.sDoorLeftOpenEvent = exports.sDoorTamperEvent = exports.sDoorForceEvent = exports.sDoorClosed = exports.sDoorOpened = exports.sDoorAccessEvent = void 0;
|
|
4
4
|
const credential_1 = require("../../objects/credential");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
|
+
const primitives_1 = require("../../primitives");
|
|
6
7
|
// EVENTS
|
|
7
8
|
exports.sDoorAccessEvent = zod_1.z.object({
|
|
8
9
|
kind: zod_1.z.literal('door-access'),
|
|
9
|
-
personId:
|
|
10
|
+
personId: primitives_1.sPersonId.optional(),
|
|
10
11
|
token: zod_1.z.string().nullable(),
|
|
11
12
|
tokenType: credential_1.sCredentialType.nullable(),
|
|
12
13
|
allowed: zod_1.z.boolean(),
|
|
@@ -10,7 +10,7 @@ exports.sPersonIn = zod_1.z.object({
|
|
|
10
10
|
personFirstName: zod_1.z.string().nonempty(),
|
|
11
11
|
personLastName: zod_1.z.string().nonempty(),
|
|
12
12
|
personAvatarId: zod_1.z.string().nullable(),
|
|
13
|
-
personType:
|
|
13
|
+
personType: primitives_1.sPersonTypeId,
|
|
14
14
|
personPosition: zod_1.z.string().nullable(),
|
|
15
15
|
zoneId: zod_1.z.string().nullable(),
|
|
16
16
|
securityChecked: zod_1.z.boolean(),
|
|
@@ -21,7 +21,7 @@ exports.sPersonOut = zod_1.z.object({
|
|
|
21
21
|
personFirstName: zod_1.z.string().nonempty(),
|
|
22
22
|
personLastName: zod_1.z.string().nonempty(),
|
|
23
23
|
personAvatarId: zod_1.z.string().nullable(),
|
|
24
|
-
personType:
|
|
24
|
+
personType: primitives_1.sPersonTypeId,
|
|
25
25
|
personPosition: zod_1.z.string().max(128).nullable(),
|
|
26
26
|
isLeave: zod_1.z.boolean(),
|
|
27
27
|
zoneId: zod_1.z.string().nullable(),
|
package/dist/package.json
CHANGED
package/dist/primitives.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const sDeviceId: z.ZodString;
|
|
|
10
10
|
export declare const sPresetId: z.ZodString;
|
|
11
11
|
export declare const sDeviceEvent: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12
12
|
export declare const sPersonId: z.ZodString;
|
|
13
|
+
export declare const sPersonTypeId: z.ZodString;
|
|
13
14
|
export declare const sZoneId: z.ZodString;
|
|
14
15
|
export declare const sMacroId: z.ZodString;
|
|
15
16
|
export declare const sWorldObjectId: z.ZodString;
|
package/dist/primitives.js
CHANGED
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
* domain-specific types like DeviceId, PresetId, Duration, URL, etc.
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.sCallDirection = exports.sCallState = exports.sCameraPresetInfo = exports.sNotificationSeverity = exports.sDeviceParam = exports.sForeignDeviceId = exports.sAgentDeviceInfo = exports.sFileResponse = exports.sUrl = exports.sDuration = exports.sIoOutputSlotId = exports.sIoInputSlotId = exports.sWorldObjectId = exports.sMacroId = exports.sZoneId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
|
|
10
|
+
exports.sCallDirection = exports.sCallState = exports.sCameraPresetInfo = exports.sNotificationSeverity = exports.sDeviceParam = exports.sForeignDeviceId = exports.sAgentDeviceInfo = exports.sFileResponse = exports.sUrl = exports.sDuration = exports.sIoOutputSlotId = exports.sIoInputSlotId = exports.sWorldObjectId = exports.sMacroId = exports.sZoneId = exports.sPersonTypeId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
|
|
11
11
|
const zod_1 = require("zod");
|
|
12
12
|
const device_1 = require("./objects/device");
|
|
13
13
|
exports.sDeviceId = zod_1.z.string().uuid().nonempty();
|
|
14
14
|
exports.sPresetId = zod_1.z.string().uuid().nonempty();
|
|
15
15
|
exports.sDeviceEvent = zod_1.z.record(zod_1.z.unknown());
|
|
16
16
|
exports.sPersonId = zod_1.z.string().uuid().nonempty();
|
|
17
|
+
exports.sPersonTypeId = zod_1.z.string().nonempty();
|
|
17
18
|
exports.sZoneId = zod_1.z.string().uuid().nonempty();
|
|
18
19
|
exports.sMacroId = zod_1.z.string().uuid().nonempty();
|
|
19
20
|
exports.sWorldObjectId = zod_1.z.string().nonempty();
|