@timothyw/pat-common 1.0.143 → 1.0.145
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.
|
@@ -10,10 +10,15 @@ export declare enum NotificationTemplateLevel {
|
|
|
10
10
|
PARENT = "parent",
|
|
11
11
|
ENTITY = "entity"
|
|
12
12
|
}
|
|
13
|
+
export declare enum NotificationTemplateSyncState {
|
|
14
|
+
SYNCED = "synced",
|
|
15
|
+
DESYNCED = "desynced",
|
|
16
|
+
NO_PARENT = "no_parent"
|
|
17
|
+
}
|
|
13
18
|
export declare enum NotificationEntityType {
|
|
14
19
|
AGENDA_ITEM = "agenda_item",
|
|
15
20
|
HABIT = "habit",
|
|
16
|
-
AGENDA_PANEL = "
|
|
21
|
+
AGENDA_PANEL = "agenda_panel",
|
|
17
22
|
INBOX_PANEL = "inbox_panel"
|
|
18
23
|
}
|
|
19
24
|
export declare enum NotificationSchedulerType {
|
|
@@ -262,13 +267,13 @@ export declare const setEntitySyncRequestSchema: z.ZodObject<{
|
|
|
262
267
|
targetId: z.ZodString;
|
|
263
268
|
synced: z.ZodBoolean;
|
|
264
269
|
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
synced: boolean;
|
|
265
271
|
targetEntityType: NotificationEntityType;
|
|
266
272
|
targetId: string;
|
|
267
|
-
synced: boolean;
|
|
268
273
|
}, {
|
|
274
|
+
synced: boolean;
|
|
269
275
|
targetEntityType: NotificationEntityType;
|
|
270
276
|
targetId: string;
|
|
271
|
-
synced: boolean;
|
|
272
277
|
}>;
|
|
273
278
|
export type NotificationTemplateData = z.infer<typeof notificationTemplateSchema>;
|
|
274
279
|
export type NotificationDesyncData = z.infer<typeof notificationDesyncSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setEntitySyncRequestSchema = exports.getEntitySyncRequestSchema = exports.updateNotificationTemplateRequestSchema = exports.createNotificationTemplateRequestSchema = exports.notificationDesyncSchema = exports.notificationTemplateSchema = exports.notificationSchedulerDataSchema = exports.NotificationVariantType = exports.NotificationSchedulerType = exports.NotificationEntityType = exports.NotificationTemplateLevel = void 0;
|
|
3
|
+
exports.setEntitySyncRequestSchema = exports.getEntitySyncRequestSchema = exports.updateNotificationTemplateRequestSchema = exports.createNotificationTemplateRequestSchema = exports.notificationDesyncSchema = exports.notificationTemplateSchema = exports.notificationSchedulerDataSchema = exports.NotificationVariantType = exports.NotificationSchedulerType = exports.NotificationEntityType = exports.NotificationTemplateSyncState = exports.NotificationTemplateLevel = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const id_types_1 = require("./id-types");
|
|
6
6
|
var NotificationTemplateLevel;
|
|
@@ -8,11 +8,17 @@ var NotificationTemplateLevel;
|
|
|
8
8
|
NotificationTemplateLevel["PARENT"] = "parent";
|
|
9
9
|
NotificationTemplateLevel["ENTITY"] = "entity";
|
|
10
10
|
})(NotificationTemplateLevel || (exports.NotificationTemplateLevel = NotificationTemplateLevel = {}));
|
|
11
|
+
var NotificationTemplateSyncState;
|
|
12
|
+
(function (NotificationTemplateSyncState) {
|
|
13
|
+
NotificationTemplateSyncState["SYNCED"] = "synced";
|
|
14
|
+
NotificationTemplateSyncState["DESYNCED"] = "desynced";
|
|
15
|
+
NotificationTemplateSyncState["NO_PARENT"] = "no_parent";
|
|
16
|
+
})(NotificationTemplateSyncState || (exports.NotificationTemplateSyncState = NotificationTemplateSyncState = {}));
|
|
11
17
|
var NotificationEntityType;
|
|
12
18
|
(function (NotificationEntityType) {
|
|
13
19
|
NotificationEntityType["AGENDA_ITEM"] = "agenda_item";
|
|
14
20
|
NotificationEntityType["HABIT"] = "habit";
|
|
15
|
-
NotificationEntityType["AGENDA_PANEL"] = "
|
|
21
|
+
NotificationEntityType["AGENDA_PANEL"] = "agenda_panel";
|
|
16
22
|
NotificationEntityType["INBOX_PANEL"] = "inbox_panel";
|
|
17
23
|
})(NotificationEntityType || (exports.NotificationEntityType = NotificationEntityType = {}));
|
|
18
24
|
var NotificationSchedulerType;
|
package/package.json
CHANGED
|
@@ -14,11 +14,17 @@ export enum NotificationTemplateLevel {
|
|
|
14
14
|
ENTITY = 'entity'
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
export enum NotificationTemplateSyncState {
|
|
18
|
+
SYNCED = 'synced',
|
|
19
|
+
DESYNCED = 'desynced',
|
|
20
|
+
NO_PARENT = 'no_parent'
|
|
21
|
+
}
|
|
22
|
+
|
|
17
23
|
export enum NotificationEntityType {
|
|
18
24
|
AGENDA_ITEM = 'agenda_item',
|
|
19
25
|
HABIT = 'habit',
|
|
20
26
|
|
|
21
|
-
AGENDA_PANEL = '
|
|
27
|
+
AGENDA_PANEL = 'agenda_panel',
|
|
22
28
|
INBOX_PANEL = 'inbox_panel',
|
|
23
29
|
}
|
|
24
30
|
|