@awarevue/api-types 2.0.132 → 2.0.134

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,6 +529,12 @@ 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>>>;
532
538
  }, z.core.$strip>>;
533
539
  kind: z.ZodLiteral<"trackable-update">;
534
540
  provider: z.ZodString;
@@ -619,6 +619,7 @@ export declare const responseSchemasByType: {
619
619
  name: z.ZodString;
620
620
  endTime: z.ZodNumber;
621
621
  startTime: z.ZodNumber;
622
+ created: z.ZodNumber;
622
623
  id: z.ZodString;
623
624
  status: z.ZodLiteral<"error" | "in-progress" | "ready" | "cancelled" | "other">;
624
625
  statusRaw: z.ZodOptional<z.ZodString>;
@@ -17,6 +17,7 @@ export declare const sExportItem: z.ZodObject<{
17
17
  name: z.ZodString;
18
18
  endTime: z.ZodNumber;
19
19
  startTime: z.ZodNumber;
20
+ created: z.ZodNumber;
20
21
  id: z.ZodString;
21
22
  status: z.ZodLiteral<"error" | "in-progress" | "ready" | "cancelled" | "other">;
22
23
  statusRaw: z.ZodOptional<z.ZodString>;
@@ -28,6 +29,7 @@ export declare const sGetExportsResponse: z.ZodArray<z.ZodObject<{
28
29
  name: z.ZodString;
29
30
  endTime: z.ZodNumber;
30
31
  startTime: z.ZodNumber;
32
+ created: z.ZodNumber;
31
33
  id: z.ZodString;
32
34
  status: z.ZodLiteral<"error" | "in-progress" | "ready" | "cancelled" | "other">;
33
35
  statusRaw: z.ZodOptional<z.ZodString>;
@@ -53,6 +55,7 @@ export declare const nvrExporterResponseSchemas: {
53
55
  name: z.ZodString;
54
56
  endTime: z.ZodNumber;
55
57
  startTime: z.ZodNumber;
58
+ created: z.ZodNumber;
56
59
  id: z.ZodString;
57
60
  status: z.ZodLiteral<"error" | "in-progress" | "ready" | "cancelled" | "other">;
58
61
  statusRaw: z.ZodOptional<z.ZodString>;
@@ -26,6 +26,7 @@ exports.sExportItem = zod_1.z.object({
26
26
  name: zod_1.z.string().nonempty(),
27
27
  endTime: zod_1.z.number().int().nonnegative(),
28
28
  startTime: zod_1.z.number().int().nonnegative(),
29
+ created: zod_1.z.number().int().nonnegative(),
29
30
  id: zod_1.z.string().nonempty(),
30
31
  status: exports.sExportStatus,
31
32
  statusRaw: zod_1.z.string().optional(),
@@ -34,3 +34,4 @@ export * from './webrtc-playback';
34
34
  export * from './io-device';
35
35
  export * from './device';
36
36
  export * from './camera';
37
+ export * from './trackables';
@@ -50,3 +50,4 @@ __exportStar(require("./webrtc-playback"), exports);
50
50
  __exportStar(require("./io-device"), exports);
51
51
  __exportStar(require("./device"), exports);
52
52
  __exportStar(require("./camera"), exports);
53
+ __exportStar(require("./trackables"), exports);
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ export declare const sTrackableProfileSnapshot: z.ZodObject<{
3
+ objectName: z.ZodOptional<z.ZodString>;
4
+ objectKind: z.ZodOptional<z.ZodString>;
5
+ }, z.core.$strip>;
6
+ export declare const sSetTrackableFavoriteRequest: z.ZodObject<{
7
+ objectName: z.ZodOptional<z.ZodString>;
8
+ objectKind: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ export type SetTrackableFavoriteRequest = z.infer<typeof sSetTrackableFavoriteRequest>;
11
+ export declare const sCreateTrackableRequest: z.ZodObject<{
12
+ objectName: z.ZodOptional<z.ZodString>;
13
+ objectKind: z.ZodOptional<z.ZodString>;
14
+ objectId: z.ZodString;
15
+ }, z.core.$strip>;
16
+ export type CreateTrackableRequest = z.infer<typeof sCreateTrackableRequest>;
17
+ export declare const sUpdateTrackableRequest: z.ZodObject<{
18
+ objectName: z.ZodOptional<z.ZodString>;
19
+ objectKind: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strip>;
21
+ export type UpdateTrackableRequest = z.infer<typeof sUpdateTrackableRequest>;
22
+ export declare const sAttachTrackableImageRequest: z.ZodObject<{
23
+ objectName: z.ZodOptional<z.ZodString>;
24
+ objectKind: z.ZodOptional<z.ZodString>;
25
+ imageId: z.ZodUUID;
26
+ reviewed: z.ZodOptional<z.ZodBoolean>;
27
+ }, z.core.$strip>;
28
+ export type AttachTrackableImageRequest = z.infer<typeof sAttachTrackableImageRequest>;
29
+ export declare const sSetTrackableImageReviewedRequest: z.ZodObject<{
30
+ reviewed: z.ZodBoolean;
31
+ }, z.core.$strip>;
32
+ export type SetTrackableImageReviewedRequest = z.infer<typeof sSetTrackableImageReviewedRequest>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sSetTrackableImageReviewedRequest = exports.sAttachTrackableImageRequest = exports.sUpdateTrackableRequest = exports.sCreateTrackableRequest = exports.sSetTrackableFavoriteRequest = exports.sTrackableProfileSnapshot = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.sTrackableProfileSnapshot = zod_1.z.object({
6
+ objectName: zod_1.z.string().trim().max(255).optional(),
7
+ objectKind: zod_1.z.string().trim().max(64).optional(),
8
+ });
9
+ exports.sSetTrackableFavoriteRequest = exports.sTrackableProfileSnapshot;
10
+ exports.sCreateTrackableRequest = exports.sTrackableProfileSnapshot.extend({
11
+ objectId: zod_1.z.string().trim().min(1).max(64),
12
+ });
13
+ exports.sUpdateTrackableRequest = exports.sTrackableProfileSnapshot;
14
+ exports.sAttachTrackableImageRequest = exports.sTrackableProfileSnapshot.extend({
15
+ imageId: zod_1.z.uuid(),
16
+ reviewed: zod_1.z.boolean().optional(),
17
+ });
18
+ exports.sSetTrackableImageReviewedRequest = zod_1.z.object({
19
+ reviewed: zod_1.z.boolean(),
20
+ });
@@ -19,6 +19,12 @@ 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>>>;
22
28
  }, z.core.$strip>;
23
29
  export type TrackableUpdate = z.infer<typeof sTrackableUpdate>;
24
30
  export declare const sTrackableUpdatePayload: z.ZodObject<{
@@ -41,6 +47,12 @@ export declare const sTrackableUpdatePayload: z.ZodObject<{
41
47
  }>;
42
48
  }, z.core.$strip>>;
43
49
  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>>>;
44
56
  }, z.core.$strip>>;
45
57
  }, z.core.$strip>;
46
58
  export type TrackableUpdatePayload = z.infer<typeof sTrackableUpdatePayload>;
@@ -14,6 +14,14 @@ 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(),
17
25
  });
18
26
  exports.sTrackableUpdatePayload = zod_1.z.object({
19
27
  updates: zod_1.z.record(zod_1.z.string(), exports.sTrackableUpdate),
@@ -26,3 +26,4 @@ export * from './agent-metadata';
26
26
  export * from './world-object';
27
27
  export * from './device';
28
28
  export * from './module-config';
29
+ export * from './trackable';
@@ -42,3 +42,4 @@ __exportStar(require("./agent-metadata"), exports);
42
42
  __exportStar(require("./world-object"), exports);
43
43
  __exportStar(require("./device"), exports);
44
44
  __exportStar(require("./module-config"), exports);
45
+ __exportStar(require("./trackable"), exports);
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ export declare const sTrackableImageDto: z.ZodObject<{
3
+ imageId: z.ZodUUID;
4
+ reviewed: z.ZodBoolean;
5
+ createdBy: z.ZodNullable<z.ZodUUID>;
6
+ createdOn: z.ZodString;
7
+ lastModifiedOn: z.ZodString;
8
+ }, z.core.$strip>;
9
+ export type TrackableImageDto = z.infer<typeof sTrackableImageDto>;
10
+ export declare const sTrackableProfileDto: z.ZodObject<{
11
+ objectId: z.ZodString;
12
+ objectName: z.ZodNullable<z.ZodString>;
13
+ objectKind: z.ZodNullable<z.ZodString>;
14
+ isUserFavorite: z.ZodBoolean;
15
+ isGlobalFavorite: z.ZodBoolean;
16
+ images: z.ZodArray<z.ZodObject<{
17
+ imageId: z.ZodUUID;
18
+ reviewed: z.ZodBoolean;
19
+ createdBy: z.ZodNullable<z.ZodUUID>;
20
+ createdOn: z.ZodString;
21
+ lastModifiedOn: z.ZodString;
22
+ }, z.core.$strip>>;
23
+ createdOn: z.ZodString;
24
+ lastModifiedOn: z.ZodString;
25
+ }, z.core.$strip>;
26
+ export type TrackableProfileDto = z.infer<typeof sTrackableProfileDto>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sTrackableProfileDto = exports.sTrackableImageDto = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.sTrackableImageDto = zod_1.z.object({
6
+ imageId: zod_1.z.uuid(),
7
+ reviewed: zod_1.z.boolean(),
8
+ createdBy: zod_1.z.uuid().nullable(),
9
+ createdOn: zod_1.z.string(),
10
+ lastModifiedOn: zod_1.z.string(),
11
+ });
12
+ exports.sTrackableProfileDto = zod_1.z.object({
13
+ objectId: zod_1.z.string(),
14
+ objectName: zod_1.z.string().nullable(),
15
+ objectKind: zod_1.z.string().nullable(),
16
+ isUserFavorite: zod_1.z.boolean(),
17
+ isGlobalFavorite: zod_1.z.boolean(),
18
+ images: zod_1.z.array(exports.sTrackableImageDto),
19
+ createdOn: zod_1.z.string(),
20
+ lastModifiedOn: zod_1.z.string(),
21
+ });
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.132",
7
+ "version": "2.0.134",
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.132",
7
+ "version": "2.0.134",
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",