@awarevue/api-types 1.0.91 → 1.0.93
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/device/door.d.ts +31 -1
- package/dist/device/door.js +9 -1
- package/dist/device-event.d.ts +14 -0
- package/dist/device-event.js +2 -0
- package/dist/macros.d.ts +27 -0
- package/dist/macros.js +6 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/device/door.d.ts
CHANGED
|
@@ -51,6 +51,20 @@ export declare const sDoorAccessEvent: z.ZodObject<{
|
|
|
51
51
|
doorExit: boolean;
|
|
52
52
|
personId?: string | undefined;
|
|
53
53
|
}>;
|
|
54
|
+
export declare const sDoorOpened: z.ZodObject<{
|
|
55
|
+
kind: z.ZodLiteral<"door-opened">;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
kind: "door-opened";
|
|
58
|
+
}, {
|
|
59
|
+
kind: "door-opened";
|
|
60
|
+
}>;
|
|
61
|
+
export declare const sDoorClosed: z.ZodObject<{
|
|
62
|
+
kind: z.ZodLiteral<"door-closed">;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
kind: "door-closed";
|
|
65
|
+
}, {
|
|
66
|
+
kind: "door-closed";
|
|
67
|
+
}>;
|
|
54
68
|
export declare const sDoorForceEvent: z.ZodObject<{
|
|
55
69
|
kind: z.ZodLiteral<"door-force">;
|
|
56
70
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -140,6 +154,20 @@ export declare const doorEventSchemaByKind: {
|
|
|
140
154
|
doorExit: boolean;
|
|
141
155
|
personId?: string | undefined;
|
|
142
156
|
}>;
|
|
157
|
+
readonly 'door-opened': z.ZodObject<{
|
|
158
|
+
kind: z.ZodLiteral<"door-opened">;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
kind: "door-opened";
|
|
161
|
+
}, {
|
|
162
|
+
kind: "door-opened";
|
|
163
|
+
}>;
|
|
164
|
+
readonly 'door-closed': z.ZodObject<{
|
|
165
|
+
kind: z.ZodLiteral<"door-closed">;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
kind: "door-closed";
|
|
168
|
+
}, {
|
|
169
|
+
kind: "door-closed";
|
|
170
|
+
}>;
|
|
143
171
|
readonly 'door-force': z.ZodObject<{
|
|
144
172
|
kind: z.ZodLiteral<"door-force">;
|
|
145
173
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -205,6 +233,8 @@ export declare const doorEventSchemaByKind: {
|
|
|
205
233
|
}>;
|
|
206
234
|
};
|
|
207
235
|
export type DoorAccessEvent = z.infer<typeof sDoorAccessEvent>;
|
|
236
|
+
export type DoorOpenedEvent = z.infer<typeof sDoorOpened>;
|
|
237
|
+
export type DoorClosedEvent = z.infer<typeof sDoorClosed>;
|
|
208
238
|
export type DoorForceEvent = z.infer<typeof sDoorForceEvent>;
|
|
209
239
|
export type DoorTamperEvent = z.infer<typeof sDoorTamperEvent>;
|
|
210
240
|
export type DoorLeftOpenEvent = z.infer<typeof sDoorLeftOpenEvent>;
|
|
@@ -214,4 +244,4 @@ export type DoorAcuNotRespondingEvent = z.infer<typeof sDoorAcuNotRespondingEven
|
|
|
214
244
|
export type DoorMainsRestoredEvent = z.infer<typeof sDoorMainsRestoredEvent>;
|
|
215
245
|
export type DoorAcuOnlineEvent = z.infer<typeof sDoorAcuOnlineEvent>;
|
|
216
246
|
export type DoorTamperRestoredEvent = z.infer<typeof sDoorTamperRestoredEvent>;
|
|
217
|
-
export type DoorEvent = DoorAccessEvent | DoorForceEvent | DoorTamperEvent | DoorLeftOpenEvent | DoorRelockEvent | DoorMainsFailedEvent | DoorAcuNotRespondingEvent | DoorMainsRestoredEvent | DoorAcuOnlineEvent | DoorTamperRestoredEvent;
|
|
247
|
+
export type DoorEvent = DoorAccessEvent | DoorOpenedEvent | DoorClosedEvent | DoorForceEvent | DoorTamperEvent | DoorLeftOpenEvent | DoorRelockEvent | DoorMainsFailedEvent | DoorAcuNotRespondingEvent | DoorMainsRestoredEvent | DoorAcuOnlineEvent | DoorTamperRestoredEvent;
|
package/dist/device/door.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.doorEventSchemaByKind = exports.sDoorTamperRestoredEvent = exports.sDoorAcuOnlineEvent = exports.sDoorMainsRestoredEvent = exports.sDoorAcuNotRespondingEvent = exports.sDoorMainsFailedEvent = exports.sDoorRelockEvent = exports.sDoorLeftOpenEvent = exports.sDoorTamperEvent = exports.sDoorForceEvent = exports.sDoorAccessEvent = exports.sDoorSpecs = exports.DOOR = void 0;
|
|
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 = exports.sDoorSpecs = exports.DOOR = void 0;
|
|
4
4
|
const access_control_1 = require("../access-control");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.DOOR = 'door';
|
|
@@ -16,6 +16,12 @@ exports.sDoorAccessEvent = zod_1.z.object({
|
|
|
16
16
|
doorExit: zod_1.z.boolean(),
|
|
17
17
|
description: zod_1.z.string(),
|
|
18
18
|
});
|
|
19
|
+
exports.sDoorOpened = zod_1.z.object({
|
|
20
|
+
kind: zod_1.z.literal('door-opened'),
|
|
21
|
+
});
|
|
22
|
+
exports.sDoorClosed = zod_1.z.object({
|
|
23
|
+
kind: zod_1.z.literal('door-closed'),
|
|
24
|
+
});
|
|
19
25
|
exports.sDoorForceEvent = zod_1.z.object({
|
|
20
26
|
kind: zod_1.z.literal('door-force'),
|
|
21
27
|
});
|
|
@@ -45,6 +51,8 @@ exports.sDoorTamperRestoredEvent = zod_1.z.object({
|
|
|
45
51
|
});
|
|
46
52
|
exports.doorEventSchemaByKind = {
|
|
47
53
|
'door-access': exports.sDoorAccessEvent,
|
|
54
|
+
'door-opened': exports.sDoorOpened,
|
|
55
|
+
'door-closed': exports.sDoorClosed,
|
|
48
56
|
'door-force': exports.sDoorForceEvent,
|
|
49
57
|
'door-tamper': exports.sDoorTamperEvent,
|
|
50
58
|
'door-left-open': exports.sDoorLeftOpenEvent,
|
package/dist/device-event.d.ts
CHANGED
|
@@ -217,6 +217,20 @@ export declare const eventSchemaByKind: {
|
|
|
217
217
|
doorExit: boolean;
|
|
218
218
|
personId?: string | undefined;
|
|
219
219
|
}>;
|
|
220
|
+
'door-opened': z.ZodObject<{
|
|
221
|
+
kind: z.ZodLiteral<"door-opened">;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
kind: "door-opened";
|
|
224
|
+
}, {
|
|
225
|
+
kind: "door-opened";
|
|
226
|
+
}>;
|
|
227
|
+
'door-closed': z.ZodObject<{
|
|
228
|
+
kind: z.ZodLiteral<"door-closed">;
|
|
229
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
kind: "door-closed";
|
|
231
|
+
}, {
|
|
232
|
+
kind: "door-closed";
|
|
233
|
+
}>;
|
|
220
234
|
'door-force': z.ZodObject<{
|
|
221
235
|
kind: z.ZodLiteral<"door-force">;
|
|
222
236
|
}, "strip", z.ZodTypeAny, {
|
package/dist/device-event.js
CHANGED
|
@@ -60,6 +60,8 @@ exports.eventKindLabels = {
|
|
|
60
60
|
'io-board-input-changed': 'IO Board Input Changed',
|
|
61
61
|
'agent-started': 'Agent Started',
|
|
62
62
|
'agent-stopped': 'Agent Stopped',
|
|
63
|
+
'door-opened': 'Door Opened',
|
|
64
|
+
'door-closed': 'Door Closed',
|
|
63
65
|
};
|
|
64
66
|
exports.eventSchemaByKind = {
|
|
65
67
|
...alarm_1.alarmEventSchemasByKind,
|
package/dist/macros.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ export declare const sMacroItemDto: z.ZodObject<{
|
|
|
21
21
|
export declare const sMacroDto: z.ZodObject<{
|
|
22
22
|
id: z.ZodString;
|
|
23
23
|
displayName: z.ZodString;
|
|
24
|
+
code: z.ZodNullable<z.ZodString>;
|
|
25
|
+
module: z.ZodNullable<z.ZodString>;
|
|
26
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
24
27
|
createdOn: z.ZodString;
|
|
25
28
|
lastModifiedOn: z.ZodString;
|
|
26
29
|
createdBy: z.ZodNullable<z.ZodString>;
|
|
@@ -44,7 +47,10 @@ export declare const sMacroDto: z.ZodObject<{
|
|
|
44
47
|
stepId: string;
|
|
45
48
|
}>, "many">;
|
|
46
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
code: string | null;
|
|
47
51
|
id: string;
|
|
52
|
+
module: string | null;
|
|
53
|
+
metadata: Record<string, unknown>;
|
|
48
54
|
items: {
|
|
49
55
|
id: string | null;
|
|
50
56
|
params: Record<string, unknown>;
|
|
@@ -57,7 +63,10 @@ export declare const sMacroDto: z.ZodObject<{
|
|
|
57
63
|
lastModifiedOn: string;
|
|
58
64
|
createdBy: string | null;
|
|
59
65
|
}, {
|
|
66
|
+
code: string | null;
|
|
60
67
|
id: string;
|
|
68
|
+
module: string | null;
|
|
69
|
+
metadata: Record<string, unknown>;
|
|
61
70
|
items: {
|
|
62
71
|
id: string | null;
|
|
63
72
|
params: Record<string, unknown>;
|
|
@@ -73,6 +82,9 @@ export declare const sMacroDto: z.ZodObject<{
|
|
|
73
82
|
export declare const sAddMacroRequest: z.ZodObject<Omit<{
|
|
74
83
|
id: z.ZodString;
|
|
75
84
|
displayName: z.ZodString;
|
|
85
|
+
code: z.ZodNullable<z.ZodString>;
|
|
86
|
+
module: z.ZodNullable<z.ZodString>;
|
|
87
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
76
88
|
createdOn: z.ZodString;
|
|
77
89
|
lastModifiedOn: z.ZodString;
|
|
78
90
|
createdBy: z.ZodNullable<z.ZodString>;
|
|
@@ -96,6 +108,9 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
|
|
|
96
108
|
stepId: string;
|
|
97
109
|
}>, "many">;
|
|
98
110
|
}, "id" | "createdOn" | "lastModifiedOn" | "createdBy">, "strip", z.ZodTypeAny, {
|
|
111
|
+
code: string | null;
|
|
112
|
+
module: string | null;
|
|
113
|
+
metadata: Record<string, unknown>;
|
|
99
114
|
items: {
|
|
100
115
|
id: string | null;
|
|
101
116
|
params: Record<string, unknown>;
|
|
@@ -105,6 +120,9 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
|
|
|
105
120
|
}[];
|
|
106
121
|
displayName: string;
|
|
107
122
|
}, {
|
|
123
|
+
code: string | null;
|
|
124
|
+
module: string | null;
|
|
125
|
+
metadata: Record<string, unknown>;
|
|
108
126
|
items: {
|
|
109
127
|
id: string | null;
|
|
110
128
|
params: Record<string, unknown>;
|
|
@@ -115,6 +133,9 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
|
|
|
115
133
|
displayName: string;
|
|
116
134
|
}>;
|
|
117
135
|
export declare const sUpdateMacroRequest: z.ZodObject<{
|
|
136
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
module: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
118
139
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
119
140
|
id: z.ZodNullable<z.ZodString>;
|
|
120
141
|
stepId: z.ZodString;
|
|
@@ -136,6 +157,9 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
|
|
|
136
157
|
}>, "many">>;
|
|
137
158
|
displayName: z.ZodOptional<z.ZodString>;
|
|
138
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
code?: string | null | undefined;
|
|
161
|
+
module?: string | null | undefined;
|
|
162
|
+
metadata?: Record<string, unknown> | undefined;
|
|
139
163
|
items?: {
|
|
140
164
|
id: string | null;
|
|
141
165
|
params: Record<string, unknown>;
|
|
@@ -145,6 +169,9 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
|
|
|
145
169
|
}[] | undefined;
|
|
146
170
|
displayName?: string | undefined;
|
|
147
171
|
}, {
|
|
172
|
+
code?: string | null | undefined;
|
|
173
|
+
module?: string | null | undefined;
|
|
174
|
+
metadata?: Record<string, unknown> | undefined;
|
|
148
175
|
items?: {
|
|
149
176
|
id: string | null;
|
|
150
177
|
params: Record<string, unknown>;
|
package/dist/macros.js
CHANGED
|
@@ -12,6 +12,12 @@ exports.sMacroItemDto = zod_1.z.object({
|
|
|
12
12
|
exports.sMacroDto = zod_1.z.object({
|
|
13
13
|
id: zod_1.z.string().nonempty(),
|
|
14
14
|
displayName: zod_1.z.string().nonempty(),
|
|
15
|
+
code: zod_1.z.string().nullable().describe('The code of the macro rule'),
|
|
16
|
+
module: zod_1.z
|
|
17
|
+
.string()
|
|
18
|
+
.nullable()
|
|
19
|
+
.describe('The module the macro rule belongs to'),
|
|
20
|
+
metadata: zod_1.z.record(zod_1.z.unknown()),
|
|
15
21
|
createdOn: zod_1.z.string(),
|
|
16
22
|
lastModifiedOn: zod_1.z.string(),
|
|
17
23
|
createdBy: zod_1.z.string().nullable(),
|
package/dist/package.json
CHANGED