@awarevue/api-types 2.0.89 → 2.0.91
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/rest/app.d.ts +1 -1
- package/dist/api/rest/app.js +1 -1
- package/dist/api/rest/person-presence.d.ts +0 -2
- package/dist/api/rest/person-presence.js +0 -2
- package/dist/api/rest/zone.d.ts +2 -0
- package/dist/api/rest/zone.js +1 -0
- package/dist/objects/person-presence.d.ts +3 -25
- package/dist/objects/person-presence.js +4 -11
- package/dist/objects/zone.d.ts +2 -1
- package/dist/objects/zone.js +2 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/api/rest/app.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export declare const sAppInfo: z.ZodObject<{
|
|
|
10
10
|
releaseDate: z.ZodString;
|
|
11
11
|
serverDeviceId: z.ZodString;
|
|
12
12
|
alarmDeviceId: z.ZodString;
|
|
13
|
-
globalZoneId: z.ZodString;
|
|
14
13
|
presenceTrackerId: z.ZodString;
|
|
15
14
|
passwordPolicy: z.ZodObject<{
|
|
16
15
|
minLength: z.ZodDefault<z.ZodNumber>;
|
|
@@ -19,5 +18,6 @@ export declare const sAppInfo: z.ZodObject<{
|
|
|
19
18
|
minDigits: z.ZodDefault<z.ZodNumber>;
|
|
20
19
|
}, z.core.$strip>;
|
|
21
20
|
mapTileServerUrl: z.ZodString;
|
|
21
|
+
userAgentExtensions: z.ZodArray<z.ZodString>;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
export type AppInfo = z.infer<typeof sAppInfo>;
|
package/dist/api/rest/app.js
CHANGED
|
@@ -13,8 +13,8 @@ exports.sAppInfo = zod_1.z.object({
|
|
|
13
13
|
releaseDate: zod_1.z.string(),
|
|
14
14
|
serverDeviceId: zod_1.z.string(),
|
|
15
15
|
alarmDeviceId: zod_1.z.string(),
|
|
16
|
-
globalZoneId: zod_1.z.string(),
|
|
17
16
|
presenceTrackerId: zod_1.z.string(),
|
|
18
17
|
passwordPolicy: exports.sPasswordPolicy,
|
|
19
18
|
mapTileServerUrl: zod_1.z.string(),
|
|
19
|
+
userAgentExtensions: zod_1.z.array(zod_1.z.string()),
|
|
20
20
|
});
|
|
@@ -8,11 +8,9 @@ export type PersonPresenceQuery = z.infer<typeof sPersonPresenceQuery>;
|
|
|
8
8
|
export declare const sPersonTogglePresence: z.ZodUnion<readonly [z.ZodObject<{
|
|
9
9
|
personId: z.ZodString;
|
|
10
10
|
zoneId: z.ZodString;
|
|
11
|
-
credentialToken: z.ZodUndefined;
|
|
12
11
|
}, z.core.$strip>, z.ZodObject<{
|
|
13
12
|
credentialToken: z.ZodString;
|
|
14
13
|
zoneId: z.ZodString;
|
|
15
|
-
personId: z.ZodUndefined;
|
|
16
14
|
}, z.core.$strip>]>;
|
|
17
15
|
export declare const sPersonCheckIn: z.ZodObject<{
|
|
18
16
|
personId: z.ZodString;
|
|
@@ -11,12 +11,10 @@ exports.sPersonTogglePresence = zod_1.z.union([
|
|
|
11
11
|
zod_1.z.object({
|
|
12
12
|
personId: zod_1.z.string(),
|
|
13
13
|
zoneId: zod_1.z.string(),
|
|
14
|
-
credentialToken: zod_1.z.undefined(),
|
|
15
14
|
}),
|
|
16
15
|
zod_1.z.object({
|
|
17
16
|
credentialToken: zod_1.z.string(),
|
|
18
17
|
zoneId: zod_1.z.string(),
|
|
19
|
-
personId: zod_1.z.undefined(),
|
|
20
18
|
}),
|
|
21
19
|
]);
|
|
22
20
|
exports.sPersonCheckIn = zod_1.z.object({
|
package/dist/api/rest/zone.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ import z from 'zod';
|
|
|
2
2
|
export declare const sCreateZoneRequest: z.ZodObject<{
|
|
3
3
|
displayName: z.ZodString;
|
|
4
4
|
devices: z.ZodArray<z.ZodString>;
|
|
5
|
+
isCheckInZone: z.ZodBoolean;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
export type CreateZoneRequest = z.infer<typeof sCreateZoneRequest>;
|
|
7
8
|
export declare const sUpdateZoneRequest: z.ZodObject<{
|
|
8
9
|
displayName: z.ZodOptional<z.ZodString>;
|
|
9
10
|
devices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
+
isCheckInZone: z.ZodOptional<z.ZodBoolean>;
|
|
10
12
|
}, z.core.$strip>;
|
|
11
13
|
export type UpdateZoneRequest = {
|
|
12
14
|
id: string;
|
package/dist/api/rest/zone.js
CHANGED
|
@@ -10,6 +10,7 @@ exports.sCreateZoneRequest = zone_1.sZoneProps;
|
|
|
10
10
|
exports.sUpdateZoneRequest = zod_1.default.object({
|
|
11
11
|
displayName: zod_1.default.string().optional(),
|
|
12
12
|
devices: zod_1.default.array(zod_1.default.string().nonempty()).optional(),
|
|
13
|
+
isCheckInZone: zod_1.default.boolean().optional(),
|
|
13
14
|
});
|
|
14
15
|
exports.sAddZoneDeviceRequest = zod_1.default.object({
|
|
15
16
|
deviceId: zod_1.default.string().nonempty(),
|
|
@@ -9,12 +9,6 @@ export declare const sPresencePersonDto: z.ZodObject<{
|
|
|
9
9
|
archived: z.ZodBoolean;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
export type PresencePersonDto = z.infer<typeof sPresencePersonDto>;
|
|
12
|
-
export declare const sPresenceZoneDto: z.ZodObject<{
|
|
13
|
-
id: z.ZodString;
|
|
14
|
-
displayName: z.ZodString;
|
|
15
|
-
isGlobal: z.ZodBoolean;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
export type PresenceZoneDto = z.infer<typeof sPresenceZoneDto>;
|
|
18
12
|
export declare const sPersonPresenceDto: z.ZodObject<{
|
|
19
13
|
id: z.ZodString;
|
|
20
14
|
person: z.ZodObject<{
|
|
@@ -26,11 +20,7 @@ export declare const sPersonPresenceDto: z.ZodObject<{
|
|
|
26
20
|
position: z.ZodNullable<z.ZodString>;
|
|
27
21
|
archived: z.ZodBoolean;
|
|
28
22
|
}, z.core.$strip>;
|
|
29
|
-
|
|
30
|
-
id: z.ZodString;
|
|
31
|
-
displayName: z.ZodString;
|
|
32
|
-
isGlobal: z.ZodBoolean;
|
|
33
|
-
}, z.core.$strip>>;
|
|
23
|
+
checkedInZoneId: z.ZodNullable<z.ZodString>;
|
|
34
24
|
onLeave: z.ZodBoolean;
|
|
35
25
|
lastCheckInOn: z.ZodNullable<z.ZodNumber>;
|
|
36
26
|
lastCheckOutOn: z.ZodNullable<z.ZodNumber>;
|
|
@@ -39,20 +29,8 @@ export declare const sPersonPresenceDto: z.ZodObject<{
|
|
|
39
29
|
export type PersonPresenceDto = z.infer<typeof sPersonPresenceDto>;
|
|
40
30
|
export declare const sPersonPresenceActionDto: z.ZodObject<{
|
|
41
31
|
id: z.ZodString;
|
|
42
|
-
person: z.
|
|
43
|
-
|
|
44
|
-
firstName: z.ZodString;
|
|
45
|
-
lastName: z.ZodString;
|
|
46
|
-
avatarId: z.ZodNullable<z.ZodString>;
|
|
47
|
-
type: z.ZodString;
|
|
48
|
-
position: z.ZodNullable<z.ZodString>;
|
|
49
|
-
archived: z.ZodBoolean;
|
|
50
|
-
}, z.core.$strip>, z.ZodString]>;
|
|
51
|
-
zone: z.ZodUnion<readonly [z.ZodObject<{
|
|
52
|
-
id: z.ZodString;
|
|
53
|
-
displayName: z.ZodString;
|
|
54
|
-
isGlobal: z.ZodBoolean;
|
|
55
|
-
}, z.core.$strip>, z.ZodString]>;
|
|
32
|
+
person: z.ZodString;
|
|
33
|
+
zone: z.ZodString;
|
|
56
34
|
timestamp: z.ZodNumber;
|
|
57
35
|
checkInOrOut: z.ZodBoolean;
|
|
58
36
|
isLeave: z.ZodBoolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sPersonPresenceActionDto = exports.sPersonPresenceDto = exports.
|
|
3
|
+
exports.sPersonPresenceActionDto = exports.sPersonPresenceDto = exports.sPresencePersonDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.sPresencePersonDto = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.string(),
|
|
@@ -11,17 +11,10 @@ exports.sPresencePersonDto = zod_1.z.object({
|
|
|
11
11
|
position: zod_1.z.string().max(128).nullable(),
|
|
12
12
|
archived: zod_1.z.boolean(),
|
|
13
13
|
});
|
|
14
|
-
exports.sPresenceZoneDto = zod_1.z.object({
|
|
15
|
-
id: zod_1.z.string(),
|
|
16
|
-
displayName: zod_1.z.string(),
|
|
17
|
-
isGlobal: zod_1.z
|
|
18
|
-
.boolean()
|
|
19
|
-
.describe('Whether the zone is the designated global zone'),
|
|
20
|
-
});
|
|
21
14
|
exports.sPersonPresenceDto = zod_1.z.object({
|
|
22
15
|
id: zod_1.z.string(),
|
|
23
16
|
person: exports.sPresencePersonDto,
|
|
24
|
-
|
|
17
|
+
checkedInZoneId: zod_1.z.string().nullable(),
|
|
25
18
|
onLeave: zod_1.z.boolean(),
|
|
26
19
|
lastCheckInOn: zod_1.z.number().nullable(),
|
|
27
20
|
lastCheckOutOn: zod_1.z.number().nullable(),
|
|
@@ -29,8 +22,8 @@ exports.sPersonPresenceDto = zod_1.z.object({
|
|
|
29
22
|
});
|
|
30
23
|
exports.sPersonPresenceActionDto = zod_1.z.object({
|
|
31
24
|
id: zod_1.z.string(),
|
|
32
|
-
person: zod_1.z.
|
|
33
|
-
zone: zod_1.z.
|
|
25
|
+
person: zod_1.z.string(),
|
|
26
|
+
zone: zod_1.z.string(),
|
|
34
27
|
timestamp: zod_1.z.number(),
|
|
35
28
|
checkInOrOut: zod_1.z.boolean(),
|
|
36
29
|
isLeave: zod_1.z.boolean(),
|
package/dist/objects/zone.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const sZoneProps: z.ZodObject<{
|
|
3
3
|
displayName: z.ZodString;
|
|
4
4
|
devices: z.ZodArray<z.ZodString>;
|
|
5
|
+
isCheckInZone: z.ZodBoolean;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
export declare const sZoneDto: z.ZodObject<{
|
|
7
8
|
id: z.ZodString;
|
|
@@ -9,7 +10,7 @@ export declare const sZoneDto: z.ZodObject<{
|
|
|
9
10
|
createdOn: z.ZodString;
|
|
10
11
|
lastModifiedOn: z.ZodString;
|
|
11
12
|
devices: z.ZodArray<z.ZodString>;
|
|
12
|
-
|
|
13
|
+
isCheckInZone: z.ZodBoolean;
|
|
13
14
|
refs: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
14
15
|
version: z.ZodNumber;
|
|
15
16
|
}, z.core.$strip>;
|
package/dist/objects/zone.js
CHANGED
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
exports.sZoneProps = zod_1.z.object({
|
|
6
6
|
displayName: zod_1.z.string().nonempty(),
|
|
7
7
|
devices: zod_1.z.array(zod_1.z.string().nonempty()),
|
|
8
|
+
isCheckInZone: zod_1.z.boolean(),
|
|
8
9
|
});
|
|
9
10
|
exports.sZoneDto = zod_1.z.object({
|
|
10
11
|
id: zod_1.z.string(),
|
|
@@ -12,7 +13,7 @@ exports.sZoneDto = zod_1.z.object({
|
|
|
12
13
|
createdOn: zod_1.z.string(),
|
|
13
14
|
lastModifiedOn: zod_1.z.string(),
|
|
14
15
|
devices: zod_1.z.array(zod_1.z.string()),
|
|
15
|
-
|
|
16
|
+
isCheckInZone: zod_1.z.boolean(),
|
|
16
17
|
refs: zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())])),
|
|
17
18
|
version: zod_1.z.number(),
|
|
18
19
|
});
|
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.91",
|
|
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.91",
|
|
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",
|