api-arreya-types 1.0.59 → 1.0.60
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/alert.type.d.ts +18 -18
- package/dist/alert.type.js +2 -2
- package/package.json +1 -1
package/dist/alert.type.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export type Alert = z.infer<typeof Alert>;
|
|
|
37
37
|
export declare const CreateAlert: z.ZodObject<{
|
|
38
38
|
projectId: z.ZodString;
|
|
39
39
|
source: z.ZodString;
|
|
40
|
-
enabled: z.
|
|
40
|
+
enabled: z.ZodBoolean;
|
|
41
41
|
title: z.ZodString;
|
|
42
42
|
message: z.ZodString;
|
|
43
43
|
textColor: z.ZodString;
|
|
@@ -54,10 +54,10 @@ export declare const CreateAlert: z.ZodObject<{
|
|
|
54
54
|
message: string;
|
|
55
55
|
projectId: string;
|
|
56
56
|
source: string;
|
|
57
|
+
enabled: boolean;
|
|
57
58
|
title: string;
|
|
58
59
|
textColor: string;
|
|
59
60
|
backgroundColor: string;
|
|
60
|
-
enabled?: boolean | undefined;
|
|
61
61
|
}>;
|
|
62
62
|
export declare const UpdateAlert: z.ZodObject<{
|
|
63
63
|
id: z.ZodString;
|
|
@@ -87,25 +87,25 @@ export declare const UpdateAlert: z.ZodObject<{
|
|
|
87
87
|
export type CreateAlert = z.infer<typeof CreateAlert>;
|
|
88
88
|
export type UpdateAlert = z.infer<typeof UpdateAlert>;
|
|
89
89
|
export declare const PublishAlertRequestBody: z.ZodObject<Omit<{
|
|
90
|
-
|
|
90
|
+
id: z.ZodString;
|
|
91
91
|
source: z.ZodString;
|
|
92
|
-
enabled: z.
|
|
93
|
-
title: z.ZodString
|
|
94
|
-
message: z.ZodString
|
|
95
|
-
textColor: z.ZodString
|
|
96
|
-
backgroundColor: z.ZodString
|
|
97
|
-
}, "
|
|
98
|
-
message
|
|
99
|
-
enabled
|
|
100
|
-
title
|
|
101
|
-
textColor
|
|
102
|
-
backgroundColor
|
|
92
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
title: z.ZodOptional<z.ZodString>;
|
|
94
|
+
message: z.ZodOptional<z.ZodString>;
|
|
95
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
96
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
97
|
+
}, "id" | "source">, "strip", z.ZodTypeAny, {
|
|
98
|
+
message?: string | undefined;
|
|
99
|
+
enabled?: boolean | undefined;
|
|
100
|
+
title?: string | undefined;
|
|
101
|
+
textColor?: string | undefined;
|
|
102
|
+
backgroundColor?: string | undefined;
|
|
103
103
|
}, {
|
|
104
|
-
message
|
|
105
|
-
title: string;
|
|
106
|
-
textColor: string;
|
|
107
|
-
backgroundColor: string;
|
|
104
|
+
message?: string | undefined;
|
|
108
105
|
enabled?: boolean | undefined;
|
|
106
|
+
title?: string | undefined;
|
|
107
|
+
textColor?: string | undefined;
|
|
108
|
+
backgroundColor?: string | undefined;
|
|
109
109
|
}>;
|
|
110
110
|
export type PublishAlertRequestBody = z.infer<typeof PublishAlertRequestBody>;
|
|
111
111
|
export declare const BeepAlert: z.ZodObject<{
|
package/dist/alert.type.js
CHANGED
|
@@ -18,7 +18,7 @@ exports.Alert = zod_1.z.object({
|
|
|
18
18
|
exports.CreateAlert = zod_1.z.object({
|
|
19
19
|
projectId: zod_1.z.string(),
|
|
20
20
|
source: zod_1.z.string(),
|
|
21
|
-
enabled: zod_1.z.boolean()
|
|
21
|
+
enabled: zod_1.z.boolean(),
|
|
22
22
|
title: zod_1.z.string(),
|
|
23
23
|
message: zod_1.z.string(),
|
|
24
24
|
textColor: zod_1.z.string(),
|
|
@@ -33,7 +33,7 @@ exports.UpdateAlert = zod_1.z.object({
|
|
|
33
33
|
textColor: zod_1.z.string().optional(),
|
|
34
34
|
backgroundColor: zod_1.z.string().optional(),
|
|
35
35
|
});
|
|
36
|
-
exports.PublishAlertRequestBody = exports.
|
|
36
|
+
exports.PublishAlertRequestBody = exports.UpdateAlert.omit({ id: true, source: true });
|
|
37
37
|
// Legacy alert request params
|
|
38
38
|
var animations = [
|
|
39
39
|
'bounce',
|