@timothyw/pat-common 1.0.128 → 1.0.129
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.
|
@@ -31,7 +31,8 @@ export declare const notificationTriggerSchema: z.ZodObject<{
|
|
|
31
31
|
export declare const notificationTemplateSchema: z.ZodObject<{
|
|
32
32
|
_id: z.ZodEffects<z.ZodString, import("./id-types").NotificationTemplateId, string>;
|
|
33
33
|
userId: z.ZodEffects<z.ZodString, import("./id-types").UserId, string>;
|
|
34
|
-
|
|
34
|
+
targetLevel: z.ZodNativeEnum<typeof NotificationTemplateLevel>;
|
|
35
|
+
targetEntityType: z.ZodNativeEnum<typeof NotificationEntityType>;
|
|
35
36
|
targetId: z.ZodString;
|
|
36
37
|
trigger: z.ZodObject<{
|
|
37
38
|
type: z.ZodNativeEnum<typeof NotificationTriggerType>;
|
|
@@ -52,7 +53,8 @@ export declare const notificationTemplateSchema: z.ZodObject<{
|
|
|
52
53
|
userId: string & {
|
|
53
54
|
readonly __brand: "UserId";
|
|
54
55
|
};
|
|
55
|
-
|
|
56
|
+
targetLevel: NotificationTemplateLevel;
|
|
57
|
+
targetEntityType: NotificationEntityType;
|
|
56
58
|
targetId: string;
|
|
57
59
|
trigger: {
|
|
58
60
|
type: NotificationTriggerType;
|
|
@@ -63,7 +65,8 @@ export declare const notificationTemplateSchema: z.ZodObject<{
|
|
|
63
65
|
createdAt: Date;
|
|
64
66
|
updatedAt: Date;
|
|
65
67
|
userId: string;
|
|
66
|
-
|
|
68
|
+
targetLevel: NotificationTemplateLevel;
|
|
69
|
+
targetEntityType: NotificationEntityType;
|
|
67
70
|
targetId: string;
|
|
68
71
|
trigger: {
|
|
69
72
|
type: NotificationTriggerType;
|
|
@@ -27,7 +27,8 @@ exports.notificationTriggerSchema = zod_1.z.object({
|
|
|
27
27
|
exports.notificationTemplateSchema = zod_1.z.object({
|
|
28
28
|
_id: id_types_1.notificationTemplateIdSchema,
|
|
29
29
|
userId: id_types_1.userIdSchema,
|
|
30
|
-
|
|
30
|
+
targetLevel: zod_1.z.nativeEnum(NotificationTemplateLevel),
|
|
31
|
+
targetEntityType: zod_1.z.nativeEnum(NotificationEntityType),
|
|
31
32
|
targetId: zod_1.z.string(),
|
|
32
33
|
// entityType: z.nativeEnum(NotificationEntityType),
|
|
33
34
|
// entityId: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -35,7 +35,8 @@ export const notificationTriggerSchema = z.object({
|
|
|
35
35
|
export const notificationTemplateSchema = z.object({
|
|
36
36
|
_id: notificationTemplateIdSchema,
|
|
37
37
|
userId: userIdSchema,
|
|
38
|
-
|
|
38
|
+
targetLevel: z.nativeEnum(NotificationTemplateLevel),
|
|
39
|
+
targetEntityType: z.nativeEnum(NotificationEntityType),
|
|
39
40
|
targetId: z.string(),
|
|
40
41
|
// entityType: z.nativeEnum(NotificationEntityType),
|
|
41
42
|
// entityId: z.string().optional(),
|