@awarevue/api-types 2.0.119 → 2.0.120
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.
|
@@ -519,16 +519,18 @@ export declare const sPushFile: z.ZodObject<{
|
|
|
519
519
|
url: z.ZodString;
|
|
520
520
|
}, z.core.$strip>;
|
|
521
521
|
export declare const sPushTrackableUpdate: z.ZodObject<{
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
522
|
+
updates: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
523
|
+
timestamp: z.ZodNumber;
|
|
524
|
+
objectId: z.ZodString;
|
|
525
|
+
objectName: z.ZodString;
|
|
526
|
+
objectKind: z.ZodNullable<z.ZodString>;
|
|
527
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
528
|
+
longitude: z.ZodNumber;
|
|
529
|
+
latitude: z.ZodNumber;
|
|
530
|
+
altitude: z.ZodOptional<z.ZodNumber>;
|
|
531
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
532
|
+
heading: z.ZodOptional<z.ZodNumber>;
|
|
533
|
+
}, z.core.$strip>>;
|
|
532
534
|
kind: z.ZodLiteral<"trackable-update">;
|
|
533
535
|
provider: z.ZodString;
|
|
534
536
|
foreignRef: z.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { WebSocketMessage } from './web-socket';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const sTrackableUpdate: z.ZodObject<{
|
|
4
4
|
timestamp: z.ZodNumber;
|
|
5
5
|
objectId: z.ZodString;
|
|
6
6
|
objectName: z.ZodString;
|
|
@@ -12,6 +12,21 @@ export declare const sTrackableUpdatePayload: z.ZodObject<{
|
|
|
12
12
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
heading: z.ZodOptional<z.ZodNumber>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
|
+
export type TrackableUpdate = z.infer<typeof sTrackableUpdate>;
|
|
16
|
+
export declare const sTrackableUpdatePayload: z.ZodObject<{
|
|
17
|
+
updates: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
18
|
+
timestamp: z.ZodNumber;
|
|
19
|
+
objectId: z.ZodString;
|
|
20
|
+
objectName: z.ZodString;
|
|
21
|
+
objectKind: z.ZodNullable<z.ZodString>;
|
|
22
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
longitude: z.ZodNumber;
|
|
24
|
+
latitude: z.ZodNumber;
|
|
25
|
+
altitude: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
heading: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
15
30
|
export type TrackableUpdatePayload = z.infer<typeof sTrackableUpdatePayload>;
|
|
16
31
|
interface TrackableMessageMap {
|
|
17
32
|
update: TrackableUpdatePayload;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isTrackableMessage = exports.sTrackableUpdatePayload = void 0;
|
|
3
|
+
exports.isTrackableMessage = exports.sTrackableUpdatePayload = exports.sTrackableUpdate = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const primitives_1 = require("../../primitives");
|
|
6
|
-
exports.
|
|
6
|
+
exports.sTrackableUpdate = zod_1.z.object({
|
|
7
7
|
timestamp: zod_1.z.number(),
|
|
8
8
|
objectId: zod_1.z.string().nonempty(),
|
|
9
9
|
objectName: zod_1.z.string().nonempty(),
|
|
@@ -15,6 +15,9 @@ exports.sTrackableUpdatePayload = zod_1.z.object({
|
|
|
15
15
|
speed: zod_1.z.number().optional(),
|
|
16
16
|
heading: zod_1.z.number().optional(),
|
|
17
17
|
});
|
|
18
|
+
exports.sTrackableUpdatePayload = zod_1.z.object({
|
|
19
|
+
updates: zod_1.z.record(zod_1.z.string(), exports.sTrackableUpdate),
|
|
20
|
+
});
|
|
18
21
|
const validators = {
|
|
19
22
|
update: exports.sTrackableUpdatePayload,
|
|
20
23
|
};
|
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.120",
|
|
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.120",
|
|
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",
|