@ever-works/novu-channel-plugin 1.0.4 → 1.0.6
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.
- package/dist/index.cjs +157 -1
- package/dist/index.js +157 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -96,10 +96,14 @@ var USER_SELECTABLE_WORK_KINDS = [
|
|
|
96
96
|
"repo",
|
|
97
97
|
"app"
|
|
98
98
|
];
|
|
99
|
-
var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
|
|
99
|
+
var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
|
|
100
100
|
new Set(WORK_KINDS);
|
|
101
101
|
var GOAL_KINDS = ["metric", "delivery"];
|
|
102
102
|
new Set(GOAL_KINDS);
|
|
103
|
+
var RECORD_VISIBILITIES = ["private", "team", "organization"];
|
|
104
|
+
new Set(RECORD_VISIBILITIES);
|
|
105
|
+
var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
|
|
106
|
+
new Set(RECORD_LIST_VIEWS);
|
|
103
107
|
var VERSION = "1.0.0";
|
|
104
108
|
var GTM_SKILLS = [
|
|
105
109
|
// ── research ────────────────────────────────────────────────────────
|
|
@@ -663,6 +667,49 @@ var FLEET_AGENT_CREDENTIAL_FAMILIES = [
|
|
|
663
667
|
FLEET_AGENT_CREDENTIAL_FAMILIES.flatMap(
|
|
664
668
|
(family) => family.envNames
|
|
665
669
|
);
|
|
670
|
+
var FLEET_LINK_FRAME_KINDS = {
|
|
671
|
+
/** Raw bytes: terminal output/input, log lines, file chunks. */
|
|
672
|
+
DATA: 1,
|
|
673
|
+
/** `[cols u16][rows u16]`. */
|
|
674
|
+
RESIZE: 2,
|
|
675
|
+
/** `[code i32]`. */
|
|
676
|
+
EXIT: 3,
|
|
677
|
+
/** UTF-8 JSON control message. */
|
|
678
|
+
JSON: 10,
|
|
679
|
+
/** UTF-8 reason code. */
|
|
680
|
+
CLOSE: 11,
|
|
681
|
+
/** A full picture (the existing computer-frame encoding). */
|
|
682
|
+
FRAME: 20,
|
|
683
|
+
/** A pointer / key / text event (the existing computer input encoding). */
|
|
684
|
+
INPUT: 21,
|
|
685
|
+
/** Changed tiles `[w][h][count]{x,y,w,h,len,jpeg}`. */
|
|
686
|
+
TILES: 23,
|
|
687
|
+
/** `[bytes u32]` credit. */
|
|
688
|
+
ACK: 30,
|
|
689
|
+
/** End of a stream. */
|
|
690
|
+
END: 31,
|
|
691
|
+
/** UTF-8 text ≤ 256 KiB, pasted into a desktop. */
|
|
692
|
+
CLIP: 40
|
|
693
|
+
};
|
|
694
|
+
new Set(Object.values(FLEET_LINK_FRAME_KINDS));
|
|
695
|
+
var FLEET_LINK_CONTROL_TYPES = [
|
|
696
|
+
"link.hello",
|
|
697
|
+
"link.ready",
|
|
698
|
+
"link.ping",
|
|
699
|
+
"link.pong",
|
|
700
|
+
"link.pause",
|
|
701
|
+
"link.resume",
|
|
702
|
+
"link.drain",
|
|
703
|
+
"channel.open",
|
|
704
|
+
"channel.ready",
|
|
705
|
+
"channel.refused",
|
|
706
|
+
"channel.close",
|
|
707
|
+
"operation.progress",
|
|
708
|
+
"operation.done",
|
|
709
|
+
"operation.cancel"
|
|
710
|
+
];
|
|
711
|
+
new Set(FLEET_LINK_CONTROL_TYPES);
|
|
712
|
+
new TextEncoder();
|
|
666
713
|
var EMAIL_INBOX_CAP_FIELDS = [
|
|
667
714
|
"inboxDailySends",
|
|
668
715
|
"inboxBurstSends",
|
|
@@ -805,6 +852,115 @@ var ACTION_CATEGORIES = Object.freeze([
|
|
|
805
852
|
Object.freeze(
|
|
806
853
|
ACTION_CATEGORIES.filter((c) => c !== "read.internal")
|
|
807
854
|
);
|
|
855
|
+
var DOMAIN_EVENT_CATALOG = [
|
|
856
|
+
// EW-P2-6 — `org:write` (and the app) create Organizations.
|
|
857
|
+
{ type: "organization.created", domain: "organization", aggregateType: "organization", phase: "P2" },
|
|
858
|
+
{ type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
|
|
859
|
+
{
|
|
860
|
+
type: "organization.member.added",
|
|
861
|
+
domain: "organization",
|
|
862
|
+
aggregateType: "organization",
|
|
863
|
+
phase: "P1",
|
|
864
|
+
child: "member"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
type: "organization.member.updated",
|
|
868
|
+
domain: "organization",
|
|
869
|
+
aggregateType: "organization",
|
|
870
|
+
phase: "P1",
|
|
871
|
+
child: "member"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
type: "organization.member.removed",
|
|
875
|
+
domain: "organization",
|
|
876
|
+
aggregateType: "organization",
|
|
877
|
+
phase: "P1",
|
|
878
|
+
child: "member"
|
|
879
|
+
},
|
|
880
|
+
{ type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
881
|
+
{ type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
882
|
+
{ type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
883
|
+
{ type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
884
|
+
{ type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
885
|
+
{ type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
886
|
+
{ type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
887
|
+
{ type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
888
|
+
{ type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
889
|
+
{ type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
890
|
+
{ type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
891
|
+
{ type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
|
|
892
|
+
{ type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
|
|
893
|
+
{ type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
|
|
894
|
+
{ type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
|
|
895
|
+
{ type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
|
|
896
|
+
{ type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
|
|
897
|
+
{ type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
898
|
+
{ type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
899
|
+
{ type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
900
|
+
{ type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
901
|
+
{ type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
902
|
+
{ type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
903
|
+
{ type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
904
|
+
{ type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
|
|
905
|
+
{ type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
|
|
906
|
+
{ type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
|
|
907
|
+
{ type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
|
|
908
|
+
{ type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
909
|
+
{ type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
910
|
+
{ type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
911
|
+
{ type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
912
|
+
{ type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
913
|
+
{ type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
914
|
+
{ type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
915
|
+
{ type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
916
|
+
{ type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
917
|
+
{ type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
918
|
+
{ type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
919
|
+
{ type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
920
|
+
{ type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
921
|
+
{ type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
922
|
+
{ type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
923
|
+
{ type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
|
|
924
|
+
{ type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
|
|
925
|
+
{ type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
|
|
926
|
+
{ type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
|
|
927
|
+
{ type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
|
|
928
|
+
{ type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
|
|
929
|
+
{ type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
|
|
930
|
+
{ type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
|
|
931
|
+
{ type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
932
|
+
{ type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
933
|
+
{ type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
934
|
+
{ type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
|
|
935
|
+
{ type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
|
|
936
|
+
{ type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
|
|
937
|
+
{ type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
938
|
+
{ type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
939
|
+
{ type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
940
|
+
{ type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
941
|
+
{ type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
942
|
+
{ type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
943
|
+
{ type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
944
|
+
{ type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
945
|
+
{ type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
946
|
+
{ type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
947
|
+
{ type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
948
|
+
{ type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
949
|
+
{ type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
950
|
+
{ type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
951
|
+
{ type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
952
|
+
{ type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
953
|
+
{ type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
954
|
+
{ type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
|
|
955
|
+
{ type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
|
|
956
|
+
{ type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
|
|
957
|
+
{ type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
|
|
958
|
+
{ type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
|
|
959
|
+
];
|
|
960
|
+
DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
|
|
961
|
+
new Map(
|
|
962
|
+
DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
|
|
963
|
+
);
|
|
808
964
|
var PLUGIN_CAPABILITIES = {
|
|
809
965
|
// Notifications v2 (sibling of EW-650) — Notification Channels.
|
|
810
966
|
// Plugins declare `NOTIFICATION_CHANNEL` (umbrella) plus the
|
package/dist/index.js
CHANGED
|
@@ -94,10 +94,14 @@ var USER_SELECTABLE_WORK_KINDS = [
|
|
|
94
94
|
"repo",
|
|
95
95
|
"app"
|
|
96
96
|
];
|
|
97
|
-
var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "default"];
|
|
97
|
+
var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
|
|
98
98
|
new Set(WORK_KINDS);
|
|
99
99
|
var GOAL_KINDS = ["metric", "delivery"];
|
|
100
100
|
new Set(GOAL_KINDS);
|
|
101
|
+
var RECORD_VISIBILITIES = ["private", "team", "organization"];
|
|
102
|
+
new Set(RECORD_VISIBILITIES);
|
|
103
|
+
var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
|
|
104
|
+
new Set(RECORD_LIST_VIEWS);
|
|
101
105
|
var VERSION = "1.0.0";
|
|
102
106
|
var GTM_SKILLS = [
|
|
103
107
|
// ── research ────────────────────────────────────────────────────────
|
|
@@ -661,6 +665,49 @@ var FLEET_AGENT_CREDENTIAL_FAMILIES = [
|
|
|
661
665
|
FLEET_AGENT_CREDENTIAL_FAMILIES.flatMap(
|
|
662
666
|
(family) => family.envNames
|
|
663
667
|
);
|
|
668
|
+
var FLEET_LINK_FRAME_KINDS = {
|
|
669
|
+
/** Raw bytes: terminal output/input, log lines, file chunks. */
|
|
670
|
+
DATA: 1,
|
|
671
|
+
/** `[cols u16][rows u16]`. */
|
|
672
|
+
RESIZE: 2,
|
|
673
|
+
/** `[code i32]`. */
|
|
674
|
+
EXIT: 3,
|
|
675
|
+
/** UTF-8 JSON control message. */
|
|
676
|
+
JSON: 10,
|
|
677
|
+
/** UTF-8 reason code. */
|
|
678
|
+
CLOSE: 11,
|
|
679
|
+
/** A full picture (the existing computer-frame encoding). */
|
|
680
|
+
FRAME: 20,
|
|
681
|
+
/** A pointer / key / text event (the existing computer input encoding). */
|
|
682
|
+
INPUT: 21,
|
|
683
|
+
/** Changed tiles `[w][h][count]{x,y,w,h,len,jpeg}`. */
|
|
684
|
+
TILES: 23,
|
|
685
|
+
/** `[bytes u32]` credit. */
|
|
686
|
+
ACK: 30,
|
|
687
|
+
/** End of a stream. */
|
|
688
|
+
END: 31,
|
|
689
|
+
/** UTF-8 text ≤ 256 KiB, pasted into a desktop. */
|
|
690
|
+
CLIP: 40
|
|
691
|
+
};
|
|
692
|
+
new Set(Object.values(FLEET_LINK_FRAME_KINDS));
|
|
693
|
+
var FLEET_LINK_CONTROL_TYPES = [
|
|
694
|
+
"link.hello",
|
|
695
|
+
"link.ready",
|
|
696
|
+
"link.ping",
|
|
697
|
+
"link.pong",
|
|
698
|
+
"link.pause",
|
|
699
|
+
"link.resume",
|
|
700
|
+
"link.drain",
|
|
701
|
+
"channel.open",
|
|
702
|
+
"channel.ready",
|
|
703
|
+
"channel.refused",
|
|
704
|
+
"channel.close",
|
|
705
|
+
"operation.progress",
|
|
706
|
+
"operation.done",
|
|
707
|
+
"operation.cancel"
|
|
708
|
+
];
|
|
709
|
+
new Set(FLEET_LINK_CONTROL_TYPES);
|
|
710
|
+
new TextEncoder();
|
|
664
711
|
var EMAIL_INBOX_CAP_FIELDS = [
|
|
665
712
|
"inboxDailySends",
|
|
666
713
|
"inboxBurstSends",
|
|
@@ -803,6 +850,115 @@ var ACTION_CATEGORIES = Object.freeze([
|
|
|
803
850
|
Object.freeze(
|
|
804
851
|
ACTION_CATEGORIES.filter((c) => c !== "read.internal")
|
|
805
852
|
);
|
|
853
|
+
var DOMAIN_EVENT_CATALOG = [
|
|
854
|
+
// EW-P2-6 — `org:write` (and the app) create Organizations.
|
|
855
|
+
{ type: "organization.created", domain: "organization", aggregateType: "organization", phase: "P2" },
|
|
856
|
+
{ type: "organization.updated", domain: "organization", aggregateType: "organization", phase: "P1" },
|
|
857
|
+
{
|
|
858
|
+
type: "organization.member.added",
|
|
859
|
+
domain: "organization",
|
|
860
|
+
aggregateType: "organization",
|
|
861
|
+
phase: "P1",
|
|
862
|
+
child: "member"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
type: "organization.member.updated",
|
|
866
|
+
domain: "organization",
|
|
867
|
+
aggregateType: "organization",
|
|
868
|
+
phase: "P1",
|
|
869
|
+
child: "member"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
type: "organization.member.removed",
|
|
873
|
+
domain: "organization",
|
|
874
|
+
aggregateType: "organization",
|
|
875
|
+
phase: "P1",
|
|
876
|
+
child: "member"
|
|
877
|
+
},
|
|
878
|
+
{ type: "agent.created", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
879
|
+
{ type: "agent.updated", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
880
|
+
{ type: "agent.status_changed", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
881
|
+
{ type: "agent.archived", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
882
|
+
{ type: "agent.deleted", domain: "agents", aggregateType: "agent", phase: "P1" },
|
|
883
|
+
{ type: "team.created", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
884
|
+
{ type: "team.updated", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
885
|
+
{ type: "team.deleted", domain: "teams", aggregateType: "team", phase: "P1" },
|
|
886
|
+
{ type: "team.member.added", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
887
|
+
{ type: "team.member.updated", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
888
|
+
{ type: "team.member.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "member" },
|
|
889
|
+
{ type: "team.resource.added", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
|
|
890
|
+
{ type: "team.resource.removed", domain: "teams", aggregateType: "team", phase: "P1", child: "resource" },
|
|
891
|
+
{ type: "work.created", domain: "works", aggregateType: "work", phase: "P1" },
|
|
892
|
+
{ type: "work.updated", domain: "works", aggregateType: "work", phase: "P1" },
|
|
893
|
+
{ type: "work.archived", domain: "works", aggregateType: "work", phase: "P1" },
|
|
894
|
+
{ type: "work.deleted", domain: "works", aggregateType: "work", phase: "P1" },
|
|
895
|
+
{ type: "work.member.added", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
896
|
+
{ type: "work.member.updated", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
897
|
+
{ type: "work.member.removed", domain: "works", aggregateType: "work", phase: "P1", child: "member" },
|
|
898
|
+
{ type: "mission.created", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
899
|
+
{ type: "mission.updated", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
900
|
+
{ type: "mission.status_changed", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
901
|
+
{ type: "mission.deleted", domain: "missions", aggregateType: "mission", phase: "P2" },
|
|
902
|
+
{ type: "mission.goal.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
|
|
903
|
+
{ type: "mission.goal.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "goal" },
|
|
904
|
+
{ type: "mission.work.linked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
|
|
905
|
+
{ type: "mission.work.unlinked", domain: "missions", aggregateType: "mission", phase: "P2", child: "work" },
|
|
906
|
+
{ type: "goal.created", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
907
|
+
{ type: "goal.updated", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
908
|
+
{ type: "goal.status_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
909
|
+
{ type: "goal.archived", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
910
|
+
{ type: "goal.unarchived", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
911
|
+
{ type: "goal.deleted", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
912
|
+
{ type: "goal.progress_changed", domain: "goals", aggregateType: "goal", phase: "P2" },
|
|
913
|
+
{ type: "idea.created", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
914
|
+
{ type: "idea.updated", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
915
|
+
{ type: "idea.status_changed", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
916
|
+
{ type: "idea.deleted", domain: "ideas", aggregateType: "idea", phase: "P2" },
|
|
917
|
+
{ type: "task.created", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
918
|
+
{ type: "task.updated", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
919
|
+
{ type: "task.transitioned", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
920
|
+
{ type: "task.deleted", domain: "tasks", aggregateType: "task", phase: "P1" },
|
|
921
|
+
{ type: "task.assignee.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
|
|
922
|
+
{ type: "task.assignee.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "assignee" },
|
|
923
|
+
{ type: "task.watcher.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
|
|
924
|
+
{ type: "task.watcher.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "watcher" },
|
|
925
|
+
{ type: "task.block.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
|
|
926
|
+
{ type: "task.block.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "block" },
|
|
927
|
+
{ type: "task.relation.added", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
|
|
928
|
+
{ type: "task.relation.removed", domain: "tasks", aggregateType: "task", phase: "P1", child: "relation" },
|
|
929
|
+
{ type: "task.comment.created", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
930
|
+
{ type: "task.comment.updated", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
931
|
+
{ type: "task.comment.deleted", domain: "tasks", aggregateType: "task", phase: "P1", child: "comment" },
|
|
932
|
+
{ type: "task.attachment.added", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
|
|
933
|
+
{ type: "task.attachment.removed", domain: "tasks", aggregateType: "task", phase: "P3", child: "attachment" },
|
|
934
|
+
{ type: "task.runtime_updated", domain: "tasks", aggregateType: "task", phase: "P1", optIn: true },
|
|
935
|
+
{ type: "inbox.item.created", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
936
|
+
{ type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
937
|
+
{ type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
938
|
+
{ type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
939
|
+
{ type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
940
|
+
{ type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
941
|
+
{ type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
942
|
+
{ type: "kb.document.archived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
943
|
+
{ type: "kb.document.unarchived", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
944
|
+
{ type: "kb.document.deleted", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
945
|
+
{ type: "kb.document.review_changed", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
946
|
+
{ type: "kb.folder.created", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
947
|
+
{ type: "kb.folder.updated", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
948
|
+
{ type: "kb.folder.deleted", domain: "kb", aggregateType: "kb_folder", phase: "P3" },
|
|
949
|
+
{ type: "email.message.received", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
950
|
+
{ type: "email.message.sent", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
951
|
+
{ type: "email.message.status_changed", domain: "email", aggregateType: "email_message", phase: "P4" },
|
|
952
|
+
{ type: "task.visibility_changed", domain: "visibility", aggregateType: "task", phase: "P1" },
|
|
953
|
+
{ type: "agent.visibility_changed", domain: "visibility", aggregateType: "agent", phase: "P1" },
|
|
954
|
+
{ type: "goal.visibility_changed", domain: "visibility", aggregateType: "goal", phase: "P2" },
|
|
955
|
+
{ type: "mission.visibility_changed", domain: "visibility", aggregateType: "mission", phase: "P2" },
|
|
956
|
+
{ type: "idea.visibility_changed", domain: "visibility", aggregateType: "idea", phase: "P2" }
|
|
957
|
+
];
|
|
958
|
+
DOMAIN_EVENT_CATALOG.map((entry) => entry.type);
|
|
959
|
+
new Map(
|
|
960
|
+
DOMAIN_EVENT_CATALOG.map((entry) => [entry.type, entry])
|
|
961
|
+
);
|
|
806
962
|
var PLUGIN_CAPABILITIES = {
|
|
807
963
|
// Notifications v2 (sibling of EW-650) — Notification Channels.
|
|
808
964
|
// Plugins declare `NOTIFICATION_CHANNEL` (umbrella) plus the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ever-works/novu-channel-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Novu notification-channel plugin (workflow meta-router) for Ever Works platform",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ever Co. LTD",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"test:watch": "vitest"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ever-works/plugin": "^1.2.
|
|
35
|
+
"@ever-works/plugin": "^1.2.6"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^26.6.4",
|
|
39
39
|
"tsup": "^8.0.0",
|
|
40
40
|
"typescript": "^5.9.3",
|
|
41
|
-
"vitest": "^
|
|
41
|
+
"vitest": "^5.0.5"
|
|
42
42
|
},
|
|
43
43
|
"everworks": {
|
|
44
44
|
"plugin": {
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"url": "https://github.com/ever-works/ever-works/issues"
|
|
74
74
|
},
|
|
75
75
|
"everworksRelease": {
|
|
76
|
-
"contentHash": "sha256:
|
|
77
|
-
"commit": "
|
|
78
|
-
"source": "https://github.com/ever-works/ever-works/tree/
|
|
76
|
+
"contentHash": "sha256:b89babf212ffb7ef7cbbe7034ef7ab1e6dcff133d049fd9f80e0ccee1fd0d8f7",
|
|
77
|
+
"commit": "54552a4d2dcb0e2d5213b0a47fd3ffcbd432f73c",
|
|
78
|
+
"source": "https://github.com/ever-works/ever-works/tree/54552a4d2dcb0e2d5213b0a47fd3ffcbd432f73c/packages/plugins/novu-channel"
|
|
79
79
|
}
|
|
80
80
|
}
|