@awarevue/api-types 2.0.81 → 2.0.83
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/alarm-automation.d.ts +21 -37
- package/dist/api/agent-protocol/protocol.d.ts +1473 -10468
- package/dist/api/agent-protocol/protocol.js +16 -12
- package/dist/api/commands/alarm.d.ts +40 -248
- package/dist/api/commands/all.d.ts +393 -4642
- package/dist/api/commands/camera-lift.d.ts +8 -32
- package/dist/api/commands/camera.d.ts +82 -373
- package/dist/api/commands/display.d.ts +21 -373
- package/dist/api/commands/door.d.ts +16 -64
- package/dist/api/commands/io-board.d.ts +4 -40
- package/dist/api/commands/nvr-exporter.d.ts +104 -1380
- package/dist/api/commands/nvr-recorder.d.ts +400 -5288
- package/dist/api/commands/pbx.d.ts +4 -56
- package/dist/api/commands/presence-tracker.d.ts +12 -128
- package/dist/api/commands/server.d.ts +114 -1382
- package/dist/api/commands/server.js +1 -1
- package/dist/api/error.d.ts +77 -443
- package/dist/api/error.js +1 -1
- package/dist/api/events/alarm.d.ts +20 -148
- package/dist/api/events/all.d.ts +74 -526
- package/dist/api/events/all.js +1 -1
- package/dist/api/events/camera.d.ts +46 -470
- package/dist/api/events/display.d.ts +1 -5
- package/dist/api/events/door.d.ts +34 -146
- package/dist/api/events/intercom-terminal.d.ts +22 -42
- package/dist/api/events/io-board.d.ts +2 -18
- package/dist/api/events/nvr-exporter.d.ts +4 -32
- package/dist/api/events/panic-button.d.ts +2 -10
- package/dist/api/events/presence-tracker.d.ts +4 -88
- package/dist/api/events/reader.d.ts +2 -22
- package/dist/api/events/server.d.ts +6 -34
- package/dist/api/mqtt/payloads.d.ts +4 -26
- package/dist/api/queries/all.d.ts +188 -1622
- package/dist/api/queries/nvr-analytics-server.d.ts +61 -373
- package/dist/api/queries/nvr-exporter.d.ts +9 -73
- package/dist/api/queries/nvr-recorder.d.ts +300 -2828
- package/dist/api/rest/access-rule.d.ts +10 -86
- package/dist/api/rest/agreement.d.ts +3 -18
- package/dist/api/rest/api-keys.d.ts +3 -17
- package/dist/api/rest/app.d.ts +3 -51
- package/dist/api/rest/auth.d.ts +3 -19
- package/dist/api/rest/automation.d.ts +11 -236
- package/dist/api/rest/bookmarks.d.ts +8 -56
- package/dist/api/rest/camera.d.ts +12 -70
- package/dist/api/rest/cast.d.ts +1 -7
- package/dist/api/rest/custom-field.d.ts +21 -24
- package/dist/api/rest/device-group.d.ts +8 -32
- package/dist/api/rest/device.d.ts +104 -176
- package/dist/api/rest/io-device.d.ts +7 -75
- package/dist/api/rest/io-device.js +2 -2
- package/dist/api/rest/layout.d.ts +4 -102
- package/dist/api/rest/macros.d.ts +6 -82
- package/dist/api/rest/media.d.ts +17 -141
- package/dist/api/rest/notifications.d.ts +7 -15
- package/dist/api/rest/person-agreement.d.ts +1 -9
- package/dist/api/rest/person-presence.d.ts +8 -50
- package/dist/api/rest/person-type.d.ts +6 -39
- package/dist/api/rest/person.d.ts +18 -96
- package/dist/api/rest/query.d.ts +5 -15
- package/dist/api/rest/schedule.d.ts +78 -216
- package/dist/api/rest/security-level.d.ts +6 -43
- package/dist/api/rest/template.d.ts +10 -20
- package/dist/api/rest/token-conversion.d.ts +11 -28
- package/dist/api/rest/user.d.ts +15 -97
- package/dist/api/rest/view.d.ts +24 -496
- package/dist/api/rest/webrtc-playback.d.ts +3 -25
- package/dist/api/rest/zone.d.ts +5 -21
- package/dist/api/ws/device-communication.d.ts +10 -62
- package/dist/api/ws/notifications.d.ts +7 -33
- package/dist/api/ws/progress.d.ts +10 -72
- package/dist/api/ws/web-rtc-signaling.d.ts +33 -279
- package/dist/objects/access-rule.d.ts +12 -132
- package/dist/objects/access-rule.js +1 -1
- package/dist/objects/agent-metadata.d.ts +38 -146
- package/dist/objects/agent-metadata.js +1 -1
- package/dist/objects/agreement.d.ts +1 -13
- package/dist/objects/all.d.ts +20 -1
- package/dist/objects/api-key.d.ts +1 -13
- package/dist/objects/automation-rule.d.ts +9 -168
- package/dist/objects/automation-rule.js +2 -2
- package/dist/objects/bookmark.d.ts +3 -33
- package/dist/objects/bookmark.js +1 -1
- package/dist/objects/credential.d.ts +13 -13
- package/dist/objects/credential.js +1 -1
- package/dist/objects/custom-field.d.ts +19 -15
- package/dist/objects/device/alarm.d.ts +1 -1
- package/dist/objects/device/any-device.d.ts +1333 -4451
- package/dist/objects/device/camera-lift.d.ts +1 -1
- package/dist/objects/device/camera.d.ts +29 -125
- package/dist/objects/device/camera.js +1 -1
- package/dist/objects/device/device-import.d.ts +307 -1735
- package/dist/objects/device/device-relation.d.ts +70 -58
- package/dist/objects/device/display.d.ts +1 -1
- package/dist/objects/device/door.d.ts +9 -14
- package/dist/objects/device/intercom-terminal.d.ts +10 -59
- package/dist/objects/device/io-board.d.ts +3 -9
- package/dist/objects/device/motion-sensor.d.ts +1 -1
- package/dist/objects/device/nvr-analytics-server.d.ts +2 -6
- package/dist/objects/device/nvr-exporter.d.ts +3 -9
- package/dist/objects/device/nvr-recorder.d.ts +16 -68
- package/dist/objects/device/panic-button.d.ts +1 -1
- package/dist/objects/device/pbx.d.ts +1 -5
- package/dist/objects/device/system.d.ts +1 -1
- package/dist/objects/device/system.js +1 -1
- package/dist/objects/device-group.d.ts +2 -16
- package/dist/objects/layout.d.ts +3 -75
- package/dist/objects/macro.d.ts +3 -59
- package/dist/objects/macro.js +2 -2
- package/dist/objects/notification.d.ts +6 -24
- package/dist/objects/notification.js +1 -1
- package/dist/objects/person-agreement.d.ts +1 -13
- package/dist/objects/person-presence.d.ts +11 -165
- package/dist/objects/person-type.d.ts +2 -22
- package/dist/objects/person.d.ts +21 -153
- package/dist/objects/person.js +3 -3
- package/dist/objects/role.d.ts +3 -15
- package/dist/objects/schedule.d.ts +152 -314
- package/dist/objects/schedule.js +1 -1
- package/dist/objects/security-level.d.ts +1 -21
- package/dist/objects/template.d.ts +9 -13
- package/dist/objects/token-conversion.d.ts +8 -18
- package/dist/objects/user.d.ts +2 -20
- package/dist/objects/view.d.ts +52 -682
- package/dist/objects/world-object.d.ts +1 -7
- package/dist/objects/zone.d.ts +5 -29
- package/dist/objects/zone.js +1 -1
- package/dist/package.json +3 -3
- package/dist/permissions.d.ts +1 -1
- package/dist/primitives.d.ts +113 -551
- package/dist/primitives.js +1 -1
- package/package.json +3 -3
|
@@ -1,53 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const sCreatePersonTypeRequest: z.ZodObject<
|
|
2
|
+
export declare const sCreatePersonTypeRequest: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
displayName: z.ZodString;
|
|
5
|
+
agreements: z.ZodArray<z.ZodString>;
|
|
5
6
|
accessControlUser: z.ZodBoolean;
|
|
6
7
|
systemUser: z.ZodBoolean;
|
|
7
|
-
agreements: z.ZodArray<z.ZodString, "many">;
|
|
8
8
|
securityCheck: z.ZodBoolean;
|
|
9
9
|
inOnCreation: z.ZodBoolean;
|
|
10
|
-
|
|
11
|
-
lastModifiedOn: z.ZodString;
|
|
12
|
-
}, "createdOn" | "lastModifiedOn">, "strip", z.ZodTypeAny, {
|
|
13
|
-
id: string;
|
|
14
|
-
displayName: string;
|
|
15
|
-
agreements: string[];
|
|
16
|
-
accessControlUser: boolean;
|
|
17
|
-
systemUser: boolean;
|
|
18
|
-
securityCheck: boolean;
|
|
19
|
-
inOnCreation: boolean;
|
|
20
|
-
}, {
|
|
21
|
-
id: string;
|
|
22
|
-
displayName: string;
|
|
23
|
-
agreements: string[];
|
|
24
|
-
accessControlUser: boolean;
|
|
25
|
-
systemUser: boolean;
|
|
26
|
-
securityCheck: boolean;
|
|
27
|
-
inOnCreation: boolean;
|
|
28
|
-
}>;
|
|
10
|
+
}, z.core.$strip>;
|
|
29
11
|
export type CreatePersonTypeRequest = z.infer<typeof sCreatePersonTypeRequest>;
|
|
30
|
-
export declare const sUpdatePersonTypeRequest: z.ZodObject<
|
|
31
|
-
id: z.ZodOptional<z.ZodString>;
|
|
12
|
+
export declare const sUpdatePersonTypeRequest: z.ZodObject<{
|
|
32
13
|
displayName: z.ZodOptional<z.ZodString>;
|
|
33
|
-
agreements: z.ZodOptional<z.ZodArray<z.ZodString
|
|
14
|
+
agreements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
15
|
accessControlUser: z.ZodOptional<z.ZodBoolean>;
|
|
35
16
|
systemUser: z.ZodOptional<z.ZodBoolean>;
|
|
36
17
|
securityCheck: z.ZodOptional<z.ZodBoolean>;
|
|
37
18
|
inOnCreation: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
-
},
|
|
39
|
-
displayName?: string | undefined;
|
|
40
|
-
agreements?: string[] | undefined;
|
|
41
|
-
accessControlUser?: boolean | undefined;
|
|
42
|
-
systemUser?: boolean | undefined;
|
|
43
|
-
securityCheck?: boolean | undefined;
|
|
44
|
-
inOnCreation?: boolean | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
displayName?: string | undefined;
|
|
47
|
-
agreements?: string[] | undefined;
|
|
48
|
-
accessControlUser?: boolean | undefined;
|
|
49
|
-
systemUser?: boolean | undefined;
|
|
50
|
-
securityCheck?: boolean | undefined;
|
|
51
|
-
inOnCreation?: boolean | undefined;
|
|
52
|
-
}>;
|
|
19
|
+
}, z.core.$strip>;
|
|
53
20
|
export type UpdatePersonTypeRequest = z.infer<typeof sUpdatePersonTypeRequest>;
|
|
@@ -9,56 +9,18 @@ export declare const sCreatePersonRequest: z.ZodObject<{
|
|
|
9
9
|
validTo: z.ZodNullable<z.ZodString>;
|
|
10
10
|
avatarId: z.ZodNullable<z.ZodString>;
|
|
11
11
|
credentials: z.ZodArray<z.ZodObject<{
|
|
12
|
-
type: z.ZodEnum<
|
|
13
|
-
|
|
12
|
+
type: z.ZodEnum<{
|
|
13
|
+
card: "card";
|
|
14
|
+
pin: "pin";
|
|
15
|
+
fingerprint: "fingerprint";
|
|
16
|
+
}>;
|
|
17
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
14
18
|
note: z.ZodNullable<z.ZodString>;
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
type: "card" | "pin" | "fingerprint";
|
|
18
|
-
note: string | null;
|
|
19
|
-
}, {
|
|
20
|
-
value: string | Record<string, unknown>;
|
|
21
|
-
type: "card" | "pin" | "fingerprint";
|
|
22
|
-
note: string | null;
|
|
23
|
-
}>, "many">;
|
|
24
|
-
accessRules: z.ZodArray<z.ZodString, "many">;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
accessRules: z.ZodArray<z.ZodString>;
|
|
25
21
|
customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
26
22
|
type: z.ZodString;
|
|
27
|
-
},
|
|
28
|
-
type: string;
|
|
29
|
-
firstName: string;
|
|
30
|
-
lastName: string;
|
|
31
|
-
avatarId: string | null;
|
|
32
|
-
position: string | null;
|
|
33
|
-
accessSuspended: boolean;
|
|
34
|
-
staffMember: boolean;
|
|
35
|
-
validFrom: string | null;
|
|
36
|
-
validTo: string | null;
|
|
37
|
-
credentials: {
|
|
38
|
-
value: string | Record<string, unknown>;
|
|
39
|
-
type: "card" | "pin" | "fingerprint";
|
|
40
|
-
note: string | null;
|
|
41
|
-
}[];
|
|
42
|
-
accessRules: string[];
|
|
43
|
-
customFields: Record<string, string> | null;
|
|
44
|
-
}, {
|
|
45
|
-
type: string;
|
|
46
|
-
firstName: string;
|
|
47
|
-
lastName: string;
|
|
48
|
-
avatarId: string | null;
|
|
49
|
-
position: string | null;
|
|
50
|
-
accessSuspended: boolean;
|
|
51
|
-
staffMember: boolean;
|
|
52
|
-
validFrom: string | null;
|
|
53
|
-
validTo: string | null;
|
|
54
|
-
credentials: {
|
|
55
|
-
value: string | Record<string, unknown>;
|
|
56
|
-
type: "card" | "pin" | "fingerprint";
|
|
57
|
-
note: string | null;
|
|
58
|
-
}[];
|
|
59
|
-
accessRules: string[];
|
|
60
|
-
customFields: Record<string, string> | null;
|
|
61
|
-
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
62
24
|
export declare const sUpdatePersonRequest: z.ZodObject<{
|
|
63
25
|
firstName: z.ZodOptional<z.ZodString>;
|
|
64
26
|
lastName: z.ZodOptional<z.ZodString>;
|
|
@@ -69,59 +31,19 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
|
|
|
69
31
|
validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
32
|
avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
33
|
credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
-
type: z.ZodEnum<
|
|
73
|
-
|
|
34
|
+
type: z.ZodEnum<{
|
|
35
|
+
card: "card";
|
|
36
|
+
pin: "pin";
|
|
37
|
+
fingerprint: "fingerprint";
|
|
38
|
+
}>;
|
|
39
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
74
40
|
note: z.ZodNullable<z.ZodString>;
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
type: "card" | "pin" | "fingerprint";
|
|
78
|
-
note: string | null;
|
|
79
|
-
}, {
|
|
80
|
-
value: string | Record<string, unknown>;
|
|
81
|
-
type: "card" | "pin" | "fingerprint";
|
|
82
|
-
note: string | null;
|
|
83
|
-
}>, "many">>;
|
|
84
|
-
accessRules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
42
|
+
accessRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
43
|
customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
86
44
|
type: z.ZodOptional<z.ZodString>;
|
|
87
45
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
-
},
|
|
89
|
-
type?: string | undefined;
|
|
90
|
-
firstName?: string | undefined;
|
|
91
|
-
lastName?: string | undefined;
|
|
92
|
-
avatarId?: string | null | undefined;
|
|
93
|
-
position?: string | null | undefined;
|
|
94
|
-
accessSuspended?: boolean | undefined;
|
|
95
|
-
staffMember?: boolean | undefined;
|
|
96
|
-
validFrom?: string | null | undefined;
|
|
97
|
-
validTo?: string | null | undefined;
|
|
98
|
-
credentials?: {
|
|
99
|
-
value: string | Record<string, unknown>;
|
|
100
|
-
type: "card" | "pin" | "fingerprint";
|
|
101
|
-
note: string | null;
|
|
102
|
-
}[] | undefined;
|
|
103
|
-
accessRules?: string[] | undefined;
|
|
104
|
-
customFields?: Record<string, string> | null | undefined;
|
|
105
|
-
archived?: boolean | undefined;
|
|
106
|
-
}, {
|
|
107
|
-
type?: string | undefined;
|
|
108
|
-
firstName?: string | undefined;
|
|
109
|
-
lastName?: string | undefined;
|
|
110
|
-
avatarId?: string | null | undefined;
|
|
111
|
-
position?: string | null | undefined;
|
|
112
|
-
accessSuspended?: boolean | undefined;
|
|
113
|
-
staffMember?: boolean | undefined;
|
|
114
|
-
validFrom?: string | null | undefined;
|
|
115
|
-
validTo?: string | null | undefined;
|
|
116
|
-
credentials?: {
|
|
117
|
-
value: string | Record<string, unknown>;
|
|
118
|
-
type: "card" | "pin" | "fingerprint";
|
|
119
|
-
note: string | null;
|
|
120
|
-
}[] | undefined;
|
|
121
|
-
accessRules?: string[] | undefined;
|
|
122
|
-
customFields?: Record<string, string> | null | undefined;
|
|
123
|
-
archived?: boolean | undefined;
|
|
124
|
-
}>;
|
|
46
|
+
}, z.core.$strip>;
|
|
125
47
|
export type CreatePersonRequest = z.infer<typeof sCreatePersonRequest>;
|
|
126
48
|
export type UpdatePersonRequest = {
|
|
127
49
|
id: string;
|
package/dist/api/rest/query.d.ts
CHANGED
|
@@ -8,20 +8,10 @@ export interface PaginatedQueryResponse<T> {
|
|
|
8
8
|
items: T[];
|
|
9
9
|
total: number;
|
|
10
10
|
}
|
|
11
|
-
export declare const sPaginatedQueryRequestOf: <T extends z.
|
|
12
|
-
[x: string]: z.ZodOptional<
|
|
13
|
-
},
|
|
14
|
-
[x: string]: any;
|
|
15
|
-
}, {
|
|
16
|
-
[x: string]: any;
|
|
17
|
-
}>;
|
|
11
|
+
export declare const sPaginatedQueryRequestOf: <T extends z.ZodObject<z.ZodRawShape>>(criteriaSchema: T) => z.ZodObject<{
|
|
12
|
+
[x: string]: z.ZodOptional<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
18
14
|
export declare const sPaginatedQueryResponseOf: <T extends ZodTypeAny>(itemSchema: T) => z.ZodObject<{
|
|
19
|
-
items: z.ZodArray<T
|
|
15
|
+
items: z.ZodArray<T>;
|
|
20
16
|
total: z.ZodNumber;
|
|
21
|
-
},
|
|
22
|
-
items: T["_output"][];
|
|
23
|
-
total: number;
|
|
24
|
-
}, {
|
|
25
|
-
items: T["_input"][];
|
|
26
|
-
total: number;
|
|
27
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
@@ -1,249 +1,111 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
3
3
|
displayName: z.ZodString;
|
|
4
|
-
flag: z.ZodNullable<z.ZodEnum<
|
|
4
|
+
flag: z.ZodNullable<z.ZodEnum<{
|
|
5
|
+
never: "never";
|
|
6
|
+
always: "always";
|
|
7
|
+
}>>;
|
|
5
8
|
include: z.ZodNullable<z.ZodObject<{
|
|
6
9
|
startDate: z.ZodNullable<z.ZodString>;
|
|
7
10
|
endDate: z.ZodNullable<z.ZodString>;
|
|
8
11
|
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
9
|
-
weekDay: z.ZodEnum<
|
|
12
|
+
weekDay: z.ZodEnum<{
|
|
13
|
+
mon: "mon";
|
|
14
|
+
tue: "tue";
|
|
15
|
+
wed: "wed";
|
|
16
|
+
thu: "thu";
|
|
17
|
+
fri: "fri";
|
|
18
|
+
sat: "sat";
|
|
19
|
+
sun: "sun";
|
|
20
|
+
}>;
|
|
10
21
|
from: z.ZodNumber;
|
|
11
22
|
to: z.ZodNumber;
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}>, "many">;
|
|
21
|
-
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
startDate: string | null;
|
|
24
|
-
endDate: string | null;
|
|
25
|
-
timeIntervals: {
|
|
26
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
27
|
-
from: number;
|
|
28
|
-
to: number;
|
|
29
|
-
}[];
|
|
30
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
31
|
-
}, {
|
|
32
|
-
startDate: string | null;
|
|
33
|
-
endDate: string | null;
|
|
34
|
-
timeIntervals: {
|
|
35
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
36
|
-
from: number;
|
|
37
|
-
to: number;
|
|
38
|
-
}[];
|
|
39
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
40
|
-
}>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
repeat: z.ZodNullable<z.ZodEnum<{
|
|
25
|
+
daily: "daily";
|
|
26
|
+
weekly: "weekly";
|
|
27
|
+
monthly: "monthly";
|
|
28
|
+
yearly: "yearly";
|
|
29
|
+
}>>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
41
31
|
exclude: z.ZodNullable<z.ZodObject<{
|
|
42
32
|
startDate: z.ZodNullable<z.ZodString>;
|
|
43
33
|
endDate: z.ZodNullable<z.ZodString>;
|
|
44
34
|
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
45
|
-
weekDay: z.ZodEnum<
|
|
35
|
+
weekDay: z.ZodEnum<{
|
|
36
|
+
mon: "mon";
|
|
37
|
+
tue: "tue";
|
|
38
|
+
wed: "wed";
|
|
39
|
+
thu: "thu";
|
|
40
|
+
fri: "fri";
|
|
41
|
+
sat: "sat";
|
|
42
|
+
sun: "sun";
|
|
43
|
+
}>;
|
|
46
44
|
from: z.ZodNumber;
|
|
47
45
|
to: z.ZodNumber;
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
startDate: string | null;
|
|
60
|
-
endDate: string | null;
|
|
61
|
-
timeIntervals: {
|
|
62
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
63
|
-
from: number;
|
|
64
|
-
to: number;
|
|
65
|
-
}[];
|
|
66
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
67
|
-
}, {
|
|
68
|
-
startDate: string | null;
|
|
69
|
-
endDate: string | null;
|
|
70
|
-
timeIntervals: {
|
|
71
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
72
|
-
from: number;
|
|
73
|
-
to: number;
|
|
74
|
-
}[];
|
|
75
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
76
|
-
}>>;
|
|
77
|
-
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
displayName: string;
|
|
79
|
-
include: {
|
|
80
|
-
startDate: string | null;
|
|
81
|
-
endDate: string | null;
|
|
82
|
-
timeIntervals: {
|
|
83
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
84
|
-
from: number;
|
|
85
|
-
to: number;
|
|
86
|
-
}[];
|
|
87
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
88
|
-
} | null;
|
|
89
|
-
exclude: {
|
|
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
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
98
|
-
} | null;
|
|
99
|
-
flag: "never" | "always" | null;
|
|
100
|
-
}, {
|
|
101
|
-
displayName: string;
|
|
102
|
-
include: {
|
|
103
|
-
startDate: string | null;
|
|
104
|
-
endDate: string | null;
|
|
105
|
-
timeIntervals: {
|
|
106
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
107
|
-
from: number;
|
|
108
|
-
to: number;
|
|
109
|
-
}[];
|
|
110
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
111
|
-
} | null;
|
|
112
|
-
exclude: {
|
|
113
|
-
startDate: string | null;
|
|
114
|
-
endDate: string | null;
|
|
115
|
-
timeIntervals: {
|
|
116
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
117
|
-
from: number;
|
|
118
|
-
to: number;
|
|
119
|
-
}[];
|
|
120
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
121
|
-
} | null;
|
|
122
|
-
flag: "never" | "always" | null;
|
|
123
|
-
}>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
repeat: z.ZodNullable<z.ZodEnum<{
|
|
48
|
+
daily: "daily";
|
|
49
|
+
weekly: "weekly";
|
|
50
|
+
monthly: "monthly";
|
|
51
|
+
yearly: "yearly";
|
|
52
|
+
}>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
124
55
|
export type CreateScheduleRequest = z.infer<typeof sCreateScheduleRequest>;
|
|
125
56
|
export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
126
57
|
displayName: z.ZodOptional<z.ZodString>;
|
|
127
|
-
flag: z.ZodOptional<z.ZodNullable<z.ZodEnum<
|
|
58
|
+
flag: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
59
|
+
never: "never";
|
|
60
|
+
always: "always";
|
|
61
|
+
}>>>;
|
|
128
62
|
include: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
129
63
|
startDate: z.ZodNullable<z.ZodString>;
|
|
130
64
|
endDate: z.ZodNullable<z.ZodString>;
|
|
131
65
|
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
132
|
-
weekDay: z.ZodEnum<
|
|
66
|
+
weekDay: z.ZodEnum<{
|
|
67
|
+
mon: "mon";
|
|
68
|
+
tue: "tue";
|
|
69
|
+
wed: "wed";
|
|
70
|
+
thu: "thu";
|
|
71
|
+
fri: "fri";
|
|
72
|
+
sat: "sat";
|
|
73
|
+
sun: "sun";
|
|
74
|
+
}>;
|
|
133
75
|
from: z.ZodNumber;
|
|
134
76
|
to: z.ZodNumber;
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}>, "many">;
|
|
144
|
-
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
145
|
-
}, "strip", z.ZodTypeAny, {
|
|
146
|
-
startDate: string | null;
|
|
147
|
-
endDate: string | null;
|
|
148
|
-
timeIntervals: {
|
|
149
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
150
|
-
from: number;
|
|
151
|
-
to: number;
|
|
152
|
-
}[];
|
|
153
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
154
|
-
}, {
|
|
155
|
-
startDate: string | null;
|
|
156
|
-
endDate: string | null;
|
|
157
|
-
timeIntervals: {
|
|
158
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
159
|
-
from: number;
|
|
160
|
-
to: number;
|
|
161
|
-
}[];
|
|
162
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
163
|
-
}>>>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
repeat: z.ZodNullable<z.ZodEnum<{
|
|
79
|
+
daily: "daily";
|
|
80
|
+
weekly: "weekly";
|
|
81
|
+
monthly: "monthly";
|
|
82
|
+
yearly: "yearly";
|
|
83
|
+
}>>;
|
|
84
|
+
}, z.core.$strip>>>;
|
|
164
85
|
exclude: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
165
86
|
startDate: z.ZodNullable<z.ZodString>;
|
|
166
87
|
endDate: z.ZodNullable<z.ZodString>;
|
|
167
88
|
timeIntervals: z.ZodArray<z.ZodObject<{
|
|
168
|
-
weekDay: z.ZodEnum<
|
|
89
|
+
weekDay: z.ZodEnum<{
|
|
90
|
+
mon: "mon";
|
|
91
|
+
tue: "tue";
|
|
92
|
+
wed: "wed";
|
|
93
|
+
thu: "thu";
|
|
94
|
+
fri: "fri";
|
|
95
|
+
sat: "sat";
|
|
96
|
+
sun: "sun";
|
|
97
|
+
}>;
|
|
169
98
|
from: z.ZodNumber;
|
|
170
99
|
to: z.ZodNumber;
|
|
171
|
-
},
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
181
|
-
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
startDate: string | null;
|
|
183
|
-
endDate: string | null;
|
|
184
|
-
timeIntervals: {
|
|
185
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
186
|
-
from: number;
|
|
187
|
-
to: number;
|
|
188
|
-
}[];
|
|
189
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
190
|
-
}, {
|
|
191
|
-
startDate: string | null;
|
|
192
|
-
endDate: string | null;
|
|
193
|
-
timeIntervals: {
|
|
194
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
195
|
-
from: number;
|
|
196
|
-
to: number;
|
|
197
|
-
}[];
|
|
198
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
199
|
-
}>>>;
|
|
200
|
-
}, "strip", z.ZodTypeAny, {
|
|
201
|
-
displayName?: string | undefined;
|
|
202
|
-
include?: {
|
|
203
|
-
startDate: string | null;
|
|
204
|
-
endDate: string | null;
|
|
205
|
-
timeIntervals: {
|
|
206
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
207
|
-
from: number;
|
|
208
|
-
to: number;
|
|
209
|
-
}[];
|
|
210
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
211
|
-
} | null | undefined;
|
|
212
|
-
exclude?: {
|
|
213
|
-
startDate: string | null;
|
|
214
|
-
endDate: string | null;
|
|
215
|
-
timeIntervals: {
|
|
216
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
217
|
-
from: number;
|
|
218
|
-
to: number;
|
|
219
|
-
}[];
|
|
220
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
221
|
-
} | null | undefined;
|
|
222
|
-
flag?: "never" | "always" | null | undefined;
|
|
223
|
-
}, {
|
|
224
|
-
displayName?: string | undefined;
|
|
225
|
-
include?: {
|
|
226
|
-
startDate: string | null;
|
|
227
|
-
endDate: string | null;
|
|
228
|
-
timeIntervals: {
|
|
229
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
230
|
-
from: number;
|
|
231
|
-
to: number;
|
|
232
|
-
}[];
|
|
233
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
234
|
-
} | null | undefined;
|
|
235
|
-
exclude?: {
|
|
236
|
-
startDate: string | null;
|
|
237
|
-
endDate: string | null;
|
|
238
|
-
timeIntervals: {
|
|
239
|
-
weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
|
|
240
|
-
from: number;
|
|
241
|
-
to: number;
|
|
242
|
-
}[];
|
|
243
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
244
|
-
} | null | undefined;
|
|
245
|
-
flag?: "never" | "always" | null | undefined;
|
|
246
|
-
}>;
|
|
100
|
+
}, z.core.$strip>>;
|
|
101
|
+
repeat: z.ZodNullable<z.ZodEnum<{
|
|
102
|
+
daily: "daily";
|
|
103
|
+
weekly: "weekly";
|
|
104
|
+
monthly: "monthly";
|
|
105
|
+
yearly: "yearly";
|
|
106
|
+
}>>;
|
|
107
|
+
}, z.core.$strip>>>;
|
|
108
|
+
}, z.core.$strip>;
|
|
247
109
|
export type UpdateScheduleRequest = {
|
|
248
110
|
id: string;
|
|
249
111
|
} & z.infer<typeof sUpdateScheduleRequest>;
|
|
@@ -1,34 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const sAddSecurityLevelRequest: z.ZodObject<
|
|
3
|
-
|
|
4
|
-
order: z.ZodNumber;
|
|
2
|
+
export declare const sAddSecurityLevelRequest: z.ZodObject<{
|
|
3
|
+
default: z.ZodBoolean;
|
|
5
4
|
name: z.ZodString;
|
|
5
|
+
order: z.ZodNumber;
|
|
6
6
|
active: z.ZodBoolean;
|
|
7
7
|
color: z.ZodString;
|
|
8
8
|
checkFrequency: z.ZodNumber;
|
|
9
9
|
checkOnExit: z.ZodBoolean;
|
|
10
10
|
alwaysShowCheck: z.ZodBoolean;
|
|
11
|
-
|
|
12
|
-
}, "id">, "strip", z.ZodTypeAny, {
|
|
13
|
-
name: string;
|
|
14
|
-
order: number;
|
|
15
|
-
active: boolean;
|
|
16
|
-
color: string;
|
|
17
|
-
checkFrequency: number;
|
|
18
|
-
checkOnExit: boolean;
|
|
19
|
-
alwaysShowCheck: boolean;
|
|
20
|
-
default: boolean;
|
|
21
|
-
}, {
|
|
22
|
-
name: string;
|
|
23
|
-
order: number;
|
|
24
|
-
active: boolean;
|
|
25
|
-
color: string;
|
|
26
|
-
checkFrequency: number;
|
|
27
|
-
checkOnExit: boolean;
|
|
28
|
-
alwaysShowCheck: boolean;
|
|
29
|
-
default: boolean;
|
|
30
|
-
}>;
|
|
11
|
+
}, z.core.$strip>;
|
|
31
12
|
export declare const sUpdateSecurityLevelRequest: z.ZodObject<{
|
|
13
|
+
default: z.ZodOptional<z.ZodBoolean>;
|
|
32
14
|
name: z.ZodOptional<z.ZodString>;
|
|
33
15
|
order: z.ZodOptional<z.ZodNumber>;
|
|
34
16
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -36,25 +18,6 @@ export declare const sUpdateSecurityLevelRequest: z.ZodObject<{
|
|
|
36
18
|
checkFrequency: z.ZodOptional<z.ZodNumber>;
|
|
37
19
|
checkOnExit: z.ZodOptional<z.ZodBoolean>;
|
|
38
20
|
alwaysShowCheck: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
-
|
|
40
|
-
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
name?: string | undefined;
|
|
42
|
-
order?: number | undefined;
|
|
43
|
-
active?: boolean | undefined;
|
|
44
|
-
color?: string | undefined;
|
|
45
|
-
checkFrequency?: number | undefined;
|
|
46
|
-
checkOnExit?: boolean | undefined;
|
|
47
|
-
alwaysShowCheck?: boolean | undefined;
|
|
48
|
-
default?: boolean | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
name?: string | undefined;
|
|
51
|
-
order?: number | undefined;
|
|
52
|
-
active?: boolean | undefined;
|
|
53
|
-
color?: string | undefined;
|
|
54
|
-
checkFrequency?: number | undefined;
|
|
55
|
-
checkOnExit?: boolean | undefined;
|
|
56
|
-
alwaysShowCheck?: boolean | undefined;
|
|
57
|
-
default?: boolean | undefined;
|
|
58
|
-
}>;
|
|
21
|
+
}, z.core.$strip>;
|
|
59
22
|
export type AddSecurityLevelRequest = z.infer<typeof sAddSecurityLevelRequest>;
|
|
60
23
|
export type UpdateSecurityLevelRequest = z.infer<typeof sUpdateSecurityLevelRequest>;
|
|
@@ -2,30 +2,20 @@ import { TemplateDto } from '../../objects/template';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const sNewTemplateRequest: z.ZodObject<{
|
|
4
4
|
name: z.ZodString;
|
|
5
|
-
type: z.ZodEnum<
|
|
5
|
+
type: z.ZodEnum<{
|
|
6
|
+
id: "id";
|
|
7
|
+
report: "report";
|
|
8
|
+
}>;
|
|
6
9
|
templateHtmlId: z.ZodString;
|
|
7
|
-
},
|
|
8
|
-
type: "id" | "report";
|
|
9
|
-
name: string;
|
|
10
|
-
templateHtmlId: string;
|
|
11
|
-
}, {
|
|
12
|
-
type: "id" | "report";
|
|
13
|
-
name: string;
|
|
14
|
-
templateHtmlId: string;
|
|
15
|
-
}>;
|
|
10
|
+
}, z.core.$strip>;
|
|
16
11
|
export declare const sUpdateTemplateRequest: z.ZodObject<{
|
|
17
12
|
name: z.ZodOptional<z.ZodString>;
|
|
18
|
-
type: z.ZodOptional<z.ZodEnum<
|
|
13
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
id: "id";
|
|
15
|
+
report: "report";
|
|
16
|
+
}>>;
|
|
19
17
|
templateHtmlId: z.ZodOptional<z.ZodString>;
|
|
20
|
-
},
|
|
21
|
-
type?: "id" | "report" | undefined;
|
|
22
|
-
name?: string | undefined;
|
|
23
|
-
templateHtmlId?: string | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
type?: "id" | "report" | undefined;
|
|
26
|
-
name?: string | undefined;
|
|
27
|
-
templateHtmlId?: string | undefined;
|
|
28
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
29
19
|
export type NewTemplateRequest = z.infer<typeof sNewTemplateRequest>;
|
|
30
20
|
export type UpdateTemplateRequest = z.infer<typeof sUpdateTemplateRequest>;
|
|
31
21
|
export type TemplateRequestQueryParams = {
|