@opencxh/domain 1.96.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';
|