@awarevue/api-types 1.0.51 → 1.0.52

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.
@@ -146,6 +146,7 @@ export declare const sPersonPresenceActionDto: z.ZodObject<{
146
146
  timestamp: z.ZodNumber;
147
147
  checkInOrOut: z.ZodBoolean;
148
148
  isLeave: z.ZodBoolean;
149
+ checkCompleted: z.ZodBoolean;
149
150
  }, "strip", z.ZodTypeAny, {
150
151
  id: string;
151
152
  person: string | {
@@ -163,6 +164,7 @@ export declare const sPersonPresenceActionDto: z.ZodObject<{
163
164
  timestamp: number;
164
165
  checkInOrOut: boolean;
165
166
  isLeave: boolean;
167
+ checkCompleted: boolean;
166
168
  }, {
167
169
  id: string;
168
170
  person: string | {
@@ -180,6 +182,7 @@ export declare const sPersonPresenceActionDto: z.ZodObject<{
180
182
  timestamp: number;
181
183
  checkInOrOut: boolean;
182
184
  isLeave: boolean;
185
+ checkCompleted: boolean;
183
186
  }>;
184
187
  export type PersonPresenceActionDto = z.infer<typeof sPersonPresenceActionDto>;
185
188
  export declare const sPersonPresenceQuery: z.ZodObject<{
@@ -224,25 +227,31 @@ export declare const sPersonTogglePresence: z.ZodUnion<[z.ZodObject<{
224
227
  export declare const sPersonCheckIn: z.ZodObject<{
225
228
  personId: z.ZodString;
226
229
  zoneId: z.ZodString;
230
+ checkCompleted: z.ZodOptional<z.ZodBoolean>;
227
231
  }, "strip", z.ZodTypeAny, {
228
232
  personId: string;
229
233
  zoneId: string;
234
+ checkCompleted?: boolean | undefined;
230
235
  }, {
231
236
  personId: string;
232
237
  zoneId: string;
238
+ checkCompleted?: boolean | undefined;
233
239
  }>;
234
240
  export declare const sPersonCheckOut: z.ZodObject<{
235
241
  personId: z.ZodString;
236
242
  zoneId: z.ZodString;
237
243
  leave: z.ZodNullable<z.ZodBoolean>;
244
+ checkCompleted: z.ZodOptional<z.ZodBoolean>;
238
245
  }, "strip", z.ZodTypeAny, {
239
246
  personId: string;
240
247
  zoneId: string;
241
248
  leave: boolean | null;
249
+ checkCompleted?: boolean | undefined;
242
250
  }, {
243
251
  personId: string;
244
252
  zoneId: string;
245
253
  leave: boolean | null;
254
+ checkCompleted?: boolean | undefined;
246
255
  }>;
247
256
  export type PresenceToggleRequest = z.infer<typeof sPersonTogglePresence>;
248
257
  export type PresenceCheckInRequest = z.infer<typeof sPersonCheckIn>;
@@ -32,6 +32,7 @@ exports.sPersonPresenceActionDto = zod_1.z.object({
32
32
  timestamp: zod_1.z.number(),
33
33
  checkInOrOut: zod_1.z.boolean(),
34
34
  isLeave: zod_1.z.boolean(),
35
+ checkCompleted: zod_1.z.boolean(),
35
36
  });
36
37
  exports.sPersonPresenceQuery = zod_1.z.object({
37
38
  persons: zod_1.z.array(zod_1.z.string().nonempty()),
@@ -53,9 +54,11 @@ exports.sPersonTogglePresence = zod_1.z.union([
53
54
  exports.sPersonCheckIn = zod_1.z.object({
54
55
  personId: zod_1.z.string(),
55
56
  zoneId: zod_1.z.string(),
57
+ checkCompleted: zod_1.z.boolean().optional(),
56
58
  });
57
59
  exports.sPersonCheckOut = zod_1.z.object({
58
60
  personId: zod_1.z.string(),
59
61
  zoneId: zod_1.z.string(),
60
62
  leave: zod_1.z.boolean().nullable(),
63
+ checkCompleted: zod_1.z.boolean().optional(),
61
64
  });
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -150,7 +150,7 @@ exports.sPermissionId = zod_1.z.union([
150
150
  //Intercom
151
151
  zod_1.z.literal('intercom:read').describe('View intercom data'), //No UI effect yet
152
152
  //Display
153
- zod_1.z.literal('display:read').describe('Cast to displays'), //No UI effect yet
153
+ zod_1.z.literal('display:read').describe('Cast to displays'),
154
154
  ...sDeviceTypePermissions, //No UI effects yet
155
155
  //Security Level
156
156
  zod_1.z.literal('security-level:read').describe('View security levels'),
@@ -6,6 +6,7 @@ export declare const sSecurityLevelDto: z.ZodObject<{
6
6
  active: z.ZodBoolean;
7
7
  color: z.ZodString;
8
8
  checkFrequency: z.ZodNumber;
9
+ checkOnExit: z.ZodBoolean;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  name: string;
11
12
  id: string;
@@ -13,6 +14,7 @@ export declare const sSecurityLevelDto: z.ZodObject<{
13
14
  color: string;
14
15
  order: number;
15
16
  checkFrequency: number;
17
+ checkOnExit: boolean;
16
18
  }, {
17
19
  name: string;
18
20
  id: string;
@@ -20,6 +22,7 @@ export declare const sSecurityLevelDto: z.ZodObject<{
20
22
  color: string;
21
23
  order: number;
22
24
  checkFrequency: number;
25
+ checkOnExit: boolean;
23
26
  }>;
24
27
  export declare const sAddSecurityLevelRequest: z.ZodObject<Omit<{
25
28
  id: z.ZodString;
@@ -28,18 +31,21 @@ export declare const sAddSecurityLevelRequest: z.ZodObject<Omit<{
28
31
  active: z.ZodBoolean;
29
32
  color: z.ZodString;
30
33
  checkFrequency: z.ZodNumber;
34
+ checkOnExit: z.ZodBoolean;
31
35
  }, "id">, "strip", z.ZodTypeAny, {
32
36
  name: string;
33
37
  active: boolean;
34
38
  color: string;
35
39
  order: number;
36
40
  checkFrequency: number;
41
+ checkOnExit: boolean;
37
42
  }, {
38
43
  name: string;
39
44
  active: boolean;
40
45
  color: string;
41
46
  order: number;
42
47
  checkFrequency: number;
48
+ checkOnExit: boolean;
43
49
  }>;
44
50
  export declare const sUpdateSecurityLevelRequest: z.ZodObject<{
45
51
  name: z.ZodOptional<z.ZodString>;
@@ -47,18 +53,21 @@ export declare const sUpdateSecurityLevelRequest: z.ZodObject<{
47
53
  color: z.ZodOptional<z.ZodString>;
48
54
  order: z.ZodOptional<z.ZodNumber>;
49
55
  checkFrequency: z.ZodOptional<z.ZodNumber>;
56
+ checkOnExit: z.ZodOptional<z.ZodBoolean>;
50
57
  }, "strip", z.ZodTypeAny, {
51
58
  name?: string | undefined;
52
59
  active?: boolean | undefined;
53
60
  color?: string | undefined;
54
61
  order?: number | undefined;
55
62
  checkFrequency?: number | undefined;
63
+ checkOnExit?: boolean | undefined;
56
64
  }, {
57
65
  name?: string | undefined;
58
66
  active?: boolean | undefined;
59
67
  color?: string | undefined;
60
68
  order?: number | undefined;
61
69
  checkFrequency?: number | undefined;
70
+ checkOnExit?: boolean | undefined;
62
71
  }>;
63
72
  export type SecurityLevelDto = z.infer<typeof sSecurityLevelDto>;
64
73
  export type AddSecurityLevelRequest = z.infer<typeof sAddSecurityLevelRequest>;
@@ -9,6 +9,9 @@ exports.sSecurityLevelDto = zod_1.z.object({
9
9
  active: zod_1.z.boolean(),
10
10
  color: zod_1.z.string().length(6),
11
11
  checkFrequency: zod_1.z.number().int().min(0).max(10),
12
+ checkOnExit: zod_1.z.boolean(),
13
+ });
14
+ exports.sAddSecurityLevelRequest = exports.sSecurityLevelDto.omit({
15
+ id: true,
12
16
  });
13
- exports.sAddSecurityLevelRequest = exports.sSecurityLevelDto.omit({ id: true });
14
17
  exports.sUpdateSecurityLevelRequest = exports.sAddSecurityLevelRequest.partial();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",