@awarevue/api-types 2.0.33 → 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 +2 -1
- package/dist/api/events/presence-tracker.js +2 -2
- package/dist/objects/person-presence.d.ts +13 -3
- package/dist/objects/person-presence.js +1 -1
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +1 -0
- package/dist/primitives.js +2 -1
- package/package.json +1 -1
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(),
|
|
@@ -6,6 +6,7 @@ export declare const sPresencePersonDto: z.ZodObject<{
|
|
|
6
6
|
avatarId: z.ZodNullable<z.ZodString>;
|
|
7
7
|
type: z.ZodString;
|
|
8
8
|
position: z.ZodNullable<z.ZodString>;
|
|
9
|
+
archived: z.ZodBoolean;
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
10
11
|
type: string;
|
|
11
12
|
id: string;
|
|
@@ -13,6 +14,7 @@ export declare const sPresencePersonDto: z.ZodObject<{
|
|
|
13
14
|
firstName: string;
|
|
14
15
|
lastName: string;
|
|
15
16
|
avatarId: string | null;
|
|
17
|
+
archived: boolean;
|
|
16
18
|
}, {
|
|
17
19
|
type: string;
|
|
18
20
|
id: string;
|
|
@@ -20,6 +22,7 @@ export declare const sPresencePersonDto: z.ZodObject<{
|
|
|
20
22
|
firstName: string;
|
|
21
23
|
lastName: string;
|
|
22
24
|
avatarId: string | null;
|
|
25
|
+
archived: boolean;
|
|
23
26
|
}>;
|
|
24
27
|
export type PresencePersonDto = z.infer<typeof sPresencePersonDto>;
|
|
25
28
|
export declare const sPresenceZoneDto: z.ZodObject<{
|
|
@@ -45,6 +48,7 @@ export declare const sPersonPresenceDto: z.ZodObject<{
|
|
|
45
48
|
avatarId: z.ZodNullable<z.ZodString>;
|
|
46
49
|
type: z.ZodString;
|
|
47
50
|
position: z.ZodNullable<z.ZodString>;
|
|
51
|
+
archived: z.ZodBoolean;
|
|
48
52
|
}, "strip", z.ZodTypeAny, {
|
|
49
53
|
type: string;
|
|
50
54
|
id: string;
|
|
@@ -52,6 +56,7 @@ export declare const sPersonPresenceDto: z.ZodObject<{
|
|
|
52
56
|
firstName: string;
|
|
53
57
|
lastName: string;
|
|
54
58
|
avatarId: string | null;
|
|
59
|
+
archived: boolean;
|
|
55
60
|
}, {
|
|
56
61
|
type: string;
|
|
57
62
|
id: string;
|
|
@@ -59,6 +64,7 @@ export declare const sPersonPresenceDto: z.ZodObject<{
|
|
|
59
64
|
firstName: string;
|
|
60
65
|
lastName: string;
|
|
61
66
|
avatarId: string | null;
|
|
67
|
+
archived: boolean;
|
|
62
68
|
}>;
|
|
63
69
|
zone: z.ZodUnion<[z.ZodObject<{
|
|
64
70
|
id: z.ZodString;
|
|
@@ -75,14 +81,12 @@ export declare const sPersonPresenceDto: z.ZodObject<{
|
|
|
75
81
|
}>, z.ZodString]>;
|
|
76
82
|
online: z.ZodNullable<z.ZodBoolean>;
|
|
77
83
|
onLeave: z.ZodBoolean;
|
|
78
|
-
archived: z.ZodBoolean;
|
|
79
84
|
lastCheckInOn: z.ZodNullable<z.ZodNumber>;
|
|
80
85
|
lastCheckOutOn: z.ZodNullable<z.ZodNumber>;
|
|
81
86
|
securityChecked: z.ZodBoolean;
|
|
82
87
|
}, "strip", z.ZodTypeAny, {
|
|
83
88
|
id: string;
|
|
84
89
|
online: boolean | null;
|
|
85
|
-
archived: boolean;
|
|
86
90
|
person: {
|
|
87
91
|
type: string;
|
|
88
92
|
id: string;
|
|
@@ -90,6 +94,7 @@ export declare const sPersonPresenceDto: z.ZodObject<{
|
|
|
90
94
|
firstName: string;
|
|
91
95
|
lastName: string;
|
|
92
96
|
avatarId: string | null;
|
|
97
|
+
archived: boolean;
|
|
93
98
|
};
|
|
94
99
|
zone: string | {
|
|
95
100
|
id: string;
|
|
@@ -103,7 +108,6 @@ export declare const sPersonPresenceDto: z.ZodObject<{
|
|
|
103
108
|
}, {
|
|
104
109
|
id: string;
|
|
105
110
|
online: boolean | null;
|
|
106
|
-
archived: boolean;
|
|
107
111
|
person: {
|
|
108
112
|
type: string;
|
|
109
113
|
id: string;
|
|
@@ -111,6 +115,7 @@ export declare const sPersonPresenceDto: z.ZodObject<{
|
|
|
111
115
|
firstName: string;
|
|
112
116
|
lastName: string;
|
|
113
117
|
avatarId: string | null;
|
|
118
|
+
archived: boolean;
|
|
114
119
|
};
|
|
115
120
|
zone: string | {
|
|
116
121
|
id: string;
|
|
@@ -132,6 +137,7 @@ export declare const sPersonPresenceActionDto: z.ZodObject<{
|
|
|
132
137
|
avatarId: z.ZodNullable<z.ZodString>;
|
|
133
138
|
type: z.ZodString;
|
|
134
139
|
position: z.ZodNullable<z.ZodString>;
|
|
140
|
+
archived: z.ZodBoolean;
|
|
135
141
|
}, "strip", z.ZodTypeAny, {
|
|
136
142
|
type: string;
|
|
137
143
|
id: string;
|
|
@@ -139,6 +145,7 @@ export declare const sPersonPresenceActionDto: z.ZodObject<{
|
|
|
139
145
|
firstName: string;
|
|
140
146
|
lastName: string;
|
|
141
147
|
avatarId: string | null;
|
|
148
|
+
archived: boolean;
|
|
142
149
|
}, {
|
|
143
150
|
type: string;
|
|
144
151
|
id: string;
|
|
@@ -146,6 +153,7 @@ export declare const sPersonPresenceActionDto: z.ZodObject<{
|
|
|
146
153
|
firstName: string;
|
|
147
154
|
lastName: string;
|
|
148
155
|
avatarId: string | null;
|
|
156
|
+
archived: boolean;
|
|
149
157
|
}>, z.ZodString]>;
|
|
150
158
|
zone: z.ZodUnion<[z.ZodObject<{
|
|
151
159
|
id: z.ZodString;
|
|
@@ -174,6 +182,7 @@ export declare const sPersonPresenceActionDto: z.ZodObject<{
|
|
|
174
182
|
firstName: string;
|
|
175
183
|
lastName: string;
|
|
176
184
|
avatarId: string | null;
|
|
185
|
+
archived: boolean;
|
|
177
186
|
};
|
|
178
187
|
zone: string | {
|
|
179
188
|
id: string;
|
|
@@ -193,6 +202,7 @@ export declare const sPersonPresenceActionDto: z.ZodObject<{
|
|
|
193
202
|
firstName: string;
|
|
194
203
|
lastName: string;
|
|
195
204
|
avatarId: string | null;
|
|
205
|
+
archived: boolean;
|
|
196
206
|
};
|
|
197
207
|
zone: string | {
|
|
198
208
|
id: string;
|
|
@@ -9,6 +9,7 @@ exports.sPresencePersonDto = zod_1.z.object({
|
|
|
9
9
|
avatarId: zod_1.z.string().nullable(),
|
|
10
10
|
type: zod_1.z.string().min(1).max(16),
|
|
11
11
|
position: zod_1.z.string().max(128).nullable(),
|
|
12
|
+
archived: zod_1.z.boolean(),
|
|
12
13
|
});
|
|
13
14
|
exports.sPresenceZoneDto = zod_1.z.object({
|
|
14
15
|
id: zod_1.z.string(),
|
|
@@ -23,7 +24,6 @@ exports.sPersonPresenceDto = zod_1.z.object({
|
|
|
23
24
|
zone: zod_1.z.union([exports.sPresenceZoneDto, zod_1.z.string()]),
|
|
24
25
|
online: zod_1.z.boolean().nullable(),
|
|
25
26
|
onLeave: zod_1.z.boolean(),
|
|
26
|
-
archived: zod_1.z.boolean(),
|
|
27
27
|
lastCheckInOn: zod_1.z.number().nullable(),
|
|
28
28
|
lastCheckOutOn: zod_1.z.number().nullable(),
|
|
29
29
|
securityChecked: zod_1.z.boolean(),
|
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();
|