@awarevue/api-types 1.0.4 → 1.0.6

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.
@@ -79,7 +79,7 @@ export declare const sAccessRuleDto: z.ZodObject<{
79
79
  }>, "many">;
80
80
  createdOn: z.ZodString;
81
81
  lastModifiedOn: z.ZodString;
82
- refs: z.ZodRecord<z.ZodString, z.ZodString>;
82
+ refs: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
83
83
  version: z.ZodNumber;
84
84
  }, "strip", z.ZodTypeAny, {
85
85
  id: string;
@@ -101,7 +101,7 @@ export declare const sAccessRuleDto: z.ZodObject<{
101
101
  scheduleId: string;
102
102
  groupId: string;
103
103
  }[];
104
- refs: Record<string, string>;
104
+ refs: Record<string, string | string[]>;
105
105
  }, {
106
106
  id: string;
107
107
  version: number;
@@ -122,7 +122,7 @@ export declare const sAccessRuleDto: z.ZodObject<{
122
122
  scheduleId: string;
123
123
  groupId: string;
124
124
  }[];
125
- refs: Record<string, string>;
125
+ refs: Record<string, string | string[]>;
126
126
  }>;
127
127
  export type AccessRuleDto = z.infer<typeof sAccessRuleDto>;
128
128
  export declare const sCreateAccessRuleRequest: z.ZodObject<{
@@ -29,7 +29,7 @@ exports.sAccessRuleDto = zod_1.default.object({
29
29
  .describe('Group permissions'),
30
30
  createdOn: zod_1.default.string().describe('Created on'),
31
31
  lastModifiedOn: zod_1.default.string().describe('Last modified on'),
32
- refs: zod_1.default.record(zod_1.default.string()).describe('References'),
32
+ refs: zod_1.default.record(zod_1.default.union([zod_1.default.string(), zod_1.default.array(zod_1.default.string())])),
33
33
  version: zod_1.default.number().describe('Version'),
34
34
  });
35
35
  exports.sCreateAccessRuleRequest = zod_1.default.object({
@@ -43,7 +43,7 @@ export declare const sPersonDto: z.ZodObject<{
43
43
  displayName: string;
44
44
  }>, "many">;
45
45
  customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
46
- refs: z.ZodRecord<z.ZodString, z.ZodString>;
46
+ refs: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
47
47
  version: z.ZodNumber;
48
48
  }, "strip", z.ZodTypeAny, {
49
49
  id: string;
@@ -54,7 +54,7 @@ export declare const sPersonDto: z.ZodObject<{
54
54
  firstName: string;
55
55
  lastName: string;
56
56
  avatarId: string | null;
57
- refs: Record<string, string>;
57
+ refs: Record<string, string | string[]>;
58
58
  validFrom: string | null;
59
59
  validTo: string | null;
60
60
  accessSuspended: boolean;
@@ -78,7 +78,7 @@ export declare const sPersonDto: z.ZodObject<{
78
78
  firstName: string;
79
79
  lastName: string;
80
80
  avatarId: string | null;
81
- refs: Record<string, string>;
81
+ refs: Record<string, string | string[]>;
82
82
  validFrom: string | null;
83
83
  validTo: string | null;
84
84
  accessSuspended: boolean;
@@ -26,7 +26,7 @@ exports.sPersonDto = zod_1.default.object({
26
26
  credentials: zod_1.default.array(credential_1.sAssignedCredential),
27
27
  accessRules: zod_1.default.array(exports.sPersonAccessRule),
28
28
  customFields: zod_1.default.record(zod_1.default.string()).nullable(),
29
- refs: zod_1.default.record(zod_1.default.string()),
29
+ refs: zod_1.default.record(zod_1.default.union([zod_1.default.string(), zod_1.default.array(zod_1.default.string())])),
30
30
  version: zod_1.default.number(),
31
31
  });
32
32
  exports.sCreatePersonRequest = zod_1.default.object({
@@ -135,7 +135,7 @@ export declare const sScheduleDto: z.ZodObject<{
135
135
  deletable: z.ZodBoolean;
136
136
  createdOn: z.ZodString;
137
137
  lastModifiedOn: z.ZodString;
138
- refs: z.ZodRecord<z.ZodString, z.ZodString>;
138
+ refs: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
139
139
  version: z.ZodNumber;
140
140
  flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
141
141
  }, "strip", z.ZodTypeAny, {
@@ -164,7 +164,7 @@ export declare const sScheduleDto: z.ZodObject<{
164
164
  displayName: string;
165
165
  createdOn: string;
166
166
  lastModifiedOn: string;
167
- refs: Record<string, string>;
167
+ refs: Record<string, string | string[]>;
168
168
  editable: boolean;
169
169
  deletable: boolean;
170
170
  flag: "always" | "never" | null;
@@ -194,7 +194,7 @@ export declare const sScheduleDto: z.ZodObject<{
194
194
  displayName: string;
195
195
  createdOn: string;
196
196
  lastModifiedOn: string;
197
- refs: Record<string, string>;
197
+ refs: Record<string, string | string[]>;
198
198
  editable: boolean;
199
199
  deletable: boolean;
200
200
  flag: "always" | "never" | null;
@@ -36,7 +36,7 @@ exports.sScheduleDto = zod_1.default.object({
36
36
  deletable: zod_1.default.boolean(),
37
37
  createdOn: zod_1.default.string(),
38
38
  lastModifiedOn: zod_1.default.string(),
39
- refs: zod_1.default.record(zod_1.default.string()),
39
+ refs: zod_1.default.record(zod_1.default.union([zod_1.default.string(), zod_1.default.array(zod_1.default.string())])),
40
40
  version: zod_1.default.number(),
41
41
  flag: exports.sFlagType.nullable(),
42
42
  });
@@ -6,7 +6,7 @@ export declare const sZoneDto: z.ZodObject<{
6
6
  lastModifiedOn: z.ZodString;
7
7
  devices: z.ZodArray<z.ZodString, "many">;
8
8
  isGlobal: z.ZodBoolean;
9
- refs: z.ZodRecord<z.ZodString, z.ZodString>;
9
+ refs: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
10
10
  version: z.ZodNumber;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  id: string;
@@ -14,7 +14,7 @@ export declare const sZoneDto: z.ZodObject<{
14
14
  displayName: string;
15
15
  createdOn: string;
16
16
  lastModifiedOn: string;
17
- refs: Record<string, string>;
17
+ refs: Record<string, string | string[]>;
18
18
  devices: string[];
19
19
  isGlobal: boolean;
20
20
  }, {
@@ -23,7 +23,7 @@ export declare const sZoneDto: z.ZodObject<{
23
23
  displayName: string;
24
24
  createdOn: string;
25
25
  lastModifiedOn: string;
26
- refs: Record<string, string>;
26
+ refs: Record<string, string | string[]>;
27
27
  devices: string[];
28
28
  isGlobal: boolean;
29
29
  }>;
@@ -12,7 +12,7 @@ exports.sZoneDto = zod_1.default.object({
12
12
  lastModifiedOn: zod_1.default.string(),
13
13
  devices: zod_1.default.array(zod_1.default.string()),
14
14
  isGlobal: zod_1.default.boolean(),
15
- refs: zod_1.default.record(zod_1.default.string()),
15
+ refs: zod_1.default.record(zod_1.default.union([zod_1.default.string(), zod_1.default.array(zod_1.default.string())])),
16
16
  version: zod_1.default.number(),
17
17
  });
18
18
  exports.sCreateZoneRequest = zod_1.default.object({
@@ -226,7 +226,8 @@ export declare const sAccessControlCapabilityReport: z.ZodObject<{
226
226
  formatDescription?: string | undefined;
227
227
  maxPerPerson?: number | undefined;
228
228
  }>, "many">;
229
- accessbjects: z.ZodArray<z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>, "many">;
229
+ accessObjects: z.ZodArray<z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>, "many">;
230
+ oneSchedulePerDoor: z.ZodBoolean;
230
231
  }, "strip", z.ZodTypeAny, {
231
232
  tokens: {
232
233
  type: "card" | "pin" | "finger-print" | "face";
@@ -234,7 +235,8 @@ export declare const sAccessControlCapabilityReport: z.ZodObject<{
234
235
  formatDescription?: string | undefined;
235
236
  maxPerPerson?: number | undefined;
236
237
  }[];
237
- accessbjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
238
+ accessObjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
239
+ oneSchedulePerDoor: boolean;
238
240
  }, {
239
241
  tokens: {
240
242
  type: "card" | "pin" | "finger-print" | "face";
@@ -242,7 +244,8 @@ export declare const sAccessControlCapabilityReport: z.ZodObject<{
242
244
  formatDescription?: string | undefined;
243
245
  maxPerPerson?: number | undefined;
244
246
  }[];
245
- accessbjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
247
+ accessObjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
248
+ oneSchedulePerDoor: boolean;
246
249
  }>;
247
250
  export declare const sRegisterRq: z.ZodObject<{
248
251
  kind: z.ZodLiteral<"register">;
@@ -329,7 +332,8 @@ export declare const sRegisterRq: z.ZodObject<{
329
332
  formatDescription?: string | undefined;
330
333
  maxPerPerson?: number | undefined;
331
334
  }>, "many">;
332
- accessbjects: z.ZodArray<z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>, "many">;
335
+ accessObjects: z.ZodArray<z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>, "many">;
336
+ oneSchedulePerDoor: z.ZodBoolean;
333
337
  }, "strip", z.ZodTypeAny, {
334
338
  tokens: {
335
339
  type: "card" | "pin" | "finger-print" | "face";
@@ -337,7 +341,8 @@ export declare const sRegisterRq: z.ZodObject<{
337
341
  formatDescription?: string | undefined;
338
342
  maxPerPerson?: number | undefined;
339
343
  }[];
340
- accessbjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
344
+ accessObjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
345
+ oneSchedulePerDoor: boolean;
341
346
  }, {
342
347
  tokens: {
343
348
  type: "card" | "pin" | "finger-print" | "face";
@@ -345,7 +350,8 @@ export declare const sRegisterRq: z.ZodObject<{
345
350
  formatDescription?: string | undefined;
346
351
  maxPerPerson?: number | undefined;
347
352
  }[];
348
- accessbjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
353
+ accessObjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
354
+ oneSchedulePerDoor: boolean;
349
355
  }>>>;
350
356
  }, "strip", z.ZodTypeAny, {
351
357
  kind: "register";
@@ -372,7 +378,8 @@ export declare const sRegisterRq: z.ZodObject<{
372
378
  formatDescription?: string | undefined;
373
379
  maxPerPerson?: number | undefined;
374
380
  }[];
375
- accessbjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
381
+ accessObjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
382
+ oneSchedulePerDoor: boolean;
376
383
  }> | undefined;
377
384
  }, {
378
385
  kind: "register";
@@ -399,7 +406,8 @@ export declare const sRegisterRq: z.ZodObject<{
399
406
  formatDescription?: string | undefined;
400
407
  maxPerPerson?: number | undefined;
401
408
  }[];
402
- accessbjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
409
+ accessObjects: ("person" | "zone" | "reader" | "access-rule" | "schedule")[];
410
+ oneSchedulePerDoor: boolean;
403
411
  }> | undefined;
404
412
  }>;
405
413
  export declare const sRegisterRs: z.ZodIntersection<z.ZodObject<{
@@ -68,7 +68,8 @@ exports.sTokenSpecs = zod_1.z.object({
68
68
  });
69
69
  exports.sAccessControlCapabilityReport = zod_1.z.object({
70
70
  tokens: zod_1.z.array(exports.sTokenSpecs),
71
- accessbjects: zod_1.z.array(exports.sAccessObjectKind),
71
+ accessObjects: zod_1.z.array(exports.sAccessObjectKind),
72
+ oneSchedulePerDoor: zod_1.z.boolean(),
72
73
  });
73
74
  exports.sRegisterRq = zod_1.z.object({
74
75
  kind: zod_1.z.literal('register'),
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
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",