@opencxh/domain 1.94.0 → 1.97.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Outbound webhook contract, shared between the automations app (client form +
|
|
3
|
+
* entity-store) and its server (entity, dispatch, delivery job). Kept here so a
|
|
4
|
+
* new trigger or field only has to be added once.
|
|
5
|
+
*/
|
|
6
|
+
export type WebhookMethod = "POST" | "PUT";
|
|
7
|
+
export type WebhookContentType = "json" | "multipart";
|
|
8
|
+
export type WebhookTrigger = "interactions:created" | "interactions:updated" | "activities:created" | "activities:updated";
|
|
9
|
+
export interface Webhook {
|
|
10
|
+
id: string;
|
|
11
|
+
organizationId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
url: string;
|
|
14
|
+
method: WebhookMethod;
|
|
15
|
+
/** Extra headers sent with the outbound request. */
|
|
16
|
+
headers?: Record<string, string>;
|
|
17
|
+
contentType: WebhookContentType;
|
|
18
|
+
triggers: WebhookTrigger[];
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
createdBy: string;
|
|
21
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './entities/organization';
|
|
|
24
24
|
export * from './entities/shopify';
|
|
25
25
|
export * from './entities/transcript';
|
|
26
26
|
export * from './entities/user';
|
|
27
|
+
export * from './entities/webhook';
|
|
27
28
|
export * from './text/message';
|
|
28
29
|
export * from './platform/ai-tools';
|
|
29
30
|
export * from './platform/api';
|
package/dist/platform/ui.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Activity } from '../entities/activity/types';
|
|
2
2
|
import { Interaction } from '../entities/interaction/types';
|
|
3
|
+
import { IconDefinition } from './common';
|
|
3
4
|
export interface ModalConfig {
|
|
4
5
|
id: string;
|
|
5
6
|
displayName: string;
|
|
@@ -113,7 +114,8 @@ export interface ExtensionConfig {
|
|
|
113
114
|
slot: string;
|
|
114
115
|
displayName: string;
|
|
115
116
|
resource: string;
|
|
116
|
-
icon
|
|
117
|
+
/** Lucide icon name (kebab-case string) or a full IconDefinition (e.g. custom svg). */
|
|
118
|
+
icon?: string | IconDefinition;
|
|
117
119
|
priority?: number;
|
|
118
120
|
contexts?: ExtensionContext[];
|
|
119
121
|
conditions?: {
|