@awarevue/api-types 2.0.52 → 2.0.54
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/agent-protocol/protocol.d.ts +853 -840
- package/dist/api/agent-protocol/protocol.js +14 -1
- package/dist/api/commands/all.d.ts +224 -224
- package/dist/api/commands/camera.d.ts +16 -16
- package/dist/api/commands/display.d.ts +48 -48
- package/dist/api/commands/nvr-exporter.d.ts +194 -194
- package/dist/api/commands/server.d.ts +202 -202
- package/dist/api/events/all.d.ts +30 -30
- package/dist/api/events/camera.d.ts +42 -42
- package/dist/api/events/door.d.ts +4 -4
- package/dist/api/events/intercom-terminal.d.ts +8 -8
- package/dist/api/events/io-board.d.ts +4 -4
- package/dist/api/queries/all.d.ts +225 -225
- package/dist/api/queries/camera.d.ts +8 -8
- package/dist/api/queries/nvr-analytics-server.d.ts +36 -36
- package/dist/api/queries/nvr-exporter.d.ts +18 -18
- package/dist/api/queries/nvr-recorder.d.ts +398 -398
- package/dist/api/rest/agreement.d.ts +5 -5
- package/dist/api/rest/app.d.ts +3 -0
- package/dist/api/rest/app.js +1 -0
- package/dist/api/rest/automation.d.ts +46 -46
- package/dist/api/rest/bookmarks.d.ts +12 -12
- package/dist/api/rest/custom-field.d.ts +5 -5
- package/dist/api/rest/device.d.ts +6 -6
- package/dist/api/rest/io-device.d.ts +14 -14
- package/dist/api/rest/layout.d.ts +16 -16
- package/dist/api/rest/macros.d.ts +13 -13
- package/dist/api/rest/media.d.ts +16 -16
- package/dist/api/rest/person.d.ts +12 -12
- package/dist/api/rest/query.d.ts +2 -2
- package/dist/api/rest/schedule.d.ts +24 -24
- package/dist/api/rest/security-level.d.ts +10 -10
- package/dist/api/rest/template.d.ts +4 -4
- package/dist/api/rest/token-conversion.d.ts +5 -5
- package/dist/api/rest/user.d.ts +17 -17
- package/dist/api/rest/view.d.ts +44 -44
- package/dist/api/ws/device-communication.d.ts +6 -6
- package/dist/api/ws/notifications.d.ts +4 -4
- package/dist/api/ws/progress.d.ts +15 -15
- package/dist/api/ws/web-rtc-signaling.d.ts +2 -2
- package/dist/objects/access-rule.d.ts +2 -2
- package/dist/objects/agent-metadata.d.ts +16 -16
- package/dist/objects/agreement.d.ts +2 -2
- package/dist/objects/api-key.d.ts +2 -2
- package/dist/objects/automation-rule.d.ts +34 -34
- package/dist/objects/bookmark.d.ts +8 -8
- package/dist/objects/credential.d.ts +2 -2
- package/dist/objects/custom-field.d.ts +2 -2
- package/dist/objects/device/any-device.d.ts +205 -205
- package/dist/objects/device/camera.d.ts +26 -26
- package/dist/objects/device/device-import.d.ts +277 -277
- package/dist/objects/device/door.d.ts +2 -2
- package/dist/objects/device/intercom-terminal.d.ts +2 -2
- package/dist/objects/layout.d.ts +16 -16
- package/dist/objects/macro.d.ts +14 -14
- package/dist/objects/notification.d.ts +4 -4
- package/dist/objects/person-presence.d.ts +12 -12
- package/dist/objects/person.d.ts +14 -14
- package/dist/objects/role.d.ts +2 -2
- package/dist/objects/schedule.d.ts +36 -36
- package/dist/objects/security-level.d.ts +6 -6
- package/dist/objects/template.d.ts +2 -2
- package/dist/objects/token-conversion.d.ts +2 -2
- package/dist/objects/user.d.ts +4 -4
- package/dist/objects/view.d.ts +58 -58
- package/dist/objects/zone.d.ts +2 -2
- package/dist/package.json +5 -1
- package/dist/primitives.d.ts +60 -60
- package/package.json +5 -1
|
@@ -13,18 +13,18 @@ export declare const sAddLayoutRequest: z.ZodObject<{
|
|
|
13
13
|
fov: z.ZodNumber;
|
|
14
14
|
far: z.ZodNumber;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
|
|
16
|
+
deviceId: string;
|
|
17
17
|
x: number;
|
|
18
18
|
y: number;
|
|
19
|
-
|
|
19
|
+
scale: number;
|
|
20
20
|
rotation: number;
|
|
21
21
|
fov: number;
|
|
22
22
|
far: number;
|
|
23
23
|
}, {
|
|
24
|
-
|
|
24
|
+
deviceId: string;
|
|
25
25
|
x: number;
|
|
26
26
|
y: number;
|
|
27
|
-
|
|
27
|
+
scale: number;
|
|
28
28
|
rotation: number;
|
|
29
29
|
fov: number;
|
|
30
30
|
far: number;
|
|
@@ -35,10 +35,10 @@ export declare const sAddLayoutRequest: z.ZodObject<{
|
|
|
35
35
|
map: boolean;
|
|
36
36
|
name: string;
|
|
37
37
|
devices: {
|
|
38
|
-
|
|
38
|
+
deviceId: string;
|
|
39
39
|
x: number;
|
|
40
40
|
y: number;
|
|
41
|
-
|
|
41
|
+
scale: number;
|
|
42
42
|
rotation: number;
|
|
43
43
|
fov: number;
|
|
44
44
|
far: number;
|
|
@@ -51,10 +51,10 @@ export declare const sAddLayoutRequest: z.ZodObject<{
|
|
|
51
51
|
map: boolean;
|
|
52
52
|
name: string;
|
|
53
53
|
devices: {
|
|
54
|
-
|
|
54
|
+
deviceId: string;
|
|
55
55
|
x: number;
|
|
56
56
|
y: number;
|
|
57
|
-
|
|
57
|
+
scale: number;
|
|
58
58
|
rotation: number;
|
|
59
59
|
fov: number;
|
|
60
60
|
far: number;
|
|
@@ -80,18 +80,18 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
|
|
|
80
80
|
fov: z.ZodNumber;
|
|
81
81
|
far: z.ZodNumber;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
|
|
83
|
+
deviceId: string;
|
|
84
84
|
x: number;
|
|
85
85
|
y: number;
|
|
86
|
-
|
|
86
|
+
scale: number;
|
|
87
87
|
rotation: number;
|
|
88
88
|
fov: number;
|
|
89
89
|
far: number;
|
|
90
90
|
}, {
|
|
91
|
-
|
|
91
|
+
deviceId: string;
|
|
92
92
|
x: number;
|
|
93
93
|
y: number;
|
|
94
|
-
|
|
94
|
+
scale: number;
|
|
95
95
|
rotation: number;
|
|
96
96
|
fov: number;
|
|
97
97
|
far: number;
|
|
@@ -104,10 +104,10 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
|
|
|
104
104
|
order?: number | undefined;
|
|
105
105
|
isDefault?: boolean | undefined;
|
|
106
106
|
devices?: {
|
|
107
|
-
|
|
107
|
+
deviceId: string;
|
|
108
108
|
x: number;
|
|
109
109
|
y: number;
|
|
110
|
-
|
|
110
|
+
scale: number;
|
|
111
111
|
rotation: number;
|
|
112
112
|
fov: number;
|
|
113
113
|
far: number;
|
|
@@ -121,10 +121,10 @@ export declare const sUpdateLayoutRequest: z.ZodObject<{
|
|
|
121
121
|
order?: number | undefined;
|
|
122
122
|
isDefault?: boolean | undefined;
|
|
123
123
|
devices?: {
|
|
124
|
-
|
|
124
|
+
deviceId: string;
|
|
125
125
|
x: number;
|
|
126
126
|
y: number;
|
|
127
|
-
|
|
127
|
+
scale: number;
|
|
128
128
|
rotation: number;
|
|
129
129
|
fov: number;
|
|
130
130
|
far: number;
|
|
@@ -15,45 +15,46 @@ export declare const sAddMacroRequest: z.ZodObject<Omit<{
|
|
|
15
15
|
command: z.ZodString;
|
|
16
16
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
id: string | null;
|
|
19
18
|
params: Record<string, unknown>;
|
|
19
|
+
id: string | null;
|
|
20
20
|
deviceId: string;
|
|
21
21
|
command: string;
|
|
22
22
|
stepId: string;
|
|
23
23
|
}, {
|
|
24
|
-
id: string | null;
|
|
25
24
|
params: Record<string, unknown>;
|
|
25
|
+
id: string | null;
|
|
26
26
|
deviceId: string;
|
|
27
27
|
command: string;
|
|
28
28
|
stepId: string;
|
|
29
29
|
}>, "many">;
|
|
30
30
|
}, "id" | "createdOn" | "lastModifiedOn" | "createdBy">, "strip", z.ZodTypeAny, {
|
|
31
31
|
code: string | null;
|
|
32
|
+
displayName: string;
|
|
32
33
|
module: string | null;
|
|
33
34
|
metadata: Record<string, unknown>;
|
|
34
35
|
items: {
|
|
35
|
-
id: string | null;
|
|
36
36
|
params: Record<string, unknown>;
|
|
37
|
+
id: string | null;
|
|
37
38
|
deviceId: string;
|
|
38
39
|
command: string;
|
|
39
40
|
stepId: string;
|
|
40
41
|
}[];
|
|
41
|
-
displayName: string;
|
|
42
42
|
}, {
|
|
43
43
|
code: string | null;
|
|
44
|
+
displayName: string;
|
|
44
45
|
module: string | null;
|
|
45
46
|
metadata: Record<string, unknown>;
|
|
46
47
|
items: {
|
|
47
|
-
id: string | null;
|
|
48
48
|
params: Record<string, unknown>;
|
|
49
|
+
id: string | null;
|
|
49
50
|
deviceId: string;
|
|
50
51
|
command: string;
|
|
51
52
|
stepId: string;
|
|
52
53
|
}[];
|
|
53
|
-
displayName: string;
|
|
54
54
|
}>;
|
|
55
55
|
export declare const sUpdateMacroRequest: z.ZodObject<{
|
|
56
56
|
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
57
58
|
module: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
59
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
59
60
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -63,43 +64,42 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
|
|
|
63
64
|
command: z.ZodString;
|
|
64
65
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
65
66
|
}, "strip", z.ZodTypeAny, {
|
|
66
|
-
id: string | null;
|
|
67
67
|
params: Record<string, unknown>;
|
|
68
|
+
id: string | null;
|
|
68
69
|
deviceId: string;
|
|
69
70
|
command: string;
|
|
70
71
|
stepId: string;
|
|
71
72
|
}, {
|
|
72
|
-
id: string | null;
|
|
73
73
|
params: Record<string, unknown>;
|
|
74
|
+
id: string | null;
|
|
74
75
|
deviceId: string;
|
|
75
76
|
command: string;
|
|
76
77
|
stepId: string;
|
|
77
78
|
}>, "many">>;
|
|
78
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
80
|
code?: string | null | undefined;
|
|
81
|
+
displayName?: string | undefined;
|
|
81
82
|
module?: string | null | undefined;
|
|
82
83
|
metadata?: Record<string, unknown> | undefined;
|
|
83
84
|
items?: {
|
|
84
|
-
id: string | null;
|
|
85
85
|
params: Record<string, unknown>;
|
|
86
|
+
id: string | null;
|
|
86
87
|
deviceId: string;
|
|
87
88
|
command: string;
|
|
88
89
|
stepId: string;
|
|
89
90
|
}[] | undefined;
|
|
90
|
-
displayName?: string | undefined;
|
|
91
91
|
}, {
|
|
92
92
|
code?: string | null | undefined;
|
|
93
|
+
displayName?: string | undefined;
|
|
93
94
|
module?: string | null | undefined;
|
|
94
95
|
metadata?: Record<string, unknown> | undefined;
|
|
95
96
|
items?: {
|
|
96
|
-
id: string | null;
|
|
97
97
|
params: Record<string, unknown>;
|
|
98
|
+
id: string | null;
|
|
98
99
|
deviceId: string;
|
|
99
100
|
command: string;
|
|
100
101
|
stepId: string;
|
|
101
102
|
}[] | undefined;
|
|
102
|
-
displayName?: string | undefined;
|
|
103
103
|
}>;
|
|
104
104
|
export type AddMacroRequest = z.infer<typeof sAddMacroRequest>;
|
|
105
105
|
export type UpdateMacroRequest = z.infer<typeof sUpdateMacroRequest>;
|
package/dist/api/rest/media.d.ts
CHANGED
|
@@ -31,13 +31,13 @@ export declare const sRecordingSequence: z.ZodObject<{
|
|
|
31
31
|
motion: z.ZodOptional<z.ZodNumber>;
|
|
32
32
|
objects: z.ZodOptional<z.ZodNumber>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
end: number;
|
|
35
34
|
start: number;
|
|
35
|
+
end: number;
|
|
36
36
|
motion?: number | undefined;
|
|
37
37
|
objects?: number | undefined;
|
|
38
38
|
}, {
|
|
39
|
-
end: number;
|
|
40
39
|
start: number;
|
|
40
|
+
end: number;
|
|
41
41
|
motion?: number | undefined;
|
|
42
42
|
objects?: number | undefined;
|
|
43
43
|
}>;
|
|
@@ -61,46 +61,46 @@ export declare const sGetRecordingsResponse: z.ZodObject<{
|
|
|
61
61
|
motion: z.ZodOptional<z.ZodNumber>;
|
|
62
62
|
objects: z.ZodOptional<z.ZodNumber>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
end: number;
|
|
65
64
|
start: number;
|
|
65
|
+
end: number;
|
|
66
66
|
motion?: number | undefined;
|
|
67
67
|
objects?: number | undefined;
|
|
68
68
|
}, {
|
|
69
|
-
end: number;
|
|
70
69
|
start: number;
|
|
70
|
+
end: number;
|
|
71
71
|
motion?: number | undefined;
|
|
72
72
|
objects?: number | undefined;
|
|
73
73
|
}>, "many">;
|
|
74
74
|
total: z.ZodNumber;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
total: number;
|
|
77
76
|
items: {
|
|
78
|
-
end: number;
|
|
79
77
|
start: number;
|
|
78
|
+
end: number;
|
|
80
79
|
motion?: number | undefined;
|
|
81
80
|
objects?: number | undefined;
|
|
82
81
|
}[];
|
|
83
|
-
}, {
|
|
84
82
|
total: number;
|
|
83
|
+
}, {
|
|
85
84
|
items: {
|
|
86
|
-
end: number;
|
|
87
85
|
start: number;
|
|
86
|
+
end: number;
|
|
88
87
|
motion?: number | undefined;
|
|
89
88
|
objects?: number | undefined;
|
|
90
89
|
}[];
|
|
90
|
+
total: number;
|
|
91
91
|
}>;
|
|
92
92
|
export declare const sGetPreviewImageRequest: z.ZodObject<{
|
|
93
93
|
deviceId: z.ZodString;
|
|
94
94
|
time: z.ZodNumber;
|
|
95
95
|
height: z.ZodNumber;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
time: number;
|
|
98
97
|
height: number;
|
|
99
98
|
deviceId: string;
|
|
100
|
-
}, {
|
|
101
99
|
time: number;
|
|
100
|
+
}, {
|
|
102
101
|
height: number;
|
|
103
102
|
deviceId: string;
|
|
103
|
+
time: number;
|
|
104
104
|
}>;
|
|
105
105
|
export declare const sGetScenePreviewClipRequest: z.ZodObject<{
|
|
106
106
|
deviceId: z.ZodString;
|
|
@@ -156,20 +156,20 @@ export declare const sMediaSearchQueryDto: z.ZodObject<{
|
|
|
156
156
|
timeTo: z.ZodOptional<z.ZodNumber>;
|
|
157
157
|
sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">, z.ZodLiteral<"relevance">]>>;
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
|
-
label?: string[] | undefined;
|
|
160
|
-
q?: string | undefined;
|
|
161
159
|
deviceId?: string[] | undefined;
|
|
160
|
+
label?: string[] | undefined;
|
|
162
161
|
limit?: number | undefined;
|
|
162
|
+
q?: string | undefined;
|
|
163
163
|
timeFrom?: number | undefined;
|
|
164
164
|
timeTo?: number | undefined;
|
|
165
165
|
similarTo?: string | undefined;
|
|
166
166
|
subLabel?: string[] | undefined;
|
|
167
167
|
sortBy?: "time_asc" | "time_desc" | "relevance" | undefined;
|
|
168
168
|
}, {
|
|
169
|
-
label?: string[] | undefined;
|
|
170
|
-
q?: string | undefined;
|
|
171
169
|
deviceId?: string[] | undefined;
|
|
170
|
+
label?: string[] | undefined;
|
|
172
171
|
limit?: number | undefined;
|
|
172
|
+
q?: string | undefined;
|
|
173
173
|
timeFrom?: number | undefined;
|
|
174
174
|
timeTo?: number | undefined;
|
|
175
175
|
similarTo?: string | undefined;
|
|
@@ -181,12 +181,12 @@ export declare const sGetLatestFrameRequest: z.ZodObject<{
|
|
|
181
181
|
width: z.ZodNumber;
|
|
182
182
|
height: z.ZodNumber;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
height: number;
|
|
185
184
|
width: number;
|
|
185
|
+
height: number;
|
|
186
186
|
deviceId: string;
|
|
187
187
|
}, {
|
|
188
|
-
height: number;
|
|
189
188
|
width: number;
|
|
189
|
+
height: number;
|
|
190
190
|
deviceId: string;
|
|
191
191
|
}>;
|
|
192
192
|
export type CreateExportRequest = z.infer<typeof sCreateExportRequest>;
|
|
@@ -13,12 +13,12 @@ export declare const sCreatePersonRequest: z.ZodObject<{
|
|
|
13
13
|
value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
14
14
|
note: z.ZodNullable<z.ZodString>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
type: "card" | "pin" | "fingerprint";
|
|
17
16
|
value: string | Record<string, unknown>;
|
|
17
|
+
type: "card" | "pin" | "fingerprint";
|
|
18
18
|
note: string | null;
|
|
19
19
|
}, {
|
|
20
|
-
type: "card" | "pin" | "fingerprint";
|
|
21
20
|
value: string | Record<string, unknown>;
|
|
21
|
+
type: "card" | "pin" | "fingerprint";
|
|
22
22
|
note: string | null;
|
|
23
23
|
}>, "many">;
|
|
24
24
|
accessRules: z.ZodArray<z.ZodString, "many">;
|
|
@@ -26,34 +26,34 @@ export declare const sCreatePersonRequest: z.ZodObject<{
|
|
|
26
26
|
type: z.ZodString;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
28
|
type: string;
|
|
29
|
-
position: string | null;
|
|
30
29
|
firstName: string;
|
|
31
30
|
lastName: string;
|
|
32
31
|
avatarId: string | null;
|
|
32
|
+
position: string | null;
|
|
33
33
|
accessSuspended: boolean;
|
|
34
34
|
staffMember: boolean;
|
|
35
35
|
validFrom: string | null;
|
|
36
36
|
validTo: string | null;
|
|
37
37
|
credentials: {
|
|
38
|
-
type: "card" | "pin" | "fingerprint";
|
|
39
38
|
value: string | Record<string, unknown>;
|
|
39
|
+
type: "card" | "pin" | "fingerprint";
|
|
40
40
|
note: string | null;
|
|
41
41
|
}[];
|
|
42
42
|
accessRules: string[];
|
|
43
43
|
customFields: Record<string, string> | null;
|
|
44
44
|
}, {
|
|
45
45
|
type: string;
|
|
46
|
-
position: string | null;
|
|
47
46
|
firstName: string;
|
|
48
47
|
lastName: string;
|
|
49
48
|
avatarId: string | null;
|
|
49
|
+
position: string | null;
|
|
50
50
|
accessSuspended: boolean;
|
|
51
51
|
staffMember: boolean;
|
|
52
52
|
validFrom: string | null;
|
|
53
53
|
validTo: string | null;
|
|
54
54
|
credentials: {
|
|
55
|
-
type: "card" | "pin" | "fingerprint";
|
|
56
55
|
value: string | Record<string, unknown>;
|
|
56
|
+
type: "card" | "pin" | "fingerprint";
|
|
57
57
|
note: string | null;
|
|
58
58
|
}[];
|
|
59
59
|
accessRules: string[];
|
|
@@ -73,12 +73,12 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
|
|
|
73
73
|
value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
74
74
|
note: z.ZodNullable<z.ZodString>;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
type: "card" | "pin" | "fingerprint";
|
|
77
76
|
value: string | Record<string, unknown>;
|
|
77
|
+
type: "card" | "pin" | "fingerprint";
|
|
78
78
|
note: string | null;
|
|
79
79
|
}, {
|
|
80
|
-
type: "card" | "pin" | "fingerprint";
|
|
81
80
|
value: string | Record<string, unknown>;
|
|
81
|
+
type: "card" | "pin" | "fingerprint";
|
|
82
82
|
note: string | null;
|
|
83
83
|
}>, "many">>;
|
|
84
84
|
accessRules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -87,17 +87,17 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
|
|
|
87
87
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
89
|
type?: string | undefined;
|
|
90
|
-
position?: string | null | undefined;
|
|
91
90
|
firstName?: string | undefined;
|
|
92
91
|
lastName?: string | undefined;
|
|
93
92
|
avatarId?: string | null | undefined;
|
|
93
|
+
position?: string | null | undefined;
|
|
94
94
|
accessSuspended?: boolean | undefined;
|
|
95
95
|
staffMember?: boolean | undefined;
|
|
96
96
|
validFrom?: string | null | undefined;
|
|
97
97
|
validTo?: string | null | undefined;
|
|
98
98
|
credentials?: {
|
|
99
|
-
type: "card" | "pin" | "fingerprint";
|
|
100
99
|
value: string | Record<string, unknown>;
|
|
100
|
+
type: "card" | "pin" | "fingerprint";
|
|
101
101
|
note: string | null;
|
|
102
102
|
}[] | undefined;
|
|
103
103
|
accessRules?: string[] | undefined;
|
|
@@ -105,17 +105,17 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
|
|
|
105
105
|
archived?: boolean | undefined;
|
|
106
106
|
}, {
|
|
107
107
|
type?: string | undefined;
|
|
108
|
-
position?: string | null | undefined;
|
|
109
108
|
firstName?: string | undefined;
|
|
110
109
|
lastName?: string | undefined;
|
|
111
110
|
avatarId?: string | null | undefined;
|
|
111
|
+
position?: string | null | undefined;
|
|
112
112
|
accessSuspended?: boolean | undefined;
|
|
113
113
|
staffMember?: boolean | undefined;
|
|
114
114
|
validFrom?: string | null | undefined;
|
|
115
115
|
validTo?: string | null | undefined;
|
|
116
116
|
credentials?: {
|
|
117
|
-
type: "card" | "pin" | "fingerprint";
|
|
118
117
|
value: string | Record<string, unknown>;
|
|
118
|
+
type: "card" | "pin" | "fingerprint";
|
|
119
119
|
note: string | null;
|
|
120
120
|
}[] | undefined;
|
|
121
121
|
accessRules?: string[] | undefined;
|
package/dist/api/rest/query.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export declare const sPaginatedQueryResponseOf: <T extends ZodTypeAny>(itemSchem
|
|
|
19
19
|
items: z.ZodArray<T, "many">;
|
|
20
20
|
total: z.ZodNumber;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
total: number;
|
|
23
22
|
items: T["_output"][];
|
|
24
|
-
}, {
|
|
25
23
|
total: number;
|
|
24
|
+
}, {
|
|
26
25
|
items: T["_input"][];
|
|
26
|
+
total: number;
|
|
27
27
|
}>;
|
|
@@ -20,7 +20,6 @@ export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
|
20
20
|
}>, "many">;
|
|
21
21
|
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
24
23
|
startDate: string | null;
|
|
25
24
|
endDate: string | null;
|
|
26
25
|
timeIntervals: {
|
|
@@ -28,8 +27,8 @@ export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
|
28
27
|
from: number;
|
|
29
28
|
to: number;
|
|
30
29
|
}[];
|
|
31
|
-
}, {
|
|
32
30
|
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
31
|
+
}, {
|
|
33
32
|
startDate: string | null;
|
|
34
33
|
endDate: string | null;
|
|
35
34
|
timeIntervals: {
|
|
@@ -37,6 +36,7 @@ export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
|
37
36
|
from: number;
|
|
38
37
|
to: number;
|
|
39
38
|
}[];
|
|
39
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
40
40
|
}>>;
|
|
41
41
|
exclude: z.ZodNullable<z.ZodObject<{
|
|
42
42
|
startDate: z.ZodNullable<z.ZodString>;
|
|
@@ -56,7 +56,6 @@ export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
|
56
56
|
}>, "many">;
|
|
57
57
|
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
60
59
|
startDate: string | null;
|
|
61
60
|
endDate: string | null;
|
|
62
61
|
timeIntervals: {
|
|
@@ -64,8 +63,8 @@ export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
|
64
63
|
from: number;
|
|
65
64
|
to: number;
|
|
66
65
|
}[];
|
|
67
|
-
}, {
|
|
68
66
|
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
67
|
+
}, {
|
|
69
68
|
startDate: string | null;
|
|
70
69
|
endDate: string | null;
|
|
71
70
|
timeIntervals: {
|
|
@@ -73,10 +72,11 @@ export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
|
73
72
|
from: number;
|
|
74
73
|
to: number;
|
|
75
74
|
}[];
|
|
75
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
76
76
|
}>>;
|
|
77
77
|
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
displayName: string;
|
|
78
79
|
include: {
|
|
79
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
80
80
|
startDate: string | null;
|
|
81
81
|
endDate: string | null;
|
|
82
82
|
timeIntervals: {
|
|
@@ -84,9 +84,9 @@ export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
|
84
84
|
from: number;
|
|
85
85
|
to: number;
|
|
86
86
|
}[];
|
|
87
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
87
88
|
} | null;
|
|
88
89
|
exclude: {
|
|
89
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
90
90
|
startDate: string | null;
|
|
91
91
|
endDate: string | null;
|
|
92
92
|
timeIntervals: {
|
|
@@ -94,12 +94,12 @@ export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
|
94
94
|
from: number;
|
|
95
95
|
to: number;
|
|
96
96
|
}[];
|
|
97
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
97
98
|
} | null;
|
|
98
|
-
|
|
99
|
-
flag: "always" | "never" | null;
|
|
99
|
+
flag: "never" | "always" | null;
|
|
100
100
|
}, {
|
|
101
|
+
displayName: string;
|
|
101
102
|
include: {
|
|
102
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
103
103
|
startDate: string | null;
|
|
104
104
|
endDate: string | null;
|
|
105
105
|
timeIntervals: {
|
|
@@ -107,9 +107,9 @@ export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
|
107
107
|
from: number;
|
|
108
108
|
to: number;
|
|
109
109
|
}[];
|
|
110
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
110
111
|
} | null;
|
|
111
112
|
exclude: {
|
|
112
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
113
113
|
startDate: string | null;
|
|
114
114
|
endDate: string | null;
|
|
115
115
|
timeIntervals: {
|
|
@@ -117,9 +117,9 @@ export declare const sCreateScheduleRequest: z.ZodObject<{
|
|
|
117
117
|
from: number;
|
|
118
118
|
to: number;
|
|
119
119
|
}[];
|
|
120
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
120
121
|
} | null;
|
|
121
|
-
|
|
122
|
-
flag: "always" | "never" | null;
|
|
122
|
+
flag: "never" | "always" | null;
|
|
123
123
|
}>;
|
|
124
124
|
export type CreateScheduleRequest = z.infer<typeof sCreateScheduleRequest>;
|
|
125
125
|
export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
@@ -143,7 +143,6 @@ export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
|
143
143
|
}>, "many">;
|
|
144
144
|
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
147
146
|
startDate: string | null;
|
|
148
147
|
endDate: string | null;
|
|
149
148
|
timeIntervals: {
|
|
@@ -151,8 +150,8 @@ export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
|
151
150
|
from: number;
|
|
152
151
|
to: number;
|
|
153
152
|
}[];
|
|
154
|
-
}, {
|
|
155
153
|
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
154
|
+
}, {
|
|
156
155
|
startDate: string | null;
|
|
157
156
|
endDate: string | null;
|
|
158
157
|
timeIntervals: {
|
|
@@ -160,6 +159,7 @@ export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
|
160
159
|
from: number;
|
|
161
160
|
to: number;
|
|
162
161
|
}[];
|
|
162
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
163
163
|
}>>>;
|
|
164
164
|
exclude: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
165
165
|
startDate: z.ZodNullable<z.ZodString>;
|
|
@@ -179,7 +179,6 @@ export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
|
179
179
|
}>, "many">;
|
|
180
180
|
repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
183
182
|
startDate: string | null;
|
|
184
183
|
endDate: string | null;
|
|
185
184
|
timeIntervals: {
|
|
@@ -187,8 +186,8 @@ export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
|
187
186
|
from: number;
|
|
188
187
|
to: number;
|
|
189
188
|
}[];
|
|
190
|
-
}, {
|
|
191
189
|
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
190
|
+
}, {
|
|
192
191
|
startDate: string | null;
|
|
193
192
|
endDate: string | null;
|
|
194
193
|
timeIntervals: {
|
|
@@ -196,10 +195,11 @@ export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
|
196
195
|
from: number;
|
|
197
196
|
to: number;
|
|
198
197
|
}[];
|
|
198
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
199
199
|
}>>>;
|
|
200
200
|
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
displayName?: string | undefined;
|
|
201
202
|
include?: {
|
|
202
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
203
203
|
startDate: string | null;
|
|
204
204
|
endDate: string | null;
|
|
205
205
|
timeIntervals: {
|
|
@@ -207,9 +207,9 @@ export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
|
207
207
|
from: number;
|
|
208
208
|
to: number;
|
|
209
209
|
}[];
|
|
210
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
210
211
|
} | null | undefined;
|
|
211
212
|
exclude?: {
|
|
212
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
213
213
|
startDate: string | null;
|
|
214
214
|
endDate: string | null;
|
|
215
215
|
timeIntervals: {
|
|
@@ -217,12 +217,12 @@ export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
|
217
217
|
from: number;
|
|
218
218
|
to: number;
|
|
219
219
|
}[];
|
|
220
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
220
221
|
} | null | undefined;
|
|
221
|
-
|
|
222
|
-
flag?: "always" | "never" | null | undefined;
|
|
222
|
+
flag?: "never" | "always" | null | undefined;
|
|
223
223
|
}, {
|
|
224
|
+
displayName?: string | undefined;
|
|
224
225
|
include?: {
|
|
225
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
226
226
|
startDate: string | null;
|
|
227
227
|
endDate: string | null;
|
|
228
228
|
timeIntervals: {
|
|
@@ -230,9 +230,9 @@ export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
|
230
230
|
from: number;
|
|
231
231
|
to: number;
|
|
232
232
|
}[];
|
|
233
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
233
234
|
} | null | undefined;
|
|
234
235
|
exclude?: {
|
|
235
|
-
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
236
236
|
startDate: string | null;
|
|
237
237
|
endDate: string | null;
|
|
238
238
|
timeIntervals: {
|
|
@@ -240,9 +240,9 @@ export declare const sUpdateScheduleRequest: z.ZodObject<{
|
|
|
240
240
|
from: number;
|
|
241
241
|
to: number;
|
|
242
242
|
}[];
|
|
243
|
+
repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
|
|
243
244
|
} | null | undefined;
|
|
244
|
-
|
|
245
|
-
flag?: "always" | "never" | null | undefined;
|
|
245
|
+
flag?: "never" | "always" | null | undefined;
|
|
246
246
|
}>;
|
|
247
247
|
export type UpdateScheduleRequest = {
|
|
248
248
|
id: string;
|