@timothyw/pat-common 1.0.142 → 1.0.144
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.
|
@@ -13,7 +13,7 @@ export declare enum NotificationTemplateLevel {
|
|
|
13
13
|
export declare enum NotificationEntityType {
|
|
14
14
|
AGENDA_ITEM = "agenda_item",
|
|
15
15
|
HABIT = "habit",
|
|
16
|
-
AGENDA_PANEL = "
|
|
16
|
+
AGENDA_PANEL = "agenda_panel",
|
|
17
17
|
INBOX_PANEL = "inbox_panel"
|
|
18
18
|
}
|
|
19
19
|
export declare enum NotificationSchedulerType {
|
|
@@ -121,6 +121,7 @@ export declare const notificationTemplateSchema: z.ZodObject<{
|
|
|
121
121
|
}>;
|
|
122
122
|
export declare const notificationDesyncSchema: z.ZodObject<{
|
|
123
123
|
_id: z.ZodEffects<z.ZodString, import("./id-types").NotificationSyncId, string>;
|
|
124
|
+
userId: z.ZodEffects<z.ZodString, import("./id-types").UserId, string>;
|
|
124
125
|
targetId: z.ZodString;
|
|
125
126
|
createdAt: z.ZodDate;
|
|
126
127
|
updatedAt: z.ZodDate;
|
|
@@ -130,11 +131,15 @@ export declare const notificationDesyncSchema: z.ZodObject<{
|
|
|
130
131
|
};
|
|
131
132
|
createdAt: Date;
|
|
132
133
|
updatedAt: Date;
|
|
134
|
+
userId: string & {
|
|
135
|
+
readonly __brand: "UserId";
|
|
136
|
+
};
|
|
133
137
|
targetId: string;
|
|
134
138
|
}, {
|
|
135
139
|
_id: string;
|
|
136
140
|
createdAt: Date;
|
|
137
141
|
updatedAt: Date;
|
|
142
|
+
userId: string;
|
|
138
143
|
targetId: string;
|
|
139
144
|
}>;
|
|
140
145
|
export declare const createNotificationTemplateRequestSchema: z.ZodObject<{
|
|
@@ -12,7 +12,7 @@ var NotificationEntityType;
|
|
|
12
12
|
(function (NotificationEntityType) {
|
|
13
13
|
NotificationEntityType["AGENDA_ITEM"] = "agenda_item";
|
|
14
14
|
NotificationEntityType["HABIT"] = "habit";
|
|
15
|
-
NotificationEntityType["AGENDA_PANEL"] = "
|
|
15
|
+
NotificationEntityType["AGENDA_PANEL"] = "agenda_panel";
|
|
16
16
|
NotificationEntityType["INBOX_PANEL"] = "inbox_panel";
|
|
17
17
|
})(NotificationEntityType || (exports.NotificationEntityType = NotificationEntityType = {}));
|
|
18
18
|
var NotificationSchedulerType;
|
|
@@ -50,6 +50,7 @@ exports.notificationTemplateSchema = zod_1.z.object({
|
|
|
50
50
|
});
|
|
51
51
|
exports.notificationDesyncSchema = zod_1.z.object({
|
|
52
52
|
_id: id_types_1.notificationDesyncIdSchema,
|
|
53
|
+
userId: id_types_1.userIdSchema,
|
|
53
54
|
targetId: zod_1.z.string(),
|
|
54
55
|
createdAt: zod_1.z.date(),
|
|
55
56
|
updatedAt: zod_1.z.date()
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ export enum NotificationEntityType {
|
|
|
18
18
|
AGENDA_ITEM = 'agenda_item',
|
|
19
19
|
HABIT = 'habit',
|
|
20
20
|
|
|
21
|
-
AGENDA_PANEL = '
|
|
21
|
+
AGENDA_PANEL = 'agenda_panel',
|
|
22
22
|
INBOX_PANEL = 'inbox_panel',
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -59,6 +59,7 @@ export const notificationTemplateSchema = z.object({
|
|
|
59
59
|
|
|
60
60
|
export const notificationDesyncSchema = z.object({
|
|
61
61
|
_id: notificationDesyncIdSchema,
|
|
62
|
+
userId: userIdSchema,
|
|
62
63
|
targetId: z.string(),
|
|
63
64
|
createdAt: z.date(),
|
|
64
65
|
updatedAt: z.date()
|