@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.
@@ -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.ZodNullable<z.ZodString>;
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.ZodString;
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.ZodString;
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.string().uuid(),
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.string().uuid(),
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.ZodString;
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.ZodString;
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.ZodString>;
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.ZodString>>;
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.ZodString;
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.ZodString>;
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.string().uuid(),
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.string().uuid().optional(),
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.ZodNullable<z.ZodString>;
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.ZodNullable<z.ZodString>;
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().nonempty(),
10
- objectKind: primitives_1.sWorldObjectId.nullable(),
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(),
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const sAgreementDto: z.ZodObject<{
3
- id: z.ZodString;
3
+ id: z.ZodUUID;
4
4
  displayName: z.ZodString;
5
5
  content: z.ZodString;
6
6
  createdOn: z.ZodString;
@@ -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.string().uuid(),
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(),
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const sApiKeyDto: z.ZodObject<{
3
- id: z.ZodString;
3
+ id: z.ZodUUID;
4
4
  displayName: z.ZodString;
5
5
  prefix: z.ZodString;
6
6
  createdOn: z.ZodString;
@@ -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.string().uuid(),
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(),
@@ -9,7 +9,7 @@ export declare const CustomFieldExtendsTypeEnum: z.ZodEnum<{
9
9
  person: "person";
10
10
  }>;
11
11
  export declare const sCustomFieldDto: z.ZodObject<{
12
- id: z.ZodString;
12
+ id: z.ZodUUID;
13
13
  name: z.ZodString;
14
14
  type: z.ZodEnum<{
15
15
  string: "string";
@@ -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.string().uuid(),
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,
@@ -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.ZodString;
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.ZodString;
21
+ deviceId: z.ZodUUID;
22
22
  command: z.ZodString;
23
23
  params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
24
24
  }, z.core.$strip>>;
@@ -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.string().uuid().nonempty(),
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.ZodString>;
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.string().uuid()),
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(),
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const sRoleDto: z.ZodObject<{
3
- id: z.ZodString;
3
+ id: z.ZodUUID;
4
4
  displayName: z.ZodString;
5
5
  systemName: z.ZodString;
6
6
  description: z.ZodString;
@@ -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.string().uuid(),
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()
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const sSecurityLevelDto: z.ZodObject<{
3
- id: z.ZodString;
3
+ id: z.ZodUUID;
4
4
  order: z.ZodNumber;
5
5
  name: z.ZodString;
6
6
  active: z.ZodBoolean;
@@ -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.string().uuid(),
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.ZodString;
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.ZodString;
14
+ templateHtmlId: z.ZodUUID;
15
15
  }, z.core.$strip>;
16
16
  export type TemplateDto = z.infer<typeof sTemplateDto>;
@@ -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.string().uuid(),
7
+ id: zod_1.z.uuid(),
8
8
  name: zod_1.z.string(),
9
9
  type: exports.sTemplateTypeEnum,
10
- templateHtmlId: zod_1.z.string().uuid(),
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.ZodString;
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.string().uuid(),
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.124",
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.124",
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",