@awarevue/api-types 2.0.139 → 2.0.140

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.
@@ -529,12 +529,6 @@ export declare const sPushTrackableUpdate: z.ZodObject<{
529
529
  }>;
530
530
  }, z.core.$strip>>;
531
531
  heading: z.ZodOptional<z.ZodNumber>;
532
- history: z.ZodOptional<z.ZodArray<z.ZodObject<{
533
- timestamp: z.ZodNumber;
534
- longitude: z.ZodOptional<z.ZodNumber>;
535
- latitude: z.ZodOptional<z.ZodNumber>;
536
- altitude: z.ZodOptional<z.ZodNumber>;
537
- }, z.core.$strip>>>;
538
532
  }, z.core.$strip>>;
539
533
  kind: z.ZodLiteral<"trackable-update">;
540
534
  provider: z.ZodString;
@@ -19,12 +19,6 @@ export declare const sTrackableUpdate: z.ZodObject<{
19
19
  }>;
20
20
  }, z.core.$strip>>;
21
21
  heading: z.ZodOptional<z.ZodNumber>;
22
- history: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
- timestamp: z.ZodNumber;
24
- longitude: z.ZodOptional<z.ZodNumber>;
25
- latitude: z.ZodOptional<z.ZodNumber>;
26
- altitude: z.ZodOptional<z.ZodNumber>;
27
- }, z.core.$strip>>>;
28
22
  }, z.core.$strip>;
29
23
  export type TrackableUpdate = z.infer<typeof sTrackableUpdate>;
30
24
  export declare const sTrackableUpdatePayload: z.ZodObject<{
@@ -47,12 +41,6 @@ export declare const sTrackableUpdatePayload: z.ZodObject<{
47
41
  }>;
48
42
  }, z.core.$strip>>;
49
43
  heading: z.ZodOptional<z.ZodNumber>;
50
- history: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
- timestamp: z.ZodNumber;
52
- longitude: z.ZodOptional<z.ZodNumber>;
53
- latitude: z.ZodOptional<z.ZodNumber>;
54
- altitude: z.ZodOptional<z.ZodNumber>;
55
- }, z.core.$strip>>>;
56
44
  }, z.core.$strip>>;
57
45
  }, z.core.$strip>;
58
46
  export type TrackableUpdatePayload = z.infer<typeof sTrackableUpdatePayload>;
@@ -14,14 +14,6 @@ exports.sTrackableUpdate = zod_1.z.object({
14
14
  altitude: zod_1.z.number().optional(),
15
15
  speed: primitives_1.sSpeed.optional(),
16
16
  heading: zod_1.z.number().optional(),
17
- history: zod_1.z
18
- .array(zod_1.z.object({
19
- timestamp: zod_1.z.number(),
20
- longitude: zod_1.z.number().min(-180).max(180).optional(),
21
- latitude: zod_1.z.number().min(-90).max(90).optional(),
22
- altitude: zod_1.z.number().optional(),
23
- }))
24
- .optional(),
25
17
  });
26
18
  exports.sTrackableUpdatePayload = zod_1.z.object({
27
19
  updates: zod_1.z.record(zod_1.z.string(), exports.sTrackableUpdate),
@@ -17,6 +17,7 @@ import { SecurityLevelDto } from './security-level';
17
17
  import { UserDto } from './user';
18
18
  import { ViewDto } from './view';
19
19
  import { ZoneDto, ZoneProps } from './zone';
20
+ import { TrackableProfileDto } from './trackable';
20
21
  export declare const sObjectKind: z.ZodEnum<{
21
22
  accessRule: "accessRule";
22
23
  schedule: "schedule";
@@ -29,6 +30,7 @@ export declare const sObjectKind: z.ZodEnum<{
29
30
  macro: "macro";
30
31
  bookmark: "bookmark";
31
32
  agreement: "agreement";
33
+ trackable: "trackable";
32
34
  personPresence: "personPresence";
33
35
  deviceGroup: "deviceGroup";
34
36
  view: "view";
@@ -57,6 +59,7 @@ export type ObjectKinds = {
57
59
  personType: PersonTypeDto;
58
60
  agreement: AgreementDto;
59
61
  apiKey: ApiKeyDto;
62
+ trackable: TrackableProfileDto;
60
63
  };
61
64
  export type ObjectDto = ObjectKinds;
62
65
  export type ObjectProps = {
@@ -21,6 +21,7 @@ exports.sObjectKind = zod_1.z.enum([
21
21
  'personType',
22
22
  'agreement',
23
23
  'apiKey',
24
+ 'trackable',
24
25
  ]);
25
26
  exports.objectLabels = {
26
27
  accessRule: 'Access Rule',
@@ -41,5 +42,6 @@ exports.objectLabels = {
41
42
  personType: 'Person Type',
42
43
  agreement: 'Agreement',
43
44
  apiKey: 'API Key',
45
+ trackable: 'Trackable Profile',
44
46
  };
45
47
  exports.objectKinds = exports.sObjectKind.options;
@@ -24,3 +24,10 @@ export declare const sTrackableProfileDto: z.ZodObject<{
24
24
  lastModifiedOn: z.ZodString;
25
25
  }, z.core.$strip>;
26
26
  export type TrackableProfileDto = z.infer<typeof sTrackableProfileDto>;
27
+ export declare const sTrackableHistoryDto: z.ZodArray<z.ZodObject<{
28
+ timestamp: z.ZodNumber;
29
+ longitude: z.ZodOptional<z.ZodNumber>;
30
+ latitude: z.ZodOptional<z.ZodNumber>;
31
+ altitude: z.ZodOptional<z.ZodNumber>;
32
+ }, z.core.$strip>>;
33
+ export type TrackableHistoryDto = z.infer<typeof sTrackableHistoryDto>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sTrackableProfileDto = exports.sTrackableImageDto = void 0;
3
+ exports.sTrackableHistoryDto = exports.sTrackableProfileDto = exports.sTrackableImageDto = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.sTrackableImageDto = zod_1.z.object({
6
6
  imageId: zod_1.z.uuid(),
@@ -19,3 +19,9 @@ exports.sTrackableProfileDto = zod_1.z.object({
19
19
  createdOn: zod_1.z.string(),
20
20
  lastModifiedOn: zod_1.z.string(),
21
21
  });
22
+ exports.sTrackableHistoryDto = zod_1.z.array(zod_1.z.object({
23
+ timestamp: zod_1.z.number(),
24
+ longitude: zod_1.z.number().min(-180).max(180).optional(),
25
+ latitude: zod_1.z.number().min(-90).max(90).optional(),
26
+ altitude: zod_1.z.number().optional(),
27
+ }));
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.139",
7
+ "version": "2.0.140",
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.139",
7
+ "version": "2.0.140",
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",