@awarevue/api-types 2.0.8 → 2.0.9

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/index.d.ts CHANGED
@@ -35,3 +35,4 @@ export * from './bookmarks';
35
35
  export * from './objects';
36
36
  export * from './primitives';
37
37
  export * from './api-keys';
38
+ export * from './notifications';
package/dist/index.js CHANGED
@@ -51,3 +51,4 @@ __exportStar(require("./bookmarks"), exports);
51
51
  __exportStar(require("./objects"), exports);
52
52
  __exportStar(require("./primitives"), exports);
53
53
  __exportStar(require("./api-keys"), exports);
54
+ __exportStar(require("./notifications"), exports);
@@ -27,3 +27,24 @@ export declare const sNotificationDto: z.ZodObject<{
27
27
  acknowledgedOn: number | null;
28
28
  source?: string | undefined;
29
29
  }>;
30
+ export type NotificationDto = z.infer<typeof sNotificationDto>;
31
+ export declare const sNotificationSearchParams: z.ZodObject<{
32
+ deviceId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
33
+ severity: z.ZodOptional<z.ZodArray<z.ZodEnum<["info", "warning", "critical"]>, "many">>;
34
+ acknowledged: z.ZodOptional<z.ZodBoolean>;
35
+ timeFrom: z.ZodOptional<z.ZodNumber>;
36
+ timeTo: z.ZodOptional<z.ZodNumber>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ deviceId?: string[] | undefined;
39
+ severity?: ("info" | "warning" | "critical")[] | undefined;
40
+ timeFrom?: number | undefined;
41
+ timeTo?: number | undefined;
42
+ acknowledged?: boolean | undefined;
43
+ }, {
44
+ deviceId?: string[] | undefined;
45
+ severity?: ("info" | "warning" | "critical")[] | undefined;
46
+ timeFrom?: number | undefined;
47
+ timeTo?: number | undefined;
48
+ acknowledged?: boolean | undefined;
49
+ }>;
50
+ export type NotificationSearchParams = z.infer<typeof sNotificationSearchParams>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sNotificationDto = void 0;
3
+ exports.sNotificationSearchParams = exports.sNotificationDto = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const primitives_1 = require("./primitives");
6
6
  exports.sNotificationDto = zod_1.z.object({
@@ -13,3 +13,10 @@ exports.sNotificationDto = zod_1.z.object({
13
13
  acknowledgedBy: zod_1.z.string().nonempty().nullable(),
14
14
  acknowledgedOn: zod_1.z.number().int().nonnegative().nullable(),
15
15
  });
16
+ exports.sNotificationSearchParams = zod_1.z.object({
17
+ deviceId: zod_1.z.array(primitives_1.sDeviceId).optional(),
18
+ severity: zod_1.z.array(primitives_1.sNotificationSeverity).optional(),
19
+ acknowledged: zod_1.z.boolean().optional(),
20
+ timeFrom: zod_1.z.number().int().nonnegative().optional(),
21
+ timeTo: zod_1.z.number().int().nonnegative().optional(),
22
+ });
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
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": "2.0.8",
3
+ "version": "2.0.9",
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",