termo_core 0.1.78 → 0.1.80

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.
@@ -18,74 +18,6 @@ export interface AplicativoAutoComplete {
18
18
  id: string;
19
19
  nome: string;
20
20
  }
21
- export interface Erro {
22
- aplicativo_id: string;
23
- arquivo?: string | null;
24
- assinatura: string;
25
- conta_id: string;
26
- id: string;
27
- linha?: number | null;
28
- mensagem: string;
29
- navegadores: Array<string>;
30
- ocorrencias: number;
31
- paginas: Array<string>;
32
- pilha?: string | null;
33
- primeira_ocorrencia_em: string;
34
- status: string;
35
- tipo: string;
36
- ultima_ocorrencia_em: string;
37
- usuarios: Array<string>;
38
- usuarios_afetados: number;
39
- }
40
- export interface ErroAtualizar {
41
- status?: string | null;
42
- }
43
- export interface ErroAutoComplete {
44
- id: string;
45
- rotulo: string;
46
- }
47
- export interface ErroCriar {
48
- aplicativo_id: string;
49
- arquivo?: string | null;
50
- linha?: number | null;
51
- mensagem: string;
52
- pilha?: string | null;
53
- tipo: string;
54
- }
55
- export interface Evento {
56
- aplicativo_id: string;
57
- arquivo?: string | null;
58
- coluna?: number | null;
59
- conta_id: string;
60
- criado_em: string;
61
- duracao_ms?: number | null;
62
- id: string;
63
- linha?: number | null;
64
- mensagem?: string | null;
65
- metodo?: string | null;
66
- metrica?: string | null;
67
- navegador: string;
68
- nivel?: string | null;
69
- nome: string;
70
- ocorrido_em: string;
71
- payload?: unknown;
72
- pilha?: string | null;
73
- seletor?: string | null;
74
- sessao_id: string;
75
- status?: number | null;
76
- texto?: string | null;
77
- tipo: string;
78
- url?: string | null;
79
- valor?: number | null;
80
- }
81
- export interface EventoAtualizar {
82
- nome?: string | null;
83
- payload?: unknown;
84
- }
85
- export interface EventoAutoComplete {
86
- id: string;
87
- rotulo: string;
88
- }
89
21
  export interface Log {
90
22
  agente?: string | null;
91
23
  ambiente?: string | null;
@@ -108,6 +40,16 @@ export interface Log {
108
40
  usuario_id?: string | null;
109
41
  versao?: string | null;
110
42
  }
43
+ export interface LogCelulaDoMapa {
44
+ dia_da_semana: number;
45
+ hora: number;
46
+ quantidade: number;
47
+ }
48
+ export interface LogContagem {
49
+ erros: number;
50
+ quantidade: number;
51
+ valor?: string | null;
52
+ }
111
53
  export interface LogCriado {
112
54
  gravados: number;
113
55
  recusados: number;
@@ -117,6 +59,22 @@ export interface LogCriar {
117
59
  logs: Array<LogEnviado>;
118
60
  versao?: string | null;
119
61
  }
62
+ export interface LogDashboard {
63
+ duracao_maxima_ms: number;
64
+ faixas_de_duracao: Array<LogFaixaDeDuracao>;
65
+ intervalo_da_serie_minutos: number;
66
+ mapa_de_calor: Array<LogCelulaDoMapa>;
67
+ por_ambiente: Array<LogContagem>;
68
+ por_aplicativo: Array<LogPorAplicativo>;
69
+ por_metodo: Array<LogContagem>;
70
+ por_status: Array<LogPorStatus>;
71
+ rotas_distintas: number;
72
+ rotas_mais_chamadas: Array<LogRota>;
73
+ rotas_mais_lentas: Array<LogRota>;
74
+ serie_por_tipo: Array<LogPontoPorTipo>;
75
+ usuarios: Array<LogContagem>;
76
+ usuarios_distintos: number;
77
+ }
120
78
  export interface LogEnviado {
121
79
  agente?: string | null;
122
80
  caminho: string;
@@ -132,6 +90,11 @@ export interface LogEnviado {
132
90
  usuario_email?: string | null;
133
91
  usuario_id?: string | null;
134
92
  }
93
+ export interface LogFaixaDeDuracao {
94
+ a_partir_de_ms: number;
95
+ ate_ms?: number | null;
96
+ quantidade: number;
97
+ }
135
98
  export interface LogGrupo {
136
99
  aplicativo_id: string;
137
100
  duracao_media_ms: number;
@@ -149,6 +112,26 @@ export interface LogPontoDaSerie {
149
112
  inicio: string;
150
113
  quantidade: number;
151
114
  }
115
+ export interface LogPontoPorTipo {
116
+ duracao_maxima_ms: number;
117
+ duracao_media_ms: number;
118
+ erros_do_cliente: number;
119
+ erros_do_servidor: number;
120
+ inicio: string;
121
+ sucessos: number;
122
+ }
123
+ export interface LogPorAplicativo {
124
+ aplicativo_id: string;
125
+ duracao_media_ms: number;
126
+ erros_do_cliente: number;
127
+ erros_do_servidor: number;
128
+ quantidade: number;
129
+ }
130
+ export interface LogPorStatus {
131
+ quantidade: number;
132
+ status: number;
133
+ tipo: string;
134
+ }
152
135
  export interface LogResumo {
153
136
  duracao_media_ms: number;
154
137
  erros_do_cliente: number;
@@ -159,6 +142,15 @@ export interface LogResumo {
159
142
  sucessos: number;
160
143
  total: number;
161
144
  }
145
+ export interface LogRota {
146
+ aplicativo_id: string;
147
+ duracao_maxima_ms: number;
148
+ duracao_media_ms: number;
149
+ erros: number;
150
+ metodo: string;
151
+ quantidade: number;
152
+ rota: string;
153
+ }
162
154
  export interface PaginaAplicativoItensItem {
163
155
  atualizado_em: string;
164
156
  chave: string;
@@ -191,83 +183,6 @@ export interface PaginaAplicativoAutoComplete {
191
183
  tamanho: number;
192
184
  total: number;
193
185
  }
194
- export interface PaginaErroItensItem {
195
- aplicativo_id: string;
196
- arquivo?: string | null;
197
- assinatura: string;
198
- conta_id: string;
199
- id: string;
200
- linha?: number | null;
201
- mensagem: string;
202
- navegadores: Array<string>;
203
- ocorrencias: number;
204
- paginas: Array<string>;
205
- pilha?: string | null;
206
- primeira_ocorrencia_em: string;
207
- status: string;
208
- tipo: string;
209
- ultima_ocorrencia_em: string;
210
- usuarios: Array<string>;
211
- usuarios_afetados: number;
212
- }
213
- export interface PaginaErro {
214
- itens: Array<PaginaErroItensItem>;
215
- pagina: number;
216
- tamanho: number;
217
- total: number;
218
- }
219
- export interface PaginaErroAutoCompleteItensItem {
220
- id: string;
221
- rotulo: string;
222
- }
223
- export interface PaginaErroAutoComplete {
224
- itens: Array<PaginaErroAutoCompleteItensItem>;
225
- pagina: number;
226
- tamanho: number;
227
- total: number;
228
- }
229
- export interface PaginaEventoItensItem {
230
- aplicativo_id: string;
231
- arquivo?: string | null;
232
- coluna?: number | null;
233
- conta_id: string;
234
- criado_em: string;
235
- duracao_ms?: number | null;
236
- id: string;
237
- linha?: number | null;
238
- mensagem?: string | null;
239
- metodo?: string | null;
240
- metrica?: string | null;
241
- navegador: string;
242
- nivel?: string | null;
243
- nome: string;
244
- ocorrido_em: string;
245
- payload?: unknown;
246
- pilha?: string | null;
247
- seletor?: string | null;
248
- sessao_id: string;
249
- status?: number | null;
250
- texto?: string | null;
251
- tipo: string;
252
- url?: string | null;
253
- valor?: number | null;
254
- }
255
- export interface PaginaEvento {
256
- itens: Array<PaginaEventoItensItem>;
257
- pagina: number;
258
- tamanho: number;
259
- total: number;
260
- }
261
- export interface PaginaEventoAutoCompleteItensItem {
262
- id: string;
263
- rotulo: string;
264
- }
265
- export interface PaginaEventoAutoComplete {
266
- itens: Array<PaginaEventoAutoCompleteItensItem>;
267
- pagina: number;
268
- tamanho: number;
269
- total: number;
270
- }
271
186
  export interface PaginaLogItensItem {
272
187
  agente?: string | null;
273
188
  ambiente?: string | null;
@@ -296,135 +211,6 @@ export interface PaginaLog {
296
211
  tamanho: number;
297
212
  total: number;
298
213
  }
299
- export interface PaginaSessaoItensItem {
300
- anonimo_id: string;
301
- aplicativo_id: string;
302
- conta_id: string;
303
- dispositivo: string;
304
- id: string;
305
- iniciada_em: string;
306
- navegador: string;
307
- pagina_inicial: string;
308
- pais: string;
309
- quantidade_erros: number;
310
- quantidade_eventos: number;
311
- resolucao: string;
312
- sessao_externa: string;
313
- sistema_operacional: string;
314
- tempo_carregamento_ms?: number | null;
315
- ultima_atividade_em: string;
316
- usuario_id?: string | null;
317
- }
318
- export interface PaginaSessao {
319
- itens: Array<PaginaSessaoItensItem>;
320
- pagina: number;
321
- tamanho: number;
322
- total: number;
323
- }
324
- export interface PaginaSessaoAutoCompleteItensItem {
325
- id: string;
326
- rotulo: string;
327
- }
328
- export interface PaginaSessaoAutoComplete {
329
- itens: Array<PaginaSessaoAutoCompleteItensItem>;
330
- pagina: number;
331
- tamanho: number;
332
- total: number;
333
- }
334
- export interface PaginaUsoItensItem {
335
- aplicativo_id: string;
336
- aplicativo_nome: string;
337
- atualizado_em: string;
338
- ciclo: string;
339
- conta_id: string;
340
- criado_em: string;
341
- dia: string;
342
- eventos_aceitos: number;
343
- eventos_recusados: number;
344
- id: string;
345
- }
346
- export interface PaginaUso {
347
- itens: Array<PaginaUsoItensItem>;
348
- pagina: number;
349
- tamanho: number;
350
- total: number;
351
- }
352
- export interface PaginaUsoAutoCompleteItensItem {
353
- id: string;
354
- rotulo: string;
355
- }
356
- export interface PaginaUsoAutoComplete {
357
- itens: Array<PaginaUsoAutoCompleteItensItem>;
358
- pagina: number;
359
- tamanho: number;
360
- total: number;
361
- }
362
214
  export interface RespostaDeErro {
363
215
  erro: string;
364
216
  }
365
- export interface Sessao {
366
- anonimo_id: string;
367
- aplicativo_id: string;
368
- conta_id: string;
369
- dispositivo: string;
370
- id: string;
371
- iniciada_em: string;
372
- navegador: string;
373
- pagina_inicial: string;
374
- pais: string;
375
- quantidade_erros: number;
376
- quantidade_eventos: number;
377
- resolucao: string;
378
- sessao_externa: string;
379
- sistema_operacional: string;
380
- tempo_carregamento_ms?: number | null;
381
- ultima_atividade_em: string;
382
- usuario_id?: string | null;
383
- }
384
- export interface SessaoAtualizar {
385
- pais?: string | null;
386
- tempo_carregamento_ms?: number | null;
387
- usuario_id?: string | null;
388
- }
389
- export interface SessaoAutoComplete {
390
- id: string;
391
- rotulo: string;
392
- }
393
- export interface SessaoCriar {
394
- anonimo_id: string;
395
- aplicativo_id: string;
396
- dispositivo?: string;
397
- navegador?: string;
398
- pagina_inicial?: string;
399
- pais?: string;
400
- resolucao?: string;
401
- sessao_externa: string;
402
- sistema_operacional?: string;
403
- usuario_id?: string | null;
404
- }
405
- export interface Uso {
406
- aplicativo_id: string;
407
- aplicativo_nome: string;
408
- atualizado_em: string;
409
- ciclo: string;
410
- conta_id: string;
411
- criado_em: string;
412
- dia: string;
413
- eventos_aceitos: number;
414
- eventos_recusados: number;
415
- id: string;
416
- }
417
- export interface UsoAtualizar {
418
- eventos_aceitos?: number | null;
419
- eventos_recusados?: number | null;
420
- }
421
- export interface UsoAutoComplete {
422
- id: string;
423
- rotulo: string;
424
- }
425
- export interface UsoCriar {
426
- aplicativo_id: string;
427
- dia: string;
428
- eventos_aceitos?: number;
429
- eventos_recusados?: number;
430
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termo_core",
3
- "version": "0.1.78",
3
+ "version": "0.1.80",
4
4
  "description": "Todos os clientes da Termotubos num pacote só: um módulo por serviço e cada rota da API como uma função com fetch, com o endereço resolvido pelo ambiente atual.",
5
5
  "license": "MIT",
6
6
  "author": "TI Termotubos <ti@termotubos.com.br>",