colibris-types 2.0.1 → 2.1.0
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/lib/notification.d.ts +3 -0
- package/lib/notification.js +4 -0
- package/package.json +1 -1
package/lib/notification.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const NotificationSchema: z.ZodObject<{
|
|
|
10
10
|
url: z.ZodOptional<z.ZodString>;
|
|
11
11
|
to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12
12
|
type: z.ZodOptional<z.ZodEnum<["success", "error", "warning", "info", "pending"]>>;
|
|
13
|
+
contentParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
|
|
13
14
|
isDownloadable: z.ZodOptional<z.ZodBoolean>;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
15
16
|
title: string;
|
|
@@ -21,6 +22,7 @@ export declare const NotificationSchema: z.ZodObject<{
|
|
|
21
22
|
type?: "success" | "error" | "warning" | "info" | "pending" | undefined;
|
|
22
23
|
url?: string | undefined;
|
|
23
24
|
to?: string[] | undefined;
|
|
25
|
+
contentParams?: Record<string, string | number> | undefined;
|
|
24
26
|
isDownloadable?: boolean | undefined;
|
|
25
27
|
}, {
|
|
26
28
|
title: string;
|
|
@@ -32,6 +34,7 @@ export declare const NotificationSchema: z.ZodObject<{
|
|
|
32
34
|
type?: "success" | "error" | "warning" | "info" | "pending" | undefined;
|
|
33
35
|
url?: string | undefined;
|
|
34
36
|
to?: string[] | undefined;
|
|
37
|
+
contentParams?: Record<string, string | number> | undefined;
|
|
35
38
|
isDownloadable?: boolean | undefined;
|
|
36
39
|
}>;
|
|
37
40
|
export type Notification = z.infer<typeof NotificationSchema>;
|
package/lib/notification.js
CHANGED
|
@@ -29,6 +29,10 @@ export const NotificationSchema = z
|
|
|
29
29
|
.optional()
|
|
30
30
|
.openapi({ description: "Optional list of recipients" }),
|
|
31
31
|
type: NotificationTypeSchema.optional(),
|
|
32
|
+
contentParams: z
|
|
33
|
+
.record(z.union([z.string(), z.number()]))
|
|
34
|
+
.optional()
|
|
35
|
+
.openapi({ description: "Optional interpolation params for content i18n key" }),
|
|
32
36
|
isDownloadable: z
|
|
33
37
|
.boolean()
|
|
34
38
|
.optional()
|