@awarevue/api-types 1.0.78 → 1.0.80
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/bookmarks.d.ts +115 -0
- package/dist/bookmarks.js +31 -0
- package/dist/device/server.d.ts +3 -1
- package/dist/device/server.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sBookmarkProps: z.ZodObject<{
|
|
3
|
+
timestamp: z.ZodNumber;
|
|
4
|
+
label: z.ZodString;
|
|
5
|
+
deviceId: z.ZodString;
|
|
6
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
label: string;
|
|
9
|
+
metadata: Record<string, unknown>;
|
|
10
|
+
timestamp: number;
|
|
11
|
+
deviceId: string;
|
|
12
|
+
}, {
|
|
13
|
+
label: string;
|
|
14
|
+
metadata: Record<string, unknown>;
|
|
15
|
+
timestamp: number;
|
|
16
|
+
deviceId: string;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const sCreateBookmarkRq: z.ZodObject<{
|
|
19
|
+
timestamp: z.ZodNumber;
|
|
20
|
+
label: z.ZodString;
|
|
21
|
+
deviceId: z.ZodString;
|
|
22
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
label: string;
|
|
25
|
+
metadata: Record<string, unknown>;
|
|
26
|
+
timestamp: number;
|
|
27
|
+
deviceId: string;
|
|
28
|
+
}, {
|
|
29
|
+
label: string;
|
|
30
|
+
metadata: Record<string, unknown>;
|
|
31
|
+
timestamp: number;
|
|
32
|
+
deviceId: string;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const sUpdateBookmarkRq: z.ZodIntersection<z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, {
|
|
39
|
+
id: string;
|
|
40
|
+
}>, z.ZodObject<{
|
|
41
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
label: z.ZodOptional<z.ZodString>;
|
|
43
|
+
deviceId: z.ZodOptional<z.ZodString>;
|
|
44
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
label?: string | undefined;
|
|
47
|
+
metadata?: Record<string, unknown> | undefined;
|
|
48
|
+
timestamp?: number | undefined;
|
|
49
|
+
deviceId?: string | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
label?: string | undefined;
|
|
52
|
+
metadata?: Record<string, unknown> | undefined;
|
|
53
|
+
timestamp?: number | undefined;
|
|
54
|
+
deviceId?: string | undefined;
|
|
55
|
+
}>>;
|
|
56
|
+
export declare const sDeleteBookmarkRq: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
id: string;
|
|
60
|
+
}, {
|
|
61
|
+
id: string;
|
|
62
|
+
}>;
|
|
63
|
+
export declare const sBookmarkDto: z.ZodIntersection<z.ZodObject<{
|
|
64
|
+
timestamp: z.ZodNumber;
|
|
65
|
+
label: z.ZodString;
|
|
66
|
+
deviceId: z.ZodString;
|
|
67
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
label: string;
|
|
70
|
+
metadata: Record<string, unknown>;
|
|
71
|
+
timestamp: number;
|
|
72
|
+
deviceId: string;
|
|
73
|
+
}, {
|
|
74
|
+
label: string;
|
|
75
|
+
metadata: Record<string, unknown>;
|
|
76
|
+
timestamp: number;
|
|
77
|
+
deviceId: string;
|
|
78
|
+
}>, z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
createdBy: z.ZodString;
|
|
81
|
+
createdOn: z.ZodString;
|
|
82
|
+
lastModifiedOn: z.ZodString;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
id: string;
|
|
85
|
+
createdOn: string;
|
|
86
|
+
lastModifiedOn: string;
|
|
87
|
+
createdBy: string;
|
|
88
|
+
}, {
|
|
89
|
+
id: string;
|
|
90
|
+
createdOn: string;
|
|
91
|
+
lastModifiedOn: string;
|
|
92
|
+
createdBy: string;
|
|
93
|
+
}>>;
|
|
94
|
+
export declare const sBookmarkSearchCriteria: z.ZodObject<{
|
|
95
|
+
deviceId: z.ZodString;
|
|
96
|
+
createdBy: z.ZodString;
|
|
97
|
+
timeFrom: z.ZodNumber;
|
|
98
|
+
timeTo: z.ZodNumber;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
deviceId: string;
|
|
101
|
+
createdBy: string;
|
|
102
|
+
timeFrom: number;
|
|
103
|
+
timeTo: number;
|
|
104
|
+
}, {
|
|
105
|
+
deviceId: string;
|
|
106
|
+
createdBy: string;
|
|
107
|
+
timeFrom: number;
|
|
108
|
+
timeTo: number;
|
|
109
|
+
}>;
|
|
110
|
+
export type BookmarkProps = z.infer<typeof sBookmarkProps>;
|
|
111
|
+
export type CreateBookmarkRq = z.infer<typeof sCreateBookmarkRq>;
|
|
112
|
+
export type UpdateBookmarkRq = z.infer<typeof sUpdateBookmarkRq>;
|
|
113
|
+
export type DeleteBookmarkRq = z.infer<typeof sDeleteBookmarkRq>;
|
|
114
|
+
export type BookmarkDto = z.infer<typeof sBookmarkDto>;
|
|
115
|
+
export type BookmarkSearchCriteria = z.infer<typeof sBookmarkSearchCriteria>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sBookmarkSearchCriteria = exports.sBookmarkDto = exports.sDeleteBookmarkRq = exports.sUpdateBookmarkRq = exports.sCreateBookmarkRq = exports.sBookmarkProps = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.sBookmarkProps = zod_1.z.object({
|
|
6
|
+
timestamp: zod_1.z.number().min(0),
|
|
7
|
+
label: zod_1.z.string().nonempty(),
|
|
8
|
+
deviceId: zod_1.z.string().nonempty(),
|
|
9
|
+
metadata: zod_1.z.record(zod_1.z.unknown()),
|
|
10
|
+
});
|
|
11
|
+
exports.sCreateBookmarkRq = exports.sBookmarkProps;
|
|
12
|
+
exports.sUpdateBookmarkRq = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
id: zod_1.z.string().nonempty(),
|
|
15
|
+
})
|
|
16
|
+
.and(exports.sBookmarkProps.partial());
|
|
17
|
+
exports.sDeleteBookmarkRq = zod_1.z.object({
|
|
18
|
+
id: zod_1.z.string().nonempty(),
|
|
19
|
+
});
|
|
20
|
+
exports.sBookmarkDto = exports.sBookmarkProps.and(zod_1.z.object({
|
|
21
|
+
id: zod_1.z.string().nonempty(),
|
|
22
|
+
createdBy: zod_1.z.string().nonempty(),
|
|
23
|
+
createdOn: zod_1.z.string().datetime(),
|
|
24
|
+
lastModifiedOn: zod_1.z.string().datetime(),
|
|
25
|
+
}));
|
|
26
|
+
exports.sBookmarkSearchCriteria = zod_1.z.object({
|
|
27
|
+
deviceId: zod_1.z.string(),
|
|
28
|
+
createdBy: zod_1.z.string(),
|
|
29
|
+
timeFrom: zod_1.z.number().min(0),
|
|
30
|
+
timeTo: zod_1.z.number().min(0),
|
|
31
|
+
});
|
package/dist/device/server.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { RoleDto, UserDto } from '../user';
|
|
|
10
10
|
import { ModuleConfig, ModuleConfigMetadata } from '../module-config';
|
|
11
11
|
import { AccessControlCapabilityReport } from '../agent-communication';
|
|
12
12
|
import { SecurityLevelDto } from '../security-level';
|
|
13
|
+
import { BookmarkDto } from '../bookmarks';
|
|
13
14
|
export declare const SERVER = "server";
|
|
14
15
|
export interface RunMacro {
|
|
15
16
|
command: 'server.run-macro';
|
|
@@ -33,7 +34,7 @@ export type ServerState = {
|
|
|
33
34
|
accessControlProviders: Record<string, AccessControlProviderState>;
|
|
34
35
|
citadelMode: boolean;
|
|
35
36
|
};
|
|
36
|
-
export declare const sObjectKind: z.ZodEnum<["accessRule", "schedule", "person", "device", "zone", "personPresence", "deviceGroup", "view", "layout", "automationRule", "macro", "role", "user", "securityLevel"]>;
|
|
37
|
+
export declare const sObjectKind: z.ZodEnum<["accessRule", "schedule", "person", "device", "zone", "personPresence", "deviceGroup", "view", "layout", "automationRule", "macro", "role", "user", "securityLevel", "bookmark"]>;
|
|
37
38
|
export type ObjectKind = z.infer<typeof sObjectKind>;
|
|
38
39
|
export type ObjectKinds = {
|
|
39
40
|
layout: LayoutDto;
|
|
@@ -50,6 +51,7 @@ export type ObjectKinds = {
|
|
|
50
51
|
role: RoleDto;
|
|
51
52
|
user: UserDto;
|
|
52
53
|
securityLevel: SecurityLevelDto;
|
|
54
|
+
bookmark: BookmarkDto;
|
|
53
55
|
};
|
|
54
56
|
export declare const objectKinds: readonly ObjectKind[];
|
|
55
57
|
export type ObjectCreated = {
|
package/dist/device/server.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.sObjectKind = zod_1.z.enum([
|
|
|
19
19
|
'role',
|
|
20
20
|
'user',
|
|
21
21
|
'securityLevel',
|
|
22
|
+
'bookmark',
|
|
22
23
|
]);
|
|
23
24
|
exports.objectKinds = exports.sObjectKind.options;
|
|
24
25
|
exports.objectLabels = {
|
|
@@ -36,4 +37,5 @@ exports.objectLabels = {
|
|
|
36
37
|
automationRule: 'Automation Rule',
|
|
37
38
|
macro: 'Macro',
|
|
38
39
|
securityLevel: 'Security Level',
|
|
40
|
+
bookmark: 'Bookmark',
|
|
39
41
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/package.json
CHANGED