@awarevue/api-types 2.0.124 → 2.0.125
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 +4 -4
- package/dist/api/rest/api-keys.d.ts +2 -2
- package/dist/api/rest/api-keys.js +2 -2
- package/dist/api/rest/macros.d.ts +2 -2
- package/dist/api/rest/person-type.d.ts +2 -2
- package/dist/api/rest/template.d.ts +2 -2
- package/dist/api/rest/template.js +2 -2
- package/dist/api/ws/trackables.d.ts +8 -8
- package/dist/api/ws/trackables.js +4 -4
- package/dist/objects/agreement.d.ts +1 -1
- package/dist/objects/agreement.js +1 -1
- package/dist/objects/api-key.d.ts +1 -1
- package/dist/objects/api-key.js +1 -1
- package/dist/objects/custom-field.d.ts +1 -1
- package/dist/objects/custom-field.js +1 -1
- package/dist/objects/macro.d.ts +2 -2
- package/dist/objects/macro.js +1 -1
- package/dist/objects/person-type.d.ts +1 -1
- package/dist/objects/person-type.js +1 -1
- package/dist/objects/role.d.ts +1 -1
- package/dist/objects/role.js +1 -1
- package/dist/objects/security-level.d.ts +1 -1
- package/dist/objects/security-level.js +1 -1
- package/dist/objects/template.d.ts +2 -2
- package/dist/objects/template.js +2 -2
- package/dist/objects/token-conversion.d.ts +1 -1
- package/dist/objects/token-conversion.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -522,11 +522,11 @@ export declare const sPushTrackableUpdate: z.ZodObject<{
|
|
|
522
522
|
updates: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
523
523
|
timestamp: z.ZodNumber;
|
|
524
524
|
objectId: z.ZodString;
|
|
525
|
-
objectName: z.ZodString
|
|
526
|
-
objectKind: z.
|
|
525
|
+
objectName: z.ZodOptional<z.ZodString>;
|
|
526
|
+
objectKind: z.ZodOptional<z.ZodString>;
|
|
527
527
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
528
|
-
longitude: z.ZodNumber
|
|
529
|
-
latitude: z.ZodNumber
|
|
528
|
+
longitude: z.ZodOptional<z.ZodNumber>;
|
|
529
|
+
latitude: z.ZodOptional<z.ZodNumber>;
|
|
530
530
|
altitude: z.ZodOptional<z.ZodNumber>;
|
|
531
531
|
speed: z.ZodOptional<z.ZodObject<{
|
|
532
532
|
value: z.ZodNumber;
|
|
@@ -3,11 +3,11 @@ export declare const sCreateApiKeyRequest: z.ZodObject<{
|
|
|
3
3
|
displayName: z.ZodString;
|
|
4
4
|
}, z.core.$strip>;
|
|
5
5
|
export declare const sCreateApiKeyResponse: z.ZodObject<{
|
|
6
|
-
id: z.
|
|
6
|
+
id: z.ZodUUID;
|
|
7
7
|
apiKey: z.ZodString;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export declare const sRevokeApiKeyRequest: z.ZodObject<{
|
|
10
|
-
id: z.
|
|
10
|
+
id: z.ZodUUID;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
export type CreateApiKeyRequest = z.infer<typeof sCreateApiKeyRequest>;
|
|
13
13
|
export type CreateApiKeyResponse = z.infer<typeof sCreateApiKeyResponse>;
|
|
@@ -6,9 +6,9 @@ exports.sCreateApiKeyRequest = zod_1.z.object({
|
|
|
6
6
|
displayName: zod_1.z.string().min(1).max(128),
|
|
7
7
|
});
|
|
8
8
|
exports.sCreateApiKeyResponse = zod_1.z.object({
|
|
9
|
-
id: zod_1.z.
|
|
9
|
+
id: zod_1.z.uuid(),
|
|
10
10
|
apiKey: zod_1.z.string().min(32).max(1024),
|
|
11
11
|
});
|
|
12
12
|
exports.sRevokeApiKeyRequest = zod_1.z.object({
|
|
13
|
-
id: zod_1.z.
|
|
13
|
+
id: zod_1.z.uuid(),
|
|
14
14
|
});
|
|
@@ -7,7 +7,7 @@ export declare const sAddMacroRequest: z.ZodObject<{
|
|
|
7
7
|
items: z.ZodArray<z.ZodObject<{
|
|
8
8
|
id: z.ZodNullable<z.ZodString>;
|
|
9
9
|
stepId: z.ZodString;
|
|
10
|
-
deviceId: z.
|
|
10
|
+
deviceId: z.ZodUUID;
|
|
11
11
|
command: z.ZodString;
|
|
12
12
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
13
|
}, z.core.$strip>>;
|
|
@@ -20,7 +20,7 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
|
|
|
20
20
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
21
|
id: z.ZodNullable<z.ZodString>;
|
|
22
22
|
stepId: z.ZodString;
|
|
23
|
-
deviceId: z.
|
|
23
|
+
deviceId: z.ZodUUID;
|
|
24
24
|
command: z.ZodString;
|
|
25
25
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
26
26
|
}, z.core.$strip>>>;
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const sCreatePersonTypeRequest: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
displayName: z.ZodString;
|
|
5
|
-
agreements: z.ZodArray<z.
|
|
5
|
+
agreements: z.ZodArray<z.ZodUUID>;
|
|
6
6
|
accessControlUser: z.ZodBoolean;
|
|
7
7
|
systemUser: z.ZodBoolean;
|
|
8
8
|
securityCheck: z.ZodBoolean;
|
|
@@ -11,7 +11,7 @@ export declare const sCreatePersonTypeRequest: z.ZodObject<{
|
|
|
11
11
|
export type CreatePersonTypeRequest = z.infer<typeof sCreatePersonTypeRequest>;
|
|
12
12
|
export declare const sUpdatePersonTypeRequest: z.ZodObject<{
|
|
13
13
|
displayName: z.ZodOptional<z.ZodString>;
|
|
14
|
-
agreements: z.ZodOptional<z.ZodArray<z.
|
|
14
|
+
agreements: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
15
15
|
accessControlUser: z.ZodOptional<z.ZodBoolean>;
|
|
16
16
|
systemUser: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
securityCheck: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6,7 +6,7 @@ export declare const sNewTemplateRequest: z.ZodObject<{
|
|
|
6
6
|
id: "id";
|
|
7
7
|
report: "report";
|
|
8
8
|
}>;
|
|
9
|
-
templateHtmlId: z.
|
|
9
|
+
templateHtmlId: z.ZodUUID;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
export declare const sUpdateTemplateRequest: z.ZodObject<{
|
|
12
12
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -14,7 +14,7 @@ export declare const sUpdateTemplateRequest: z.ZodObject<{
|
|
|
14
14
|
id: "id";
|
|
15
15
|
report: "report";
|
|
16
16
|
}>>;
|
|
17
|
-
templateHtmlId: z.ZodOptional<z.
|
|
17
|
+
templateHtmlId: z.ZodOptional<z.ZodUUID>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
export type NewTemplateRequest = z.infer<typeof sNewTemplateRequest>;
|
|
20
20
|
export type UpdateTemplateRequest = z.infer<typeof sUpdateTemplateRequest>;
|
|
@@ -6,10 +6,10 @@ const zod_1 = require("zod");
|
|
|
6
6
|
exports.sNewTemplateRequest = zod_1.z.object({
|
|
7
7
|
name: zod_1.z.string().min(1).max(64),
|
|
8
8
|
type: template_1.sTemplateTypeEnum,
|
|
9
|
-
templateHtmlId: zod_1.z.
|
|
9
|
+
templateHtmlId: zod_1.z.uuid(),
|
|
10
10
|
});
|
|
11
11
|
exports.sUpdateTemplateRequest = zod_1.z.object({
|
|
12
12
|
name: zod_1.z.string().min(1).max(64).optional(),
|
|
13
13
|
type: template_1.sTemplateTypeEnum.optional(),
|
|
14
|
-
templateHtmlId: zod_1.z.
|
|
14
|
+
templateHtmlId: zod_1.z.uuid().optional(),
|
|
15
15
|
});
|
|
@@ -3,11 +3,11 @@ import { WebSocketMessage } from './web-socket';
|
|
|
3
3
|
export declare const sTrackableUpdate: z.ZodObject<{
|
|
4
4
|
timestamp: z.ZodNumber;
|
|
5
5
|
objectId: z.ZodString;
|
|
6
|
-
objectName: z.ZodString
|
|
7
|
-
objectKind: z.
|
|
6
|
+
objectName: z.ZodOptional<z.ZodString>;
|
|
7
|
+
objectKind: z.ZodOptional<z.ZodString>;
|
|
8
8
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
longitude: z.ZodNumber
|
|
10
|
-
latitude: z.ZodNumber
|
|
9
|
+
longitude: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
latitude: z.ZodOptional<z.ZodNumber>;
|
|
11
11
|
altitude: z.ZodOptional<z.ZodNumber>;
|
|
12
12
|
speed: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
value: z.ZodNumber;
|
|
@@ -25,11 +25,11 @@ export declare const sTrackableUpdatePayload: z.ZodObject<{
|
|
|
25
25
|
updates: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
26
26
|
timestamp: z.ZodNumber;
|
|
27
27
|
objectId: z.ZodString;
|
|
28
|
-
objectName: z.ZodString
|
|
29
|
-
objectKind: z.
|
|
28
|
+
objectName: z.ZodOptional<z.ZodString>;
|
|
29
|
+
objectKind: z.ZodOptional<z.ZodString>;
|
|
30
30
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
31
|
-
longitude: z.ZodNumber
|
|
32
|
-
latitude: z.ZodNumber
|
|
31
|
+
longitude: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
latitude: z.ZodOptional<z.ZodNumber>;
|
|
33
33
|
altitude: z.ZodOptional<z.ZodNumber>;
|
|
34
34
|
speed: z.ZodOptional<z.ZodObject<{
|
|
35
35
|
value: z.ZodNumber;
|
|
@@ -6,11 +6,11 @@ const primitives_1 = require("../../primitives");
|
|
|
6
6
|
exports.sTrackableUpdate = zod_1.z.object({
|
|
7
7
|
timestamp: zod_1.z.number(),
|
|
8
8
|
objectId: zod_1.z.string().nonempty(),
|
|
9
|
-
objectName: zod_1.z.string().
|
|
10
|
-
objectKind: primitives_1.sWorldObjectId.
|
|
9
|
+
objectName: zod_1.z.string().optional(),
|
|
10
|
+
objectKind: primitives_1.sWorldObjectId.optional(),
|
|
11
11
|
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
12
|
-
longitude: zod_1.z.number().min(-180).max(180),
|
|
13
|
-
latitude: zod_1.z.number().min(-90).max(90),
|
|
12
|
+
longitude: zod_1.z.number().min(-180).max(180).optional(),
|
|
13
|
+
latitude: zod_1.z.number().min(-90).max(90).optional(),
|
|
14
14
|
altitude: zod_1.z.number().optional(),
|
|
15
15
|
speed: primitives_1.sSpeed.optional(),
|
|
16
16
|
heading: zod_1.z.number().optional(),
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.sAgreementDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.sAgreementDto = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.
|
|
6
|
+
id: zod_1.z.uuid(),
|
|
7
7
|
displayName: zod_1.z.string().min(1).max(64),
|
|
8
8
|
content: zod_1.z.string().min(1),
|
|
9
9
|
createdOn: zod_1.z.string().date(),
|
package/dist/objects/api-key.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.sApiKeyDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.sApiKeyDto = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.
|
|
6
|
+
id: zod_1.z.uuid(),
|
|
7
7
|
displayName: zod_1.z.string().min(1).max(128),
|
|
8
8
|
prefix: zod_1.z.string().min(8).max(16),
|
|
9
9
|
createdOn: zod_1.z.string().datetime(),
|
|
@@ -10,7 +10,7 @@ exports.CustomFieldTypeEnum = zod_1.z.enum([
|
|
|
10
10
|
]);
|
|
11
11
|
exports.CustomFieldExtendsTypeEnum = zod_1.z.enum(['person']);
|
|
12
12
|
exports.sCustomFieldDto = zod_1.z.object({
|
|
13
|
-
id: zod_1.z.
|
|
13
|
+
id: zod_1.z.uuid(),
|
|
14
14
|
name: zod_1.z.string().min(1).max(64),
|
|
15
15
|
type: exports.CustomFieldTypeEnum,
|
|
16
16
|
extendsType: exports.CustomFieldExtendsTypeEnum,
|
package/dist/objects/macro.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const sMacroItemDto: z.ZodObject<{
|
|
3
3
|
id: z.ZodNullable<z.ZodString>;
|
|
4
4
|
stepId: z.ZodString;
|
|
5
|
-
deviceId: z.
|
|
5
|
+
deviceId: z.ZodUUID;
|
|
6
6
|
command: z.ZodString;
|
|
7
7
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
8
|
}, z.core.$strip>;
|
|
@@ -18,7 +18,7 @@ export declare const sMacroDto: z.ZodObject<{
|
|
|
18
18
|
items: z.ZodArray<z.ZodObject<{
|
|
19
19
|
id: z.ZodNullable<z.ZodString>;
|
|
20
20
|
stepId: z.ZodString;
|
|
21
|
-
deviceId: z.
|
|
21
|
+
deviceId: z.ZodUUID;
|
|
22
22
|
command: z.ZodString;
|
|
23
23
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
24
24
|
}, z.core.$strip>>;
|
package/dist/objects/macro.js
CHANGED
|
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
exports.sMacroItemDto = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.string().nullable(),
|
|
7
7
|
stepId: zod_1.z.string().nonempty(),
|
|
8
|
-
deviceId: zod_1.z.
|
|
8
|
+
deviceId: zod_1.z.uuid().nonempty(),
|
|
9
9
|
command: zod_1.z.string().nonempty(),
|
|
10
10
|
params: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
11
11
|
});
|
|
@@ -4,7 +4,7 @@ export declare const sPersonTypeDto: z.ZodObject<{
|
|
|
4
4
|
displayName: z.ZodString;
|
|
5
5
|
accessControlUser: z.ZodBoolean;
|
|
6
6
|
systemUser: z.ZodBoolean;
|
|
7
|
-
agreements: z.ZodArray<z.
|
|
7
|
+
agreements: z.ZodArray<z.ZodUUID>;
|
|
8
8
|
securityCheck: z.ZodBoolean;
|
|
9
9
|
inOnCreation: z.ZodBoolean;
|
|
10
10
|
createdOn: z.ZodString;
|
|
@@ -14,7 +14,7 @@ exports.sPersonTypeDto = zod_1.default.object({
|
|
|
14
14
|
displayName: zod_1.default.string().min(1).max(64),
|
|
15
15
|
accessControlUser: zod_1.default.boolean(),
|
|
16
16
|
systemUser: zod_1.default.boolean(),
|
|
17
|
-
agreements: zod_1.default.array(zod_1.default.
|
|
17
|
+
agreements: zod_1.default.array(zod_1.default.uuid()),
|
|
18
18
|
securityCheck: zod_1.default.boolean(),
|
|
19
19
|
inOnCreation: zod_1.default.boolean(),
|
|
20
20
|
createdOn: zod_1.default.string().date(),
|
package/dist/objects/role.d.ts
CHANGED
package/dist/objects/role.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.sRoleDto = void 0;
|
|
|
4
4
|
const permissions_1 = require("../permissions");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.sRoleDto = zod_1.z.object({
|
|
7
|
-
id: zod_1.z.
|
|
7
|
+
id: zod_1.z.uuid(),
|
|
8
8
|
displayName: zod_1.z.string().nonempty().max(100),
|
|
9
9
|
systemName: zod_1.z
|
|
10
10
|
.string()
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.sSecurityLevelDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.sSecurityLevelDto = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.
|
|
6
|
+
id: zod_1.z.uuid(),
|
|
7
7
|
order: zod_1.z.number().int().min(0),
|
|
8
8
|
name: zod_1.z.string().max(64),
|
|
9
9
|
active: zod_1.z.boolean(),
|
|
@@ -5,12 +5,12 @@ export declare const sTemplateTypeEnum: z.ZodEnum<{
|
|
|
5
5
|
}>;
|
|
6
6
|
export type TemplateTypeEnum = z.infer<typeof sTemplateTypeEnum>;
|
|
7
7
|
export declare const sTemplateDto: z.ZodObject<{
|
|
8
|
-
id: z.
|
|
8
|
+
id: z.ZodUUID;
|
|
9
9
|
name: z.ZodString;
|
|
10
10
|
type: z.ZodEnum<{
|
|
11
11
|
id: "id";
|
|
12
12
|
report: "report";
|
|
13
13
|
}>;
|
|
14
|
-
templateHtmlId: z.
|
|
14
|
+
templateHtmlId: z.ZodUUID;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
export type TemplateDto = z.infer<typeof sTemplateDto>;
|
package/dist/objects/template.js
CHANGED
|
@@ -4,8 +4,8 @@ exports.sTemplateDto = exports.sTemplateTypeEnum = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.sTemplateTypeEnum = zod_1.z.enum(['id', 'report']);
|
|
6
6
|
exports.sTemplateDto = zod_1.z.object({
|
|
7
|
-
id: zod_1.z.
|
|
7
|
+
id: zod_1.z.uuid(),
|
|
8
8
|
name: zod_1.z.string(),
|
|
9
9
|
type: exports.sTemplateTypeEnum,
|
|
10
|
-
templateHtmlId: zod_1.z.
|
|
10
|
+
templateHtmlId: zod_1.z.uuid(),
|
|
11
11
|
});
|
|
@@ -3,7 +3,7 @@ export declare const sConversionTypeEnum: z.ZodEnum<{
|
|
|
3
3
|
"hex-to-decimal": "hex-to-decimal";
|
|
4
4
|
}>;
|
|
5
5
|
export declare const sTokenConversionDto: z.ZodObject<{
|
|
6
|
-
id: z.
|
|
6
|
+
id: z.ZodUUID;
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
type: z.ZodEnum<{
|
|
9
9
|
"hex-to-decimal": "hex-to-decimal";
|
|
@@ -4,7 +4,7 @@ exports.sTokenConversionDto = exports.sConversionTypeEnum = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.sConversionTypeEnum = zod_1.z.enum(['hex-to-decimal']);
|
|
6
6
|
exports.sTokenConversionDto = zod_1.z.object({
|
|
7
|
-
id: zod_1.z.
|
|
7
|
+
id: zod_1.z.uuid(),
|
|
8
8
|
name: zod_1.z.string().min(1).max(64),
|
|
9
9
|
type: exports.sConversionTypeEnum,
|
|
10
10
|
jsonData: zod_1.z.object({}).passthrough(), // Allows any JSON object structure
|
package/dist/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.125",
|
|
8
8
|
"description": "Common types between backend, agent(s) and frontend(s)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.125",
|
|
8
8
|
"description": "Common types between backend, agent(s) and frontend(s)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|