evo360-types 1.3.552 → 1.3.555
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.
- package/dist/apps/evo-chat/ticket/zod-schemas.d.ts +66 -0
- package/dist/apps/evo-chat/ticket/zod-schemas.js +4 -0
- package/dist/apps/evo-chat/ticket/zod-schemas.ts +4 -0
- package/dist/apps/evo-core/zod-schemas.d.ts +30 -0
- package/dist/apps/evo-core/zod-schemas.js +2 -0
- package/dist/apps/evo-core/zod-schemas.ts +2 -0
- package/dist/apps/evo-csq/zod-schemas.d.ts +10414 -0
- package/dist/apps/evo-csq/zod-schemas.js +546 -0
- package/dist/apps/evo-csq/zod-schemas.ts +627 -0
- package/dist/apps/evo-finops/zod-schemas.d.ts +2 -2
- package/dist/apps/evo-hub-ia/v1/zod-schemas.d.ts +161 -0
- package/dist/apps/evo-hub-ia/v1/zod-schemas.js +43 -1
- package/dist/apps/evo-hub-ia/v1/zod-schemas.ts +46 -0
- package/dist/apps/hub-automation/zod-schemas.d.ts +18 -18
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.ts +2 -0
- package/dist/types/evo-chat/ticket/index.d.ts +4 -0
- package/dist/types/evo-chat/ticket/index.ts +5 -0
- package/dist/types/evo-core/index.d.ts +2 -0
- package/dist/types/evo-core/index.ts +2 -0
- package/dist/types/evo-csq/fb_collections.d.ts +5 -0
- package/dist/types/evo-csq/fb_collections.js +13 -0
- package/dist/types/evo-csq/fb_collections.ts +14 -0
- package/dist/types/evo-csq/index.d.ts +624 -0
- package/dist/types/evo-csq/index.js +180 -0
- package/dist/types/evo-csq/index.ts +888 -0
- package/dist/types/evo-hub-ia/v1/index.d.ts +37 -0
- package/dist/types/evo-hub-ia/v1/index.ts +44 -0
- package/package.json +1 -1
|
@@ -180,3 +180,40 @@ export interface IHubiaRule {
|
|
|
180
180
|
/** Passthrough no schema zod — campos custom são preservados. */
|
|
181
181
|
[key: string]: unknown;
|
|
182
182
|
}
|
|
183
|
+
/** Disposição de fechamento publicada no evento. */
|
|
184
|
+
export interface IHubiaTicketClosedEventClose {
|
|
185
|
+
code?: string | null;
|
|
186
|
+
name?: string | null;
|
|
187
|
+
type_code?: string | null;
|
|
188
|
+
type_name?: string | null;
|
|
189
|
+
/** Observação livre do operador ao fechar (novo em feat-154). */
|
|
190
|
+
notes?: string | null;
|
|
191
|
+
[key: string]: unknown;
|
|
192
|
+
}
|
|
193
|
+
/** Payload do tópico `hubia-ticket-closed`. Publicado pelo bridge do hub-omni
|
|
194
|
+
* (`provider: 'hub-waba'`) e pelo do Chatbee (`provider: 'chatbee'`).
|
|
195
|
+
* Consumidores: o handler de regras `ticket_closed` da HubIA e o pipeline do
|
|
196
|
+
* CSQ 2.0. Os campos novos da feat-154 são opcionais porque o bridge do
|
|
197
|
+
* Chatbee continua publicando o shape antigo. */
|
|
198
|
+
export interface IHubiaTicketClosedEvent {
|
|
199
|
+
tenant: string;
|
|
200
|
+
evoChatChannelId: string;
|
|
201
|
+
contactId: string;
|
|
202
|
+
departmentId?: string | null;
|
|
203
|
+
close: IHubiaTicketClosedEventClose;
|
|
204
|
+
/** ISO 8601 do instante de fechamento. */
|
|
205
|
+
closedAt: string;
|
|
206
|
+
/** Idempotência do consumidor de regras. */
|
|
207
|
+
idempotencyKey?: string | null;
|
|
208
|
+
/** `${ticketId}:${closedAt ISO}` — chave do ledger `runs/{eventId}` do CSQ. */
|
|
209
|
+
event_id?: string;
|
|
210
|
+
/** Versão do payload. 1 = feat-154. */
|
|
211
|
+
schema_version?: number;
|
|
212
|
+
ticketId?: string | null;
|
|
213
|
+
threadId?: string | null;
|
|
214
|
+
leadId?: string | null;
|
|
215
|
+
closedByUserId?: string | null;
|
|
216
|
+
/** Quem fechou. O CSQ só avalia `human`. */
|
|
217
|
+
actorType?: "human" | "system" | "automation";
|
|
218
|
+
[key: string]: unknown;
|
|
219
|
+
}
|
|
@@ -230,3 +230,47 @@ export interface IHubiaRule {
|
|
|
230
230
|
/** Passthrough no schema zod — campos custom são preservados. */
|
|
231
231
|
[key: string]: unknown;
|
|
232
232
|
}
|
|
233
|
+
|
|
234
|
+
// ── Evento `hubia-ticket-closed` (feat-154) ──
|
|
235
|
+
|
|
236
|
+
/** Disposição de fechamento publicada no evento. */
|
|
237
|
+
export interface IHubiaTicketClosedEventClose {
|
|
238
|
+
code?: string | null;
|
|
239
|
+
name?: string | null;
|
|
240
|
+
type_code?: string | null;
|
|
241
|
+
type_name?: string | null;
|
|
242
|
+
/** Observação livre do operador ao fechar (novo em feat-154). */
|
|
243
|
+
notes?: string | null;
|
|
244
|
+
[key: string]: unknown;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/** Payload do tópico `hubia-ticket-closed`. Publicado pelo bridge do hub-omni
|
|
248
|
+
* (`provider: 'hub-waba'`) e pelo do Chatbee (`provider: 'chatbee'`).
|
|
249
|
+
* Consumidores: o handler de regras `ticket_closed` da HubIA e o pipeline do
|
|
250
|
+
* CSQ 2.0. Os campos novos da feat-154 são opcionais porque o bridge do
|
|
251
|
+
* Chatbee continua publicando o shape antigo. */
|
|
252
|
+
export interface IHubiaTicketClosedEvent {
|
|
253
|
+
tenant: string;
|
|
254
|
+
evoChatChannelId: string;
|
|
255
|
+
contactId: string;
|
|
256
|
+
departmentId?: string | null;
|
|
257
|
+
close: IHubiaTicketClosedEventClose;
|
|
258
|
+
/** ISO 8601 do instante de fechamento. */
|
|
259
|
+
closedAt: string;
|
|
260
|
+
/** Idempotência do consumidor de regras. */
|
|
261
|
+
idempotencyKey?: string | null;
|
|
262
|
+
|
|
263
|
+
// ── novos em feat-154 (opcionais) ──
|
|
264
|
+
/** `${ticketId}:${closedAt ISO}` — chave do ledger `runs/{eventId}` do CSQ. */
|
|
265
|
+
event_id?: string;
|
|
266
|
+
/** Versão do payload. 1 = feat-154. */
|
|
267
|
+
schema_version?: number;
|
|
268
|
+
ticketId?: string | null;
|
|
269
|
+
threadId?: string | null;
|
|
270
|
+
leadId?: string | null;
|
|
271
|
+
closedByUserId?: string | null;
|
|
272
|
+
/** Quem fechou. O CSQ só avalia `human`. */
|
|
273
|
+
actorType?: "human" | "system" | "automation";
|
|
274
|
+
|
|
275
|
+
[key: string]: unknown;
|
|
276
|
+
}
|