@trii/types 2.10.687 → 2.10.689

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,8 @@ 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;
88
91
  statuses?: AutomationExecutionStatus[] | null;
89
92
  createdFrom?: string | null;
90
93
  createdTo?: string | null;
@@ -94,6 +97,7 @@ export interface StartAutomationExecutionRequest {
94
97
  flowId: string;
95
98
  flowVersionId: string;
96
99
  entryPointId: string;
100
+ customer?: AutomationCustomer | null;
97
101
  trigger: AutomationExecutionTrigger;
98
102
  input: AutomationJsonObject;
99
103
  context: AutomationJsonObject;
@@ -68,8 +68,15 @@ export interface AutomationNodeOptionsRequest {
68
68
  propertyId: string;
69
69
  currentValues: AutomationJsonObject;
70
70
  context: AutomationJsonObject;
71
+ /** Optional provider-defined, case-insensitive text search. */
72
+ search?: string | null;
73
+ /** Opaque cursor returned by the previous response. */
74
+ continuationToken?: string | null;
75
+ /** Preferred page size. The API clamps it to the supported range (1-200). */
76
+ limit?: number;
71
77
  }
72
78
  export interface AutomationNodeOptionsResult {
73
79
  options: AutomationNodeOption[];
80
+ /** Opaque cursor for the next page; null or omitted means the last page. */
74
81
  continuationToken?: string | null;
75
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.687",
3
+ "version": "2.10.689",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",