@awarevue/api-types 2.0.120 → 2.0.121

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.
@@ -528,7 +528,15 @@ export declare const sPushTrackableUpdate: z.ZodObject<{
528
528
  longitude: z.ZodNumber;
529
529
  latitude: z.ZodNumber;
530
530
  altitude: z.ZodOptional<z.ZodNumber>;
531
- speed: z.ZodOptional<z.ZodNumber>;
531
+ speed: z.ZodOptional<z.ZodObject<{
532
+ value: z.ZodNumber;
533
+ unit: z.ZodEnum<{
534
+ "m/s": "m/s";
535
+ "km/h": "km/h";
536
+ mph: "mph";
537
+ knots: "knots";
538
+ }>;
539
+ }, z.core.$strip>>;
532
540
  heading: z.ZodOptional<z.ZodNumber>;
533
541
  }, z.core.$strip>>;
534
542
  kind: z.ZodLiteral<"trackable-update">;
@@ -9,7 +9,15 @@ export declare const sTrackableUpdate: z.ZodObject<{
9
9
  longitude: z.ZodNumber;
10
10
  latitude: z.ZodNumber;
11
11
  altitude: z.ZodOptional<z.ZodNumber>;
12
- speed: z.ZodOptional<z.ZodNumber>;
12
+ speed: z.ZodOptional<z.ZodObject<{
13
+ value: z.ZodNumber;
14
+ unit: z.ZodEnum<{
15
+ "m/s": "m/s";
16
+ "km/h": "km/h";
17
+ mph: "mph";
18
+ knots: "knots";
19
+ }>;
20
+ }, z.core.$strip>>;
13
21
  heading: z.ZodOptional<z.ZodNumber>;
14
22
  }, z.core.$strip>;
15
23
  export type TrackableUpdate = z.infer<typeof sTrackableUpdate>;
@@ -23,7 +31,15 @@ export declare const sTrackableUpdatePayload: z.ZodObject<{
23
31
  longitude: z.ZodNumber;
24
32
  latitude: z.ZodNumber;
25
33
  altitude: z.ZodOptional<z.ZodNumber>;
26
- speed: z.ZodOptional<z.ZodNumber>;
34
+ speed: z.ZodOptional<z.ZodObject<{
35
+ value: z.ZodNumber;
36
+ unit: z.ZodEnum<{
37
+ "m/s": "m/s";
38
+ "km/h": "km/h";
39
+ mph: "mph";
40
+ knots: "knots";
41
+ }>;
42
+ }, z.core.$strip>>;
27
43
  heading: z.ZodOptional<z.ZodNumber>;
28
44
  }, z.core.$strip>>;
29
45
  }, z.core.$strip>;
@@ -12,7 +12,7 @@ exports.sTrackableUpdate = zod_1.z.object({
12
12
  longitude: zod_1.z.number().min(-180).max(180),
13
13
  latitude: zod_1.z.number().min(-90).max(90),
14
14
  altitude: zod_1.z.number().optional(),
15
- speed: zod_1.z.number().optional(),
15
+ speed: primitives_1.sSpeed.optional(),
16
16
  heading: zod_1.z.number().optional(),
17
17
  });
18
18
  exports.sTrackableUpdatePayload = zod_1.z.object({
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.120",
7
+ "version": "2.0.121",
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",
@@ -290,3 +290,13 @@ export declare const sCallDirection: z.ZodEnum<{
290
290
  incoming: "incoming";
291
291
  outgoing: "outgoing";
292
292
  }>;
293
+ export declare const sSpeed: z.ZodObject<{
294
+ value: z.ZodNumber;
295
+ unit: z.ZodEnum<{
296
+ "m/s": "m/s";
297
+ "km/h": "km/h";
298
+ mph: "mph";
299
+ knots: "knots";
300
+ }>;
301
+ }, z.core.$strip>;
302
+ export type Speed = z.infer<typeof sSpeed>;
@@ -7,7 +7,7 @@
7
7
  * domain-specific types like DeviceId, PresetId, Duration, URL, etc.
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.sCallDirection = exports.sCallState = exports.sCameraPresetInfo = exports.sNotificationSeverity = exports.sStreamId = exports.sDeviceParam = exports.sForeignDeviceId = exports.sAgentDeviceInfo = exports.sFileResponse = exports.sUrl = exports.sDuration = exports.sIoOutputSlotId = exports.sIoInputSlotId = exports.sWorldObjectId = exports.sUserId = exports.sMacroId = exports.sZoneId = exports.sPersonTypeId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
10
+ exports.sSpeed = exports.sCallDirection = exports.sCallState = exports.sCameraPresetInfo = exports.sNotificationSeverity = exports.sStreamId = exports.sDeviceParam = exports.sForeignDeviceId = exports.sAgentDeviceInfo = exports.sFileResponse = exports.sUrl = exports.sDuration = exports.sIoOutputSlotId = exports.sIoInputSlotId = exports.sWorldObjectId = exports.sUserId = exports.sMacroId = exports.sZoneId = exports.sPersonTypeId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
11
11
  const zod_1 = require("zod");
12
12
  const device_1 = require("./objects/device");
13
13
  exports.sDeviceId = zod_1.z.string().nonempty();
@@ -53,3 +53,7 @@ exports.sCallState = zod_1.z.enum([
53
53
  'terminated',
54
54
  ]);
55
55
  exports.sCallDirection = zod_1.z.enum(['incoming', 'outgoing']);
56
+ exports.sSpeed = zod_1.z.object({
57
+ value: zod_1.z.number().min(0),
58
+ unit: zod_1.z.enum(['m/s', 'km/h', 'mph', 'knots']),
59
+ });
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.120",
7
+ "version": "2.0.121",
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",