@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 +1 -0
- package/dist/index.js +1 -0
- package/dist/notifications.d.ts +21 -0
- package/dist/notifications.js +8 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/notifications.d.ts
CHANGED
|
@@ -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>;
|
package/dist/notifications.js
CHANGED
|
@@ -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