termo_core 0.1.7 → 0.1.9
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/miro/rotas.d.ts +71 -1
- package/dist/miro/rotas.js +99 -1
- package/dist/miro/tipos.d.ts +260 -0
- package/dist/support/rotas.d.ts +773 -49
- package/dist/support/rotas.js +971 -50
- package/dist/support/tipos.d.ts +745 -48
- package/package.json +1 -1
package/dist/support/tipos.d.ts
CHANGED
|
@@ -1,103 +1,800 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* tempo real (`/board/ws/{id}`).
|
|
2
|
+
* Arquivo (guardado no TermoBucket) ou link anexado a uma tarefa ou ticket. A lista não traz o arquivo:
|
|
3
|
+
* ele vem só no `buscarPeloId`, pela URL de download assinada.
|
|
5
4
|
*/
|
|
6
|
-
export interface
|
|
5
|
+
export interface Anexo {
|
|
7
6
|
atualizado_em: string;
|
|
8
|
-
|
|
7
|
+
autor?: ColaboradorResumo | null;
|
|
9
8
|
criado_em: string;
|
|
10
|
-
descricao?: string | null;
|
|
11
|
-
dono: ColaboradorResumo;
|
|
12
|
-
favorito: boolean;
|
|
13
9
|
id: string;
|
|
14
|
-
membros: Array<ColaboradorResumo>;
|
|
15
|
-
miniatura?: string | null;
|
|
16
10
|
nome: string;
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
tamanho: number;
|
|
12
|
+
tarefa_id?: string | null;
|
|
13
|
+
ticket_id?: string | null;
|
|
14
|
+
tipo_mime: string;
|
|
15
|
+
url?: string | null;
|
|
19
16
|
}
|
|
20
|
-
export interface
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
export interface AnexoAtualizar {
|
|
18
|
+
nome: string;
|
|
19
|
+
}
|
|
20
|
+
export interface AnexoComConteudoParte2 {
|
|
21
|
+
/**
|
|
22
|
+
* O arquivo em base64, só enquanto ele ainda não foi levado ao TermoBucket.
|
|
23
|
+
*/
|
|
24
|
+
conteudo_base64?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* URL de download do arquivo no TermoBucket, assinada por 15 minutos (vazia quando o anexo é um link).
|
|
27
|
+
*/
|
|
28
|
+
url_download?: string | null;
|
|
29
|
+
}
|
|
30
|
+
export type AnexoComConteudo = Anexo & AnexoComConteudoParte2;
|
|
31
|
+
export interface AnexoCriar {
|
|
32
|
+
/**
|
|
33
|
+
* O arquivo em base64, com ou sem o prefixo `data:...;base64,`. Mande este ou `url`.
|
|
34
|
+
*/
|
|
35
|
+
arquivo_base64?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Com `true`, o servidor baixa a imagem de `url` (só `https`, `image/*`, até 10 MB) e guarda o
|
|
38
|
+
* arquivo, como se ele tivesse vindo em `arquivo_base64`; o link não fica no anexo.
|
|
39
|
+
*/
|
|
40
|
+
importar_url?: boolean | null;
|
|
41
|
+
nome: string;
|
|
42
|
+
tarefa_id?: string | null;
|
|
43
|
+
ticket_id?: string | null;
|
|
44
|
+
tipo_mime?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Link externo (documento, print no drive). Mande este ou `arquivo_base64`.
|
|
47
|
+
*/
|
|
48
|
+
url?: string | null;
|
|
28
49
|
}
|
|
29
|
-
export interface
|
|
50
|
+
export interface Aplicativo {
|
|
51
|
+
ativo: boolean;
|
|
52
|
+
atualizado_em: string;
|
|
53
|
+
chave_publica: string;
|
|
30
54
|
cor: string;
|
|
55
|
+
criado_em: string;
|
|
56
|
+
descricao?: string | null;
|
|
57
|
+
endereco: string;
|
|
31
58
|
id: string;
|
|
59
|
+
logo?: string | null;
|
|
32
60
|
nome: string;
|
|
61
|
+
saudacao: string;
|
|
62
|
+
/**
|
|
63
|
+
* Id (slug) do app no TermoAuth, de onde vem a lista. Vazio só nas linhas antigas ainda não ligadas.
|
|
64
|
+
*/
|
|
65
|
+
termoauth_id?: string | null;
|
|
33
66
|
}
|
|
34
|
-
export interface
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
67
|
+
export interface AplicativoAutoComplete {
|
|
68
|
+
endereco: string;
|
|
69
|
+
id: string;
|
|
70
|
+
nome: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* O aplicativo como aparece dentro dos projetos e tickets.
|
|
74
|
+
*/
|
|
75
|
+
export interface AplicativoResumo {
|
|
76
|
+
cor: string;
|
|
77
|
+
id: string;
|
|
38
78
|
nome: string;
|
|
39
|
-
visibilidade?: string | null;
|
|
40
79
|
}
|
|
41
80
|
/**
|
|
42
|
-
*
|
|
81
|
+
* Quem aparece como dono, membro, responsável, solicitante ou autor nos projetos, tarefas e tickets.
|
|
43
82
|
*/
|
|
44
83
|
export interface ColaboradorResumo {
|
|
45
84
|
id: string;
|
|
46
85
|
nome: string;
|
|
47
86
|
}
|
|
48
|
-
export interface
|
|
87
|
+
export interface Comentario {
|
|
88
|
+
atualizado_em: string;
|
|
89
|
+
autor?: ColaboradorResumo | null;
|
|
90
|
+
autor_nome: string;
|
|
91
|
+
criado_em: string;
|
|
92
|
+
editado: boolean;
|
|
93
|
+
id: string;
|
|
49
94
|
/**
|
|
50
|
-
*
|
|
95
|
+
* Nota interna do ticket: só a equipe vê.
|
|
51
96
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
97
|
+
interno: boolean;
|
|
98
|
+
tarefa_id?: string | null;
|
|
99
|
+
texto: string;
|
|
100
|
+
ticket_id?: string | null;
|
|
101
|
+
}
|
|
102
|
+
export interface ComentarioAtualizar {
|
|
103
|
+
texto: string;
|
|
104
|
+
}
|
|
105
|
+
export interface ComentarioCriar {
|
|
106
|
+
interno?: boolean;
|
|
54
107
|
/**
|
|
55
|
-
*
|
|
108
|
+
* Colaboradores marcados com @ no texto: recebem uma notificação.
|
|
56
109
|
*/
|
|
110
|
+
mencionados?: Array<string>;
|
|
111
|
+
tarefa_id?: string | null;
|
|
112
|
+
texto: string;
|
|
113
|
+
ticket_id?: string | null;
|
|
114
|
+
}
|
|
115
|
+
export interface Documento {
|
|
116
|
+
aplicativo_id: string;
|
|
117
|
+
atualizado_em: string;
|
|
118
|
+
caracteres: number;
|
|
119
|
+
conteudo: string;
|
|
120
|
+
criado_em: string;
|
|
121
|
+
id: string;
|
|
122
|
+
nome: string;
|
|
123
|
+
tipo: string;
|
|
124
|
+
}
|
|
125
|
+
export interface DocumentoAtualizar {
|
|
126
|
+
arquivo_base64?: string | null;
|
|
127
|
+
conteudo?: string | null;
|
|
128
|
+
nome?: string | null;
|
|
57
129
|
tipo?: string | null;
|
|
58
130
|
}
|
|
59
|
-
export interface
|
|
131
|
+
export interface DocumentoAutoComplete {
|
|
132
|
+
id: string;
|
|
133
|
+
nome: string;
|
|
134
|
+
tipo: string;
|
|
135
|
+
}
|
|
136
|
+
export interface DocumentoCriar {
|
|
137
|
+
aplicativo_id: string;
|
|
138
|
+
arquivo_base64?: string | null;
|
|
139
|
+
conteudo?: string;
|
|
140
|
+
nome: string;
|
|
141
|
+
tipo?: string;
|
|
142
|
+
}
|
|
143
|
+
export interface Etiqueta {
|
|
144
|
+
atualizado_em: string;
|
|
145
|
+
cor: string;
|
|
146
|
+
criado_em: string;
|
|
147
|
+
id: string;
|
|
148
|
+
nome: string;
|
|
149
|
+
}
|
|
150
|
+
export interface EtiquetaAtualizar {
|
|
151
|
+
cor?: string | null;
|
|
152
|
+
nome?: string | null;
|
|
153
|
+
}
|
|
154
|
+
export interface EtiquetaCriar {
|
|
155
|
+
cor?: string | null;
|
|
156
|
+
nome: string;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* A etiqueta como aparece dentro da tarefa.
|
|
160
|
+
*/
|
|
161
|
+
export interface EtiquetaResumo {
|
|
162
|
+
cor: string;
|
|
163
|
+
id: string;
|
|
164
|
+
nome: string;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Uma linha da atividade de uma tarefa ou ticket, gravada pelo próprio sistema a cada mudança.
|
|
168
|
+
*/
|
|
169
|
+
export interface Historico {
|
|
170
|
+
autor?: ColaboradorResumo | null;
|
|
171
|
+
criado_em: string;
|
|
172
|
+
descricao: string;
|
|
173
|
+
id: string;
|
|
174
|
+
tarefa_id?: string | null;
|
|
175
|
+
ticket_id?: string | null;
|
|
176
|
+
}
|
|
177
|
+
export interface Notificacao {
|
|
178
|
+
criado_em: string;
|
|
179
|
+
descricao?: string | null;
|
|
180
|
+
id: string;
|
|
181
|
+
lida: boolean;
|
|
182
|
+
link: string;
|
|
183
|
+
tarefa_id?: string | null;
|
|
184
|
+
ticket_id?: string | null;
|
|
185
|
+
tipo: string;
|
|
186
|
+
titulo: string;
|
|
187
|
+
}
|
|
188
|
+
export interface NotificacaoAtualizar {
|
|
189
|
+
lida: boolean;
|
|
190
|
+
}
|
|
191
|
+
export interface NotificacaoMarcarTodas {
|
|
192
|
+
lida?: boolean;
|
|
193
|
+
}
|
|
194
|
+
export interface NotificacoesMarcadas {
|
|
195
|
+
alteradas: number;
|
|
196
|
+
}
|
|
197
|
+
export interface PaginaAplicativoItensItem {
|
|
198
|
+
ativo: boolean;
|
|
199
|
+
atualizado_em: string;
|
|
200
|
+
chave_publica: string;
|
|
201
|
+
cor: string;
|
|
202
|
+
criado_em: string;
|
|
203
|
+
descricao?: string | null;
|
|
204
|
+
endereco: string;
|
|
205
|
+
id: string;
|
|
206
|
+
logo?: string | null;
|
|
207
|
+
nome: string;
|
|
208
|
+
saudacao: string;
|
|
209
|
+
/**
|
|
210
|
+
* Id (slug) do app no TermoAuth, de onde vem a lista. Vazio só nas linhas antigas ainda não ligadas.
|
|
211
|
+
*/
|
|
212
|
+
termoauth_id?: string | null;
|
|
213
|
+
}
|
|
214
|
+
export interface PaginaAplicativo {
|
|
215
|
+
itens: Array<PaginaAplicativoItensItem>;
|
|
216
|
+
pagina: number;
|
|
217
|
+
tamanho: number;
|
|
218
|
+
total: number;
|
|
219
|
+
}
|
|
220
|
+
export interface PaginaAplicativoAutoCompleteItensItem {
|
|
221
|
+
endereco: string;
|
|
222
|
+
id: string;
|
|
223
|
+
nome: string;
|
|
224
|
+
}
|
|
225
|
+
export interface PaginaAplicativoAutoComplete {
|
|
226
|
+
itens: Array<PaginaAplicativoAutoCompleteItensItem>;
|
|
227
|
+
pagina: number;
|
|
228
|
+
tamanho: number;
|
|
229
|
+
total: number;
|
|
230
|
+
}
|
|
231
|
+
export interface PaginaComentarioItensItem {
|
|
232
|
+
atualizado_em: string;
|
|
233
|
+
autor?: ColaboradorResumo | null;
|
|
234
|
+
autor_nome: string;
|
|
235
|
+
criado_em: string;
|
|
236
|
+
editado: boolean;
|
|
237
|
+
id: string;
|
|
60
238
|
/**
|
|
61
|
-
*
|
|
239
|
+
* Nota interna do ticket: só a equipe vê.
|
|
62
240
|
*/
|
|
63
|
-
|
|
241
|
+
interno: boolean;
|
|
242
|
+
tarefa_id?: string | null;
|
|
243
|
+
texto: string;
|
|
244
|
+
ticket_id?: string | null;
|
|
245
|
+
}
|
|
246
|
+
export interface PaginaComentario {
|
|
247
|
+
itens: Array<PaginaComentarioItensItem>;
|
|
248
|
+
pagina: number;
|
|
249
|
+
tamanho: number;
|
|
250
|
+
total: number;
|
|
251
|
+
}
|
|
252
|
+
export interface PaginaDocumentoItensItem {
|
|
253
|
+
aplicativo_id: string;
|
|
254
|
+
atualizado_em: string;
|
|
255
|
+
caracteres: number;
|
|
256
|
+
conteudo: string;
|
|
257
|
+
criado_em: string;
|
|
258
|
+
id: string;
|
|
259
|
+
nome: string;
|
|
260
|
+
tipo: string;
|
|
261
|
+
}
|
|
262
|
+
export interface PaginaDocumento {
|
|
263
|
+
itens: Array<PaginaDocumentoItensItem>;
|
|
264
|
+
pagina: number;
|
|
265
|
+
tamanho: number;
|
|
266
|
+
total: number;
|
|
267
|
+
}
|
|
268
|
+
export interface PaginaDocumentoAutoCompleteItensItem {
|
|
269
|
+
id: string;
|
|
270
|
+
nome: string;
|
|
271
|
+
tipo: string;
|
|
272
|
+
}
|
|
273
|
+
export interface PaginaDocumentoAutoComplete {
|
|
274
|
+
itens: Array<PaginaDocumentoAutoCompleteItensItem>;
|
|
275
|
+
pagina: number;
|
|
276
|
+
tamanho: number;
|
|
277
|
+
total: number;
|
|
278
|
+
}
|
|
279
|
+
export interface PaginaEtiquetaItensItem {
|
|
280
|
+
atualizado_em: string;
|
|
281
|
+
cor: string;
|
|
282
|
+
criado_em: string;
|
|
283
|
+
id: string;
|
|
284
|
+
nome: string;
|
|
285
|
+
}
|
|
286
|
+
export interface PaginaEtiqueta {
|
|
287
|
+
itens: Array<PaginaEtiquetaItensItem>;
|
|
288
|
+
pagina: number;
|
|
289
|
+
tamanho: number;
|
|
290
|
+
total: number;
|
|
64
291
|
}
|
|
65
292
|
/**
|
|
66
|
-
*
|
|
67
|
-
* olhando (`favorito` e `pode_gerenciar`). O conteúdo do canvas não vem aqui: ele chega pelo
|
|
68
|
-
* tempo real (`/board/ws/{id}`).
|
|
293
|
+
* A etiqueta como aparece dentro da tarefa.
|
|
69
294
|
*/
|
|
70
|
-
export interface
|
|
295
|
+
export interface PaginaEtiquetaResumoItensItem {
|
|
296
|
+
cor: string;
|
|
297
|
+
id: string;
|
|
298
|
+
nome: string;
|
|
299
|
+
}
|
|
300
|
+
export interface PaginaEtiquetaResumo {
|
|
301
|
+
itens: Array<PaginaEtiquetaResumoItensItem>;
|
|
302
|
+
pagina: number;
|
|
303
|
+
tamanho: number;
|
|
304
|
+
total: number;
|
|
305
|
+
}
|
|
306
|
+
export interface PaginaNotificacaoItensItem {
|
|
307
|
+
criado_em: string;
|
|
308
|
+
descricao?: string | null;
|
|
309
|
+
id: string;
|
|
310
|
+
lida: boolean;
|
|
311
|
+
link: string;
|
|
312
|
+
tarefa_id?: string | null;
|
|
313
|
+
ticket_id?: string | null;
|
|
314
|
+
tipo: string;
|
|
315
|
+
titulo: string;
|
|
316
|
+
}
|
|
317
|
+
export interface PaginaNotificacao {
|
|
318
|
+
itens: Array<PaginaNotificacaoItensItem>;
|
|
319
|
+
/**
|
|
320
|
+
* Quantas notificações da pessoa ainda não foram lidas (o número do sino).
|
|
321
|
+
*/
|
|
322
|
+
nao_lidas: number;
|
|
323
|
+
pagina: number;
|
|
324
|
+
tamanho: number;
|
|
325
|
+
total: number;
|
|
326
|
+
}
|
|
327
|
+
export interface PaginaProjetoItensItem {
|
|
328
|
+
aplicativos: Array<AplicativoResumo>;
|
|
329
|
+
arquivado: boolean;
|
|
71
330
|
atualizado_em: string;
|
|
72
331
|
cor: string;
|
|
73
332
|
criado_em: string;
|
|
74
333
|
descricao?: string | null;
|
|
75
|
-
dono
|
|
76
|
-
favorito: boolean;
|
|
334
|
+
dono?: ColaboradorResumo | null;
|
|
77
335
|
id: string;
|
|
336
|
+
inicio?: string | null;
|
|
78
337
|
membros: Array<ColaboradorResumo>;
|
|
79
|
-
miniatura?: string | null;
|
|
80
338
|
nome: string;
|
|
81
|
-
|
|
339
|
+
prazo?: string | null;
|
|
340
|
+
status: string;
|
|
341
|
+
/**
|
|
342
|
+
* Tarefas principais abertas com o prazo já vencido.
|
|
343
|
+
*/
|
|
344
|
+
tarefas_atrasadas: number;
|
|
345
|
+
tarefas_concluidas: number;
|
|
346
|
+
/**
|
|
347
|
+
* Tarefas principais (sem contar subtarefas).
|
|
348
|
+
*/
|
|
349
|
+
total_tarefas: number;
|
|
350
|
+
/**
|
|
351
|
+
* `ORGANIZACAO` (todos com a área `projetos` veem) ou `MEMBROS` (só o dono e os membros).
|
|
352
|
+
*/
|
|
82
353
|
visibilidade: string;
|
|
83
354
|
}
|
|
84
|
-
export interface
|
|
85
|
-
itens: Array<
|
|
355
|
+
export interface PaginaProjeto {
|
|
356
|
+
itens: Array<PaginaProjetoItensItem>;
|
|
86
357
|
pagina: number;
|
|
87
358
|
tamanho: number;
|
|
88
359
|
total: number;
|
|
89
360
|
}
|
|
90
|
-
export interface
|
|
361
|
+
export interface PaginaProjetoAutoCompleteItensItem {
|
|
91
362
|
cor: string;
|
|
92
363
|
id: string;
|
|
93
364
|
nome: string;
|
|
94
365
|
}
|
|
95
|
-
export interface
|
|
96
|
-
itens: Array<
|
|
366
|
+
export interface PaginaProjetoAutoComplete {
|
|
367
|
+
itens: Array<PaginaProjetoAutoCompleteItensItem>;
|
|
368
|
+
pagina: number;
|
|
369
|
+
tamanho: number;
|
|
370
|
+
total: number;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Uma coluna do quadro do projeto. A `ordem` é decimal para encaixar uma coluna entre duas sem
|
|
374
|
+
* renumerar as outras.
|
|
375
|
+
*/
|
|
376
|
+
export interface PaginaSecaoItensItem {
|
|
377
|
+
atualizado_em: string;
|
|
378
|
+
/**
|
|
379
|
+
* A coluna que conclui as tarefas (uma por projeto): entrar nela conclui, sair reabre.
|
|
380
|
+
*/
|
|
381
|
+
conclui_tarefa: boolean;
|
|
382
|
+
criado_em: string;
|
|
383
|
+
id: string;
|
|
384
|
+
nome: string;
|
|
385
|
+
ordem: number;
|
|
386
|
+
projeto_id: string;
|
|
387
|
+
}
|
|
388
|
+
export interface PaginaSecao {
|
|
389
|
+
itens: Array<PaginaSecaoItensItem>;
|
|
390
|
+
pagina: number;
|
|
391
|
+
tamanho: number;
|
|
392
|
+
total: number;
|
|
393
|
+
}
|
|
394
|
+
export interface PaginaSecaoAutoCompleteItensItem {
|
|
395
|
+
id: string;
|
|
396
|
+
nome: string;
|
|
397
|
+
}
|
|
398
|
+
export interface PaginaSecaoAutoComplete {
|
|
399
|
+
itens: Array<PaginaSecaoAutoCompleteItensItem>;
|
|
400
|
+
pagina: number;
|
|
401
|
+
tamanho: number;
|
|
402
|
+
total: number;
|
|
403
|
+
}
|
|
404
|
+
export interface PaginaTarefaItensItem {
|
|
405
|
+
anexos_total: number;
|
|
406
|
+
atualizado_em: string;
|
|
407
|
+
comentarios_total: number;
|
|
408
|
+
concluida: boolean;
|
|
409
|
+
concluida_em?: string | null;
|
|
410
|
+
criado_em: string;
|
|
411
|
+
criador?: ColaboradorResumo | null;
|
|
412
|
+
descricao?: string | null;
|
|
413
|
+
/**
|
|
414
|
+
* Esforço em pontos (o número do cartão).
|
|
415
|
+
*/
|
|
416
|
+
estimativa?: number | null;
|
|
417
|
+
etiquetas: Array<EtiquetaResumo>;
|
|
418
|
+
id: string;
|
|
419
|
+
inicio?: string | null;
|
|
420
|
+
marco: boolean;
|
|
421
|
+
ordem: number;
|
|
422
|
+
prazo?: string | null;
|
|
423
|
+
prioridade?: string | null;
|
|
424
|
+
projeto_cor: string;
|
|
425
|
+
projeto_id: string;
|
|
426
|
+
projeto_nome: string;
|
|
427
|
+
responsavel?: ColaboradorResumo | null;
|
|
428
|
+
/**
|
|
429
|
+
* Coluna do quadro. Subtarefa não tem coluna.
|
|
430
|
+
*/
|
|
431
|
+
secao_id?: string | null;
|
|
432
|
+
secao_nome?: string | null;
|
|
433
|
+
subtarefas_concluidas: number;
|
|
434
|
+
subtarefas_total: number;
|
|
435
|
+
tarefa_pai_id?: string | null;
|
|
436
|
+
tarefa_pai_titulo?: string | null;
|
|
437
|
+
/**
|
|
438
|
+
* Ticket de suporte que deu origem à tarefa.
|
|
439
|
+
*/
|
|
440
|
+
ticket_id?: string | null;
|
|
441
|
+
ticket_numero?: number | null;
|
|
442
|
+
titulo: string;
|
|
443
|
+
}
|
|
444
|
+
export interface PaginaTarefa {
|
|
445
|
+
itens: Array<PaginaTarefaItensItem>;
|
|
446
|
+
pagina: number;
|
|
447
|
+
tamanho: number;
|
|
448
|
+
total: number;
|
|
449
|
+
}
|
|
450
|
+
export interface PaginaTarefaAutoCompleteItensItem {
|
|
451
|
+
id: string;
|
|
452
|
+
projeto_nome: string;
|
|
453
|
+
titulo: string;
|
|
454
|
+
}
|
|
455
|
+
export interface PaginaTarefaAutoComplete {
|
|
456
|
+
itens: Array<PaginaTarefaAutoCompleteItensItem>;
|
|
457
|
+
pagina: number;
|
|
458
|
+
tamanho: number;
|
|
459
|
+
total: number;
|
|
460
|
+
}
|
|
461
|
+
export interface PaginaTicketItensItem {
|
|
462
|
+
anexos_total: number;
|
|
463
|
+
aplicativo: AplicativoResumo;
|
|
464
|
+
/**
|
|
465
|
+
* `true` quando o prazo passou antes de o ticket ser resolvido.
|
|
466
|
+
*/
|
|
467
|
+
atrasado: boolean;
|
|
468
|
+
atualizado_em: string;
|
|
469
|
+
canal: string;
|
|
470
|
+
comentarios_total: number;
|
|
471
|
+
criado_em: string;
|
|
472
|
+
descricao: string;
|
|
473
|
+
fechado_em?: string | null;
|
|
474
|
+
id: string;
|
|
475
|
+
/**
|
|
476
|
+
* Número sequencial mostrado como #1024.
|
|
477
|
+
*/
|
|
478
|
+
numero: number;
|
|
479
|
+
origem_url?: string | null;
|
|
480
|
+
/**
|
|
481
|
+
* Prazo de atendimento (SLA).
|
|
482
|
+
*/
|
|
483
|
+
prazo?: string | null;
|
|
484
|
+
primeira_resposta_em?: string | null;
|
|
485
|
+
prioridade: string;
|
|
486
|
+
resolvido_em?: string | null;
|
|
487
|
+
responsavel?: ColaboradorResumo | null;
|
|
488
|
+
solicitante?: ColaboradorResumo | null;
|
|
489
|
+
solicitante_email?: string | null;
|
|
490
|
+
solicitante_nome: string;
|
|
491
|
+
status: string;
|
|
492
|
+
tarefas: Array<TicketTarefa>;
|
|
493
|
+
tipo: string;
|
|
494
|
+
titulo: string;
|
|
495
|
+
}
|
|
496
|
+
export interface PaginaTicket {
|
|
497
|
+
itens: Array<PaginaTicketItensItem>;
|
|
97
498
|
pagina: number;
|
|
98
499
|
tamanho: number;
|
|
99
500
|
total: number;
|
|
100
501
|
}
|
|
502
|
+
export interface PaginaTicketAutoCompleteItensItem {
|
|
503
|
+
id: string;
|
|
504
|
+
numero: number;
|
|
505
|
+
titulo: string;
|
|
506
|
+
}
|
|
507
|
+
export interface PaginaTicketAutoComplete {
|
|
508
|
+
itens: Array<PaginaTicketAutoCompleteItensItem>;
|
|
509
|
+
pagina: number;
|
|
510
|
+
tamanho: number;
|
|
511
|
+
total: number;
|
|
512
|
+
}
|
|
513
|
+
export interface Projeto {
|
|
514
|
+
aplicativos: Array<AplicativoResumo>;
|
|
515
|
+
arquivado: boolean;
|
|
516
|
+
atualizado_em: string;
|
|
517
|
+
cor: string;
|
|
518
|
+
criado_em: string;
|
|
519
|
+
descricao?: string | null;
|
|
520
|
+
dono?: ColaboradorResumo | null;
|
|
521
|
+
id: string;
|
|
522
|
+
inicio?: string | null;
|
|
523
|
+
membros: Array<ColaboradorResumo>;
|
|
524
|
+
nome: string;
|
|
525
|
+
prazo?: string | null;
|
|
526
|
+
status: string;
|
|
527
|
+
/**
|
|
528
|
+
* Tarefas principais abertas com o prazo já vencido.
|
|
529
|
+
*/
|
|
530
|
+
tarefas_atrasadas: number;
|
|
531
|
+
tarefas_concluidas: number;
|
|
532
|
+
/**
|
|
533
|
+
* Tarefas principais (sem contar subtarefas).
|
|
534
|
+
*/
|
|
535
|
+
total_tarefas: number;
|
|
536
|
+
/**
|
|
537
|
+
* `ORGANIZACAO` (todos com a área `projetos` veem) ou `MEMBROS` (só o dono e os membros).
|
|
538
|
+
*/
|
|
539
|
+
visibilidade: string;
|
|
540
|
+
}
|
|
541
|
+
export interface ProjetoAtualizar {
|
|
542
|
+
aplicativo_ids?: Array<string> | null;
|
|
543
|
+
arquivado?: boolean | null;
|
|
544
|
+
cor?: string | null;
|
|
545
|
+
descricao?: string | null;
|
|
546
|
+
dono_id?: string | null;
|
|
547
|
+
inicio?: string | null;
|
|
548
|
+
membro_ids?: Array<string> | null;
|
|
549
|
+
nome?: string | null;
|
|
550
|
+
prazo?: string | null;
|
|
551
|
+
status?: string | null;
|
|
552
|
+
visibilidade?: string | null;
|
|
553
|
+
}
|
|
554
|
+
export interface ProjetoAutoComplete {
|
|
555
|
+
cor: string;
|
|
556
|
+
id: string;
|
|
557
|
+
nome: string;
|
|
558
|
+
}
|
|
559
|
+
export interface ProjetoCriar {
|
|
560
|
+
aplicativo_ids?: Array<string>;
|
|
561
|
+
cor?: string | null;
|
|
562
|
+
descricao?: string | null;
|
|
563
|
+
dono_id?: string | null;
|
|
564
|
+
inicio?: string | null;
|
|
565
|
+
membro_ids?: Array<string>;
|
|
566
|
+
nome: string;
|
|
567
|
+
prazo?: string | null;
|
|
568
|
+
/**
|
|
569
|
+
* Nomes das colunas do quadro, na ordem. Sem elas o projeto nasce com "A fazer", "Em andamento" e "Concluído".
|
|
570
|
+
*/
|
|
571
|
+
secoes?: Array<string> | null;
|
|
572
|
+
status?: string | null;
|
|
573
|
+
/**
|
|
574
|
+
* `ORGANIZACAO` (padrão) ou `MEMBROS`.
|
|
575
|
+
*/
|
|
576
|
+
visibilidade?: string | null;
|
|
577
|
+
}
|
|
101
578
|
export interface RespostaDeErro {
|
|
102
579
|
erro: string;
|
|
103
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
* Uma coluna do quadro do projeto. A `ordem` é decimal para encaixar uma coluna entre duas sem
|
|
583
|
+
* renumerar as outras.
|
|
584
|
+
*/
|
|
585
|
+
export interface Secao {
|
|
586
|
+
atualizado_em: string;
|
|
587
|
+
/**
|
|
588
|
+
* A coluna que conclui as tarefas (uma por projeto): entrar nela conclui, sair reabre.
|
|
589
|
+
*/
|
|
590
|
+
conclui_tarefa: boolean;
|
|
591
|
+
criado_em: string;
|
|
592
|
+
id: string;
|
|
593
|
+
nome: string;
|
|
594
|
+
ordem: number;
|
|
595
|
+
projeto_id: string;
|
|
596
|
+
}
|
|
597
|
+
export interface SecaoAtualizar {
|
|
598
|
+
/**
|
|
599
|
+
* `true` faz desta a coluna que conclui do projeto (desliga a anterior, conclui as tarefas
|
|
600
|
+
* abertas dela e traz as concluídas das outras colunas); `false` só desliga.
|
|
601
|
+
*/
|
|
602
|
+
conclui_tarefa?: boolean | null;
|
|
603
|
+
nome?: string | null;
|
|
604
|
+
ordem?: number | null;
|
|
605
|
+
}
|
|
606
|
+
export interface SecaoAutoComplete {
|
|
607
|
+
id: string;
|
|
608
|
+
nome: string;
|
|
609
|
+
}
|
|
610
|
+
export interface SecaoCriar {
|
|
611
|
+
nome: string;
|
|
612
|
+
/**
|
|
613
|
+
* Sem ordem, a seção entra no fim do quadro.
|
|
614
|
+
*/
|
|
615
|
+
ordem?: number | null;
|
|
616
|
+
projeto_id: string;
|
|
617
|
+
}
|
|
618
|
+
export interface Tarefa {
|
|
619
|
+
anexos_total: number;
|
|
620
|
+
atualizado_em: string;
|
|
621
|
+
comentarios_total: number;
|
|
622
|
+
concluida: boolean;
|
|
623
|
+
concluida_em?: string | null;
|
|
624
|
+
criado_em: string;
|
|
625
|
+
criador?: ColaboradorResumo | null;
|
|
626
|
+
descricao?: string | null;
|
|
627
|
+
/**
|
|
628
|
+
* Esforço em pontos (o número do cartão).
|
|
629
|
+
*/
|
|
630
|
+
estimativa?: number | null;
|
|
631
|
+
etiquetas: Array<EtiquetaResumo>;
|
|
632
|
+
id: string;
|
|
633
|
+
inicio?: string | null;
|
|
634
|
+
marco: boolean;
|
|
635
|
+
ordem: number;
|
|
636
|
+
prazo?: string | null;
|
|
637
|
+
prioridade?: string | null;
|
|
638
|
+
projeto_cor: string;
|
|
639
|
+
projeto_id: string;
|
|
640
|
+
projeto_nome: string;
|
|
641
|
+
responsavel?: ColaboradorResumo | null;
|
|
642
|
+
/**
|
|
643
|
+
* Coluna do quadro. Subtarefa não tem coluna.
|
|
644
|
+
*/
|
|
645
|
+
secao_id?: string | null;
|
|
646
|
+
secao_nome?: string | null;
|
|
647
|
+
subtarefas_concluidas: number;
|
|
648
|
+
subtarefas_total: number;
|
|
649
|
+
tarefa_pai_id?: string | null;
|
|
650
|
+
tarefa_pai_titulo?: string | null;
|
|
651
|
+
/**
|
|
652
|
+
* Ticket de suporte que deu origem à tarefa.
|
|
653
|
+
*/
|
|
654
|
+
ticket_id?: string | null;
|
|
655
|
+
ticket_numero?: number | null;
|
|
656
|
+
titulo: string;
|
|
657
|
+
}
|
|
658
|
+
export interface TarefaAtualizar {
|
|
659
|
+
concluida?: boolean | null;
|
|
660
|
+
descricao?: string | null;
|
|
661
|
+
estimativa?: number | null;
|
|
662
|
+
etiqueta_ids?: Array<string> | null;
|
|
663
|
+
inicio?: string | null;
|
|
664
|
+
marco?: boolean | null;
|
|
665
|
+
ordem?: number | null;
|
|
666
|
+
prazo?: string | null;
|
|
667
|
+
prioridade?: string | null;
|
|
668
|
+
responsavel_id?: string | null;
|
|
669
|
+
secao_id?: string | null;
|
|
670
|
+
titulo?: string | null;
|
|
671
|
+
}
|
|
672
|
+
export interface TarefaAutoComplete {
|
|
673
|
+
id: string;
|
|
674
|
+
projeto_nome: string;
|
|
675
|
+
titulo: string;
|
|
676
|
+
}
|
|
677
|
+
export interface TarefaCriar {
|
|
678
|
+
descricao?: string | null;
|
|
679
|
+
estimativa?: number | null;
|
|
680
|
+
etiqueta_ids?: Array<string>;
|
|
681
|
+
inicio?: string | null;
|
|
682
|
+
marco?: boolean;
|
|
683
|
+
/**
|
|
684
|
+
* Sem ordem, a tarefa entra no fim da coluna.
|
|
685
|
+
*/
|
|
686
|
+
ordem?: number | null;
|
|
687
|
+
prazo?: string | null;
|
|
688
|
+
prioridade?: string | null;
|
|
689
|
+
projeto_id: string;
|
|
690
|
+
responsavel_id?: string | null;
|
|
691
|
+
/**
|
|
692
|
+
* Sem seção (e sem tarefa pai), a tarefa entra na primeira coluna do projeto.
|
|
693
|
+
*/
|
|
694
|
+
secao_id?: string | null;
|
|
695
|
+
/**
|
|
696
|
+
* Preenchido, cria uma subtarefa (sem coluna) dessa tarefa.
|
|
697
|
+
*/
|
|
698
|
+
tarefa_pai_id?: string | null;
|
|
699
|
+
ticket_id?: string | null;
|
|
700
|
+
titulo: string;
|
|
701
|
+
}
|
|
702
|
+
export interface Ticket {
|
|
703
|
+
anexos_total: number;
|
|
704
|
+
aplicativo: AplicativoResumo;
|
|
705
|
+
/**
|
|
706
|
+
* `true` quando o prazo passou antes de o ticket ser resolvido.
|
|
707
|
+
*/
|
|
708
|
+
atrasado: boolean;
|
|
709
|
+
atualizado_em: string;
|
|
710
|
+
canal: string;
|
|
711
|
+
comentarios_total: number;
|
|
712
|
+
criado_em: string;
|
|
713
|
+
descricao: string;
|
|
714
|
+
fechado_em?: string | null;
|
|
715
|
+
id: string;
|
|
716
|
+
/**
|
|
717
|
+
* Número sequencial mostrado como #1024.
|
|
718
|
+
*/
|
|
719
|
+
numero: number;
|
|
720
|
+
origem_url?: string | null;
|
|
721
|
+
/**
|
|
722
|
+
* Prazo de atendimento (SLA).
|
|
723
|
+
*/
|
|
724
|
+
prazo?: string | null;
|
|
725
|
+
primeira_resposta_em?: string | null;
|
|
726
|
+
prioridade: string;
|
|
727
|
+
resolvido_em?: string | null;
|
|
728
|
+
responsavel?: ColaboradorResumo | null;
|
|
729
|
+
solicitante?: ColaboradorResumo | null;
|
|
730
|
+
solicitante_email?: string | null;
|
|
731
|
+
solicitante_nome: string;
|
|
732
|
+
status: string;
|
|
733
|
+
tarefas: Array<TicketTarefa>;
|
|
734
|
+
tipo: string;
|
|
735
|
+
titulo: string;
|
|
736
|
+
}
|
|
737
|
+
export interface TicketAberto {
|
|
738
|
+
id: string;
|
|
739
|
+
numero: number;
|
|
740
|
+
}
|
|
741
|
+
export interface TicketAtualizar {
|
|
742
|
+
aplicativo_id?: string | null;
|
|
743
|
+
canal?: string | null;
|
|
744
|
+
descricao?: string | null;
|
|
745
|
+
prazo?: string | null;
|
|
746
|
+
prioridade?: string | null;
|
|
747
|
+
responsavel_id?: string | null;
|
|
748
|
+
solicitante_email?: string | null;
|
|
749
|
+
solicitante_nome?: string | null;
|
|
750
|
+
status?: string | null;
|
|
751
|
+
tipo?: string | null;
|
|
752
|
+
titulo?: string | null;
|
|
753
|
+
}
|
|
754
|
+
export interface TicketAutoComplete {
|
|
755
|
+
id: string;
|
|
756
|
+
numero: number;
|
|
757
|
+
titulo: string;
|
|
758
|
+
}
|
|
759
|
+
export interface TicketCriar {
|
|
760
|
+
aplicativo_id: string;
|
|
761
|
+
canal?: string | null;
|
|
762
|
+
descricao: string;
|
|
763
|
+
origem_url?: string | null;
|
|
764
|
+
/**
|
|
765
|
+
* Sem prazo, vale o SLA da prioridade.
|
|
766
|
+
*/
|
|
767
|
+
prazo?: string | null;
|
|
768
|
+
prioridade?: string | null;
|
|
769
|
+
responsavel_id?: string | null;
|
|
770
|
+
solicitante_email?: string | null;
|
|
771
|
+
/**
|
|
772
|
+
* Sem solicitante nem nome, quem abriu o ticket no painel é o solicitante.
|
|
773
|
+
*/
|
|
774
|
+
solicitante_id?: string | null;
|
|
775
|
+
solicitante_nome?: string | null;
|
|
776
|
+
tipo?: string | null;
|
|
777
|
+
titulo: string;
|
|
778
|
+
}
|
|
779
|
+
/**
|
|
780
|
+
* O que o aplicativo manda para abrir um ticket pela chave pública.
|
|
781
|
+
*/
|
|
782
|
+
export interface TicketDoAplicativo {
|
|
783
|
+
descricao: string;
|
|
784
|
+
origem_url?: string | null;
|
|
785
|
+
prioridade?: string | null;
|
|
786
|
+
solicitante_email?: string | null;
|
|
787
|
+
solicitante_nome: string;
|
|
788
|
+
tipo?: string | null;
|
|
789
|
+
titulo: string;
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Tarefa de projeto criada a partir do ticket.
|
|
793
|
+
*/
|
|
794
|
+
export interface TicketTarefa {
|
|
795
|
+
concluida: boolean;
|
|
796
|
+
id: string;
|
|
797
|
+
projeto_id: string;
|
|
798
|
+
projeto_nome: string;
|
|
799
|
+
titulo: string;
|
|
800
|
+
}
|