@trii/types 2.10.729 → 2.10.730

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.
Files changed (144) hide show
  1. package/dist/Automations/Events/Event.d.ts +3 -3
  2. package/dist/Contacts/CommunicationEndpoint.d.ts +8 -8
  3. package/dist/Conversations/Conversation.d.ts +8 -8
  4. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  5. package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
  6. package/dist/Conversations/InboxCounters.d.ts +18 -0
  7. package/dist/Conversations/InboxMongo.d.ts +12 -12
  8. package/dist/Conversations/Routing.d.ts +10 -10
  9. package/dist/Events/DomainEventTypes.d.ts +23 -23
  10. package/dist/Tickets/Common.d.ts +62 -0
  11. package/dist/Tickets/CustomerNotification.d.ts +192 -0
  12. package/dist/Tickets/CustomerNotification.js +54 -0
  13. package/dist/Tickets/Notes.d.ts +13 -0
  14. package/dist/Tickets/Notes.js +10 -0
  15. package/dist/Tickets/QuickResponse.d.ts +64 -0
  16. package/dist/Tickets/QuickResponse.js +41 -0
  17. package/dist/Tickets/Task.d.ts +11 -0
  18. package/dist/Tickets/Ticket.d.ts +2 -0
  19. package/dist/Tickets/index.d.ts +3 -0
  20. package/dist/Tickets/index.js +3 -0
  21. package/dist/src/Common/Channels/Channel.d.ts +1 -28
  22. package/dist/src/Common/Channels/Email.d.ts +0 -1
  23. package/dist/src/Common/Channels/Facebook.d.ts +0 -1
  24. package/dist/src/Common/Channels/Form.d.ts +0 -1
  25. package/dist/src/Common/Channels/GoogleBusiness.d.ts +0 -1
  26. package/dist/src/Common/Channels/Instagram.d.ts +0 -1
  27. package/dist/src/Common/Channels/MercadoLibre.d.ts +0 -1
  28. package/dist/src/Common/Channels/WebChat.d.ts +0 -1
  29. package/dist/src/Contacts/contacts.d.ts +2 -2
  30. package/dist/src/Contacts/index.d.ts +0 -2
  31. package/dist/src/Contacts/index.js +0 -2
  32. package/dist/src/Conversations/Conversation.d.ts +48 -410
  33. package/dist/src/Conversations/Conversation.js +34 -14
  34. package/dist/src/Conversations/DashBoard/dashboard.d.ts +2 -2
  35. package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  36. package/dist/src/Conversations/DashBoard/dashboardForms.js +24 -0
  37. package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +123 -280
  38. package/dist/src/Conversations/Flows/Workflows/Workflow.js +35 -85
  39. package/dist/src/Conversations/Groups/Group.d.ts +8 -2
  40. package/dist/src/Conversations/Groups/Group.js +6 -0
  41. package/dist/src/Conversations/Label.d.ts +1 -1
  42. package/dist/src/Conversations/WebHook.d.ts +1 -1
  43. package/dist/src/Conversations/index.d.ts +1 -9
  44. package/dist/src/Conversations/index.js +1 -9
  45. package/dist/src/PublicAPI/apiKey.d.ts +3 -92
  46. package/dist/src/PublicAPI/apiKey.js +0 -27
  47. package/dist/src/Tickets/AI.d.ts +2 -50
  48. package/dist/src/Tickets/AdvancedApi.d.ts +2 -142
  49. package/dist/src/Tickets/AdvancedApi.js +1 -28
  50. package/dist/src/Tickets/Approval.d.ts +4 -20
  51. package/dist/src/Tickets/Automation.d.ts +2 -46
  52. package/dist/src/Tickets/Category.d.ts +0 -18
  53. package/dist/src/Tickets/Dashboard.d.ts +0 -78
  54. package/dist/src/Tickets/Dashboard.js +1 -13
  55. package/dist/src/Tickets/Fields.d.ts +0 -4
  56. package/dist/src/Tickets/Layouts.d.ts +1 -3
  57. package/dist/src/Tickets/Routing.d.ts +3 -105
  58. package/dist/src/Tickets/Routing.js +1 -7
  59. package/dist/src/Tickets/Security.d.ts +4 -271
  60. package/dist/src/Tickets/Security.js +1 -10
  61. package/dist/src/Tickets/SelfService.d.ts +0 -190
  62. package/dist/src/Tickets/Sla.d.ts +0 -140
  63. package/dist/src/Tickets/Workflow.d.ts +0 -20
  64. package/dist/src/Users/UserTrii.d.ts +0 -10
  65. package/dist/src/Users/UserTrii.js +1 -8
  66. package/dist/src/index.d.ts +0 -4
  67. package/dist/src/index.js +1 -5
  68. package/package.json +12 -12
  69. package/dist/src/Automations/Capabilities/Capability.d.ts +0 -81
  70. package/dist/src/Automations/Capabilities/Capability.js +0 -23
  71. package/dist/src/Automations/Capabilities/index.d.ts +0 -1
  72. package/dist/src/Automations/Capabilities/index.js +0 -17
  73. package/dist/src/Automations/Common.d.ts +0 -94
  74. package/dist/src/Automations/Common.js +0 -40
  75. package/dist/src/Automations/Events/Event.d.ts +0 -96
  76. package/dist/src/Automations/Events/Event.js +0 -19
  77. package/dist/src/Automations/Events/index.d.ts +0 -1
  78. package/dist/src/Automations/Events/index.js +0 -17
  79. package/dist/src/Automations/Executions/Execution.d.ts +0 -298
  80. package/dist/src/Automations/Executions/Execution.js +0 -76
  81. package/dist/src/Automations/Executions/Testing.d.ts +0 -166
  82. package/dist/src/Automations/Executions/Testing.js +0 -54
  83. package/dist/src/Automations/Executions/index.d.ts +0 -2
  84. package/dist/src/Automations/Executions/index.js +0 -18
  85. package/dist/src/Automations/Flows/Canvas.d.ts +0 -109
  86. package/dist/src/Automations/Flows/Canvas.js +0 -43
  87. package/dist/src/Automations/Flows/Flow.d.ts +0 -154
  88. package/dist/src/Automations/Flows/Flow.js +0 -58
  89. package/dist/src/Automations/Flows/Requests.d.ts +0 -71
  90. package/dist/src/Automations/Flows/Validation.d.ts +0 -28
  91. package/dist/src/Automations/Flows/Validation.js +0 -9
  92. package/dist/src/Automations/Flows/index.d.ts +0 -4
  93. package/dist/src/Automations/Flows/index.js +0 -20
  94. package/dist/src/Automations/Nodes/Node.d.ts +0 -116
  95. package/dist/src/Automations/Nodes/Node.js +0 -27
  96. package/dist/src/Automations/Nodes/index.d.ts +0 -1
  97. package/dist/src/Automations/Nodes/index.js +0 -17
  98. package/dist/src/Automations/Triggers/Trigger.d.ts +0 -112
  99. package/dist/src/Automations/Triggers/Trigger.js +0 -66
  100. package/dist/src/Automations/Triggers/index.d.ts +0 -1
  101. package/dist/src/Automations/Triggers/index.js +0 -17
  102. package/dist/src/Automations/index.d.ts +0 -7
  103. package/dist/src/Automations/index.js +0 -23
  104. package/dist/src/Chats/Chat.d.ts +0 -61
  105. package/dist/src/Chats/Chat.js +0 -28
  106. package/dist/src/Contacts/CommunicationEndpoint.d.ts +0 -107
  107. package/dist/src/Contacts/CommunicationEndpoint.js +0 -39
  108. package/dist/src/Contacts/CommunicationMethod.d.ts +0 -9
  109. package/dist/src/Contacts/CommunicationMethod.js +0 -2
  110. package/dist/src/Conversations/Assignment.d.ts +0 -181
  111. package/dist/src/Conversations/Assignment.js +0 -4
  112. package/dist/src/Conversations/InboxMongo.d.ts +0 -154
  113. package/dist/src/Conversations/InboxMongo.js +0 -128
  114. package/dist/src/Conversations/InboxProjection.d.ts +0 -162
  115. package/dist/src/Conversations/InboxProjection.js +0 -2
  116. package/dist/src/Conversations/Outbox.d.ts +0 -24
  117. package/dist/src/Conversations/Outbox.js +0 -4
  118. package/dist/src/Conversations/Queue.d.ts +0 -107
  119. package/dist/src/Conversations/Queue.js +0 -4
  120. package/dist/src/Conversations/Routing.d.ts +0 -164
  121. package/dist/src/Conversations/Routing.js +0 -2
  122. package/dist/src/Conversations/Sla.d.ts +0 -227
  123. package/dist/src/Conversations/Sla.js +0 -6
  124. package/dist/src/Conversations/Transfer.d.ts +0 -73
  125. package/dist/src/Conversations/Transfer.js +0 -2
  126. package/dist/src/Events/DomainEventTypes.d.ts +0 -51
  127. package/dist/src/Events/DomainEventTypes.js +0 -49
  128. package/dist/src/Events/index.d.ts +0 -1
  129. package/dist/src/Events/index.js +0 -17
  130. package/dist/src/Forms/API.d.ts +0 -53
  131. package/dist/src/Forms/API.js +0 -2
  132. package/dist/src/Forms/SubmittedForm.d.ts +0 -56
  133. package/dist/src/Forms/SubmittedForm.js +0 -9
  134. package/dist/src/Forms/index.d.ts +0 -2
  135. package/dist/src/Forms/index.js +0 -18
  136. package/dist/src/Presence/AgentPause.d.ts +0 -24
  137. package/dist/src/Presence/AgentPause.js +0 -19
  138. package/dist/src/Presence/QueueParticipation.d.ts +0 -17
  139. package/dist/src/Presence/QueueParticipation.js +0 -2
  140. package/dist/src/Presence/QueueRoutingState.d.ts +0 -27
  141. package/dist/src/Presence/QueueRoutingState.js +0 -9
  142. package/dist/src/Presence/index.d.ts +0 -3
  143. package/dist/src/Presence/index.js +0 -19
  144. /package/dist/{src/Automations/Flows/Requests.js → Conversations/InboxCounters.js} +0 -0
@@ -1,28 +0,0 @@
1
- import { AutomationJsonObject } from '../Common';
2
- export declare enum AutomationValidationSeverity {
3
- INFO = "info",
4
- WARNING = "warning",
5
- ERROR = "error"
6
- }
7
- export interface AutomationValidationIssue {
8
- code: string;
9
- severity: AutomationValidationSeverity;
10
- message: string;
11
- path?: string | null;
12
- nodeId?: string | null;
13
- entryPointId?: string | null;
14
- details?: AutomationJsonObject | null;
15
- }
16
- export interface AutomationFlowValidationResult {
17
- flowId: string;
18
- flowVersionId: string;
19
- valid: boolean;
20
- issues: AutomationValidationIssue[];
21
- validatedAt: string;
22
- }
23
- export interface FlowEntryPointOverlap {
24
- firstEntryPointId: string;
25
- secondEntryPointId: string;
26
- reason: string;
27
- allowsMultipleExecutions: boolean;
28
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationValidationSeverity = void 0;
4
- var AutomationValidationSeverity;
5
- (function (AutomationValidationSeverity) {
6
- AutomationValidationSeverity["INFO"] = "info";
7
- AutomationValidationSeverity["WARNING"] = "warning";
8
- AutomationValidationSeverity["ERROR"] = "error";
9
- })(AutomationValidationSeverity || (exports.AutomationValidationSeverity = AutomationValidationSeverity = {}));
@@ -1,4 +0,0 @@
1
- export * from './Flow';
2
- export * from './Canvas';
3
- export * from './Requests';
4
- export * from './Validation';
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./Flow"), exports);
18
- __exportStar(require("./Canvas"), exports);
19
- __exportStar(require("./Requests"), exports);
20
- __exportStar(require("./Validation"), exports);
@@ -1,116 +0,0 @@
1
- import { AutomationJsonObject, AutomationJsonSchema, AutomationJsonValue, AutomationPageRequest, AutomationSourceApplication } from '../Common';
2
- import { AutomationCapabilityReference } from '../Capabilities';
3
- import { AutomationTriggerDefinition } from '../Triggers';
4
- import { AutomationNodeHandle, AutomationNodeKind } from '../Flows';
5
- export declare enum AutomationNodePropertyEditor {
6
- STRING = "string",
7
- NUMBER = "number",
8
- BOOLEAN = "boolean",
9
- PASSWORD = "password",
10
- JSON = "json",
11
- DATE = "date",
12
- FILE = "file",
13
- CODE = "code",
14
- OPTIONS = "options",
15
- MULTI_OPTIONS = "multiOptions",
16
- ASYNC_OPTIONS = "asyncOptions",
17
- ASYNC_MULTI_OPTIONS = "asyncMultiOptions"
18
- }
19
- export declare enum AutomationNodeVisibilityLogicalOperator {
20
- ALL = "all",
21
- ANY = "any"
22
- }
23
- export declare enum AutomationNodeConditionOperator {
24
- EQUALS = "equals"
25
- }
26
- export interface AutomationNodeCondition {
27
- propertyId: string;
28
- operator: AutomationNodeConditionOperator;
29
- value?: AutomationJsonValue;
30
- }
31
- export interface AutomationNodeVisibilityRule {
32
- logicalOperator: AutomationNodeVisibilityLogicalOperator;
33
- conditions: AutomationNodeCondition[];
34
- }
35
- export interface AutomationNodePropertyUi {
36
- tabId: string;
37
- tabLabel: string;
38
- order: number;
39
- labelKey?: string | null;
40
- placeholder?: string | null;
41
- rows?: number | null;
42
- numberMin?: number | null;
43
- numberMax?: number | null;
44
- step?: number | null;
45
- acceptVariable?: boolean | null;
46
- acceptEmojis?: boolean | null;
47
- allowMaximizeInput?: boolean | null;
48
- itemProperties: AutomationNodePropertyDefinition[];
49
- }
50
- export interface AutomationNodeDefinition {
51
- code: string;
52
- version: number;
53
- kind: AutomationNodeKind;
54
- sourceApplication: AutomationSourceApplication;
55
- name: string;
56
- description?: string | null;
57
- icon?: string | null;
58
- color?: string | null;
59
- tags: string[];
60
- requiredPermissions: string[];
61
- capability?: AutomationCapabilityReference | null;
62
- /** Metadata disponible únicamente para nodos que pueden iniciar un Flow. */
63
- trigger?: AutomationTriggerDefinition | null;
64
- inputs: AutomationNodeHandle[];
65
- outputs: AutomationNodeHandle[];
66
- properties: AutomationNodePropertyDefinition[];
67
- inputSchema?: AutomationJsonSchema | null;
68
- outputSchema?: AutomationJsonSchema | null;
69
- enabled: boolean;
70
- }
71
- export interface AutomationNodePropertyDefinition {
72
- id: string;
73
- label: string;
74
- description?: string | null;
75
- editor: AutomationNodePropertyEditor;
76
- required: boolean;
77
- defaultValue?: AutomationJsonValue;
78
- schema?: AutomationJsonSchema | null;
79
- options: AutomationNodeOption[];
80
- optionsCapabilityCode?: string | null;
81
- ui: AutomationNodePropertyUi;
82
- showWhen?: AutomationNodeVisibilityRule | null;
83
- hideWhen?: AutomationNodeVisibilityRule | null;
84
- }
85
- export interface AutomationNodeOption {
86
- id: string;
87
- label: string;
88
- description?: string | null;
89
- imageUrl?: string | null;
90
- metadata?: AutomationJsonObject | null;
91
- }
92
- export interface AutomationNodeDefinitionQuery extends AutomationPageRequest {
93
- search?: string | null;
94
- kinds?: AutomationNodeKind[] | null;
95
- sourceApplications?: AutomationSourceApplication[] | null;
96
- tags?: string[] | null;
97
- enabledOnly: boolean;
98
- }
99
- export interface AutomationNodeOptionsRequest {
100
- definitionCode: string;
101
- definitionVersion: number;
102
- propertyId: string;
103
- currentValues: AutomationJsonObject;
104
- context: AutomationJsonObject;
105
- /** Optional provider-defined, case-insensitive text search. */
106
- search?: string | null;
107
- /** Opaque cursor returned by the previous response. */
108
- continuationToken?: string | null;
109
- /** Preferred page size. The API clamps it to the supported range (1-200). */
110
- limit?: number;
111
- }
112
- export interface AutomationNodeOptionsResult {
113
- options: AutomationNodeOption[];
114
- /** Opaque cursor for the next page; null or omitted means the last page. */
115
- continuationToken?: string | null;
116
- }
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationNodeConditionOperator = exports.AutomationNodeVisibilityLogicalOperator = exports.AutomationNodePropertyEditor = void 0;
4
- var AutomationNodePropertyEditor;
5
- (function (AutomationNodePropertyEditor) {
6
- AutomationNodePropertyEditor["STRING"] = "string";
7
- AutomationNodePropertyEditor["NUMBER"] = "number";
8
- AutomationNodePropertyEditor["BOOLEAN"] = "boolean";
9
- AutomationNodePropertyEditor["PASSWORD"] = "password";
10
- AutomationNodePropertyEditor["JSON"] = "json";
11
- AutomationNodePropertyEditor["DATE"] = "date";
12
- AutomationNodePropertyEditor["FILE"] = "file";
13
- AutomationNodePropertyEditor["CODE"] = "code";
14
- AutomationNodePropertyEditor["OPTIONS"] = "options";
15
- AutomationNodePropertyEditor["MULTI_OPTIONS"] = "multiOptions";
16
- AutomationNodePropertyEditor["ASYNC_OPTIONS"] = "asyncOptions";
17
- AutomationNodePropertyEditor["ASYNC_MULTI_OPTIONS"] = "asyncMultiOptions";
18
- })(AutomationNodePropertyEditor || (exports.AutomationNodePropertyEditor = AutomationNodePropertyEditor = {}));
19
- var AutomationNodeVisibilityLogicalOperator;
20
- (function (AutomationNodeVisibilityLogicalOperator) {
21
- AutomationNodeVisibilityLogicalOperator["ALL"] = "all";
22
- AutomationNodeVisibilityLogicalOperator["ANY"] = "any";
23
- })(AutomationNodeVisibilityLogicalOperator || (exports.AutomationNodeVisibilityLogicalOperator = AutomationNodeVisibilityLogicalOperator = {}));
24
- var AutomationNodeConditionOperator;
25
- (function (AutomationNodeConditionOperator) {
26
- AutomationNodeConditionOperator["EQUALS"] = "equals";
27
- })(AutomationNodeConditionOperator || (exports.AutomationNodeConditionOperator = AutomationNodeConditionOperator = {}));
@@ -1 +0,0 @@
1
- export * from './Node';
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./Node"), exports);
@@ -1,112 +0,0 @@
1
- import { AutomationJsonObject, AutomationJsonSchema, AutomationSourceApplication } from '../Common';
2
- /** Forma en que una instancia del trigger puede iniciar una ejecución. */
3
- export declare enum AutomationTriggerActivationKind {
4
- MANUAL = "manual",
5
- DOMAIN_EVENT = "domainEvent",
6
- WEBHOOK = "webhook",
7
- SCHEDULE = "schedule"
8
- }
9
- /** Entidad principal que queda asociada a la ejecución iniciada. */
10
- export declare enum AutomationTriggerSubjectKind {
11
- NONE = "none",
12
- CONTACT = "contact",
13
- BUSINESS = "business",
14
- CONVERSATION = "conversation",
15
- TICKET = "ticket",
16
- FORM_SUBMISSION = "formSubmission",
17
- WEBHOOK = "webhook",
18
- SCHEDULE = "schedule"
19
- }
20
- /** Política histórica de reingreso para la misma identidad CRM. */
21
- export declare enum AutomationTriggerReentryMode {
22
- /** Cada ocurrencia elegible puede crear una ejecución. */
23
- EVERY_OCCURRENCE = "everyOccurrence",
24
- /** La identidad primaria del evento sólo ingresa una vez. */
25
- ONCE_PER_SUBJECT = "oncePerSubject",
26
- /** El contacto sólo ingresa una vez en la automatización. */
27
- ONCE_PER_CONTACT = "oncePerContact",
28
- /** La dirección/canal del contacto sólo ingresa una vez. */
29
- ONCE_PER_CONTACT_ADDRESS = "oncePerContactAddress"
30
- }
31
- /** Alcance histórico utilizado al aplicar una política de reingreso. */
32
- export declare enum AutomationTriggerHistoryScope {
33
- /** Publicar una versión nueva no reinicia el historial. */
34
- FLOW = "flow",
35
- /** Cada versión publicada mantiene su propio historial. */
36
- FLOW_VERSION = "flowVersion"
37
- }
38
- /** Control de ejecuciones simultáneas para una misma identidad. */
39
- export declare enum AutomationTriggerConcurrencyMode {
40
- ALLOW = "allow",
41
- SINGLE_ACTIVE_PER_SUBJECT = "singleActivePerSubject",
42
- SINGLE_ACTIVE_PER_CONTACT = "singleActivePerContact",
43
- SINGLE_ACTIVE_PER_CONTACT_ADDRESS = "singleActivePerContactAddress"
44
- }
45
- /**
46
- * Evento seleccionable dentro de un trigger de módulo.
47
- *
48
- * `code` es la opción estable usada por el diseñador. `eventType` es el
49
- * identificador contractual resuelto por backend y nunca debe solicitarse
50
- * como texto libre al usuario.
51
- */
52
- export interface AutomationTriggerEventDefinition {
53
- code: string;
54
- name: string;
55
- description?: string | null;
56
- sourceApplication: AutomationSourceApplication;
57
- eventType: string;
58
- eventVersion: number;
59
- subjectKind: AutomationTriggerSubjectKind;
60
- configurationSchema?: AutomationJsonSchema | null;
61
- supportsEntryFilters: boolean;
62
- supportedReentryModes: AutomationTriggerReentryMode[];
63
- defaultReentryMode: AutomationTriggerReentryMode;
64
- supportedConcurrencyModes: AutomationTriggerConcurrencyMode[];
65
- defaultConcurrencyMode: AutomationTriggerConcurrencyMode;
66
- }
67
- /** Metadata de trigger publicada junto con una definición de nodo. */
68
- export interface AutomationTriggerDefinition {
69
- activationKind: AutomationTriggerActivationKind;
70
- defaultEventCode: string;
71
- events: AutomationTriggerEventDefinition[];
72
- }
73
- /**
74
- * Selección normalizada persistida en el Entry Point.
75
- * La configuración se valida contra el schema del evento seleccionado.
76
- */
77
- export interface AutomationTriggerBinding {
78
- definitionCode: string;
79
- definitionVersion: number;
80
- eventCode: string;
81
- activationKind: AutomationTriggerActivationKind;
82
- configuration: AutomationJsonObject;
83
- }
84
- /** Política aplicada antes de crear una ejecución. */
85
- export interface AutomationTriggerAdmissionPolicy {
86
- reentryMode: AutomationTriggerReentryMode;
87
- historyScope: AutomationTriggerHistoryScope;
88
- concurrencyMode: AutomationTriggerConcurrencyMode;
89
- }
90
- /**
91
- * Referencia estable a una propiedad estándar o personalizada.
92
- * `nameKey` es la identidad; nombre y tipo son snapshots informativos.
93
- */
94
- export interface AutomationTriggerPropertyReference {
95
- resourceType: string;
96
- nameKey: string;
97
- valueType: string;
98
- displayNameSnapshot?: string | null;
99
- }
100
- export declare enum AutomationWebhookAuthenticationMode {
101
- NONE = "none",
102
- SHARED_SECRET = "sharedSecret",
103
- HMAC_SHA256 = "hmacSha256"
104
- }
105
- export declare enum AutomationScheduleKind {
106
- ONCE = "once",
107
- INTERVAL = "interval",
108
- DAILY = "daily",
109
- WEEKLY = "weekly",
110
- MONTHLY = "monthly",
111
- CRON = "cron"
112
- }
@@ -1,66 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationScheduleKind = exports.AutomationWebhookAuthenticationMode = exports.AutomationTriggerConcurrencyMode = exports.AutomationTriggerHistoryScope = exports.AutomationTriggerReentryMode = exports.AutomationTriggerSubjectKind = exports.AutomationTriggerActivationKind = void 0;
4
- /** Forma en que una instancia del trigger puede iniciar una ejecución. */
5
- var AutomationTriggerActivationKind;
6
- (function (AutomationTriggerActivationKind) {
7
- AutomationTriggerActivationKind["MANUAL"] = "manual";
8
- AutomationTriggerActivationKind["DOMAIN_EVENT"] = "domainEvent";
9
- AutomationTriggerActivationKind["WEBHOOK"] = "webhook";
10
- AutomationTriggerActivationKind["SCHEDULE"] = "schedule";
11
- })(AutomationTriggerActivationKind || (exports.AutomationTriggerActivationKind = AutomationTriggerActivationKind = {}));
12
- /** Entidad principal que queda asociada a la ejecución iniciada. */
13
- var AutomationTriggerSubjectKind;
14
- (function (AutomationTriggerSubjectKind) {
15
- AutomationTriggerSubjectKind["NONE"] = "none";
16
- AutomationTriggerSubjectKind["CONTACT"] = "contact";
17
- AutomationTriggerSubjectKind["BUSINESS"] = "business";
18
- AutomationTriggerSubjectKind["CONVERSATION"] = "conversation";
19
- AutomationTriggerSubjectKind["TICKET"] = "ticket";
20
- AutomationTriggerSubjectKind["FORM_SUBMISSION"] = "formSubmission";
21
- AutomationTriggerSubjectKind["WEBHOOK"] = "webhook";
22
- AutomationTriggerSubjectKind["SCHEDULE"] = "schedule";
23
- })(AutomationTriggerSubjectKind || (exports.AutomationTriggerSubjectKind = AutomationTriggerSubjectKind = {}));
24
- /** Política histórica de reingreso para la misma identidad CRM. */
25
- var AutomationTriggerReentryMode;
26
- (function (AutomationTriggerReentryMode) {
27
- /** Cada ocurrencia elegible puede crear una ejecución. */
28
- AutomationTriggerReentryMode["EVERY_OCCURRENCE"] = "everyOccurrence";
29
- /** La identidad primaria del evento sólo ingresa una vez. */
30
- AutomationTriggerReentryMode["ONCE_PER_SUBJECT"] = "oncePerSubject";
31
- /** El contacto sólo ingresa una vez en la automatización. */
32
- AutomationTriggerReentryMode["ONCE_PER_CONTACT"] = "oncePerContact";
33
- /** La dirección/canal del contacto sólo ingresa una vez. */
34
- AutomationTriggerReentryMode["ONCE_PER_CONTACT_ADDRESS"] = "oncePerContactAddress";
35
- })(AutomationTriggerReentryMode || (exports.AutomationTriggerReentryMode = AutomationTriggerReentryMode = {}));
36
- /** Alcance histórico utilizado al aplicar una política de reingreso. */
37
- var AutomationTriggerHistoryScope;
38
- (function (AutomationTriggerHistoryScope) {
39
- /** Publicar una versión nueva no reinicia el historial. */
40
- AutomationTriggerHistoryScope["FLOW"] = "flow";
41
- /** Cada versión publicada mantiene su propio historial. */
42
- AutomationTriggerHistoryScope["FLOW_VERSION"] = "flowVersion";
43
- })(AutomationTriggerHistoryScope || (exports.AutomationTriggerHistoryScope = AutomationTriggerHistoryScope = {}));
44
- /** Control de ejecuciones simultáneas para una misma identidad. */
45
- var AutomationTriggerConcurrencyMode;
46
- (function (AutomationTriggerConcurrencyMode) {
47
- AutomationTriggerConcurrencyMode["ALLOW"] = "allow";
48
- AutomationTriggerConcurrencyMode["SINGLE_ACTIVE_PER_SUBJECT"] = "singleActivePerSubject";
49
- AutomationTriggerConcurrencyMode["SINGLE_ACTIVE_PER_CONTACT"] = "singleActivePerContact";
50
- AutomationTriggerConcurrencyMode["SINGLE_ACTIVE_PER_CONTACT_ADDRESS"] = "singleActivePerContactAddress";
51
- })(AutomationTriggerConcurrencyMode || (exports.AutomationTriggerConcurrencyMode = AutomationTriggerConcurrencyMode = {}));
52
- var AutomationWebhookAuthenticationMode;
53
- (function (AutomationWebhookAuthenticationMode) {
54
- AutomationWebhookAuthenticationMode["NONE"] = "none";
55
- AutomationWebhookAuthenticationMode["SHARED_SECRET"] = "sharedSecret";
56
- AutomationWebhookAuthenticationMode["HMAC_SHA256"] = "hmacSha256";
57
- })(AutomationWebhookAuthenticationMode || (exports.AutomationWebhookAuthenticationMode = AutomationWebhookAuthenticationMode = {}));
58
- var AutomationScheduleKind;
59
- (function (AutomationScheduleKind) {
60
- AutomationScheduleKind["ONCE"] = "once";
61
- AutomationScheduleKind["INTERVAL"] = "interval";
62
- AutomationScheduleKind["DAILY"] = "daily";
63
- AutomationScheduleKind["WEEKLY"] = "weekly";
64
- AutomationScheduleKind["MONTHLY"] = "monthly";
65
- AutomationScheduleKind["CRON"] = "cron";
66
- })(AutomationScheduleKind || (exports.AutomationScheduleKind = AutomationScheduleKind = {}));
@@ -1 +0,0 @@
1
- export * from './Trigger';
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./Trigger"), exports);
@@ -1,7 +0,0 @@
1
- export * from './Common';
2
- export * from './Flows';
3
- export * from './Capabilities';
4
- export * from './Executions';
5
- export * from './Nodes';
6
- export * from './Events';
7
- export * from './Triggers';
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./Common"), exports);
18
- __exportStar(require("./Flows"), exports);
19
- __exportStar(require("./Capabilities"), exports);
20
- __exportStar(require("./Executions"), exports);
21
- __exportStar(require("./Nodes"), exports);
22
- __exportStar(require("./Events"), exports);
23
- __exportStar(require("./Triggers"), exports);
@@ -1,61 +0,0 @@
1
- import { UserInfo } from "../Users/UserTrii";
2
- export interface Chat {
3
- id: string;
4
- spaceId: string;
5
- type: ChatType;
6
- ownerId: string;
7
- chatName: string;
8
- chatImage: string;
9
- chatMembers: IChatMemeber[];
10
- chatMembersCount: number;
11
- remoteAddress: string;
12
- remoteAddressId: string;
13
- lastMessage: string;
14
- lastMessageId?: string;
15
- newMessagesCount: number;
16
- newMessagesUnread: boolean;
17
- pinned: boolean;
18
- status: ConversationSatus;
19
- archived: boolean;
20
- /** Domain objects discussed or served by this conversation. */
21
- contextReferences?: ContextReference[];
22
- finalizedAt: Date;
23
- finalizedBy?: string;
24
- createdAt: Date;
25
- updatedAt: Date;
26
- }
27
- export interface ContextReference {
28
- entityType: ContextType;
29
- entityId: string;
30
- role?: string;
31
- linkedAt: Date;
32
- linkedBy?: string;
33
- }
34
- export declare enum ContextType {
35
- TICKET = "TICKET",
36
- CONVERSATION = "CONVERSATION",
37
- LEAD = "LEAD",
38
- DEBT = "DEBT"
39
- }
40
- export declare enum ChatType {
41
- /**messages between two users */
42
- DIRECT = 1,
43
- /**messages between multiple users */
44
- GROUP = 2,
45
- /**Messages to discuss a conversation */
46
- DISCUSS_CONVERSATION = 11,
47
- /**Messages to discuss a ticket */
48
- DISCUSS_TICKET = 12
49
- }
50
- export interface IChatMemeber {
51
- joinTimeStamp: Date;
52
- isAdmin: boolean;
53
- userId: string;
54
- user: UserInfo;
55
- }
56
- export declare enum ConversationSatus {
57
- NEW = 1,
58
- ACTIVE = 2,
59
- FINALIZED = 3,
60
- ARCHIVED = 4
61
- }
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConversationSatus = exports.ChatType = exports.ContextType = void 0;
4
- var ContextType;
5
- (function (ContextType) {
6
- ContextType["TICKET"] = "TICKET";
7
- ContextType["CONVERSATION"] = "CONVERSATION";
8
- ContextType["LEAD"] = "LEAD";
9
- ContextType["DEBT"] = "DEBT";
10
- })(ContextType || (exports.ContextType = ContextType = {}));
11
- var ChatType;
12
- (function (ChatType) {
13
- /**messages between two users */
14
- ChatType[ChatType["DIRECT"] = 1] = "DIRECT";
15
- /**messages between multiple users */
16
- ChatType[ChatType["GROUP"] = 2] = "GROUP";
17
- /**Messages to discuss a conversation */
18
- ChatType[ChatType["DISCUSS_CONVERSATION"] = 11] = "DISCUSS_CONVERSATION";
19
- /**Messages to discuss a ticket */
20
- ChatType[ChatType["DISCUSS_TICKET"] = 12] = "DISCUSS_TICKET";
21
- })(ChatType || (exports.ChatType = ChatType = {}));
22
- var ConversationSatus;
23
- (function (ConversationSatus) {
24
- ConversationSatus[ConversationSatus["NEW"] = 1] = "NEW";
25
- ConversationSatus[ConversationSatus["ACTIVE"] = 2] = "ACTIVE";
26
- ConversationSatus[ConversationSatus["FINALIZED"] = 3] = "FINALIZED";
27
- ConversationSatus[ConversationSatus["ARCHIVED"] = 4] = "ARCHIVED";
28
- })(ConversationSatus || (exports.ConversationSatus = ConversationSatus = {}));
@@ -1,107 +0,0 @@
1
- export declare enum CommunicationEndpointKind {
2
- PHONE = "phone",
3
- EMAIL = "email",
4
- PROVIDER_IDENTITY = "provider_identity"
5
- }
6
- /**
7
- * Known provider identity namespaces. Contracts continue to accept strings so
8
- * custom providers and namespaces can be introduced without a library update.
9
- */
10
- export declare const providerIdentityNamespaces: {
11
- readonly meta: {
12
- readonly instagramUser: 'instagram_user';
13
- readonly messengerUser: 'messenger_user';
14
- readonly whatsappUser: 'whatsapp_user';
15
- };
16
- readonly telegram: {
17
- readonly user: 'user';
18
- readonly chat: 'chat';
19
- };
20
- readonly trii: {
21
- readonly webchatVisitor: 'webchat_visitor';
22
- };
23
- readonly mercadolibre: {
24
- readonly buyer: 'buyer';
25
- };
26
- readonly google: {
27
- readonly businessMessagesUser: 'business_messages_user';
28
- };
29
- };
30
- export type KnownIdentityProvider = keyof typeof providerIdentityNamespaces;
31
- export type KnownProviderIdentityNamespace = {
32
- [TProvider in KnownIdentityProvider]: (typeof providerIdentityNamespaces)[TProvider][keyof (typeof providerIdentityNamespaces)[TProvider]];
33
- }[KnownIdentityProvider];
34
- export declare enum CommunicationEndpointStatus {
35
- ACTIVE = "active",
36
- INACTIVE = "inactive",
37
- ORPHANED = "orphaned"
38
- }
39
- export interface ICommunicationEndpointActivity {
40
- firstSeenAt?: Date;
41
- lastSeenAt?: Date;
42
- lastMessageInAt?: Date;
43
- lastMessageOutAt?: Date;
44
- }
45
- export interface ICommunicationEndpoint {
46
- id: string;
47
- spaceId: string;
48
- kind: CommunicationEndpointKind;
49
- status: CommunicationEndpointStatus;
50
- normalizedValue: string;
51
- normalizationVersion: number;
52
- displayValue: string;
53
- phoneInfo?: IPhoneEndpointInfo;
54
- emailInfo?: IEmailEndpointInfo;
55
- providerIdentityInfo?: IProviderIdentityEndpointInfo;
56
- activity?: ICommunicationEndpointActivity;
57
- createdAt: Date;
58
- createdBy?: string;
59
- updatedAt?: Date;
60
- updatedBy?: string;
61
- inactiveAt?: Date;
62
- inactiveBy?: string;
63
- }
64
- export interface IPhoneEndpointInfo {
65
- e164: string;
66
- isMobile: boolean;
67
- country: string;
68
- countryName: string;
69
- /**
70
- * ISO 3166-2 subdivision code when it can be resolved from the phone
71
- * number, for example `AR-C` or `US-CA`. Empty when unknown, not
72
- * applicable, or when the number does not identify a subdivision.
73
- */
74
- state: string;
75
- /**
76
- * Display name corresponding to `state`, for example `Córdoba` or
77
- * `California`. Empty when `state` is not available.
78
- */
79
- stateName: string;
80
- }
81
- export interface IEmailEndpointInfo {
82
- localPart: string;
83
- domain: string;
84
- }
85
- export interface IProviderIdentityProfile {
86
- displayName?: string;
87
- username?: string;
88
- imageUrl?: string;
89
- imageObservedAt?: Date;
90
- }
91
- export interface IProviderIdentityEndpointInfo {
92
- /** System that issues and controls the external identity. */
93
- provider: string;
94
- /**
95
- * Provider-defined namespace in which the identity keys are valid.
96
- * This is not a communication channel or a configured channel account.
97
- */
98
- identityNamespace: string;
99
- /** Configured channel account in which the external identity is valid. */
100
- channelAccountId: string;
101
- profile?: IProviderIdentityProfile;
102
- }
103
- export interface ICommunicationEndpointSnapshot {
104
- endpointId: string;
105
- kind: CommunicationEndpointKind;
106
- displayValue: string;
107
- }