termo_core 0.1.3 → 0.1.5

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.
@@ -1,634 +1,6 @@
1
- export interface AcessoAtual {
2
- email: string;
3
- id: string;
4
- master: boolean;
5
- nome: string;
6
- perfil: string;
7
- perfil_acesso?: string | null;
8
- permissoes: Permissoes;
9
- }
10
- export interface Acoes {
11
- criar?: boolean;
12
- deletar?: boolean;
13
- editar?: boolean;
14
- ler?: boolean;
15
- }
16
- export interface AnexoDaMensagem {
17
- arquivo_id?: string | null;
18
- endereco: string;
19
- nome: string;
20
- tamanho?: number | null;
21
- tentativas?: number;
22
- tipo: string;
23
- tipo_mime?: string | null;
24
- url?: string | null;
25
- }
26
- export interface Auth {
27
- ativo: boolean;
28
- atualizado_em: string;
29
- bloqueado_ate?: string | null;
30
- criado_em: string;
31
- email: string;
32
- id: string;
33
- master: boolean;
34
- nome?: string | null;
35
- perfil: string;
36
- termoauth_id?: string | null;
37
- ultimo_login_em?: string | null;
38
- vinculado: boolean;
39
- }
40
- export interface AuthAtualizar {
41
- ativo?: boolean | null;
42
- email?: string | null;
43
- }
44
- export interface AuthAutoComplete {
45
- email: string;
46
- id: string;
47
- perfil: string;
48
- }
49
- export interface AuthCriar {
50
- email: string;
51
- perfil: string;
52
- }
53
- export interface Cliente {
54
- atendente_ativo: boolean;
55
- ativo: boolean;
56
- atualizado_em: string;
57
- cidade?: string | null;
58
- cnpj: string;
59
- criado_em: string;
60
- email?: string | null;
61
- estado?: string | null;
62
- id: string;
63
- intranet_cliente_id?: number | null;
64
- nome_fantasia?: string | null;
65
- razao_social: string;
66
- telefone?: string | null;
67
- }
68
- export interface ClienteAtualizar {
69
- atendente_ativo?: boolean | null;
70
- ativo?: boolean | null;
71
- cidade?: string | null;
72
- estado?: string | null;
73
- nome_fantasia?: string | null;
74
- razao_social?: string | null;
75
- telefone?: string | null;
76
- }
77
- export interface ClienteAutoComplete {
78
- cnpj: string;
79
- id: string;
80
- razao_social: string;
81
- }
82
- export interface ClienteCriar {
83
- cidade?: string | null;
84
- cnpj: string;
85
- email: string;
86
- estado?: string | null;
87
- nome_fantasia?: string | null;
88
- razao_social: string;
89
- telefone?: string | null;
90
- }
91
- export interface ClienteDetalheParte2 {
92
- ultimo_pedido?: Pedido | null;
93
- }
94
- export type ClienteDetalhe = Cliente & ClienteDetalheParte2;
95
- export interface Colaborador {
96
- ativo: boolean;
97
- atualizado_em: string;
98
- auth_id: string;
99
- cargo?: string | null;
100
- criado_em: string;
101
- email: string;
102
- funcao?: string | null;
103
- id: string;
104
- master: boolean;
105
- nome: string;
106
- perfil_acesso?: string | null;
107
- perfil_acesso_id?: string | null;
108
- setor?: string | null;
109
- telefone?: string | null;
110
- }
111
- export interface ColaboradorAutoComplete {
112
- email: string;
113
- id: string;
114
- nome: string;
115
- }
116
- export interface ColaboradorVincularPerfilAcesso {
117
- perfil_acesso_id?: string | null;
118
- }
119
- export interface ConfigSystemChatwoot {
120
- ativo: boolean;
121
- atualizado_em: string;
122
- conta_id: number;
123
- criado_em: string;
124
- endereco: string;
125
- endereco_publico: string;
126
- id: string;
127
- nome: string;
128
- robo_chatwoot_id: number;
129
- token_acesso_mascarado: string;
130
- }
131
- export interface ConfigSystemChatwootAtualizar {
132
- ativo?: boolean | null;
133
- endereco_publico?: string | null;
134
- nome?: string | null;
135
- token_acesso?: string | null;
136
- }
137
- export interface ConfigSystemChatwootAutoComplete {
138
- endereco: string;
139
- id: string;
140
- nome: string;
141
- }
142
- export interface ConfigSystemChatwootCriar {
143
- conta_id: number;
144
- endereco: string;
145
- endereco_publico: string;
146
- nome: string;
147
- token_acesso: string;
148
- }
149
- export interface ConfigSystemChatwootValidadaParte2 {
150
- chave_valida: boolean;
151
- erro_chave?: string | null;
152
- }
153
- export type ConfigSystemChatwootValidada = ConfigSystemChatwoot & ConfigSystemChatwootValidadaParte2;
154
- export interface ConfigSystemWhatsappAutoComplete {
155
- id: string;
156
- nome: string;
157
- numero?: string | null;
158
- }
159
- export interface ConfigSystemZApiAutoComplete {
160
- id: string;
161
- nome: string;
162
- numero: string;
163
- }
164
- export interface Configuracao {
165
- atualizado_em?: string | null;
166
- atualizado_por?: string | null;
167
- criptografia_disponivel: boolean;
168
- segredo_do_app_gerado_no_termo_auth: ValorProtegido;
169
- }
170
- export interface ConfiguracaoAtualizar {
171
- segredo_do_app_gerado_no_termo_auth?: string | null;
172
- }
173
- export interface Conversa {
174
- atualizado_em: string;
175
- chatwoot_contato_id?: number | null;
176
- chatwoot_conversa_id: number;
177
- chatwoot_endereco_conversa?: string | null;
178
- cliente_id?: string | null;
179
- cliente_razao_social?: string | null;
180
- config_system_chatwoot_id: string;
181
- config_system_whatsapp_id?: string | null;
182
- config_system_whatsapp_nome?: string | null;
183
- config_system_z_api_id?: string | null;
184
- config_system_z_api_nome?: string | null;
185
- contato_nome: string;
186
- contato_telefone: string;
187
- criado_em: string;
188
- etapa_id?: string | null;
189
- id: string;
190
- quantidade_mensagens: number;
191
- robo_id?: string | null;
192
- robo_nome?: string | null;
193
- status: string;
194
- transferida_em?: string | null;
195
- transferida_motivo?: string | null;
196
- ultima_mensagem: string;
197
- ultima_mensagem_do_contato_em?: string | null;
198
- ultima_mensagem_do_robo_em?: string | null;
199
- ultima_mensagem_em?: string | null;
200
- }
201
- export interface ConversaAtualizar {
202
- cliente_id?: string | null;
203
- robo_id?: string | null;
204
- status?: string | null;
205
- }
206
- export interface ConversaAutoComplete {
207
- chatwoot_conversa_id: number;
208
- contato_nome: string;
209
- contato_telefone: string;
210
- id: string;
211
- }
212
- export interface ConversaMensagem {
213
- anexos: Array<AnexoDaMensagem>;
214
- autor: string;
215
- chatwoot_mensagem_id: number;
216
- conteudo: string;
217
- conversa_id: string;
218
- criada_em: string;
219
- etapa_id?: string | null;
220
- id: string;
221
- quantidade_anexos: number;
222
- }
223
- export interface Dashboard {
224
- aguardando_resposta: Array<DashboardAguardando>;
225
- dias: number;
226
- gerado_em: string;
227
- indicadores: DashboardIndicadores;
228
- inicio: string;
229
- por_canal: Array<DashboardCanal>;
230
- por_dia: Array<DashboardDia>;
231
- por_hora: Array<DashboardHora>;
232
- por_robo: Array<DashboardRobo>;
233
- situacao_atual: Array<DashboardSituacao>;
234
- }
235
- export interface DashboardAguardando {
236
- aguardando_desde: string;
237
- cliente_razao_social?: string | null;
238
- contato_nome: string;
239
- contato_telefone: string;
240
- id: string;
241
- robo_nome?: string | null;
242
- status: string;
243
- ultima_mensagem: string;
244
- }
245
- export interface DashboardCanal {
246
- canal_id?: string | null;
247
- canal_nome: string;
248
- canal_tipo: string;
249
- conversas: number;
250
- mensagens_recebidas: number;
251
- }
252
- export interface DashboardDia {
253
- conversas_novas: number;
254
- dia: string;
255
- mensagens_da_equipe: number;
256
- mensagens_do_robo: number;
257
- mensagens_recebidas: number;
258
- }
259
- export interface DashboardHora {
260
- hora: number;
261
- mensagens_recebidas: number;
262
- }
263
- export interface DashboardIndicadores {
264
- aguardando_resposta: number;
265
- clientes_atendidos: number;
266
- conversas_atendidas: number;
267
- conversas_novas: number;
268
- conversas_novas_periodo_anterior: number;
269
- mensagens_da_equipe: number;
270
- mensagens_do_robo: number;
271
- mensagens_recebidas: number;
272
- passadas_para_equipe: number;
273
- primeira_resposta_da_equipe_segundos?: number | null;
274
- primeira_resposta_segundos?: number | null;
275
- resolvidas_pelo_robo: number;
276
- transferidas_sem_resposta: number;
277
- }
278
- export interface DashboardRobo {
279
- conversas: number;
280
- passadas_para_equipe: number;
281
- resolvidas_pelo_robo: number;
282
- robo_id?: string | null;
283
- robo_nome: string;
284
- }
285
- export interface DashboardSituacao {
286
- quantidade: number;
287
- status: string;
288
- }
289
- export interface EntregaDoTermoWebhook {
290
- dados: Record<string, unknown>;
291
- entidade_id: string;
292
- id: string;
293
- ocorrido_em: string;
294
- tipo: string;
295
- versao: number;
296
- }
297
- export interface EquipeChatwoot {
298
- id: number;
299
- nome: string;
300
- }
301
- export type EventoDaZApi = Record<string, unknown>;
302
- export type EventoDoChatwoot = Record<string, unknown>;
303
- export interface ItemPedido {
304
- descricao: string;
305
- quantidade: number;
306
- unidade: string;
307
- valor_unitario: number;
308
- }
309
- export interface ModeloDoGateway {
310
- aceita_ferramentas: boolean;
311
- chaves_ativas: number;
312
- empresa: string;
313
- gratuito: boolean;
314
- logo_monocromatica: boolean;
315
- modelo: string;
316
- provedor: string;
317
- url_da_logo: string;
318
- }
319
- export interface PaginaAuthItensItem {
320
- ativo: boolean;
321
- atualizado_em: string;
322
- bloqueado_ate?: string | null;
323
- criado_em: string;
324
- email: string;
325
- id: string;
326
- master: boolean;
327
- nome?: string | null;
328
- perfil: string;
329
- termoauth_id?: string | null;
330
- ultimo_login_em?: string | null;
331
- vinculado: boolean;
332
- }
333
- export interface PaginaAuth {
334
- itens: Array<PaginaAuthItensItem>;
335
- pagina: number;
336
- tamanho: number;
337
- total: number;
338
- }
339
- export interface PaginaAuthAutoCompleteItensItem {
340
- email: string;
341
- id: string;
342
- perfil: string;
343
- }
344
- export interface PaginaAuthAutoComplete {
345
- itens: Array<PaginaAuthAutoCompleteItensItem>;
346
- pagina: number;
347
- tamanho: number;
348
- total: number;
349
- }
350
- export interface PaginaClienteItensItem {
351
- atendente_ativo: boolean;
352
- ativo: boolean;
353
- atualizado_em: string;
354
- cidade?: string | null;
355
- cnpj: string;
356
- criado_em: string;
357
- email?: string | null;
358
- estado?: string | null;
359
- id: string;
360
- intranet_cliente_id?: number | null;
361
- nome_fantasia?: string | null;
362
- razao_social: string;
363
- telefone?: string | null;
364
- }
365
- export interface PaginaCliente {
366
- itens: Array<PaginaClienteItensItem>;
367
- pagina: number;
368
- tamanho: number;
369
- total: number;
370
- }
371
- export interface PaginaClienteAutoCompleteItensItem {
372
- cnpj: string;
373
- id: string;
374
- razao_social: string;
375
- }
376
- export interface PaginaClienteAutoComplete {
377
- itens: Array<PaginaClienteAutoCompleteItensItem>;
378
- pagina: number;
379
- tamanho: number;
380
- total: number;
381
- }
382
- export interface PaginaColaboradorItensItem {
383
- ativo: boolean;
384
- atualizado_em: string;
385
- auth_id: string;
386
- cargo?: string | null;
387
- criado_em: string;
388
- email: string;
389
- funcao?: string | null;
390
- id: string;
391
- master: boolean;
392
- nome: string;
393
- perfil_acesso?: string | null;
394
- perfil_acesso_id?: string | null;
395
- setor?: string | null;
396
- telefone?: string | null;
397
- }
398
- export interface PaginaColaborador {
399
- itens: Array<PaginaColaboradorItensItem>;
400
- pagina: number;
401
- tamanho: number;
402
- total: number;
403
- }
404
- export interface PaginaColaboradorAutoCompleteItensItem {
405
- email: string;
406
- id: string;
407
- nome: string;
408
- }
409
- export interface PaginaColaboradorAutoComplete {
410
- itens: Array<PaginaColaboradorAutoCompleteItensItem>;
411
- pagina: number;
412
- tamanho: number;
413
- total: number;
414
- }
415
- export interface PaginaConfigSystemChatwootAutoCompleteItensItem {
416
- endereco: string;
417
- id: string;
418
- nome: string;
419
- }
420
- export interface PaginaConfigSystemChatwootAutoComplete {
421
- itens: Array<PaginaConfigSystemChatwootAutoCompleteItensItem>;
422
- pagina: number;
423
- tamanho: number;
424
- total: number;
425
- }
426
- export interface PaginaConfigSystemChatwootValidadaItensItemParte2 {
427
- chave_valida: boolean;
428
- erro_chave?: string | null;
429
- }
430
- export interface PaginaConfigSystemChatwootValidada {
431
- itens: Array<ConfigSystemChatwoot & PaginaConfigSystemChatwootValidadaItensItemParte2>;
432
- pagina: number;
433
- tamanho: number;
434
- total: number;
435
- }
436
- export interface PaginaConfigSystemWhatsappAutoCompleteItensItem {
437
- id: string;
438
- nome: string;
439
- numero?: string | null;
440
- }
441
- export interface PaginaConfigSystemWhatsappAutoComplete {
442
- itens: Array<PaginaConfigSystemWhatsappAutoCompleteItensItem>;
443
- pagina: number;
444
- tamanho: number;
445
- total: number;
446
- }
447
- export interface PaginaConfigSystemZApiAutoCompleteItensItem {
448
- id: string;
449
- nome: string;
450
- numero: string;
451
- }
452
- export interface PaginaConfigSystemZApiAutoComplete {
453
- itens: Array<PaginaConfigSystemZApiAutoCompleteItensItem>;
454
- pagina: number;
455
- tamanho: number;
456
- total: number;
457
- }
458
- export interface PaginaConversaItensItem {
459
- atualizado_em: string;
460
- chatwoot_contato_id?: number | null;
461
- chatwoot_conversa_id: number;
462
- chatwoot_endereco_conversa?: string | null;
463
- cliente_id?: string | null;
464
- cliente_razao_social?: string | null;
465
- config_system_chatwoot_id: string;
466
- config_system_whatsapp_id?: string | null;
467
- config_system_whatsapp_nome?: string | null;
468
- config_system_z_api_id?: string | null;
469
- config_system_z_api_nome?: string | null;
470
- contato_nome: string;
471
- contato_telefone: string;
472
- criado_em: string;
473
- etapa_id?: string | null;
474
- id: string;
475
- quantidade_mensagens: number;
476
- robo_id?: string | null;
477
- robo_nome?: string | null;
478
- status: string;
479
- transferida_em?: string | null;
480
- transferida_motivo?: string | null;
481
- ultima_mensagem: string;
482
- ultima_mensagem_do_contato_em?: string | null;
483
- ultima_mensagem_do_robo_em?: string | null;
484
- ultima_mensagem_em?: string | null;
485
- }
486
- export interface PaginaConversa {
487
- itens: Array<PaginaConversaItensItem>;
488
- pagina: number;
489
- tamanho: number;
490
- total: number;
491
- }
492
- export interface PaginaConversaAutoCompleteItensItem {
493
- chatwoot_conversa_id: number;
494
- contato_nome: string;
495
- contato_telefone: string;
496
- id: string;
497
- }
498
- export interface PaginaConversaAutoComplete {
499
- itens: Array<PaginaConversaAutoCompleteItensItem>;
500
- pagina: number;
501
- tamanho: number;
502
- total: number;
503
- }
504
- export interface PaginaPerfilAcessoItensItem {
505
- atualizado_em: string;
506
- colaboradores: number;
507
- criado_em: string;
508
- descricao?: string | null;
509
- id: string;
510
- nome: string;
511
- permissoes: Permissoes;
512
- }
513
- export interface PaginaPerfilAcesso {
514
- itens: Array<PaginaPerfilAcessoItensItem>;
515
- pagina: number;
516
- tamanho: number;
517
- total: number;
518
- }
519
- export interface PaginaPerfilAcessoAutoCompleteItensItem {
520
- id: string;
521
- nome: string;
522
- }
523
- export interface PaginaPerfilAcessoAutoComplete {
524
- itens: Array<PaginaPerfilAcessoAutoCompleteItensItem>;
525
- pagina: number;
526
- tamanho: number;
527
- total: number;
528
- }
529
- export interface PaginaRoboItensItem {
530
- atender_contatos_novos: boolean;
531
- ativo: boolean;
532
- atualizado_em: string;
533
- criado_em: string;
534
- descricao?: string | null;
535
- fluxo: RoboFluxo;
536
- id: string;
537
- modelo: string;
538
- nome: string;
539
- prompt_base: string;
540
- versao: number;
541
- }
542
- export interface PaginaRobo {
543
- itens: Array<PaginaRoboItensItem>;
544
- pagina: number;
545
- tamanho: number;
546
- total: number;
547
- }
548
- export interface PaginaRoboAutoCompleteItensItem {
549
- id: string;
550
- modelo: string;
551
- nome: string;
552
- }
553
- export interface PaginaRoboAutoComplete {
554
- itens: Array<PaginaRoboAutoCompleteItensItem>;
555
- pagina: number;
556
- tamanho: number;
557
- total: number;
558
- }
559
- export interface PaginaRoboFerramentaItensItem {
560
- ativo: boolean;
561
- atualizado_em: string;
562
- criado_em: string;
563
- descricao: string;
564
- esquema: Record<string, unknown>;
565
- exige_confirmacao: boolean;
566
- id: string;
567
- nome: string;
568
- rotulo: string;
569
- tipo: string;
570
- }
571
- export interface PaginaRoboFerramenta {
572
- itens: Array<PaginaRoboFerramentaItensItem>;
573
- pagina: number;
574
- tamanho: number;
575
- total: number;
576
- }
577
- export interface PaginaRoboFerramentaAutoCompleteItensItem {
578
- id: string;
579
- nome: string;
580
- rotulo: string;
581
- }
582
- export interface PaginaRoboFerramentaAutoComplete {
583
- itens: Array<PaginaRoboFerramentaAutoCompleteItensItem>;
584
- pagina: number;
585
- tamanho: number;
586
- total: number;
587
- }
588
- export interface Pedido {
589
- cliente_id: string;
590
- emitido_em: string;
591
- itens: Array<ItemPedido>;
592
- numero: string;
593
- valor_total: number;
594
- }
595
- export interface PerfilAcesso {
596
- atualizado_em: string;
597
- colaboradores: number;
598
- criado_em: string;
599
- descricao?: string | null;
600
- id: string;
601
- nome: string;
602
- permissoes: Permissoes;
603
- }
604
- export interface PerfilAcessoAtualizar {
605
- descricao?: string | null;
606
- nome?: string | null;
607
- permissoes?: Permissoes | null;
608
- }
609
- export interface PerfilAcessoAutoComplete {
610
- id: string;
611
- nome: string;
612
- }
613
- export interface PerfilAcessoCriar {
614
- descricao?: string | null;
615
- nome: string;
616
- permissoes?: Permissoes;
617
- }
618
- export interface Permissoes {
619
- clientes?: Acoes;
620
- colaboradores?: Acoes;
621
- configuracoes?: Acoes;
622
- }
623
1
  export interface RespostaDeErro {
624
2
  erro: string;
625
3
  }
626
- export interface ResultadoDaSincronizacao {
627
- atualizados: number;
628
- criados: number;
629
- ignorados: number;
630
- recebidos: number;
631
- }
632
4
  export interface Robo {
633
5
  atender_contatos_novos: boolean;
634
6
  ativo: boolean;
@@ -651,11 +23,6 @@ export interface RoboAtualizar {
651
23
  nome?: string | null;
652
24
  prompt_base?: string | null;
653
25
  }
654
- export interface RoboAutoComplete {
655
- id: string;
656
- modelo: string;
657
- nome: string;
658
- }
659
26
  export interface RoboBotao {
660
27
  id: string;
661
28
  rotulo: string;
@@ -667,39 +34,6 @@ export interface RoboCriar {
667
34
  nome: string;
668
35
  prompt_base?: string | null;
669
36
  }
670
- export interface RoboFerramenta {
671
- ativo: boolean;
672
- atualizado_em: string;
673
- criado_em: string;
674
- descricao: string;
675
- esquema: Record<string, unknown>;
676
- exige_confirmacao: boolean;
677
- id: string;
678
- nome: string;
679
- rotulo: string;
680
- tipo: string;
681
- }
682
- export interface RoboFerramentaAtualizar {
683
- ativo?: boolean | null;
684
- descricao?: string | null;
685
- esquema?: Record<string, unknown> | null;
686
- exige_confirmacao?: boolean | null;
687
- rotulo?: string | null;
688
- tipo?: string | null;
689
- }
690
- export interface RoboFerramentaAutoComplete {
691
- id: string;
692
- nome: string;
693
- rotulo: string;
694
- }
695
- export interface RoboFerramentaCriar {
696
- descricao: string;
697
- esquema?: Record<string, unknown> | null;
698
- exige_confirmacao?: boolean | null;
699
- nome: string;
700
- rotulo: string;
701
- tipo: string;
702
- }
703
37
  export interface RoboFluxo {
704
38
  ligacoes?: Array<RoboLigacao>;
705
39
  nos?: Array<RoboNo>;
@@ -733,25 +67,3 @@ export interface RoboRegra {
733
67
  condicao: string;
734
68
  id: string;
735
69
  }
736
- export interface SaudeDoBackend {
737
- mensagem: string;
738
- sucesso: boolean;
739
- versao: string;
740
- }
741
- export interface StatusDaSincronizacao {
742
- cancelada: boolean;
743
- erro?: string | null;
744
- iniciada_em?: string | null;
745
- paginas: number;
746
- resultado: ResultadoDaSincronizacao;
747
- rodando: boolean;
748
- terminada_em?: string | null;
749
- }
750
- export interface ValorProtegido {
751
- configurado: boolean;
752
- final_visivel?: string | null;
753
- }
754
- export interface VersaoDoBackend {
755
- sucesso: boolean;
756
- versao: string;
757
- }