@awarevue/api-types 1.0.79 → 1.0.81

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.
@@ -8,19 +8,13 @@ export interface PaginatedQueryResponse<T> {
8
8
  items: T[];
9
9
  total: number;
10
10
  }
11
- export declare const sPaginatedQueryRequestOf: <T extends z.AnyZodObject>(criteriaSchema: T) => z.ZodObject<z.objectUtil.extendShape<{
12
- q: z.ZodOptional<z.ZodString>;
13
- offset: z.ZodOptional<z.ZodNumber>;
14
- limit: z.ZodOptional<z.ZodNumber>;
15
- }, T["shape"]>, T["_def"]["unknownKeys"], T["_def"]["catchall"], z.objectOutputType<z.objectUtil.extendShape<{
16
- q: z.ZodOptional<z.ZodString>;
17
- offset: z.ZodOptional<z.ZodNumber>;
18
- limit: z.ZodOptional<z.ZodNumber>;
19
- }, T["shape"]>, T["_def"]["catchall"], T["_def"]["unknownKeys"]>, z.objectInputType<z.objectUtil.extendShape<{
20
- q: z.ZodOptional<z.ZodString>;
21
- offset: z.ZodOptional<z.ZodNumber>;
22
- limit: z.ZodOptional<z.ZodNumber>;
23
- }, T["shape"]>, T["_def"]["catchall"], T["_def"]["unknownKeys"]>>;
11
+ export declare const sPaginatedQueryRequestOf: <T extends z.AnyZodObject>(criteriaSchema: T) => z.ZodObject<{} & {
12
+ [x: string]: z.ZodOptional<any>;
13
+ }, any, any, {
14
+ [x: string]: any;
15
+ }, {
16
+ [x: string]: any;
17
+ }>;
24
18
  export declare const sPaginatedQueryResponseOf: <T extends ZodTypeAny>(itemSchema: T) => z.ZodObject<{
25
19
  items: z.ZodArray<T, "many">;
26
20
  total: z.ZodNumber;
package/dist/api/query.js CHANGED
@@ -14,7 +14,7 @@ const sPaginatedQueryRequestOf = (criteriaSchema) => zod_1.z
14
14
  .optional()
15
15
  .describe('Maximum number of items to return'),
16
16
  })
17
- .merge(criteriaSchema);
17
+ .merge(criteriaSchema.partial());
18
18
  exports.sPaginatedQueryRequestOf = sPaginatedQueryRequestOf;
19
19
  const sPaginatedQueryResponseOf = (itemSchema) => zod_1.z.object({
20
20
  items: zod_1.z.array(itemSchema).describe('Array of items matching the query'),
@@ -92,18 +92,18 @@ export declare const sBookmarkDto: z.ZodIntersection<z.ZodObject<{
92
92
  createdBy: string;
93
93
  }>>;
94
94
  export declare const sBookmarkSearchCriteria: z.ZodObject<{
95
- deviceId: z.ZodString;
96
- createdBy: z.ZodString;
95
+ deviceId: z.ZodArray<z.ZodString, "many">;
96
+ createdBy: z.ZodArray<z.ZodString, "many">;
97
97
  timeFrom: z.ZodNumber;
98
98
  timeTo: z.ZodNumber;
99
99
  }, "strip", z.ZodTypeAny, {
100
- deviceId: string;
101
- createdBy: string;
100
+ deviceId: string[];
101
+ createdBy: string[];
102
102
  timeFrom: number;
103
103
  timeTo: number;
104
104
  }, {
105
- deviceId: string;
106
- createdBy: string;
105
+ deviceId: string[];
106
+ createdBy: string[];
107
107
  timeFrom: number;
108
108
  timeTo: number;
109
109
  }>;
package/dist/bookmarks.js CHANGED
@@ -24,8 +24,8 @@ exports.sBookmarkDto = exports.sBookmarkProps.and(zod_1.z.object({
24
24
  lastModifiedOn: zod_1.z.string().datetime(),
25
25
  }));
26
26
  exports.sBookmarkSearchCriteria = zod_1.z.object({
27
- deviceId: zod_1.z.string(),
28
- createdBy: zod_1.z.string(),
27
+ deviceId: zod_1.z.array(zod_1.z.string()),
28
+ createdBy: zod_1.z.array(zod_1.z.string()),
29
29
  timeFrom: zod_1.z.number().min(0),
30
30
  timeTo: zod_1.z.number().min(0),
31
31
  });
@@ -10,6 +10,7 @@ import { RoleDto, UserDto } from '../user';
10
10
  import { ModuleConfig, ModuleConfigMetadata } from '../module-config';
11
11
  import { AccessControlCapabilityReport } from '../agent-communication';
12
12
  import { SecurityLevelDto } from '../security-level';
13
+ import { BookmarkDto } from '../bookmarks';
13
14
  export declare const SERVER = "server";
14
15
  export interface RunMacro {
15
16
  command: 'server.run-macro';
@@ -33,7 +34,7 @@ export type ServerState = {
33
34
  accessControlProviders: Record<string, AccessControlProviderState>;
34
35
  citadelMode: boolean;
35
36
  };
36
- export declare const sObjectKind: z.ZodEnum<["accessRule", "schedule", "person", "device", "zone", "personPresence", "deviceGroup", "view", "layout", "automationRule", "macro", "role", "user", "securityLevel"]>;
37
+ export declare const sObjectKind: z.ZodEnum<["accessRule", "schedule", "person", "device", "zone", "personPresence", "deviceGroup", "view", "layout", "automationRule", "macro", "role", "user", "securityLevel", "bookmark"]>;
37
38
  export type ObjectKind = z.infer<typeof sObjectKind>;
38
39
  export type ObjectKinds = {
39
40
  layout: LayoutDto;
@@ -50,6 +51,7 @@ export type ObjectKinds = {
50
51
  role: RoleDto;
51
52
  user: UserDto;
52
53
  securityLevel: SecurityLevelDto;
54
+ bookmark: BookmarkDto;
53
55
  };
54
56
  export declare const objectKinds: readonly ObjectKind[];
55
57
  export type ObjectCreated = {
@@ -19,6 +19,7 @@ exports.sObjectKind = zod_1.z.enum([
19
19
  'role',
20
20
  'user',
21
21
  'securityLevel',
22
+ 'bookmark',
22
23
  ]);
23
24
  exports.objectKinds = exports.sObjectKind.options;
24
25
  exports.objectLabels = {
@@ -36,4 +37,5 @@ exports.objectLabels = {
36
37
  automationRule: 'Automation Rule',
37
38
  macro: 'Macro',
38
39
  securityLevel: 'Security Level',
40
+ bookmark: 'Bookmark',
39
41
  };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.79",
3
+ "version": "1.0.81",
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.79",
3
+ "version": "1.0.81",
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",