termo_core 0.1.38 → 0.1.39
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/agenda/rotas.d.ts +0 -15
- package/dist/agenda/tipos.d.ts +1 -91
- package/dist/flow/tipos.d.ts +1 -1
- package/package.json +1 -1
package/dist/agenda/rotas.d.ts
CHANGED
|
@@ -25,19 +25,10 @@ export interface ParametrosDeBuscarPeloFiltroAgenda {
|
|
|
25
25
|
* Parâmetros de consulta e de cabeçalho de `/disponibilidade`.
|
|
26
26
|
*/
|
|
27
27
|
export interface ParametrosDeBuscarDisponibilidadeEvento {
|
|
28
|
-
/**
|
|
29
|
-
* Ids separados por vírgula.
|
|
30
|
-
*/
|
|
31
28
|
colaborador_ids?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Ids separados por vírgula.
|
|
34
|
-
*/
|
|
35
29
|
sala_ids?: string;
|
|
36
30
|
inicio: string;
|
|
37
31
|
fim: string;
|
|
38
|
-
/**
|
|
39
|
-
* O evento que está sendo editado não conta como ocupado.
|
|
40
|
-
*/
|
|
41
32
|
ignorar_evento_id?: string;
|
|
42
33
|
}
|
|
43
34
|
/**
|
|
@@ -60,18 +51,12 @@ export interface ParametrosDeBuscarAutoCompleteEvento {
|
|
|
60
51
|
*/
|
|
61
52
|
export interface ParametrosDeBuscarPaginadorEvento {
|
|
62
53
|
pagina?: number;
|
|
63
|
-
/**
|
|
64
|
-
* Trecho do título, do local ou da descrição.
|
|
65
|
-
*/
|
|
66
54
|
texto?: string;
|
|
67
55
|
}
|
|
68
56
|
/**
|
|
69
57
|
* Parâmetros de consulta e de cabeçalho de `/evento/{id}`.
|
|
70
58
|
*/
|
|
71
59
|
export interface ParametrosDeDeletarPeloIdEvento {
|
|
72
|
-
/**
|
|
73
|
-
* Na repetição: `este`, `seguintes` ou `todos` (padrão).
|
|
74
|
-
*/
|
|
75
60
|
escopo?: string;
|
|
76
61
|
ocorrencia?: string;
|
|
77
62
|
}
|
package/dist/agenda/tipos.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agenda de uma pessoa. Cada colaborador tem a "Minha agenda" (`padrao`), criada sozinha no primeiro
|
|
3
|
-
* acesso, e pode ter outras; todas são privadas: só o dono vê.
|
|
4
|
-
*/
|
|
5
1
|
export interface Agenda {
|
|
6
2
|
atualizado_em: string;
|
|
7
3
|
cor: string;
|
|
@@ -14,11 +10,6 @@ export interface AgendaAtualizar {
|
|
|
14
10
|
cor?: string | null;
|
|
15
11
|
nome?: string | null;
|
|
16
12
|
}
|
|
17
|
-
export interface AgendaAutoComplete {
|
|
18
|
-
cor: string;
|
|
19
|
-
id: string;
|
|
20
|
-
nome: string;
|
|
21
|
-
}
|
|
22
13
|
export interface AgendaCriar {
|
|
23
14
|
cor?: string | null;
|
|
24
15
|
nome: string;
|
|
@@ -27,9 +18,6 @@ export interface Bloco {
|
|
|
27
18
|
fim: string;
|
|
28
19
|
inicio: string;
|
|
29
20
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Resumo do colaborador (id e nome) para mostrar autoria.
|
|
32
|
-
*/
|
|
33
21
|
export interface ColaboradorResumo {
|
|
34
22
|
id: string;
|
|
35
23
|
nome: string;
|
|
@@ -37,23 +25,13 @@ export interface ColaboradorResumo {
|
|
|
37
25
|
export interface ConvidadoResumo {
|
|
38
26
|
id: string;
|
|
39
27
|
nome: string;
|
|
40
|
-
/**
|
|
41
|
-
* `PENDENTE`, `SIM`, `NAO` ou `TALVEZ`.
|
|
42
|
-
*/
|
|
43
28
|
resposta: string;
|
|
44
29
|
}
|
|
45
30
|
export interface Disponibilidade {
|
|
46
31
|
colaboradores: Array<Ocupacao>;
|
|
47
32
|
salas: Array<Ocupacao>;
|
|
48
33
|
}
|
|
49
|
-
/**
|
|
50
|
-
* Um evento (ou uma ocorrência dele, na grade) como quem está olhando o vê: o organizador vê a
|
|
51
|
-
* agenda em que o evento está; o convidado vê a própria resposta.
|
|
52
|
-
*/
|
|
53
34
|
export interface Evento {
|
|
54
|
-
/**
|
|
55
|
-
* Só para o organizador: a agenda dele em que o evento está.
|
|
56
|
-
*/
|
|
57
35
|
agenda_id?: string | null;
|
|
58
36
|
atualizado_em: string;
|
|
59
37
|
convidados: Array<ConvidadoResumo>;
|
|
@@ -68,43 +46,27 @@ export interface Evento {
|
|
|
68
46
|
link_reuniao?: string | null;
|
|
69
47
|
local?: string | null;
|
|
70
48
|
minha_resposta?: string | null;
|
|
71
|
-
/**
|
|
72
|
-
* Início original da ocorrência (igual ao `inicio` fora da repetição). É o que o `PATCH` e o
|
|
73
|
-
* `DELETE` recebem em `ocorrencia` para mexer só nela ou dela em diante.
|
|
74
|
-
*/
|
|
75
49
|
ocorrencia: string;
|
|
76
50
|
organizador: ColaboradorResumo;
|
|
77
51
|
recorrencia?: Recorrencia | null;
|
|
78
52
|
salas: Array<SalaResumo>;
|
|
79
|
-
/**
|
|
80
|
-
* Início da série (o primeiro da repetição).
|
|
81
|
-
*/
|
|
82
53
|
serie_inicio: string;
|
|
83
54
|
sou_organizador: boolean;
|
|
84
55
|
titulo: string;
|
|
85
56
|
}
|
|
86
57
|
export interface EventoAtualizar {
|
|
87
58
|
agenda_id?: string | null;
|
|
88
|
-
/**
|
|
89
|
-
* `true` cria a videochamada no TermoMeet para um evento que ainda não tem link.
|
|
90
|
-
*/
|
|
91
59
|
com_videochamada?: boolean | null;
|
|
92
60
|
convidado_ids?: Array<string> | null;
|
|
93
61
|
cor?: string | null;
|
|
94
62
|
descricao?: string | null;
|
|
95
63
|
dia_inteiro?: boolean | null;
|
|
96
|
-
/**
|
|
97
|
-
* Na repetição: `este` (só a `ocorrencia`), `seguintes` (dela em diante) ou `todos` (padrão).
|
|
98
|
-
*/
|
|
99
64
|
escopo?: string | null;
|
|
100
65
|
fim?: string | null;
|
|
101
66
|
inicio?: string | null;
|
|
102
67
|
lembretes?: Array<number> | null;
|
|
103
68
|
link_reuniao?: string | null;
|
|
104
69
|
local?: string | null;
|
|
105
|
-
/**
|
|
106
|
-
* Início original da ocorrência (o `ocorrencia` da leitura); obrigatório com `este` e `seguintes`.
|
|
107
|
-
*/
|
|
108
70
|
ocorrencia?: string | null;
|
|
109
71
|
recorrencia?: Recorrencia | null;
|
|
110
72
|
sala_ids?: Array<string> | null;
|
|
@@ -117,14 +79,7 @@ export interface EventoAutoComplete {
|
|
|
117
79
|
titulo: string;
|
|
118
80
|
}
|
|
119
81
|
export interface EventoCriar {
|
|
120
|
-
/**
|
|
121
|
-
* Sem ela, o evento vai para a "Minha agenda".
|
|
122
|
-
*/
|
|
123
82
|
agenda_id?: string | null;
|
|
124
|
-
/**
|
|
125
|
-
* `true` cria a videochamada no TermoMeet com o título e o horário do evento e põe o link
|
|
126
|
-
* dela em `link_reuniao`.
|
|
127
|
-
*/
|
|
128
83
|
com_videochamada?: boolean | null;
|
|
129
84
|
convidado_ids?: Array<string> | null;
|
|
130
85
|
cor?: string | null;
|
|
@@ -140,9 +95,6 @@ export interface EventoCriar {
|
|
|
140
95
|
titulo?: string | null;
|
|
141
96
|
}
|
|
142
97
|
export interface EventoResponder {
|
|
143
|
-
/**
|
|
144
|
-
* `SIM`, `NAO` ou `TALVEZ`.
|
|
145
|
-
*/
|
|
146
98
|
resposta: string;
|
|
147
99
|
}
|
|
148
100
|
export interface Ocupacao {
|
|
@@ -150,10 +102,6 @@ export interface Ocupacao {
|
|
|
150
102
|
nome: string;
|
|
151
103
|
ocupado: Array<Bloco>;
|
|
152
104
|
}
|
|
153
|
-
/**
|
|
154
|
-
* Agenda de uma pessoa. Cada colaborador tem a "Minha agenda" (`padrao`), criada sozinha no primeiro
|
|
155
|
-
* acesso, e pode ter outras; todas são privadas: só o dono vê.
|
|
156
|
-
*/
|
|
157
105
|
export interface PaginaAgendaItensItem {
|
|
158
106
|
atualizado_em: string;
|
|
159
107
|
cor: string;
|
|
@@ -179,14 +127,7 @@ export interface PaginaAgendaAutoComplete {
|
|
|
179
127
|
tamanho: number;
|
|
180
128
|
total: number;
|
|
181
129
|
}
|
|
182
|
-
/**
|
|
183
|
-
* Um evento (ou uma ocorrência dele, na grade) como quem está olhando o vê: o organizador vê a
|
|
184
|
-
* agenda em que o evento está; o convidado vê a própria resposta.
|
|
185
|
-
*/
|
|
186
130
|
export interface PaginaEventoItensItem {
|
|
187
|
-
/**
|
|
188
|
-
* Só para o organizador: a agenda dele em que o evento está.
|
|
189
|
-
*/
|
|
190
131
|
agenda_id?: string | null;
|
|
191
132
|
atualizado_em: string;
|
|
192
133
|
convidados: Array<ConvidadoResumo>;
|
|
@@ -201,17 +142,10 @@ export interface PaginaEventoItensItem {
|
|
|
201
142
|
link_reuniao?: string | null;
|
|
202
143
|
local?: string | null;
|
|
203
144
|
minha_resposta?: string | null;
|
|
204
|
-
/**
|
|
205
|
-
* Início original da ocorrência (igual ao `inicio` fora da repetição). É o que o `PATCH` e o
|
|
206
|
-
* `DELETE` recebem em `ocorrencia` para mexer só nela ou dela em diante.
|
|
207
|
-
*/
|
|
208
145
|
ocorrencia: string;
|
|
209
146
|
organizador: ColaboradorResumo;
|
|
210
147
|
recorrencia?: Recorrencia | null;
|
|
211
148
|
salas: Array<SalaResumo>;
|
|
212
|
-
/**
|
|
213
|
-
* Início da série (o primeiro da repetição).
|
|
214
|
-
*/
|
|
215
149
|
serie_inicio: string;
|
|
216
150
|
sou_organizador: boolean;
|
|
217
151
|
titulo: string;
|
|
@@ -222,21 +156,12 @@ export interface PaginaEvento {
|
|
|
222
156
|
tamanho: number;
|
|
223
157
|
total: number;
|
|
224
158
|
}
|
|
225
|
-
export interface PaginaEventoAutoCompleteItensItem {
|
|
226
|
-
dia_inteiro: boolean;
|
|
227
|
-
id: string;
|
|
228
|
-
inicio: string;
|
|
229
|
-
titulo: string;
|
|
230
|
-
}
|
|
231
159
|
export interface PaginaEventoAutoComplete {
|
|
232
|
-
itens: Array<
|
|
160
|
+
itens: Array<EventoAutoComplete>;
|
|
233
161
|
pagina: number;
|
|
234
162
|
tamanho: number;
|
|
235
163
|
total: number;
|
|
236
164
|
}
|
|
237
|
-
/**
|
|
238
|
-
* Sala de reunião: um recurso que entra no evento e não aceita duas reuniões no mesmo horário.
|
|
239
|
-
*/
|
|
240
165
|
export interface PaginaSalaItensItem {
|
|
241
166
|
ativa: boolean;
|
|
242
167
|
atualizado_em: string;
|
|
@@ -267,11 +192,6 @@ export interface PaginaSalaAutoComplete {
|
|
|
267
192
|
tamanho: number;
|
|
268
193
|
total: number;
|
|
269
194
|
}
|
|
270
|
-
/**
|
|
271
|
-
* Repetição do evento, sempre no fuso da Termotubos. `dias_semana` (0 = domingo) só vale na
|
|
272
|
-
* semanal; sem ele, repete no dia da semana do início. `ate` (AAAA-MM-DD, inclusive) ou `vezes`
|
|
273
|
-
* encerram a repetição; sem os dois, ela não termina.
|
|
274
|
-
*/
|
|
275
195
|
export interface Recorrencia {
|
|
276
196
|
ate?: string | null;
|
|
277
197
|
dias_semana?: Array<number>;
|
|
@@ -282,9 +202,6 @@ export interface Recorrencia {
|
|
|
282
202
|
export interface RespostaDeErro {
|
|
283
203
|
erro: string;
|
|
284
204
|
}
|
|
285
|
-
/**
|
|
286
|
-
* Sala de reunião: um recurso que entra no evento e não aceita duas reuniões no mesmo horário.
|
|
287
|
-
*/
|
|
288
205
|
export interface Sala {
|
|
289
206
|
ativa: boolean;
|
|
290
207
|
atualizado_em: string;
|
|
@@ -304,13 +221,6 @@ export interface SalaAtualizar {
|
|
|
304
221
|
nome?: string | null;
|
|
305
222
|
recursos?: Array<string> | null;
|
|
306
223
|
}
|
|
307
|
-
export interface SalaAutoComplete {
|
|
308
|
-
capacidade?: number | null;
|
|
309
|
-
cor: string;
|
|
310
|
-
id: string;
|
|
311
|
-
local?: string | null;
|
|
312
|
-
nome: string;
|
|
313
|
-
}
|
|
314
224
|
export interface SalaCriar {
|
|
315
225
|
ativa?: boolean | null;
|
|
316
226
|
capacidade?: number | null;
|
package/dist/flow/tipos.d.ts
CHANGED
|
@@ -180,7 +180,7 @@ export interface Conversa {
|
|
|
180
180
|
chatwoot_endereco_conversa?: string | null;
|
|
181
181
|
cliente_id?: string | null;
|
|
182
182
|
cliente_razao_social?: string | null;
|
|
183
|
-
config_system_chatwoot_id
|
|
183
|
+
config_system_chatwoot_id?: string | null;
|
|
184
184
|
config_system_whatsapp_id?: string | null;
|
|
185
185
|
config_system_whatsapp_nome?: string | null;
|
|
186
186
|
config_system_whatsapp_oficial_id?: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "termo_core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.39",
|
|
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>",
|