@awarevue/api-types 1.0.1
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/access-control/access-rule.d.ts +243 -0
- package/dist/access-control/access-rule.js +49 -0
- package/dist/access-control/credential.d.ts +14 -0
- package/dist/access-control/credential.js +12 -0
- package/dist/access-control/index.d.ts +7 -0
- package/dist/access-control/index.js +23 -0
- package/dist/access-control/person-presence.d.ts +249 -0
- package/dist/access-control/person-presence.js +61 -0
- package/dist/access-control/person.d.ts +209 -0
- package/dist/access-control/person.js +49 -0
- package/dist/access-control/schedule.d.ts +500 -0
- package/dist/access-control/schedule.js +65 -0
- package/dist/access-control/sync.d.ts +3 -0
- package/dist/access-control/sync.js +2 -0
- package/dist/access-control/zone.d.ts +65 -0
- package/dist/access-control/zone.js +28 -0
- package/dist/agent-communication/index.d.ts +1 -0
- package/dist/agent-communication/index.js +17 -0
- package/dist/agent-communication/protocol.d.ts +1692 -0
- package/dist/agent-communication/protocol.js +341 -0
- package/dist/api/alarm.d.ts +23 -0
- package/dist/api/alarm.js +2 -0
- package/dist/api/auth.d.ts +31 -0
- package/dist/api/auth.js +19 -0
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.js +20 -0
- package/dist/api/media.d.ts +187 -0
- package/dist/api/media.js +59 -0
- package/dist/api/query.d.ts +33 -0
- package/dist/api/query.js +41 -0
- package/dist/app.d.ts +12 -0
- package/dist/app.js +8 -0
- package/dist/automation.d.ts +334 -0
- package/dist/automation.js +49 -0
- package/dist/aware-config.d.ts +3 -0
- package/dist/aware-config.js +2 -0
- package/dist/custom-field.d.ts +52 -0
- package/dist/custom-field.js +19 -0
- package/dist/device/alarm.d.ts +265 -0
- package/dist/device/alarm.js +66 -0
- package/dist/device/any-device.d.ts +2376 -0
- package/dist/device/any-device.js +185 -0
- package/dist/device/camera-lift.d.ts +17 -0
- package/dist/device/camera-lift.js +7 -0
- package/dist/device/camera.d.ts +829 -0
- package/dist/device/camera.js +120 -0
- package/dist/device/device-gateway.d.ts +3 -0
- package/dist/device/device-gateway.js +4 -0
- package/dist/device/door.d.ts +217 -0
- package/dist/device/door.js +57 -0
- package/dist/device/index.d.ts +15 -0
- package/dist/device/index.js +31 -0
- package/dist/device/intercom-operator.d.ts +13 -0
- package/dist/device/intercom-operator.js +5 -0
- package/dist/device/intercom-terminal.d.ts +244 -0
- package/dist/device/intercom-terminal.js +48 -0
- package/dist/device/io-board.d.ts +55 -0
- package/dist/device/io-board.js +19 -0
- package/dist/device/motion-sensor.d.ts +8 -0
- package/dist/device/motion-sensor.js +8 -0
- package/dist/device/panic-button.d.ts +26 -0
- package/dist/device/panic-button.js +14 -0
- package/dist/device/pbx.d.ts +20 -0
- package/dist/device/pbx.js +11 -0
- package/dist/device/presence-tracker.d.ts +127 -0
- package/dist/device/presence-tracker.js +27 -0
- package/dist/device/reader/commands.d.ts +1 -0
- package/dist/device/reader/commands.js +2 -0
- package/dist/device/reader/events.d.ts +37 -0
- package/dist/device/reader/events.js +13 -0
- package/dist/device/reader/index.d.ts +3 -0
- package/dist/device/reader/index.js +19 -0
- package/dist/device/reader/specs.d.ts +2 -0
- package/dist/device/reader/specs.js +4 -0
- package/dist/device/server.d.ts +73 -0
- package/dist/device/server.js +33 -0
- package/dist/device-command.d.ts +23 -0
- package/dist/device-command.js +110 -0
- package/dist/device-event.d.ts +682 -0
- package/dist/device-event.js +87 -0
- package/dist/device-factory.d.ts +112 -0
- package/dist/device-factory.js +25 -0
- package/dist/device-group.d.ts +74 -0
- package/dist/device-group.js +31 -0
- package/dist/device-import.d.ts +1412 -0
- package/dist/device-import.js +33 -0
- package/dist/device-relation.d.ts +30 -0
- package/dist/device-relation.js +68 -0
- package/dist/device-state.d.ts +10 -0
- package/dist/device-state.js +2 -0
- package/dist/error.d.ts +13 -0
- package/dist/error.js +10 -0
- package/dist/file.d.ts +3 -0
- package/dist/file.js +2 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +44 -0
- package/dist/layout.d.ts +188 -0
- package/dist/layout.js +40 -0
- package/dist/macros.d.ts +160 -0
- package/dist/macros.js +26 -0
- package/dist/messages/device-communication.d.ts +121 -0
- package/dist/messages/device-communication.js +63 -0
- package/dist/messages/index.d.ts +5 -0
- package/dist/messages/index.js +21 -0
- package/dist/messages/progress.d.ts +118 -0
- package/dist/messages/progress.js +51 -0
- package/dist/messages/provider-api/index.d.ts +1 -0
- package/dist/messages/provider-api/index.js +17 -0
- package/dist/messages/provider-api/sync-protocol.d.ts +83 -0
- package/dist/messages/provider-api/sync-protocol.js +2 -0
- package/dist/messages/web-rtc-signaling.d.ts +265 -0
- package/dist/messages/web-rtc-signaling.js +82 -0
- package/dist/messages/web-socket.d.ts +7 -0
- package/dist/messages/web-socket.js +5 -0
- package/dist/milestone.d.ts +5 -0
- package/dist/milestone.js +2 -0
- package/dist/module-config.d.ts +27 -0
- package/dist/module-config.js +2 -0
- package/dist/orchid.d.ts +19 -0
- package/dist/orchid.js +2 -0
- package/dist/package.json +40 -0
- package/dist/permissions.d.ts +6 -0
- package/dist/permissions.js +168 -0
- package/dist/template.d.ts +50 -0
- package/dist/template.js +21 -0
- package/dist/user.d.ts +184 -0
- package/dist/user.js +56 -0
- package/dist/view.d.ts +775 -0
- package/dist/view.js +74 -0
- package/dist/webrtc-playback.d.ts +20 -0
- package/dist/webrtc-playback.js +14 -0
- package/package.json +40 -0
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const sWeekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
3
|
+
export type WeekDay = z.infer<typeof sWeekDay>;
|
|
4
|
+
export declare const sRepeatType: z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>;
|
|
5
|
+
export type RepeatType = z.infer<typeof sRepeatType>;
|
|
6
|
+
export declare const sFlagType: z.ZodEnum<["always", "never"]>;
|
|
7
|
+
export type FlagType = z.infer<typeof sFlagType>;
|
|
8
|
+
export declare const sTimeIntervalDto: 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
|
+
}>;
|
|
21
|
+
export type TimeIntervalDto = z.infer<typeof sTimeIntervalDto>;
|
|
22
|
+
export declare const sScheduleDetailsDto: z.ZodObject<{
|
|
23
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
24
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
25
|
+
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
26
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
27
|
+
from: z.ZodNumber;
|
|
28
|
+
to: z.ZodNumber;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
31
|
+
from: number;
|
|
32
|
+
to: number;
|
|
33
|
+
}, {
|
|
34
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
35
|
+
from: number;
|
|
36
|
+
to: number;
|
|
37
|
+
}>, "many">;
|
|
38
|
+
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
41
|
+
startDate: string | null;
|
|
42
|
+
endDate: string | null;
|
|
43
|
+
timeIntervals: {
|
|
44
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
45
|
+
from: number;
|
|
46
|
+
to: number;
|
|
47
|
+
}[];
|
|
48
|
+
}, {
|
|
49
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
50
|
+
startDate: string | null;
|
|
51
|
+
endDate: string | null;
|
|
52
|
+
timeIntervals: {
|
|
53
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
54
|
+
from: number;
|
|
55
|
+
to: number;
|
|
56
|
+
}[];
|
|
57
|
+
}>;
|
|
58
|
+
export type ScheduleDetailsDto = z.infer<typeof sScheduleDetailsDto>;
|
|
59
|
+
export declare const sScheduleDto: z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
displayName: z.ZodString;
|
|
62
|
+
include: z.ZodNullable<z.ZodObject<{
|
|
63
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
64
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
65
|
+
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
66
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
67
|
+
from: z.ZodNumber;
|
|
68
|
+
to: z.ZodNumber;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
71
|
+
from: number;
|
|
72
|
+
to: number;
|
|
73
|
+
}, {
|
|
74
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
75
|
+
from: number;
|
|
76
|
+
to: number;
|
|
77
|
+
}>, "many">;
|
|
78
|
+
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
81
|
+
startDate: string | null;
|
|
82
|
+
endDate: string | null;
|
|
83
|
+
timeIntervals: {
|
|
84
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
85
|
+
from: number;
|
|
86
|
+
to: number;
|
|
87
|
+
}[];
|
|
88
|
+
}, {
|
|
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
|
+
}>>;
|
|
98
|
+
exclude: z.ZodNullable<z.ZodObject<{
|
|
99
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
100
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
101
|
+
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
102
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
103
|
+
from: z.ZodNumber;
|
|
104
|
+
to: z.ZodNumber;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
107
|
+
from: number;
|
|
108
|
+
to: number;
|
|
109
|
+
}, {
|
|
110
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
111
|
+
from: number;
|
|
112
|
+
to: number;
|
|
113
|
+
}>, "many">;
|
|
114
|
+
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
117
|
+
startDate: string | null;
|
|
118
|
+
endDate: string | null;
|
|
119
|
+
timeIntervals: {
|
|
120
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
121
|
+
from: number;
|
|
122
|
+
to: number;
|
|
123
|
+
}[];
|
|
124
|
+
}, {
|
|
125
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
126
|
+
startDate: string | null;
|
|
127
|
+
endDate: string | null;
|
|
128
|
+
timeIntervals: {
|
|
129
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
130
|
+
from: number;
|
|
131
|
+
to: number;
|
|
132
|
+
}[];
|
|
133
|
+
}>>;
|
|
134
|
+
editable: z.ZodBoolean;
|
|
135
|
+
deletable: z.ZodBoolean;
|
|
136
|
+
createdOn: z.ZodString;
|
|
137
|
+
lastModifiedOn: z.ZodString;
|
|
138
|
+
refs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
139
|
+
version: z.ZodNumber;
|
|
140
|
+
flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
id: string;
|
|
143
|
+
include: {
|
|
144
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
145
|
+
startDate: string | null;
|
|
146
|
+
endDate: string | null;
|
|
147
|
+
timeIntervals: {
|
|
148
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
149
|
+
from: number;
|
|
150
|
+
to: number;
|
|
151
|
+
}[];
|
|
152
|
+
} | null;
|
|
153
|
+
version: number;
|
|
154
|
+
exclude: {
|
|
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
|
+
} | null;
|
|
164
|
+
displayName: string;
|
|
165
|
+
createdOn: string;
|
|
166
|
+
lastModifiedOn: string;
|
|
167
|
+
refs: Record<string, string>;
|
|
168
|
+
editable: boolean;
|
|
169
|
+
deletable: boolean;
|
|
170
|
+
flag: "always" | "never" | null;
|
|
171
|
+
}, {
|
|
172
|
+
id: string;
|
|
173
|
+
include: {
|
|
174
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
175
|
+
startDate: string | null;
|
|
176
|
+
endDate: string | null;
|
|
177
|
+
timeIntervals: {
|
|
178
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
179
|
+
from: number;
|
|
180
|
+
to: number;
|
|
181
|
+
}[];
|
|
182
|
+
} | null;
|
|
183
|
+
version: number;
|
|
184
|
+
exclude: {
|
|
185
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
186
|
+
startDate: string | null;
|
|
187
|
+
endDate: string | null;
|
|
188
|
+
timeIntervals: {
|
|
189
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
190
|
+
from: number;
|
|
191
|
+
to: number;
|
|
192
|
+
}[];
|
|
193
|
+
} | null;
|
|
194
|
+
displayName: string;
|
|
195
|
+
createdOn: string;
|
|
196
|
+
lastModifiedOn: string;
|
|
197
|
+
refs: Record<string, string>;
|
|
198
|
+
editable: boolean;
|
|
199
|
+
deletable: boolean;
|
|
200
|
+
flag: "always" | "never" | null;
|
|
201
|
+
}>;
|
|
202
|
+
export type ScheduleDto = z.infer<typeof sScheduleDto>;
|
|
203
|
+
export declare const sTimeInterval: z.ZodObject<{
|
|
204
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
205
|
+
from: z.ZodNumber;
|
|
206
|
+
to: z.ZodNumber;
|
|
207
|
+
}, "strip", z.ZodTypeAny, {
|
|
208
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
209
|
+
from: number;
|
|
210
|
+
to: number;
|
|
211
|
+
}, {
|
|
212
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
213
|
+
from: number;
|
|
214
|
+
to: number;
|
|
215
|
+
}>;
|
|
216
|
+
export declare const sScheduleDetailsRequest: z.ZodObject<{
|
|
217
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
218
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
219
|
+
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
220
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
221
|
+
from: z.ZodNumber;
|
|
222
|
+
to: z.ZodNumber;
|
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
225
|
+
from: number;
|
|
226
|
+
to: number;
|
|
227
|
+
}, {
|
|
228
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
229
|
+
from: number;
|
|
230
|
+
to: number;
|
|
231
|
+
}>, "many">;
|
|
232
|
+
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
235
|
+
startDate: string | null;
|
|
236
|
+
endDate: string | null;
|
|
237
|
+
timeIntervals: {
|
|
238
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
239
|
+
from: number;
|
|
240
|
+
to: number;
|
|
241
|
+
}[];
|
|
242
|
+
}, {
|
|
243
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
244
|
+
startDate: string | null;
|
|
245
|
+
endDate: string | null;
|
|
246
|
+
timeIntervals: {
|
|
247
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
248
|
+
from: number;
|
|
249
|
+
to: number;
|
|
250
|
+
}[];
|
|
251
|
+
}>;
|
|
252
|
+
export type ScheduleDetailsRequest = z.infer<typeof sScheduleDetailsRequest>;
|
|
253
|
+
export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
254
|
+
displayName: z.ZodString;
|
|
255
|
+
flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
|
|
256
|
+
include: z.ZodNullable<z.ZodObject<{
|
|
257
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
258
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
259
|
+
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
260
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
261
|
+
from: z.ZodNumber;
|
|
262
|
+
to: z.ZodNumber;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
265
|
+
from: number;
|
|
266
|
+
to: number;
|
|
267
|
+
}, {
|
|
268
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
269
|
+
from: number;
|
|
270
|
+
to: number;
|
|
271
|
+
}>, "many">;
|
|
272
|
+
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
275
|
+
startDate: string | null;
|
|
276
|
+
endDate: string | null;
|
|
277
|
+
timeIntervals: {
|
|
278
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
279
|
+
from: number;
|
|
280
|
+
to: number;
|
|
281
|
+
}[];
|
|
282
|
+
}, {
|
|
283
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
284
|
+
startDate: string | null;
|
|
285
|
+
endDate: string | null;
|
|
286
|
+
timeIntervals: {
|
|
287
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
288
|
+
from: number;
|
|
289
|
+
to: number;
|
|
290
|
+
}[];
|
|
291
|
+
}>>;
|
|
292
|
+
exclude: z.ZodNullable<z.ZodObject<{
|
|
293
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
294
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
295
|
+
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
296
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
297
|
+
from: z.ZodNumber;
|
|
298
|
+
to: z.ZodNumber;
|
|
299
|
+
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
301
|
+
from: number;
|
|
302
|
+
to: number;
|
|
303
|
+
}, {
|
|
304
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
305
|
+
from: number;
|
|
306
|
+
to: number;
|
|
307
|
+
}>, "many">;
|
|
308
|
+
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
311
|
+
startDate: string | null;
|
|
312
|
+
endDate: string | null;
|
|
313
|
+
timeIntervals: {
|
|
314
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
315
|
+
from: number;
|
|
316
|
+
to: number;
|
|
317
|
+
}[];
|
|
318
|
+
}, {
|
|
319
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
320
|
+
startDate: string | null;
|
|
321
|
+
endDate: string | null;
|
|
322
|
+
timeIntervals: {
|
|
323
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
324
|
+
from: number;
|
|
325
|
+
to: number;
|
|
326
|
+
}[];
|
|
327
|
+
}>>;
|
|
328
|
+
}, "strip", z.ZodTypeAny, {
|
|
329
|
+
include: {
|
|
330
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
331
|
+
startDate: string | null;
|
|
332
|
+
endDate: string | null;
|
|
333
|
+
timeIntervals: {
|
|
334
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
335
|
+
from: number;
|
|
336
|
+
to: number;
|
|
337
|
+
}[];
|
|
338
|
+
} | null;
|
|
339
|
+
exclude: {
|
|
340
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
341
|
+
startDate: string | null;
|
|
342
|
+
endDate: string | null;
|
|
343
|
+
timeIntervals: {
|
|
344
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
345
|
+
from: number;
|
|
346
|
+
to: number;
|
|
347
|
+
}[];
|
|
348
|
+
} | null;
|
|
349
|
+
displayName: string;
|
|
350
|
+
flag: "always" | "never" | null;
|
|
351
|
+
}, {
|
|
352
|
+
include: {
|
|
353
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
354
|
+
startDate: string | null;
|
|
355
|
+
endDate: string | null;
|
|
356
|
+
timeIntervals: {
|
|
357
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
358
|
+
from: number;
|
|
359
|
+
to: number;
|
|
360
|
+
}[];
|
|
361
|
+
} | null;
|
|
362
|
+
exclude: {
|
|
363
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
364
|
+
startDate: string | null;
|
|
365
|
+
endDate: string | null;
|
|
366
|
+
timeIntervals: {
|
|
367
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
368
|
+
from: number;
|
|
369
|
+
to: number;
|
|
370
|
+
}[];
|
|
371
|
+
} | null;
|
|
372
|
+
displayName: string;
|
|
373
|
+
flag: "always" | "never" | null;
|
|
374
|
+
}>;
|
|
375
|
+
export type CreateScheduleRequest = z.infer<typeof sCreateScheduleRequest>;
|
|
376
|
+
export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
377
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
378
|
+
flag: z.ZodOptional<z.ZodNullable<z.ZodEnum<["always", "never"]>>>;
|
|
379
|
+
include: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
380
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
381
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
382
|
+
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
383
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
384
|
+
from: z.ZodNumber;
|
|
385
|
+
to: z.ZodNumber;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
388
|
+
from: number;
|
|
389
|
+
to: number;
|
|
390
|
+
}, {
|
|
391
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
392
|
+
from: number;
|
|
393
|
+
to: number;
|
|
394
|
+
}>, "many">;
|
|
395
|
+
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
396
|
+
}, "strip", z.ZodTypeAny, {
|
|
397
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
398
|
+
startDate: string | null;
|
|
399
|
+
endDate: string | null;
|
|
400
|
+
timeIntervals: {
|
|
401
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
402
|
+
from: number;
|
|
403
|
+
to: number;
|
|
404
|
+
}[];
|
|
405
|
+
}, {
|
|
406
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
407
|
+
startDate: string | null;
|
|
408
|
+
endDate: string | null;
|
|
409
|
+
timeIntervals: {
|
|
410
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
411
|
+
from: number;
|
|
412
|
+
to: number;
|
|
413
|
+
}[];
|
|
414
|
+
}>>>;
|
|
415
|
+
exclude: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
416
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
417
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
418
|
+
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
419
|
+
weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
|
|
420
|
+
from: z.ZodNumber;
|
|
421
|
+
to: z.ZodNumber;
|
|
422
|
+
}, "strip", z.ZodTypeAny, {
|
|
423
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
424
|
+
from: number;
|
|
425
|
+
to: number;
|
|
426
|
+
}, {
|
|
427
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
428
|
+
from: number;
|
|
429
|
+
to: number;
|
|
430
|
+
}>, "many">;
|
|
431
|
+
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
432
|
+
}, "strip", z.ZodTypeAny, {
|
|
433
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
434
|
+
startDate: string | null;
|
|
435
|
+
endDate: string | null;
|
|
436
|
+
timeIntervals: {
|
|
437
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
438
|
+
from: number;
|
|
439
|
+
to: number;
|
|
440
|
+
}[];
|
|
441
|
+
}, {
|
|
442
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
443
|
+
startDate: string | null;
|
|
444
|
+
endDate: string | null;
|
|
445
|
+
timeIntervals: {
|
|
446
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
447
|
+
from: number;
|
|
448
|
+
to: number;
|
|
449
|
+
}[];
|
|
450
|
+
}>>>;
|
|
451
|
+
}, "strip", z.ZodTypeAny, {
|
|
452
|
+
include?: {
|
|
453
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
454
|
+
startDate: string | null;
|
|
455
|
+
endDate: string | null;
|
|
456
|
+
timeIntervals: {
|
|
457
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
458
|
+
from: number;
|
|
459
|
+
to: number;
|
|
460
|
+
}[];
|
|
461
|
+
} | null | undefined;
|
|
462
|
+
exclude?: {
|
|
463
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
464
|
+
startDate: string | null;
|
|
465
|
+
endDate: string | null;
|
|
466
|
+
timeIntervals: {
|
|
467
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
468
|
+
from: number;
|
|
469
|
+
to: number;
|
|
470
|
+
}[];
|
|
471
|
+
} | null | undefined;
|
|
472
|
+
displayName?: string | undefined;
|
|
473
|
+
flag?: "always" | "never" | null | undefined;
|
|
474
|
+
}, {
|
|
475
|
+
include?: {
|
|
476
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
477
|
+
startDate: string | null;
|
|
478
|
+
endDate: string | null;
|
|
479
|
+
timeIntervals: {
|
|
480
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
481
|
+
from: number;
|
|
482
|
+
to: number;
|
|
483
|
+
}[];
|
|
484
|
+
} | null | undefined;
|
|
485
|
+
exclude?: {
|
|
486
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
487
|
+
startDate: string | null;
|
|
488
|
+
endDate: string | null;
|
|
489
|
+
timeIntervals: {
|
|
490
|
+
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
491
|
+
from: number;
|
|
492
|
+
to: number;
|
|
493
|
+
}[];
|
|
494
|
+
} | null | undefined;
|
|
495
|
+
displayName?: string | undefined;
|
|
496
|
+
flag?: "always" | "never" | null | undefined;
|
|
497
|
+
}>;
|
|
498
|
+
export type UpdateScheduleRequest = {
|
|
499
|
+
id: string;
|
|
500
|
+
} & z.infer<typeof sUpdateScheduleRequest>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.sUpdateScheduleRequest = exports.sCreateScheduleRequest = exports.sScheduleDetailsRequest = exports.sTimeInterval = exports.sScheduleDto = exports.sScheduleDetailsDto = exports.sTimeIntervalDto = exports.sFlagType = exports.sRepeatType = exports.sWeekDay = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.sWeekDay = zod_1.default.enum([
|
|
9
|
+
'mon',
|
|
10
|
+
'tue',
|
|
11
|
+
'wed',
|
|
12
|
+
'thu',
|
|
13
|
+
'fri',
|
|
14
|
+
'sat',
|
|
15
|
+
'sun',
|
|
16
|
+
]);
|
|
17
|
+
exports.sRepeatType = zod_1.default.enum(['daily', 'weekly', 'monthly', 'yearly']);
|
|
18
|
+
exports.sFlagType = zod_1.default.enum(['always', 'never']);
|
|
19
|
+
exports.sTimeIntervalDto = zod_1.default.object({
|
|
20
|
+
weekDay: exports.sWeekDay,
|
|
21
|
+
from: zod_1.default.number(),
|
|
22
|
+
to: zod_1.default.number(),
|
|
23
|
+
});
|
|
24
|
+
exports.sScheduleDetailsDto = zod_1.default.object({
|
|
25
|
+
startDate: zod_1.default.string().nullable(),
|
|
26
|
+
endDate: zod_1.default.string().nullable(),
|
|
27
|
+
timeIntervals: zod_1.default.array(exports.sTimeIntervalDto),
|
|
28
|
+
repeat: exports.sRepeatType.nullable(),
|
|
29
|
+
});
|
|
30
|
+
exports.sScheduleDto = zod_1.default.object({
|
|
31
|
+
id: zod_1.default.string(),
|
|
32
|
+
displayName: zod_1.default.string(),
|
|
33
|
+
include: exports.sScheduleDetailsDto.nullable(),
|
|
34
|
+
exclude: exports.sScheduleDetailsDto.nullable(),
|
|
35
|
+
editable: zod_1.default.boolean(),
|
|
36
|
+
deletable: zod_1.default.boolean(),
|
|
37
|
+
createdOn: zod_1.default.string(),
|
|
38
|
+
lastModifiedOn: zod_1.default.string(),
|
|
39
|
+
refs: zod_1.default.record(zod_1.default.string()),
|
|
40
|
+
version: zod_1.default.number(),
|
|
41
|
+
flag: exports.sFlagType.nullable(),
|
|
42
|
+
});
|
|
43
|
+
exports.sTimeInterval = zod_1.default.object({
|
|
44
|
+
weekDay: exports.sWeekDay,
|
|
45
|
+
from: zod_1.default.number().max(240000).min(0),
|
|
46
|
+
to: zod_1.default.number().max(240000).min(0),
|
|
47
|
+
});
|
|
48
|
+
exports.sScheduleDetailsRequest = zod_1.default.object({
|
|
49
|
+
startDate: zod_1.default.string().nullable(),
|
|
50
|
+
endDate: zod_1.default.string().nullable(),
|
|
51
|
+
timeIntervals: zod_1.default.array(exports.sTimeInterval),
|
|
52
|
+
repeat: exports.sRepeatType.nullable(),
|
|
53
|
+
});
|
|
54
|
+
exports.sCreateScheduleRequest = zod_1.default.object({
|
|
55
|
+
displayName: zod_1.default.string().nonempty(),
|
|
56
|
+
flag: exports.sFlagType.nullable(),
|
|
57
|
+
include: exports.sScheduleDetailsRequest.nullable(),
|
|
58
|
+
exclude: exports.sScheduleDetailsRequest.nullable(),
|
|
59
|
+
});
|
|
60
|
+
exports.sUpdateScheduleRequest = zod_1.default.object({
|
|
61
|
+
displayName: zod_1.default.string().optional(),
|
|
62
|
+
flag: exports.sFlagType.nullable().optional(),
|
|
63
|
+
include: exports.sScheduleDetailsRequest.nullable().optional(),
|
|
64
|
+
exclude: exports.sScheduleDetailsRequest.nullable().optional(),
|
|
65
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const sZoneDto: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
displayName: z.ZodString;
|
|
5
|
+
createdOn: z.ZodString;
|
|
6
|
+
lastModifiedOn: z.ZodString;
|
|
7
|
+
devices: z.ZodArray<z.ZodString, "many">;
|
|
8
|
+
isGlobal: z.ZodBoolean;
|
|
9
|
+
refs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
10
|
+
version: z.ZodNumber;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
id: string;
|
|
13
|
+
version: number;
|
|
14
|
+
displayName: string;
|
|
15
|
+
createdOn: string;
|
|
16
|
+
lastModifiedOn: string;
|
|
17
|
+
refs: Record<string, string>;
|
|
18
|
+
devices: string[];
|
|
19
|
+
isGlobal: boolean;
|
|
20
|
+
}, {
|
|
21
|
+
id: string;
|
|
22
|
+
version: number;
|
|
23
|
+
displayName: string;
|
|
24
|
+
createdOn: string;
|
|
25
|
+
lastModifiedOn: string;
|
|
26
|
+
refs: Record<string, string>;
|
|
27
|
+
devices: string[];
|
|
28
|
+
isGlobal: boolean;
|
|
29
|
+
}>;
|
|
30
|
+
export type ZoneDto = z.infer<typeof sZoneDto>;
|
|
31
|
+
export declare const sCreateZoneRequest: z.ZodObject<{
|
|
32
|
+
displayName: z.ZodString;
|
|
33
|
+
devices: z.ZodArray<z.ZodString, "many">;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
displayName: string;
|
|
36
|
+
devices: string[];
|
|
37
|
+
}, {
|
|
38
|
+
displayName: string;
|
|
39
|
+
devices: string[];
|
|
40
|
+
}>;
|
|
41
|
+
export type CreateZoneRequest = z.infer<typeof sCreateZoneRequest>;
|
|
42
|
+
export declare const sUpdateZoneRequest: z.ZodObject<{
|
|
43
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
44
|
+
devices: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
displayName?: string | undefined;
|
|
47
|
+
devices?: string[] | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
displayName?: string | undefined;
|
|
50
|
+
devices?: string[] | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
export type UpdateZoneRequest = {
|
|
53
|
+
id: string;
|
|
54
|
+
} & z.infer<typeof sUpdateZoneRequest>;
|
|
55
|
+
export declare const sAddZoneDeviceRequest: z.ZodObject<{
|
|
56
|
+
deviceId: z.ZodString;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
deviceId: string;
|
|
59
|
+
}, {
|
|
60
|
+
deviceId: string;
|
|
61
|
+
}>;
|
|
62
|
+
export type AddZoneDeviceRequest = {
|
|
63
|
+
zoneId: string;
|
|
64
|
+
} & z.infer<typeof sAddZoneDeviceRequest>;
|
|
65
|
+
export type RemoveZoneDeviceRequest = AddZoneDeviceRequest;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.sAddZoneDeviceRequest = exports.sUpdateZoneRequest = exports.sCreateZoneRequest = exports.sZoneDto = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.sZoneDto = zod_1.default.object({
|
|
9
|
+
id: zod_1.default.string(),
|
|
10
|
+
displayName: zod_1.default.string(),
|
|
11
|
+
createdOn: zod_1.default.string(),
|
|
12
|
+
lastModifiedOn: zod_1.default.string(),
|
|
13
|
+
devices: zod_1.default.array(zod_1.default.string()),
|
|
14
|
+
isGlobal: zod_1.default.boolean(),
|
|
15
|
+
refs: zod_1.default.record(zod_1.default.string()),
|
|
16
|
+
version: zod_1.default.number(),
|
|
17
|
+
});
|
|
18
|
+
exports.sCreateZoneRequest = zod_1.default.object({
|
|
19
|
+
displayName: zod_1.default.string().nonempty(),
|
|
20
|
+
devices: zod_1.default.array(zod_1.default.string().nonempty()),
|
|
21
|
+
});
|
|
22
|
+
exports.sUpdateZoneRequest = zod_1.default.object({
|
|
23
|
+
displayName: zod_1.default.string().optional(),
|
|
24
|
+
devices: zod_1.default.array(zod_1.default.string().nonempty()).optional(),
|
|
25
|
+
});
|
|
26
|
+
exports.sAddZoneDeviceRequest = zod_1.default.object({
|
|
27
|
+
deviceId: zod_1.default.string().nonempty(),
|
|
28
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './protocol';
|