@sentry/junior-plugin-api 0.155.0 → 0.157.0

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.
@@ -23,6 +23,21 @@ export interface UnfinishedWorkHookContext extends PluginContext {
23
23
  export interface UnfinishedWorkResult {
24
24
  /** Candidate conversations that have plugin-owned work to finish. */
25
25
  conversationIds: string[];
26
+ /**
27
+ * Candidate conversations that have any associated plugin-owned work,
28
+ * finished or unfinished. Omit when the plugin cannot distinguish assignment.
29
+ *
30
+ * The host uses this with unfinished work and finish times to set feed
31
+ * `isPriority`. Finished assigned work stays out of Priority unless the
32
+ * conversation has activity after the finish time.
33
+ */
34
+ assignedConversationIds?: string[];
35
+ /**
36
+ * Latest time when all known work finished, keyed by conversation id.
37
+ * ISO-8601 timestamps. Used with conversation activity to decide whether
38
+ * finished work still belongs in Priority.
39
+ */
40
+ finishedWorkAtByConversationId?: Record<string, string>;
26
41
  }
27
42
  export type PluginOperationalTone = "danger" | "good" | "neutral" | "warning";
28
43
  export interface PluginOperationalMetric {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-plugin-api",
3
- "version": "0.155.0",
3
+ "version": "0.157.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/operations.ts CHANGED
@@ -28,6 +28,21 @@ export interface UnfinishedWorkHookContext extends PluginContext {
28
28
  export interface UnfinishedWorkResult {
29
29
  /** Candidate conversations that have plugin-owned work to finish. */
30
30
  conversationIds: string[];
31
+ /**
32
+ * Candidate conversations that have any associated plugin-owned work,
33
+ * finished or unfinished. Omit when the plugin cannot distinguish assignment.
34
+ *
35
+ * The host uses this with unfinished work and finish times to set feed
36
+ * `isPriority`. Finished assigned work stays out of Priority unless the
37
+ * conversation has activity after the finish time.
38
+ */
39
+ assignedConversationIds?: string[];
40
+ /**
41
+ * Latest time when all known work finished, keyed by conversation id.
42
+ * ISO-8601 timestamps. Used with conversation activity to decide whether
43
+ * finished work still belongs in Priority.
44
+ */
45
+ finishedWorkAtByConversationId?: Record<string, string>;
31
46
  }
32
47
 
33
48
  export type PluginOperationalTone = "danger" | "good" | "neutral" | "warning";