@awarevue/api-types 1.0.46 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/device/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/dist/security-level.d.ts +47 -0
- package/dist/security-level.js +12 -0
- package/package.json +1 -1
package/dist/device/server.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { ViewDto } from '../view';
|
|
|
9
9
|
import { RoleDto, UserDto } from '../user';
|
|
10
10
|
import { ModuleConfig, ModuleConfigMetadata } from '../module-config';
|
|
11
11
|
import { AccessControlCapabilityReport } from 'src/agent-communication';
|
|
12
|
+
import { SecurityLevelDto } from 'src/security-level';
|
|
12
13
|
export declare const SERVER = "server";
|
|
13
14
|
export interface RunMacro {
|
|
14
15
|
command: 'server.run-macro';
|
|
@@ -31,7 +32,7 @@ export type ServerState = {
|
|
|
31
32
|
runnableProviders: string[];
|
|
32
33
|
accessControlProviders: Record<string, AccessControlProviderState>;
|
|
33
34
|
};
|
|
34
|
-
export declare const sObjectKind: z.ZodEnum<["accessRule", "schedule", "person", "device", "zone", "personPresence", "deviceGroup", "view", "layout", "automationRule", "macro", "role", "user"]>;
|
|
35
|
+
export declare const sObjectKind: z.ZodEnum<["accessRule", "schedule", "person", "device", "zone", "personPresence", "deviceGroup", "view", "layout", "automationRule", "macro", "role", "user", "securityLevel"]>;
|
|
35
36
|
export type ObjectKind = z.infer<typeof sObjectKind>;
|
|
36
37
|
export type ObjectKinds = {
|
|
37
38
|
layout: LayoutDto;
|
|
@@ -47,6 +48,7 @@ export type ObjectKinds = {
|
|
|
47
48
|
macro: MacroDto;
|
|
48
49
|
role: RoleDto;
|
|
49
50
|
user: UserDto;
|
|
51
|
+
securityLevel: SecurityLevelDto;
|
|
50
52
|
};
|
|
51
53
|
export declare const objectKinds: readonly ObjectKind[];
|
|
52
54
|
export type ObjectCreated = {
|
package/dist/device/server.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.sObjectKind = zod_1.z.enum([
|
|
|
18
18
|
'macro',
|
|
19
19
|
'role',
|
|
20
20
|
'user',
|
|
21
|
+
'securityLevel',
|
|
21
22
|
]);
|
|
22
23
|
exports.objectKinds = exports.sObjectKind.options;
|
|
23
24
|
exports.objectLabels = {
|
|
@@ -34,4 +35,5 @@ exports.objectLabels = {
|
|
|
34
35
|
personPresence: 'Person Presence',
|
|
35
36
|
automationRule: 'Automation Rule',
|
|
36
37
|
macro: 'Macro',
|
|
38
|
+
securityLevel: 'Security Level',
|
|
37
39
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/package.json
CHANGED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sSecurityLevelDto: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
active: z.ZodBoolean;
|
|
6
|
+
color: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
name: string;
|
|
9
|
+
id: number;
|
|
10
|
+
active: boolean;
|
|
11
|
+
color: string;
|
|
12
|
+
}, {
|
|
13
|
+
name: string;
|
|
14
|
+
id: number;
|
|
15
|
+
active: boolean;
|
|
16
|
+
color: string;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const sAddSecurityLevelRequest: z.ZodObject<Omit<{
|
|
19
|
+
id: z.ZodNumber;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
active: z.ZodBoolean;
|
|
22
|
+
color: z.ZodString;
|
|
23
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
24
|
+
name: string;
|
|
25
|
+
active: boolean;
|
|
26
|
+
color: string;
|
|
27
|
+
}, {
|
|
28
|
+
name: string;
|
|
29
|
+
active: boolean;
|
|
30
|
+
color: string;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const sUpdateSecurityLevelRequest: z.ZodObject<{
|
|
33
|
+
name: z.ZodOptional<z.ZodString>;
|
|
34
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
color: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
active?: boolean | undefined;
|
|
39
|
+
color?: string | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
active?: boolean | undefined;
|
|
43
|
+
color?: string | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
export type SecurityLevelDto = z.infer<typeof sSecurityLevelDto>;
|
|
46
|
+
export type AddSecurityLevelRequest = z.infer<typeof sAddSecurityLevelRequest>;
|
|
47
|
+
export type UpdateSecurityLevelRequest = z.infer<typeof sUpdateSecurityLevelRequest>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sUpdateSecurityLevelRequest = exports.sAddSecurityLevelRequest = exports.sSecurityLevelDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.sSecurityLevelDto = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.number(),
|
|
7
|
+
name: zod_1.z.string().max(64),
|
|
8
|
+
active: zod_1.z.boolean(),
|
|
9
|
+
color: zod_1.z.string().length(6),
|
|
10
|
+
});
|
|
11
|
+
exports.sAddSecurityLevelRequest = exports.sSecurityLevelDto.omit({ id: true });
|
|
12
|
+
exports.sUpdateSecurityLevelRequest = exports.sAddSecurityLevelRequest.partial();
|