@timothyw/pat-common 1.0.126 → 1.0.127

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.
@@ -8,10 +8,9 @@ export interface NotificationContext<T = any> {
8
8
  }
9
9
  export declare enum TargetType {
10
10
  PARENT = "parent",
11
- ENTITY = "entity"
12
- }
13
- export declare enum NotificationParentType {
14
- AGENDA_PANEL = "agenda_panel"
11
+ INBOX_PANEL = "inbox_panel",
12
+ AGENDA_PANEL = "agenda_item",
13
+ AGENDA_ITEM = "agenda_item"
15
14
  }
16
15
  export declare enum NotificationEntityType {
17
16
  INBOX_PANEL = "inbox_panel",
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getEntitySyncRequestSchema = exports.entitySyncRequestSchema = exports.updateNotificationTemplateRequestSchema = exports.createNotificationTemplateRequestSchema = exports.notificationTemplateSchema = exports.notificationTriggerSchema = exports.notificationTriggerTypeSchema = exports.NotificationTriggerType = exports.NotificationEntityType = exports.NotificationParentType = exports.TargetType = void 0;
3
+ exports.getEntitySyncRequestSchema = exports.entitySyncRequestSchema = exports.updateNotificationTemplateRequestSchema = exports.createNotificationTemplateRequestSchema = exports.notificationTemplateSchema = exports.notificationTriggerSchema = exports.notificationTriggerTypeSchema = exports.NotificationTriggerType = exports.NotificationEntityType = exports.TargetType = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const id_types_1 = require("./id-types");
6
+ // should always include all values from NotificationEntityType
6
7
  var TargetType;
7
8
  (function (TargetType) {
8
9
  TargetType["PARENT"] = "parent";
9
- TargetType["ENTITY"] = "entity";
10
+ TargetType["INBOX_PANEL"] = "inbox_panel";
11
+ TargetType["AGENDA_PANEL"] = "agenda_item";
12
+ TargetType["AGENDA_ITEM"] = "agenda_item";
10
13
  })(TargetType || (exports.TargetType = TargetType = {}));
11
- var NotificationParentType;
12
- (function (NotificationParentType) {
13
- NotificationParentType["AGENDA_PANEL"] = "agenda_panel";
14
- })(NotificationParentType || (exports.NotificationParentType = NotificationParentType = {}));
14
+ // update TargetType after modifying
15
15
  var NotificationEntityType;
16
16
  (function (NotificationEntityType) {
17
17
  NotificationEntityType["INBOX_PANEL"] = "inbox_panel";
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.126",
5
+ "version": "1.0.127",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -9,15 +9,16 @@ export interface NotificationContext<T = any> {
9
9
  userId: string;
10
10
  }
11
11
 
12
+ // should always include all values from NotificationEntityType
12
13
  export enum TargetType {
13
14
  PARENT = 'parent',
14
- ENTITY = 'entity'
15
- }
16
15
 
17
- export enum NotificationParentType {
18
- AGENDA_PANEL = 'agenda_panel',
16
+ INBOX_PANEL = 'inbox_panel',
17
+ AGENDA_PANEL = 'agenda_item',
18
+ AGENDA_ITEM = 'agenda_item',
19
19
  }
20
20
 
21
+ // update TargetType after modifying
21
22
  export enum NotificationEntityType {
22
23
  INBOX_PANEL = 'inbox_panel',
23
24
  AGENDA_PANEL = 'agenda_item',