@timothyw/pat-common 1.0.120 → 1.0.121

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.
@@ -7,16 +7,13 @@ export interface NotificationContext<T = any> {
7
7
  userId: string;
8
8
  variables: Record<string, any>;
9
9
  }
10
+ export declare enum NotificationParentType {
11
+ AGENDA_PANEL = "agenda_panel"
12
+ }
10
13
  export declare enum NotificationEntityType {
11
- AGENDA = "agenda",
12
- TASKS = "tasks",
13
- HABITS = "habits",
14
- INBOX = "inbox",
15
- AGENDA_ITEM = "agenda_item",
16
- HABIT = "habit",
17
- AGENDA_DEFAULTS = "agenda_defaults",
18
- HABITS_DEFAULTS = "habits_defaults",
19
- INBOX_PANEL = "inbox_panel"
14
+ INBOX_PANEL = "inbox_panel",
15
+ AGENDA_PANEL = "agenda_item",
16
+ AGENDA_ITEM = "agenda_item"
20
17
  }
21
18
  export declare const notificationEntityTypeSchema: z.ZodNativeEnum<typeof NotificationEntityType>;
22
19
  export declare enum NotificationStatus {
@@ -1,19 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getEntitySyncRequestSchema = exports.entitySyncRequestSchema = exports.getNotificationInstancesRequestSchema = exports.previewNotificationTemplateRequestSchema = exports.syncNotificationTemplateRequestSchema = exports.updateNotificationTemplateRequestSchema = exports.createNotificationTemplateRequestSchema = exports.notificationInstanceSchema = exports.entitySyncStateSchema = exports.createNotificationTemplateSchema = exports.notificationTemplateSchema = exports.notificationContentSchema = exports.notificationTriggerSchema = exports.notificationTriggerTypeSchema = exports.notificationStatusSchema = exports.NotificationTriggerType = exports.NotificationStatus = exports.notificationEntityTypeSchema = exports.NotificationEntityType = void 0;
3
+ exports.getEntitySyncRequestSchema = exports.entitySyncRequestSchema = exports.getNotificationInstancesRequestSchema = exports.previewNotificationTemplateRequestSchema = exports.syncNotificationTemplateRequestSchema = exports.updateNotificationTemplateRequestSchema = exports.createNotificationTemplateRequestSchema = exports.notificationInstanceSchema = exports.entitySyncStateSchema = exports.createNotificationTemplateSchema = exports.notificationTemplateSchema = exports.notificationContentSchema = exports.notificationTriggerSchema = exports.notificationTriggerTypeSchema = exports.notificationStatusSchema = exports.NotificationTriggerType = exports.NotificationStatus = exports.notificationEntityTypeSchema = exports.NotificationEntityType = exports.NotificationParentType = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const id_types_1 = require("./id-types");
6
+ var NotificationParentType;
7
+ (function (NotificationParentType) {
8
+ NotificationParentType["AGENDA_PANEL"] = "agenda_panel";
9
+ })(NotificationParentType || (exports.NotificationParentType = NotificationParentType = {}));
6
10
  var NotificationEntityType;
7
11
  (function (NotificationEntityType) {
8
- NotificationEntityType["AGENDA"] = "agenda";
9
- NotificationEntityType["TASKS"] = "tasks";
10
- NotificationEntityType["HABITS"] = "habits";
11
- NotificationEntityType["INBOX"] = "inbox";
12
- NotificationEntityType["AGENDA_ITEM"] = "agenda_item";
13
- NotificationEntityType["HABIT"] = "habit";
14
- NotificationEntityType["AGENDA_DEFAULTS"] = "agenda_defaults";
15
- NotificationEntityType["HABITS_DEFAULTS"] = "habits_defaults";
16
12
  NotificationEntityType["INBOX_PANEL"] = "inbox_panel";
13
+ NotificationEntityType["AGENDA_PANEL"] = "agenda_item";
14
+ NotificationEntityType["AGENDA_ITEM"] = "agenda_item";
17
15
  })(NotificationEntityType || (exports.NotificationEntityType = NotificationEntityType = {}));
18
16
  exports.notificationEntityTypeSchema = zod_1.z.nativeEnum(NotificationEntityType);
19
17
  var NotificationStatus;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@timothyw/pat-common",
3
3
  "description": "",
4
4
  "author": "Timothy Washburn",
5
- "version": "1.0.120",
5
+ "version": "1.0.121",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -10,16 +10,14 @@ export interface NotificationContext<T = any> {
10
10
  variables: Record<string, any>;
11
11
  }
12
12
 
13
+ export enum NotificationParentType {
14
+ AGENDA_PANEL = 'agenda_panel',
15
+ }
16
+
13
17
  export enum NotificationEntityType {
14
- AGENDA = 'agenda',
15
- TASKS = 'tasks',
16
- HABITS = 'habits',
17
- INBOX = 'inbox',
18
+ INBOX_PANEL = 'inbox_panel',
19
+ AGENDA_PANEL = 'agenda_item',
18
20
  AGENDA_ITEM = 'agenda_item',
19
- HABIT = 'habit',
20
- AGENDA_DEFAULTS = 'agenda_defaults',
21
- HABITS_DEFAULTS = 'habits_defaults',
22
- INBOX_PANEL = 'inbox_panel'
23
21
  }
24
22
 
25
23
  export const notificationEntityTypeSchema = z.nativeEnum(NotificationEntityType);