evo360-types 1.3.108 → 1.3.111
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/chatbee/zod-schemas.d.ts +338 -0
- package/dist/apps/evo-chat/chatbee/zod-schemas.js +52 -2
- package/dist/apps/evo-chat/chatbee/zod-schemas.ts +58 -1
- package/dist/apps/evo-chat/contact/zod-schemas.d.ts +456 -35
- package/dist/apps/evo-chat/contact/zod-schemas.js +11 -16
- package/dist/apps/evo-chat/contact/zod-schemas.ts +12 -15
- package/dist/apps/evo-hub-ia/channel/zod-schemas.d.ts +19 -0
- package/dist/apps/evo-hub-ia/channel/zod-schemas.js +13 -1
- package/dist/apps/evo-hub-ia/channel/zod-schemas.ts +13 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.ts +1 -1
- package/dist/types/evo-chat/chatbee/index.d.ts +43 -0
- package/dist/types/evo-chat/chatbee/index.ts +57 -0
- package/dist/types/evo-chat/contact/index.d.ts +8 -13
- package/dist/types/evo-chat/contact/index.ts +12 -15
- package/dist/types/evo-hub-ia/channel/index.d.ts +12 -0
- package/dist/types/evo-hub-ia/channel/index.js +7 -1
- package/dist/types/evo-hub-ia/channel/index.ts +15 -0
- package/package.json +1 -1
|
@@ -18,19 +18,37 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
|
|
|
18
18
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
19
19
|
enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
|
|
20
20
|
auto_reactivate: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
enable_audio_transcription: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
allow_enable_ai_service: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
allow_reply_mode: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
+
transcribe_audio_when_ai_disabled: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
+
suggest_agenda_action: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
+
task_creation: z.ZodEnum<["disabled", "suggestion", "create"]>;
|
|
21
27
|
system_message_prompt: z.ZodString;
|
|
22
28
|
}, "strip", z.ZodTypeAny, {
|
|
23
29
|
active: boolean;
|
|
24
30
|
default_operation_mode: "reply" | "suggestion";
|
|
25
31
|
enabled_for_new_contacts: boolean;
|
|
26
32
|
auto_reactivate: boolean;
|
|
33
|
+
enable_audio_transcription: boolean;
|
|
34
|
+
allow_enable_ai_service: boolean;
|
|
35
|
+
allow_reply_mode: boolean;
|
|
36
|
+
transcribe_audio_when_ai_disabled: boolean;
|
|
37
|
+
suggest_agenda_action: boolean;
|
|
38
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
27
39
|
system_message_prompt: string;
|
|
28
40
|
}, {
|
|
29
41
|
default_operation_mode: "reply" | "suggestion";
|
|
42
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
30
43
|
system_message_prompt: string;
|
|
31
44
|
active?: boolean | undefined;
|
|
32
45
|
enabled_for_new_contacts?: boolean | undefined;
|
|
33
46
|
auto_reactivate?: boolean | undefined;
|
|
47
|
+
enable_audio_transcription?: boolean | undefined;
|
|
48
|
+
allow_enable_ai_service?: boolean | undefined;
|
|
49
|
+
allow_reply_mode?: boolean | undefined;
|
|
50
|
+
transcribe_audio_when_ai_disabled?: boolean | undefined;
|
|
51
|
+
suggest_agenda_action?: boolean | undefined;
|
|
34
52
|
}>;
|
|
35
53
|
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
36
54
|
id: z.ZodString;
|
|
@@ -51,19 +69,37 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
|
|
|
51
69
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
52
70
|
enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
|
|
53
71
|
auto_reactivate: z.ZodDefault<z.ZodBoolean>;
|
|
72
|
+
enable_audio_transcription: z.ZodDefault<z.ZodBoolean>;
|
|
73
|
+
allow_enable_ai_service: z.ZodDefault<z.ZodBoolean>;
|
|
74
|
+
allow_reply_mode: z.ZodDefault<z.ZodBoolean>;
|
|
75
|
+
transcribe_audio_when_ai_disabled: z.ZodDefault<z.ZodBoolean>;
|
|
76
|
+
suggest_agenda_action: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
+
task_creation: z.ZodEnum<["disabled", "suggestion", "create"]>;
|
|
54
78
|
system_message_prompt: z.ZodString;
|
|
55
79
|
}, "strip", z.ZodTypeAny, {
|
|
56
80
|
active: boolean;
|
|
57
81
|
default_operation_mode: "reply" | "suggestion";
|
|
58
82
|
enabled_for_new_contacts: boolean;
|
|
59
83
|
auto_reactivate: boolean;
|
|
84
|
+
enable_audio_transcription: boolean;
|
|
85
|
+
allow_enable_ai_service: boolean;
|
|
86
|
+
allow_reply_mode: boolean;
|
|
87
|
+
transcribe_audio_when_ai_disabled: boolean;
|
|
88
|
+
suggest_agenda_action: boolean;
|
|
89
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
60
90
|
system_message_prompt: string;
|
|
61
91
|
}, {
|
|
62
92
|
default_operation_mode: "reply" | "suggestion";
|
|
93
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
63
94
|
system_message_prompt: string;
|
|
64
95
|
active?: boolean | undefined;
|
|
65
96
|
enabled_for_new_contacts?: boolean | undefined;
|
|
66
97
|
auto_reactivate?: boolean | undefined;
|
|
98
|
+
enable_audio_transcription?: boolean | undefined;
|
|
99
|
+
allow_enable_ai_service?: boolean | undefined;
|
|
100
|
+
allow_reply_mode?: boolean | undefined;
|
|
101
|
+
transcribe_audio_when_ai_disabled?: boolean | undefined;
|
|
102
|
+
suggest_agenda_action?: boolean | undefined;
|
|
67
103
|
}>;
|
|
68
104
|
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
69
105
|
id: z.ZodString;
|
|
@@ -84,18 +120,320 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
|
|
|
84
120
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
85
121
|
enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
|
|
86
122
|
auto_reactivate: z.ZodDefault<z.ZodBoolean>;
|
|
123
|
+
enable_audio_transcription: z.ZodDefault<z.ZodBoolean>;
|
|
124
|
+
allow_enable_ai_service: z.ZodDefault<z.ZodBoolean>;
|
|
125
|
+
allow_reply_mode: z.ZodDefault<z.ZodBoolean>;
|
|
126
|
+
transcribe_audio_when_ai_disabled: z.ZodDefault<z.ZodBoolean>;
|
|
127
|
+
suggest_agenda_action: z.ZodDefault<z.ZodBoolean>;
|
|
128
|
+
task_creation: z.ZodEnum<["disabled", "suggestion", "create"]>;
|
|
87
129
|
system_message_prompt: z.ZodString;
|
|
88
130
|
}, "strip", z.ZodTypeAny, {
|
|
89
131
|
active: boolean;
|
|
90
132
|
default_operation_mode: "reply" | "suggestion";
|
|
91
133
|
enabled_for_new_contacts: boolean;
|
|
92
134
|
auto_reactivate: boolean;
|
|
135
|
+
enable_audio_transcription: boolean;
|
|
136
|
+
allow_enable_ai_service: boolean;
|
|
137
|
+
allow_reply_mode: boolean;
|
|
138
|
+
transcribe_audio_when_ai_disabled: boolean;
|
|
139
|
+
suggest_agenda_action: boolean;
|
|
140
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
93
141
|
system_message_prompt: string;
|
|
94
142
|
}, {
|
|
95
143
|
default_operation_mode: "reply" | "suggestion";
|
|
144
|
+
task_creation: "suggestion" | "disabled" | "create";
|
|
96
145
|
system_message_prompt: string;
|
|
97
146
|
active?: boolean | undefined;
|
|
98
147
|
enabled_for_new_contacts?: boolean | undefined;
|
|
99
148
|
auto_reactivate?: boolean | undefined;
|
|
149
|
+
enable_audio_transcription?: boolean | undefined;
|
|
150
|
+
allow_enable_ai_service?: boolean | undefined;
|
|
151
|
+
allow_reply_mode?: boolean | undefined;
|
|
152
|
+
transcribe_audio_when_ai_disabled?: boolean | undefined;
|
|
153
|
+
suggest_agenda_action?: boolean | undefined;
|
|
100
154
|
}>;
|
|
101
155
|
}>, z.ZodTypeAny, "passthrough">>;
|
|
156
|
+
export declare const zChatbeeChannelSchema: z.ZodObject<{
|
|
157
|
+
id: z.ZodString;
|
|
158
|
+
external_id: z.ZodString;
|
|
159
|
+
name: z.ZodString;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
name: string;
|
|
162
|
+
id: string;
|
|
163
|
+
external_id: string;
|
|
164
|
+
}, {
|
|
165
|
+
name: string;
|
|
166
|
+
id: string;
|
|
167
|
+
external_id: string;
|
|
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.ZodString;
|
|
197
|
+
external_id: z.ZodString;
|
|
198
|
+
name: z.ZodString;
|
|
199
|
+
is_group: z.ZodString;
|
|
200
|
+
address: z.ZodString;
|
|
201
|
+
type: z.ZodString;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
name: string;
|
|
204
|
+
id: string;
|
|
205
|
+
type: string;
|
|
206
|
+
external_id: string;
|
|
207
|
+
address: string;
|
|
208
|
+
is_group: string;
|
|
209
|
+
}, {
|
|
210
|
+
name: string;
|
|
211
|
+
id: string;
|
|
212
|
+
type: string;
|
|
213
|
+
external_id: string;
|
|
214
|
+
address: string;
|
|
215
|
+
is_group: string;
|
|
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,10 +1,10 @@
|
|
|
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
10
|
name: zod_1.z.string(), // Nome do canal
|
|
@@ -15,3 +15,53 @@ exports.zChatBeeChannelConfigSchema = zod_schemas_1.zFireDocSchema
|
|
|
15
15
|
hub_ia: zod_schemas_2.zHubIAConfigSchema, // 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(),
|
|
21
|
+
external_id: zod_1.z.string(),
|
|
22
|
+
name: zod_1.z.string(),
|
|
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(),
|
|
39
|
+
external_id: zod_1.z.string(),
|
|
40
|
+
name: zod_1.z.string(),
|
|
41
|
+
is_group: zod_1.z.string(),
|
|
42
|
+
address: zod_1.z.string(),
|
|
43
|
+
type: zod_1.z.string(),
|
|
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,7 +2,7 @@ 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
8
|
name: z.string(), // Nome do canal
|
|
@@ -13,3 +13,60 @@ export const zChatBeeChannelConfigSchema = zFireDocSchema
|
|
|
13
13
|
hub_ia: zHubIAConfigSchema, // 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(),
|
|
20
|
+
external_id: z.string(),
|
|
21
|
+
name: z.string(),
|
|
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(),
|
|
41
|
+
external_id: z.string(),
|
|
42
|
+
name: z.string(),
|
|
43
|
+
is_group: z.string(),
|
|
44
|
+
address: z.string(),
|
|
45
|
+
type: z.string(),
|
|
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
|
+
});
|