evo360-types 1.3.109 → 1.3.112

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.
@@ -8,12 +8,12 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
8
8
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9
9
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
10
  }, {
11
- name: z.ZodString;
12
- channel_id: z.ZodString;
13
- number: z.ZodString;
14
- type: z.ZodString;
15
- channel_uuid: z.ZodString;
16
- hub_ia: z.ZodObject<{
11
+ name: z.ZodOptional<z.ZodString>;
12
+ channel_id: z.ZodOptional<z.ZodString>;
13
+ number: z.ZodOptional<z.ZodString>;
14
+ type: z.ZodOptional<z.ZodString>;
15
+ channel_uuid: z.ZodOptional<z.ZodString>;
16
+ hub_ia: z.ZodOptional<z.ZodObject<{
17
17
  default_operation_mode: z.ZodEnum<["reply", "suggestion"]>;
18
18
  active: z.ZodDefault<z.ZodBoolean>;
19
19
  enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
@@ -49,7 +49,7 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
49
49
  allow_reply_mode?: boolean | undefined;
50
50
  transcribe_audio_when_ai_disabled?: boolean | undefined;
51
51
  suggest_agenda_action?: boolean | undefined;
52
- }>;
52
+ }>>;
53
53
  }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
54
54
  id: z.ZodString;
55
55
  ref: z.ZodAny;
@@ -59,12 +59,12 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
59
59
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
60
60
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
61
61
  }, {
62
- name: z.ZodString;
63
- channel_id: z.ZodString;
64
- number: z.ZodString;
65
- type: z.ZodString;
66
- channel_uuid: z.ZodString;
67
- hub_ia: z.ZodObject<{
62
+ name: z.ZodOptional<z.ZodString>;
63
+ channel_id: z.ZodOptional<z.ZodString>;
64
+ number: z.ZodOptional<z.ZodString>;
65
+ type: z.ZodOptional<z.ZodString>;
66
+ channel_uuid: z.ZodOptional<z.ZodString>;
67
+ hub_ia: z.ZodOptional<z.ZodObject<{
68
68
  default_operation_mode: z.ZodEnum<["reply", "suggestion"]>;
69
69
  active: z.ZodDefault<z.ZodBoolean>;
70
70
  enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
@@ -100,7 +100,7 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
100
100
  allow_reply_mode?: boolean | undefined;
101
101
  transcribe_audio_when_ai_disabled?: boolean | undefined;
102
102
  suggest_agenda_action?: boolean | undefined;
103
- }>;
103
+ }>>;
104
104
  }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
105
105
  id: z.ZodString;
106
106
  ref: z.ZodAny;
@@ -110,12 +110,12 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
110
110
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
111
111
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
112
112
  }, {
113
- name: z.ZodString;
114
- channel_id: z.ZodString;
115
- number: z.ZodString;
116
- type: z.ZodString;
117
- channel_uuid: z.ZodString;
118
- hub_ia: z.ZodObject<{
113
+ name: z.ZodOptional<z.ZodString>;
114
+ channel_id: z.ZodOptional<z.ZodString>;
115
+ number: z.ZodOptional<z.ZodString>;
116
+ type: z.ZodOptional<z.ZodString>;
117
+ channel_uuid: z.ZodOptional<z.ZodString>;
118
+ hub_ia: z.ZodOptional<z.ZodObject<{
119
119
  default_operation_mode: z.ZodEnum<["reply", "suggestion"]>;
120
120
  active: z.ZodDefault<z.ZodBoolean>;
121
121
  enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
@@ -151,5 +151,289 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
151
151
  allow_reply_mode?: boolean | undefined;
152
152
  transcribe_audio_when_ai_disabled?: boolean | undefined;
153
153
  suggest_agenda_action?: boolean | undefined;
154
- }>;
154
+ }>>;
155
155
  }>, z.ZodTypeAny, "passthrough">>;
156
+ export declare const zChatbeeChannelSchema: z.ZodObject<{
157
+ id: z.ZodOptional<z.ZodString>;
158
+ external_id: z.ZodOptional<z.ZodString>;
159
+ name: z.ZodOptional<z.ZodString>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ name?: string | undefined;
162
+ id?: string | undefined;
163
+ external_id?: string | undefined;
164
+ }, {
165
+ name?: string | undefined;
166
+ id?: string | undefined;
167
+ external_id?: string | undefined;
168
+ }>;
169
+ export declare const zChatbeeDepartmentSchema: z.ZodObject<{
170
+ external_id: z.ZodOptional<z.ZodString>;
171
+ id: z.ZodOptional<z.ZodString>;
172
+ name: z.ZodOptional<z.ZodString>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ name?: string | undefined;
175
+ id?: string | undefined;
176
+ external_id?: string | undefined;
177
+ }, {
178
+ name?: string | undefined;
179
+ id?: string | undefined;
180
+ external_id?: string | undefined;
181
+ }>;
182
+ export declare const zChatbeeStatusSchema: z.ZodObject<{
183
+ external_id: z.ZodOptional<z.ZodString>;
184
+ id: z.ZodOptional<z.ZodString>;
185
+ name: z.ZodOptional<z.ZodString>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ name?: string | undefined;
188
+ id?: string | undefined;
189
+ external_id?: string | undefined;
190
+ }, {
191
+ name?: string | undefined;
192
+ id?: string | undefined;
193
+ external_id?: string | undefined;
194
+ }>;
195
+ export declare const zChatbeeContactSchema: z.ZodObject<{
196
+ id: z.ZodOptional<z.ZodString>;
197
+ external_id: z.ZodOptional<z.ZodString>;
198
+ name: z.ZodOptional<z.ZodString>;
199
+ is_group: z.ZodOptional<z.ZodString>;
200
+ address: z.ZodOptional<z.ZodString>;
201
+ type: z.ZodOptional<z.ZodString>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ name?: string | undefined;
204
+ id?: string | undefined;
205
+ type?: string | undefined;
206
+ external_id?: string | undefined;
207
+ address?: string | undefined;
208
+ is_group?: string | undefined;
209
+ }, {
210
+ name?: string | undefined;
211
+ id?: string | undefined;
212
+ type?: string | undefined;
213
+ external_id?: string | undefined;
214
+ address?: string | undefined;
215
+ is_group?: string | undefined;
216
+ }>;
217
+ export declare const zChatbeeContactHistoryPayloadCreatedSchema: z.ZodObject<{
218
+ department: z.ZodOptional<z.ZodObject<{
219
+ external_id: z.ZodOptional<z.ZodString>;
220
+ id: z.ZodOptional<z.ZodString>;
221
+ name: z.ZodOptional<z.ZodString>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ name?: string | undefined;
224
+ id?: string | undefined;
225
+ external_id?: string | undefined;
226
+ }, {
227
+ name?: string | undefined;
228
+ id?: string | undefined;
229
+ external_id?: string | undefined;
230
+ }>>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ department?: {
233
+ name?: string | undefined;
234
+ id?: string | undefined;
235
+ external_id?: string | undefined;
236
+ } | undefined;
237
+ }, {
238
+ department?: {
239
+ name?: string | undefined;
240
+ id?: string | undefined;
241
+ external_id?: string | undefined;
242
+ } | undefined;
243
+ }>;
244
+ export declare const zChatbeeContactHistoryPayloadClosedSchema: z.ZodObject<{
245
+ department: z.ZodOptional<z.ZodObject<{
246
+ external_id: z.ZodOptional<z.ZodString>;
247
+ id: z.ZodOptional<z.ZodString>;
248
+ name: z.ZodOptional<z.ZodString>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ name?: string | undefined;
251
+ id?: string | undefined;
252
+ external_id?: string | undefined;
253
+ }, {
254
+ name?: string | undefined;
255
+ id?: string | undefined;
256
+ external_id?: string | undefined;
257
+ }>>;
258
+ status: z.ZodOptional<z.ZodObject<{
259
+ external_id: z.ZodOptional<z.ZodString>;
260
+ id: z.ZodOptional<z.ZodString>;
261
+ name: z.ZodOptional<z.ZodString>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ name?: string | undefined;
264
+ id?: string | undefined;
265
+ external_id?: string | undefined;
266
+ }, {
267
+ name?: string | undefined;
268
+ id?: string | undefined;
269
+ external_id?: string | undefined;
270
+ }>>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ status?: {
273
+ name?: string | undefined;
274
+ id?: string | undefined;
275
+ external_id?: string | undefined;
276
+ } | undefined;
277
+ department?: {
278
+ name?: string | undefined;
279
+ id?: string | undefined;
280
+ external_id?: string | undefined;
281
+ } | undefined;
282
+ }, {
283
+ status?: {
284
+ name?: string | undefined;
285
+ id?: string | undefined;
286
+ external_id?: string | undefined;
287
+ } | undefined;
288
+ department?: {
289
+ name?: string | undefined;
290
+ id?: string | undefined;
291
+ external_id?: string | undefined;
292
+ } | undefined;
293
+ }>;
294
+ export declare const zChatbeeContactHistorySchema: z.ZodObject<{
295
+ id: z.ZodOptional<z.ZodString>;
296
+ channel_id: z.ZodOptional<z.ZodString>;
297
+ contact_id: z.ZodOptional<z.ZodNumber>;
298
+ department_id: z.ZodOptional<z.ZodString>;
299
+ department_name: z.ZodOptional<z.ZodString>;
300
+ created_at: z.ZodOptional<z.ZodAny>;
301
+ history_id: z.ZodOptional<z.ZodNumber>;
302
+ payload_created: z.ZodOptional<z.ZodObject<{
303
+ department: z.ZodOptional<z.ZodObject<{
304
+ external_id: z.ZodOptional<z.ZodString>;
305
+ id: z.ZodOptional<z.ZodString>;
306
+ name: z.ZodOptional<z.ZodString>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ name?: string | undefined;
309
+ id?: string | undefined;
310
+ external_id?: string | undefined;
311
+ }, {
312
+ name?: string | undefined;
313
+ id?: string | undefined;
314
+ external_id?: string | undefined;
315
+ }>>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ department?: {
318
+ name?: string | undefined;
319
+ id?: string | undefined;
320
+ external_id?: string | undefined;
321
+ } | undefined;
322
+ }, {
323
+ department?: {
324
+ name?: string | undefined;
325
+ id?: string | undefined;
326
+ external_id?: string | undefined;
327
+ } | undefined;
328
+ }>>;
329
+ payload_closed: z.ZodOptional<z.ZodObject<{
330
+ department: z.ZodOptional<z.ZodObject<{
331
+ external_id: z.ZodOptional<z.ZodString>;
332
+ id: z.ZodOptional<z.ZodString>;
333
+ name: z.ZodOptional<z.ZodString>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ name?: string | undefined;
336
+ id?: string | undefined;
337
+ external_id?: string | undefined;
338
+ }, {
339
+ name?: string | undefined;
340
+ id?: string | undefined;
341
+ external_id?: string | undefined;
342
+ }>>;
343
+ status: z.ZodOptional<z.ZodObject<{
344
+ external_id: z.ZodOptional<z.ZodString>;
345
+ id: z.ZodOptional<z.ZodString>;
346
+ name: z.ZodOptional<z.ZodString>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ name?: string | undefined;
349
+ id?: string | undefined;
350
+ external_id?: string | undefined;
351
+ }, {
352
+ name?: string | undefined;
353
+ id?: string | undefined;
354
+ external_id?: string | undefined;
355
+ }>>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ status?: {
358
+ name?: string | undefined;
359
+ id?: string | undefined;
360
+ external_id?: string | undefined;
361
+ } | undefined;
362
+ department?: {
363
+ name?: string | undefined;
364
+ id?: string | undefined;
365
+ external_id?: string | undefined;
366
+ } | undefined;
367
+ }, {
368
+ status?: {
369
+ name?: string | undefined;
370
+ id?: string | undefined;
371
+ external_id?: string | undefined;
372
+ } | undefined;
373
+ department?: {
374
+ name?: string | undefined;
375
+ id?: string | undefined;
376
+ external_id?: string | undefined;
377
+ } | undefined;
378
+ }>>;
379
+ status_name: z.ZodOptional<z.ZodString>;
380
+ updated_at: z.ZodOptional<z.ZodAny>;
381
+ }, "strip", z.ZodTypeAny, {
382
+ id?: string | undefined;
383
+ created_at?: any;
384
+ updated_at?: any;
385
+ department_name?: string | undefined;
386
+ channel_id?: string | undefined;
387
+ department_id?: string | undefined;
388
+ contact_id?: number | undefined;
389
+ history_id?: number | undefined;
390
+ payload_created?: {
391
+ department?: {
392
+ name?: string | undefined;
393
+ id?: string | undefined;
394
+ external_id?: string | undefined;
395
+ } | undefined;
396
+ } | undefined;
397
+ payload_closed?: {
398
+ status?: {
399
+ name?: string | undefined;
400
+ id?: string | undefined;
401
+ external_id?: string | undefined;
402
+ } | undefined;
403
+ department?: {
404
+ name?: string | undefined;
405
+ id?: string | undefined;
406
+ external_id?: string | undefined;
407
+ } | undefined;
408
+ } | undefined;
409
+ status_name?: string | undefined;
410
+ }, {
411
+ id?: string | undefined;
412
+ created_at?: any;
413
+ updated_at?: any;
414
+ department_name?: string | undefined;
415
+ channel_id?: string | undefined;
416
+ department_id?: string | undefined;
417
+ contact_id?: number | undefined;
418
+ history_id?: number | undefined;
419
+ payload_created?: {
420
+ department?: {
421
+ name?: string | undefined;
422
+ id?: string | undefined;
423
+ external_id?: string | undefined;
424
+ } | undefined;
425
+ } | undefined;
426
+ payload_closed?: {
427
+ status?: {
428
+ name?: string | undefined;
429
+ id?: string | undefined;
430
+ external_id?: string | undefined;
431
+ } | undefined;
432
+ department?: {
433
+ name?: string | undefined;
434
+ id?: string | undefined;
435
+ external_id?: string | undefined;
436
+ } | undefined;
437
+ } | undefined;
438
+ status_name?: string | undefined;
439
+ }>;
@@ -1,17 +1,67 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zChatBeeChannelConfigSchema = void 0;
3
+ exports.zChatbeeContactHistorySchema = exports.zChatbeeContactHistoryPayloadClosedSchema = exports.zChatbeeContactHistoryPayloadCreatedSchema = exports.zChatbeeContactSchema = exports.zChatbeeStatusSchema = exports.zChatbeeDepartmentSchema = exports.zChatbeeChannelSchema = exports.zChatBeeChannelConfigSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../../shared/zod-schemas");
6
6
  const zod_schemas_2 = require("../../evo-hub-ia/channel/zod-schemas");
7
- // ───────── ChatBee Channel ─────────
7
+ // ───────── ChatBee Channel Config ─────────
8
8
  exports.zChatBeeChannelConfigSchema = zod_schemas_1.zFireDocSchema
9
9
  .extend({
10
- name: zod_1.z.string(), // Nome do canal
11
- channel_id: zod_1.z.string(), // ID do canal
12
- number: zod_1.z.string(), // Número do canal
13
- type: zod_1.z.string(), // Tipo do canal
14
- channel_uuid: zod_1.z.string(), // UUID do canal
15
- hub_ia: zod_schemas_2.zHubIAConfigSchema, // Configurações da HubIA para este canal
10
+ name: zod_1.z.string().optional(), // Nome do canal
11
+ channel_id: zod_1.z.string().optional(), // ID do canal
12
+ number: zod_1.z.string().optional(), // Número do canal
13
+ type: zod_1.z.string().optional(), // Tipo do canal
14
+ channel_uuid: zod_1.z.string().optional(), // UUID do canal
15
+ hub_ia: zod_schemas_2.zHubIAConfigSchema.optional(), // Configurações da HubIA para este canal
16
16
  })
17
17
  .passthrough();
18
+ // ───────── ChatBee Channel ─────────
19
+ exports.zChatbeeChannelSchema = zod_1.z.object({
20
+ id: zod_1.z.string().optional(),
21
+ external_id: zod_1.z.string().optional(),
22
+ name: zod_1.z.string().optional(),
23
+ });
24
+ // ───────── ChatBee Department ─────────
25
+ exports.zChatbeeDepartmentSchema = zod_1.z.object({
26
+ external_id: zod_1.z.string().optional(),
27
+ id: zod_1.z.string().optional(),
28
+ name: zod_1.z.string().optional(),
29
+ });
30
+ // ───────── ChatBee Status ─────────
31
+ exports.zChatbeeStatusSchema = zod_1.z.object({
32
+ external_id: zod_1.z.string().optional(),
33
+ id: zod_1.z.string().optional(),
34
+ name: zod_1.z.string().optional(),
35
+ });
36
+ // ───────── ChatBee Contact ─────────
37
+ exports.zChatbeeContactSchema = zod_1.z.object({
38
+ id: zod_1.z.string().optional(),
39
+ external_id: zod_1.z.string().optional(),
40
+ name: zod_1.z.string().optional(),
41
+ is_group: zod_1.z.string().optional(),
42
+ address: zod_1.z.string().optional(),
43
+ type: zod_1.z.string().optional(),
44
+ });
45
+ // ───────── ChatBee Contact History Payload Created ─────────
46
+ exports.zChatbeeContactHistoryPayloadCreatedSchema = zod_1.z.object({
47
+ department: exports.zChatbeeDepartmentSchema.optional(),
48
+ });
49
+ // ───────── ChatBee Contact History Payload Closed ─────────
50
+ exports.zChatbeeContactHistoryPayloadClosedSchema = zod_1.z.object({
51
+ department: exports.zChatbeeDepartmentSchema.optional(),
52
+ status: exports.zChatbeeStatusSchema.optional(),
53
+ });
54
+ // ───────── ChatBee Contact History ─────────
55
+ exports.zChatbeeContactHistorySchema = zod_1.z.object({
56
+ id: zod_1.z.string().optional(),
57
+ channel_id: zod_1.z.string().optional(),
58
+ contact_id: zod_1.z.number().optional(),
59
+ department_id: zod_1.z.string().optional(),
60
+ department_name: zod_1.z.string().optional(),
61
+ created_at: zod_1.z.any().optional(),
62
+ history_id: zod_1.z.number().optional(),
63
+ payload_created: exports.zChatbeeContactHistoryPayloadCreatedSchema.optional(),
64
+ payload_closed: exports.zChatbeeContactHistoryPayloadClosedSchema.optional(),
65
+ status_name: zod_1.z.string().optional(),
66
+ updated_at: zod_1.z.any().optional(),
67
+ });
@@ -2,14 +2,71 @@ import { z } from "zod";
2
2
  import { zFireDocSchema } from "../../shared/zod-schemas";
3
3
  import { zHubIAConfigSchema } from "../../evo-hub-ia/channel/zod-schemas";
4
4
 
5
- // ───────── ChatBee Channel ─────────
5
+ // ───────── ChatBee Channel Config ─────────
6
6
  export const zChatBeeChannelConfigSchema = zFireDocSchema
7
7
  .extend({
8
- name: z.string(), // Nome do canal
9
- channel_id: z.string(), // ID do canal
10
- number: z.string(), // Número do canal
11
- type: z.string(), // Tipo do canal
12
- channel_uuid: z.string(), // UUID do canal
13
- hub_ia: zHubIAConfigSchema, // Configurações da HubIA para este canal
8
+ name: z.string().optional(), // Nome do canal
9
+ channel_id: z.string().optional(), // ID do canal
10
+ number: z.string().optional(), // Número do canal
11
+ type: z.string().optional(), // Tipo do canal
12
+ channel_uuid: z.string().optional(), // UUID do canal
13
+ hub_ia: zHubIAConfigSchema.optional(), // Configurações da HubIA para este canal
14
14
  })
15
15
  .passthrough();
16
+
17
+ // ───────── ChatBee Channel ─────────
18
+ export const zChatbeeChannelSchema = z.object({
19
+ id: z.string().optional(),
20
+ external_id: z.string().optional(),
21
+ name: z.string().optional(),
22
+ });
23
+
24
+ // ───────── ChatBee Department ─────────
25
+ export const zChatbeeDepartmentSchema = z.object({
26
+ external_id: z.string().optional(),
27
+ id: z.string().optional(),
28
+ name: z.string().optional(),
29
+ });
30
+
31
+ // ───────── ChatBee Status ─────────
32
+ export const zChatbeeStatusSchema = z.object({
33
+ external_id: z.string().optional(),
34
+ id: z.string().optional(),
35
+ name: z.string().optional(),
36
+ });
37
+
38
+ // ───────── ChatBee Contact ─────────
39
+ export const zChatbeeContactSchema = z.object({
40
+ id: z.string().optional(),
41
+ external_id: z.string().optional(),
42
+ name: z.string().optional(),
43
+ is_group: z.string().optional(),
44
+ address: z.string().optional(),
45
+ type: z.string().optional(),
46
+ });
47
+
48
+ // ───────── ChatBee Contact History Payload Created ─────────
49
+ export const zChatbeeContactHistoryPayloadCreatedSchema = z.object({
50
+ department: zChatbeeDepartmentSchema.optional(),
51
+ });
52
+
53
+ // ───────── ChatBee Contact History Payload Closed ─────────
54
+ export const zChatbeeContactHistoryPayloadClosedSchema = z.object({
55
+ department: zChatbeeDepartmentSchema.optional(),
56
+ status: zChatbeeStatusSchema.optional(),
57
+ });
58
+
59
+ // ───────── ChatBee Contact History ─────────
60
+ export const zChatbeeContactHistorySchema = z.object({
61
+ id: z.string().optional(),
62
+ channel_id: z.string().optional(),
63
+ contact_id: z.number().optional(),
64
+ department_id: z.string().optional(),
65
+ department_name: z.string().optional(),
66
+ created_at: z.any().optional(),
67
+ history_id: z.number().optional(),
68
+ payload_created: zChatbeeContactHistoryPayloadCreatedSchema.optional(),
69
+ payload_closed: zChatbeeContactHistoryPayloadClosedSchema.optional(),
70
+ status_name: z.string().optional(),
71
+ updated_at: z.any().optional(),
72
+ });