@awarevue/api-types 2.0.133 → 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.
- package/dist/api/agent-protocol/protocol.d.ts +6 -0
- package/dist/api/rest/index.d.ts +1 -0
- package/dist/api/rest/index.js +1 -0
- package/dist/api/rest/trackables.d.ts +32 -0
- package/dist/api/rest/trackables.js +20 -0
- package/dist/api/ws/trackables.d.ts +12 -0
- package/dist/api/ws/trackables.js +8 -0
- package/dist/objects/index.d.ts +1 -0
- package/dist/objects/index.js +1 -0
- package/dist/objects/trackable.d.ts +26 -0
- package/dist/objects/trackable.js +21 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -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;
|
package/dist/api/rest/index.d.ts
CHANGED
package/dist/api/rest/index.js
CHANGED
|
@@ -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),
|
package/dist/objects/index.d.ts
CHANGED
package/dist/objects/index.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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",
|