@timothyw/pat-common 1.0.150 → 1.0.151
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.
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
"permissions": {
|
|
3
3
|
"allow": [
|
|
4
4
|
"Read(//Users/timothy/Documents/_development/webstorm-projects/pat-app/src/**)",
|
|
5
|
-
"Read(//Users/timothy/Documents/_development/webstorm-projects/pat-app/**)"
|
|
5
|
+
"Read(//Users/timothy/Documents/_development/webstorm-projects/pat-app/**)",
|
|
6
|
+
"Read(//Users/timothy/Documents/_development/webstorm-projects/pat-api/server/src/notifications/**)",
|
|
7
|
+
"Read(//Users/timothy/Documents/_development/webstorm-projects/pat-api/server/src/**)"
|
|
6
8
|
],
|
|
7
9
|
"deny": [],
|
|
8
10
|
"ask": []
|
|
@@ -19,7 +19,8 @@ export declare enum NotificationEntityType {
|
|
|
19
19
|
AGENDA_ITEM = "agenda_item",
|
|
20
20
|
HABIT = "habit",
|
|
21
21
|
AGENDA_PANEL = "agenda_panel",
|
|
22
|
-
INBOX_PANEL = "inbox_panel"
|
|
22
|
+
INBOX_PANEL = "inbox_panel",
|
|
23
|
+
HABIT_PANEL = "habit_panel"
|
|
23
24
|
}
|
|
24
25
|
export declare enum NotificationSchedulerType {
|
|
25
26
|
DAY_TIME = "day_time",
|
|
@@ -20,6 +20,7 @@ var NotificationEntityType;
|
|
|
20
20
|
NotificationEntityType["HABIT"] = "habit";
|
|
21
21
|
NotificationEntityType["AGENDA_PANEL"] = "agenda_panel";
|
|
22
22
|
NotificationEntityType["INBOX_PANEL"] = "inbox_panel";
|
|
23
|
+
NotificationEntityType["HABIT_PANEL"] = "habit_panel";
|
|
23
24
|
})(NotificationEntityType || (exports.NotificationEntityType = NotificationEntityType = {}));
|
|
24
25
|
var NotificationSchedulerType;
|
|
25
26
|
(function (NotificationSchedulerType) {
|
|
@@ -42,6 +43,7 @@ exports.ENTITY_TYPE_VARIANT_MAP = {
|
|
|
42
43
|
],
|
|
43
44
|
[NotificationEntityType.AGENDA_PANEL]: [],
|
|
44
45
|
[NotificationEntityType.INBOX_PANEL]: [],
|
|
46
|
+
[NotificationEntityType.HABIT_PANEL]: [],
|
|
45
47
|
};
|
|
46
48
|
exports.notificationSchedulerDataSchema = zod_1.z.discriminatedUnion('type', [
|
|
47
49
|
zod_1.z.object({
|
package/package.json
CHANGED
|
@@ -26,6 +26,7 @@ export enum NotificationEntityType {
|
|
|
26
26
|
|
|
27
27
|
AGENDA_PANEL = 'agenda_panel',
|
|
28
28
|
INBOX_PANEL = 'inbox_panel',
|
|
29
|
+
HABIT_PANEL = 'habit_panel',
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
export enum NotificationSchedulerType {
|
|
@@ -49,6 +50,7 @@ export const ENTITY_TYPE_VARIANT_MAP: Record<NotificationEntityType, Notificatio
|
|
|
49
50
|
],
|
|
50
51
|
[NotificationEntityType.AGENDA_PANEL]: [],
|
|
51
52
|
[NotificationEntityType.INBOX_PANEL]: [],
|
|
53
|
+
[NotificationEntityType.HABIT_PANEL]: [],
|
|
52
54
|
} as const;
|
|
53
55
|
|
|
54
56
|
export const notificationSchedulerDataSchema = z.discriminatedUnion('type', [
|