@awarevue/api-types 1.0.90 → 1.0.92
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/device-factory.d.ts +19 -0
- package/dist/device-factory.js +1 -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/device-factory.d.ts
CHANGED
|
@@ -3,34 +3,43 @@ import { DeviceType } from './device/any-device';
|
|
|
3
3
|
export declare const sIoSlot: z.ZodObject<{
|
|
4
4
|
deviceId: z.ZodString;
|
|
5
5
|
slot: z.ZodString;
|
|
6
|
+
inverted: z.ZodOptional<z.ZodBoolean>;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
7
8
|
slot: string;
|
|
8
9
|
deviceId: string;
|
|
10
|
+
inverted?: boolean | undefined;
|
|
9
11
|
}, {
|
|
10
12
|
slot: string;
|
|
11
13
|
deviceId: string;
|
|
14
|
+
inverted?: boolean | undefined;
|
|
12
15
|
}>;
|
|
13
16
|
export type IoSlot = z.infer<typeof sIoSlot>;
|
|
14
17
|
export declare const sInputBindings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
15
18
|
deviceId: z.ZodString;
|
|
16
19
|
slot: z.ZodString;
|
|
20
|
+
inverted: z.ZodOptional<z.ZodBoolean>;
|
|
17
21
|
}, "strip", z.ZodTypeAny, {
|
|
18
22
|
slot: string;
|
|
19
23
|
deviceId: string;
|
|
24
|
+
inverted?: boolean | undefined;
|
|
20
25
|
}, {
|
|
21
26
|
slot: string;
|
|
22
27
|
deviceId: string;
|
|
28
|
+
inverted?: boolean | undefined;
|
|
23
29
|
}>>;
|
|
24
30
|
export type InputBindings = z.infer<typeof sInputBindings>;
|
|
25
31
|
export declare const sOutputBindings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
26
32
|
deviceId: z.ZodString;
|
|
27
33
|
slot: z.ZodString;
|
|
34
|
+
inverted: z.ZodOptional<z.ZodBoolean>;
|
|
28
35
|
}, "strip", z.ZodTypeAny, {
|
|
29
36
|
slot: string;
|
|
30
37
|
deviceId: string;
|
|
38
|
+
inverted?: boolean | undefined;
|
|
31
39
|
}, {
|
|
32
40
|
slot: string;
|
|
33
41
|
deviceId: string;
|
|
42
|
+
inverted?: boolean | undefined;
|
|
34
43
|
}>>;
|
|
35
44
|
export type OutputBindings = z.infer<typeof sOutputBindings>;
|
|
36
45
|
export interface DeviceFactoryProviderMetadata {
|
|
@@ -64,40 +73,50 @@ export declare const sUpdateCustomDeviceRequest: z.ZodObject<{
|
|
|
64
73
|
inputBindings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
65
74
|
deviceId: z.ZodString;
|
|
66
75
|
slot: z.ZodString;
|
|
76
|
+
inverted: z.ZodOptional<z.ZodBoolean>;
|
|
67
77
|
}, "strip", z.ZodTypeAny, {
|
|
68
78
|
slot: string;
|
|
69
79
|
deviceId: string;
|
|
80
|
+
inverted?: boolean | undefined;
|
|
70
81
|
}, {
|
|
71
82
|
slot: string;
|
|
72
83
|
deviceId: string;
|
|
84
|
+
inverted?: boolean | undefined;
|
|
73
85
|
}>>;
|
|
74
86
|
outputBindings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
75
87
|
deviceId: z.ZodString;
|
|
76
88
|
slot: z.ZodString;
|
|
89
|
+
inverted: z.ZodOptional<z.ZodBoolean>;
|
|
77
90
|
}, "strip", z.ZodTypeAny, {
|
|
78
91
|
slot: string;
|
|
79
92
|
deviceId: string;
|
|
93
|
+
inverted?: boolean | undefined;
|
|
80
94
|
}, {
|
|
81
95
|
slot: string;
|
|
82
96
|
deviceId: string;
|
|
97
|
+
inverted?: boolean | undefined;
|
|
83
98
|
}>>;
|
|
84
99
|
}, "strip", z.ZodTypeAny, {
|
|
85
100
|
inputBindings: Record<string, {
|
|
86
101
|
slot: string;
|
|
87
102
|
deviceId: string;
|
|
103
|
+
inverted?: boolean | undefined;
|
|
88
104
|
}>;
|
|
89
105
|
outputBindings: Record<string, {
|
|
90
106
|
slot: string;
|
|
91
107
|
deviceId: string;
|
|
108
|
+
inverted?: boolean | undefined;
|
|
92
109
|
}>;
|
|
93
110
|
}, {
|
|
94
111
|
inputBindings: Record<string, {
|
|
95
112
|
slot: string;
|
|
96
113
|
deviceId: string;
|
|
114
|
+
inverted?: boolean | undefined;
|
|
97
115
|
}>;
|
|
98
116
|
outputBindings: Record<string, {
|
|
99
117
|
slot: string;
|
|
100
118
|
deviceId: string;
|
|
119
|
+
inverted?: boolean | undefined;
|
|
101
120
|
}>;
|
|
102
121
|
}>;
|
|
103
122
|
export type UpdateCustomDeviceRequest = {
|
package/dist/device-factory.js
CHANGED
|
@@ -8,6 +8,7 @@ const zod_1 = __importDefault(require("zod"));
|
|
|
8
8
|
exports.sIoSlot = zod_1.default.object({
|
|
9
9
|
deviceId: zod_1.default.string().nonempty(),
|
|
10
10
|
slot: zod_1.default.string().nonempty(),
|
|
11
|
+
inverted: zod_1.default.boolean().optional(),
|
|
11
12
|
});
|
|
12
13
|
exports.sInputBindings = zod_1.default.record(exports.sIoSlot);
|
|
13
14
|
exports.sOutputBindings = zod_1.default.record(exports.sIoSlot);
|
package/dist/package.json
CHANGED