@trii/types 2.10.688 → 2.10.690
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.
|
@@ -45,3 +45,17 @@ export interface AutomationError {
|
|
|
45
45
|
message: string;
|
|
46
46
|
details?: AutomationJsonObject | null;
|
|
47
47
|
}
|
|
48
|
+
/** Referencia estable con la identidad visible al iniciar una ejecución. */
|
|
49
|
+
export interface AutomationCustomerReference {
|
|
50
|
+
id: string;
|
|
51
|
+
displayNameSnapshot?: string | null;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Contexto CRM opcional asociado a un evento o ejecución.
|
|
55
|
+
* Permite representar escenarios B2C, B2B o un contacto perteneciente a una
|
|
56
|
+
* empresa sin depender de los contratos internos del módulo Contacts.
|
|
57
|
+
*/
|
|
58
|
+
export interface AutomationCustomer {
|
|
59
|
+
contact?: AutomationCustomerReference | null;
|
|
60
|
+
business?: AutomationCustomerReference | null;
|
|
61
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutomationJsonObject, AutomationJsonSchema, AutomationSourceApplication } from '../Common';
|
|
1
|
+
import { AutomationCustomer, AutomationJsonObject, AutomationJsonSchema, AutomationSourceApplication } from '../Common';
|
|
2
2
|
export interface AutomationEventDefinition {
|
|
3
3
|
eventType: string;
|
|
4
4
|
version: number;
|
|
@@ -18,6 +18,7 @@ export interface AutomationEventEnvelope {
|
|
|
18
18
|
eventVersion: number;
|
|
19
19
|
occurredAt: string;
|
|
20
20
|
receivedAt: string;
|
|
21
|
+
customer?: AutomationCustomer | null;
|
|
21
22
|
subjectId?: string | null;
|
|
22
23
|
correlationId?: string | null;
|
|
23
24
|
causationId?: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutomationError, AutomationJsonObject, AutomationPageRequest, AutomationSourceApplication } from '../Common';
|
|
1
|
+
import { AutomationCustomer, AutomationError, AutomationJsonObject, AutomationPageRequest, AutomationSourceApplication } from '../Common';
|
|
2
2
|
export declare enum AutomationExecutionStatus {
|
|
3
3
|
QUEUED = "queued",
|
|
4
4
|
RUNNING = "running",
|
|
@@ -43,6 +43,7 @@ export interface AutomationExecution {
|
|
|
43
43
|
flowVersion: number;
|
|
44
44
|
entryPointId: string;
|
|
45
45
|
status: AutomationExecutionStatus;
|
|
46
|
+
customer?: AutomationCustomer | null;
|
|
46
47
|
trigger: AutomationExecutionTrigger;
|
|
47
48
|
input: AutomationJsonObject;
|
|
48
49
|
context: AutomationJsonObject;
|
|
@@ -85,6 +86,9 @@ export interface AutomationExecutionQuery extends AutomationPageRequest {
|
|
|
85
86
|
flowId?: string | null;
|
|
86
87
|
flowVersionId?: string | null;
|
|
87
88
|
entryPointId?: string | null;
|
|
89
|
+
contactId?: string | null;
|
|
90
|
+
businessId?: string | null;
|
|
91
|
+
customerSearch?: string | null;
|
|
88
92
|
statuses?: AutomationExecutionStatus[] | null;
|
|
89
93
|
createdFrom?: string | null;
|
|
90
94
|
createdTo?: string | null;
|
|
@@ -94,6 +98,7 @@ export interface StartAutomationExecutionRequest {
|
|
|
94
98
|
flowId: string;
|
|
95
99
|
flowVersionId: string;
|
|
96
100
|
entryPointId: string;
|
|
101
|
+
customer?: AutomationCustomer | null;
|
|
97
102
|
trigger: AutomationExecutionTrigger;
|
|
98
103
|
input: AutomationJsonObject;
|
|
99
104
|
context: AutomationJsonObject;
|