sgp-sdk 1.2.0 → 2.0.0-beta.2

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.
Files changed (100) hide show
  1. package/CHANGELOG.md +234 -0
  2. package/COMPATIBILITY.md +231 -0
  3. package/MIGRATION.md +344 -0
  4. package/README.md +464 -265
  5. package/dist/address.d.ts +46 -0
  6. package/dist/annotation-selection.d.ts +32 -0
  7. package/dist/budget.d.ts +29 -0
  8. package/dist/classify.d.ts +15 -0
  9. package/dist/client.d.ts +938 -165
  10. package/dist/config.d.ts +115 -0
  11. package/dist/constants.d.ts +85 -0
  12. package/dist/document.d.ts +11 -0
  13. package/dist/effect.d.ts +22 -0
  14. package/dist/executor.d.ts +9 -0
  15. package/dist/exposure.d.ts +21 -0
  16. package/dist/guards.d.ts +2 -0
  17. package/dist/hooks.d.ts +16 -0
  18. package/dist/ids.d.ts +19 -0
  19. package/dist/index.d.ts +55 -49
  20. package/dist/index.js +3750 -1293
  21. package/dist/normalize.d.ts +9 -0
  22. package/dist/operation-sensitivity.d.ts +729 -0
  23. package/dist/operation.d.ts +145 -0
  24. package/dist/operations/catalogs-list-billing-profiles.d.ts +16 -0
  25. package/dist/operations/catalogs-list-nas.d.ts +25 -0
  26. package/dist/operations/catalogs-list-pops.d.ts +14 -0
  27. package/dist/operations/contracts-check-connection.d.ts +56 -0
  28. package/dist/operations/contracts-list-services.d.ts +103 -0
  29. package/dist/operations/contracts-list-status-reasons.d.ts +15 -0
  30. package/dist/operations/contracts-list.d.ts +52 -0
  31. package/dist/operations/contracts-update-status.d.ts +41 -0
  32. package/dist/operations/contracts-update.d.ts +39 -0
  33. package/dist/operations/coverage-check-address.d.ts +46 -0
  34. package/dist/operations/coverage-check.d.ts +43 -0
  35. package/dist/operations/coverage-list-gateways.d.ts +16 -0
  36. package/dist/operations/crm-contracts-create-by-cpf-cnpj.d.ts +97 -0
  37. package/dist/operations/crm-contracts-create.d.ts +221 -0
  38. package/dist/operations/crm-contracts-list.d.ts +50 -0
  39. package/dist/operations/crm-customers-create.d.ts +165 -0
  40. package/dist/operations/crm-customers-update-status.d.ts +41 -0
  41. package/dist/operations/customers-list.d.ts +104 -0
  42. package/dist/{endpoints/ura/lookup-customer.d.ts → operations/customers-search.d.ts} +56 -46
  43. package/dist/operations/documents-add.d.ts +29 -0
  44. package/dist/operations/documents-list.d.ts +31 -0
  45. package/dist/operations/experimental-annotations-list.d.ts +67 -0
  46. package/dist/operations/invoices-list.d.ts +148 -0
  47. package/dist/operations/maintenance-list.d.ts +35 -0
  48. package/dist/operations/occurrences-create.d.ts +125 -0
  49. package/dist/operations/occurrences-list-methods.d.ts +14 -0
  50. package/dist/operations/occurrences-list-types.d.ts +20 -0
  51. package/dist/operations/occurrences-list.d.ts +127 -0
  52. package/dist/{endpoints/ura/list-plans.d.ts → operations/plans-list.d.ts} +33 -23
  53. package/dist/operations/pre-registrations-create.d.ts +276 -0
  54. package/dist/operations/pre-registrations-list-due-days.d.ts +15 -0
  55. package/dist/operations/pre-registrations-list-plans.d.ts +24 -0
  56. package/dist/operations/pre-registrations-list-sellers.d.ts +16 -0
  57. package/dist/operations/services-add-generic.d.ts +52 -0
  58. package/dist/operations/services-add-tv.d.ts +47 -0
  59. package/dist/operations/services-change-plan.d.ts +40 -0
  60. package/dist/operations/services-remove-generic.d.ts +28 -0
  61. package/dist/operations/services-remove-tv.d.ts +29 -0
  62. package/dist/operations/work-orders-get.d.ts +99 -0
  63. package/dist/operations/work-orders-list-comments.d.ts +34 -0
  64. package/dist/operations/work-orders-list-reasons.d.ts +20 -0
  65. package/dist/operations/work-orders-list.d.ts +81 -0
  66. package/dist/path.d.ts +13 -0
  67. package/dist/raw-request.d.ts +26 -0
  68. package/dist/request.d.ts +28 -0
  69. package/dist/result.d.ts +113 -41
  70. package/dist/retry.d.ts +34 -0
  71. package/dist/sensitivity.d.ts +89 -4
  72. package/dist/tolerant.d.ts +21 -0
  73. package/dist/validation.d.ts +3 -0
  74. package/package.json +6 -3
  75. package/dist/endpoint.d.ts +0 -66
  76. package/dist/endpoints/crm/address.d.ts +0 -20
  77. package/dist/endpoints/crm/create-contract.d.ts +0 -109
  78. package/dist/endpoints/crm/create-customer.d.ts +0 -65
  79. package/dist/endpoints/crm/update-customer-status.d.ts +0 -43
  80. package/dist/endpoints/os/list-occurrence-reasons.d.ts +0 -24
  81. package/dist/endpoints/os/list-occurrence-types.d.ts +0 -25
  82. package/dist/endpoints/precadastro/list-due-days.d.ts +0 -19
  83. package/dist/endpoints/precadastro/list-sellers.d.ts +0 -21
  84. package/dist/endpoints/suporte/add-customer-document.d.ts +0 -24
  85. package/dist/endpoints/suporte/list-customer-documents.d.ts +0 -25
  86. package/dist/endpoints/ura/check-coverage.d.ts +0 -46
  87. package/dist/endpoints/ura/list-annotations.d.ts +0 -32
  88. package/dist/endpoints/ura/list-clients.d.ts +0 -58
  89. package/dist/endpoints/ura/list-contracts.d.ts +0 -45
  90. package/dist/endpoints/ura/list-invoices.d.ts +0 -107
  91. package/dist/endpoints/ura/list-nas.d.ts +0 -29
  92. package/dist/endpoints/ura/list-occurrence-methods.d.ts +0 -19
  93. package/dist/endpoints/ura/list-payment-carriers.d.ts +0 -20
  94. package/dist/endpoints/ura/list-pops.d.ts +0 -19
  95. package/dist/endpoints/ura/list-service-orders.d.ts +0 -64
  96. package/dist/endpoints/ura/open-ticket.d.ts +0 -81
  97. package/dist/errors.d.ts +0 -59
  98. package/dist/schema/parse.d.ts +0 -19
  99. package/dist/schema/paths.d.ts +0 -38
  100. package/dist/transport.d.ts +0 -65
@@ -0,0 +1,729 @@
1
+ import type { OperationSensitivity } from "./sensitivity.js";
2
+ /** INTERNAL. Every operation the client ships; the one list `getSensitivity` reads. */
3
+ export declare const shippedOperations: readonly [import("./operation.js").OperationDefinition<{
4
+ [x: string]: unknown;
5
+ paginacao: {
6
+ [x: string]: unknown;
7
+ offset?: number | null | undefined;
8
+ limit?: number | null | undefined;
9
+ parcial?: number | null | undefined;
10
+ total: number;
11
+ };
12
+ clientes: {
13
+ [x: string]: unknown;
14
+ id: number & import("zod").$brand<"CustomerId">;
15
+ nome: string;
16
+ tipo: string;
17
+ cpfcnpj: string;
18
+ sexo?: string | null | undefined;
19
+ dataCadastro?: string | null | undefined;
20
+ endereco?: {
21
+ [x: string]: unknown;
22
+ logradouro?: string | null | undefined;
23
+ numero?: string | number | null | undefined;
24
+ bairro?: string | null | undefined;
25
+ cidade?: string | null | undefined;
26
+ uf?: string | null | undefined;
27
+ cep?: string | null | undefined;
28
+ complemento?: string | null | undefined;
29
+ latitude?: string | null | undefined;
30
+ longitude?: string | null | undefined;
31
+ } | null | undefined;
32
+ contratos?: {
33
+ [x: string]: unknown;
34
+ id: number;
35
+ status?: string | null | undefined;
36
+ endereco?: {
37
+ [x: string]: unknown;
38
+ logradouro?: string | null | undefined;
39
+ numero?: string | number | null | undefined;
40
+ bairro?: string | null | undefined;
41
+ cidade?: string | null | undefined;
42
+ uf?: string | null | undefined;
43
+ cep?: string | null | undefined;
44
+ complemento?: string | null | undefined;
45
+ latitude?: string | null | undefined;
46
+ longitude?: string | null | undefined;
47
+ } | null | undefined;
48
+ servicos?: {
49
+ [x: string]: unknown;
50
+ id: number;
51
+ tipo?: string | null | undefined;
52
+ plano?: {
53
+ [x: string]: unknown;
54
+ id: number & import("zod").$brand<"PlanId">;
55
+ descricao?: string | null | undefined;
56
+ } | null | undefined;
57
+ status?: string | null | undefined;
58
+ endereco?: {
59
+ [x: string]: unknown;
60
+ logradouro?: string | null | undefined;
61
+ numero?: string | number | null | undefined;
62
+ bairro?: string | null | undefined;
63
+ cidade?: string | null | undefined;
64
+ uf?: string | null | undefined;
65
+ cep?: string | null | undefined;
66
+ complemento?: string | null | undefined;
67
+ latitude?: string | null | undefined;
68
+ longitude?: string | null | undefined;
69
+ } | null | undefined;
70
+ }[] | null | undefined;
71
+ }[] | null | undefined;
72
+ titulos?: {
73
+ [x: string]: unknown;
74
+ }[] | null | undefined;
75
+ contatos?: {
76
+ [x: string]: unknown;
77
+ telefones?: string[] | null | undefined;
78
+ celulares?: string[] | null | undefined;
79
+ emails?: string[] | null | undefined;
80
+ outros?: unknown[] | null | undefined;
81
+ } | null | undefined;
82
+ }[];
83
+ }, "customers.list">, import("./operation.js").OperationDefinition<{
84
+ [x: string]: unknown;
85
+ msg?: string | null | undefined;
86
+ contratos: {
87
+ [x: string]: unknown;
88
+ contratoId: number;
89
+ clienteId: number & import("zod").$brand<"CustomerId">;
90
+ contratoStatus?: number | null | undefined;
91
+ contratoStatusDisplay?: string | null | undefined;
92
+ contratoValorAberto?: number | null | undefined;
93
+ contratoTitulosAReceber?: number | null | undefined;
94
+ cobVencimento?: number | null | undefined;
95
+ contratoStatusModo?: number | null | undefined;
96
+ motivo_status?: string | null | undefined;
97
+ dataCadastro?: string | null | undefined;
98
+ dataAlteracao?: string | null | undefined;
99
+ popId?: number | null | undefined;
100
+ popNome?: string | null | undefined;
101
+ cobPermuta?: boolean | null | undefined;
102
+ cobIsento?: number | null | undefined;
103
+ promessasPagamentoMes?: number | null | undefined;
104
+ link_quitacao?: string | null | undefined;
105
+ planointernet?: string | null | undefined;
106
+ fidelidade?: {
107
+ [x: string]: unknown;
108
+ data_inicio?: string | null | undefined;
109
+ descricao?: string | null | undefined;
110
+ data_fim?: string | null | undefined;
111
+ } | null | undefined;
112
+ contrato_unificado_principal?: unknown;
113
+ contrato_unificado_filhos?: unknown;
114
+ tags?: {
115
+ [x: string]: unknown;
116
+ color?: string | null | undefined;
117
+ font?: string | null | undefined;
118
+ tag?: string | null | undefined;
119
+ id?: number | null | undefined;
120
+ categoria_id?: unknown;
121
+ }[] | null | undefined;
122
+ anotacoes?: unknown[] | null | undefined;
123
+ contratoCentralLogin?: string | null | undefined;
124
+ contratoCentralSenha?: string | null | undefined;
125
+ servico_login?: string | null | undefined;
126
+ servico_senha?: string | null | undefined;
127
+ servico_plano?: string | null | undefined;
128
+ servico_grupo?: string | null | undefined;
129
+ servico_tipo_conexao?: string | null | undefined;
130
+ servico_vlan?: string | null | undefined;
131
+ servico_mac?: string | null | undefined;
132
+ servico_mac2?: string | null | undefined;
133
+ servico_wifi_ssid?: string | null | undefined;
134
+ servico_wifi_ssid_5?: string | null | undefined;
135
+ servico_wifi_password?: string | null | undefined;
136
+ servico_wifi_password_5?: string | null | undefined;
137
+ servico_wifi_channel?: string | null | undefined;
138
+ servico_wifi_channel_5?: string | null | undefined;
139
+ razaoSocial?: string | null | undefined;
140
+ cpfCnpj?: string | null | undefined;
141
+ dataNascimento?: string | null | undefined;
142
+ telefones?: {
143
+ [x: string]: unknown;
144
+ inscricoes?: string[] | null | undefined;
145
+ tipoContato?: string | null | undefined;
146
+ contato?: string | null | undefined;
147
+ }[] | null | undefined;
148
+ telefones_cargos?: unknown[] | null | undefined;
149
+ emails?: {
150
+ [x: string]: unknown;
151
+ inscricoes?: string[] | null | undefined;
152
+ tipoContato?: string | null | undefined;
153
+ contato?: string | null | undefined;
154
+ }[] | null | undefined;
155
+ outros?: unknown[] | null | undefined;
156
+ endereco_logradouro?: string | null | undefined;
157
+ endereco_numero?: string | number | null | undefined;
158
+ endereco_complemento?: string | null | undefined;
159
+ endereco_bairro?: string | null | undefined;
160
+ endereco_cidade?: string | null | undefined;
161
+ endereco_uf?: string | null | undefined;
162
+ endereco_cep?: string | null | undefined;
163
+ endereco_pontoreferencia?: unknown;
164
+ endereco_ll?: string | null | undefined;
165
+ }[];
166
+ }, "customers.search">, import("./operation.js").OperationDefinition<{
167
+ [x: string]: unknown;
168
+ message: string;
169
+ precadastro_id?: number | null | undefined;
170
+ new_cliente_id?: (number & import("zod").$brand<"CustomerId">) | null | undefined;
171
+ new_contrato_id?: number | null | undefined;
172
+ }, "preRegistrations.create">, import("./operation.js").OperationDefinition<{
173
+ [x: string]: unknown;
174
+ resposta: {
175
+ [x: string]: unknown;
176
+ mensagem?: string | null | undefined;
177
+ contrato: number;
178
+ contrato_status: string;
179
+ };
180
+ }, "contracts.updateStatus">, import("./operation.js").OperationDefinition<{
181
+ [x: string]: unknown;
182
+ resposta: {
183
+ [x: string]: unknown;
184
+ mensagem?: string | null | undefined;
185
+ contrato: number;
186
+ alterados: string[];
187
+ };
188
+ }, "contracts.update">, import("./operation.js").OperationDefinition<{
189
+ [x: string]: unknown;
190
+ id_contrato: number;
191
+ id_cliente: number & import("zod").$brand<"CustomerId">;
192
+ status?: string | null | undefined;
193
+ pop_id?: number | null | undefined;
194
+ nome?: string | null | undefined;
195
+ cpfcnpj?: string | null | undefined;
196
+ email?: string | null | undefined;
197
+ telefone?: string | null | undefined;
198
+ data_status?: string | null | undefined;
199
+ data_cadastro?: string | null | undefined;
200
+ motivo_status?: string | null | undefined;
201
+ }[], "contracts.list">, import("./operation.js").OperationDefinition<{
202
+ [x: string]: unknown;
203
+ servico_id: number;
204
+ servico_tipo?: number | null | undefined;
205
+ servico_login?: string | null | undefined;
206
+ servico_password?: string | null | undefined;
207
+ servico_mac?: string | null | undefined;
208
+ servico_online?: boolean | null | undefined;
209
+ nas_ip?: string | null | undefined;
210
+ servicos?: unknown[] | null | undefined;
211
+ contrato_id?: number | null | undefined;
212
+ contrato_status?: string | null | undefined;
213
+ contrato_status_id?: number | null | undefined;
214
+ contrato_status_data?: string | null | undefined;
215
+ contrato_cadastro?: string | null | undefined;
216
+ contrato_pop_id?: number | null | undefined;
217
+ contrato_pop_nome?: string | null | undefined;
218
+ contrato_endereco_ll?: string | null | undefined;
219
+ cliente_id?: (number & import("zod").$brand<"CustomerId">) | null | undefined;
220
+ cliente_nome?: string | null | undefined;
221
+ cliente_email?: string | null | undefined;
222
+ cliente_contato?: string | null | undefined;
223
+ endereco_id?: number | null | undefined;
224
+ endereco_logradouro?: string | null | undefined;
225
+ endereco_numero?: string | number | null | undefined;
226
+ endereco_complemento?: string | null | undefined;
227
+ endereco_bairro?: string | null | undefined;
228
+ endereco_cidade?: string | null | undefined;
229
+ endereco_uf?: string | null | undefined;
230
+ endereco_pontoreferencia?: string | null | undefined;
231
+ endereco_ll?: string | null | undefined;
232
+ plano_id?: number | null | undefined;
233
+ plano?: string | null | undefined;
234
+ plano_download?: string | null | undefined;
235
+ plano_upload?: string | null | undefined;
236
+ os_servicoprestado?: string | null | undefined;
237
+ rad_username?: string | null | undefined;
238
+ rad_ip?: string | null | undefined;
239
+ rad_mac?: string | null | undefined;
240
+ rad_nasipaddress?: string | null | undefined;
241
+ rad_nasportid?: string | null | undefined;
242
+ rad_nasporttype?: string | null | undefined;
243
+ rad_calledstationid?: string | null | undefined;
244
+ rad_acctsessionid?: string | null | undefined;
245
+ rad_radacctid?: number | null | undefined;
246
+ rad_dataconexao?: string | null | undefined;
247
+ rad_tempo?: string | null | undefined;
248
+ rad_tempo_ordem?: number | null | undefined;
249
+ rad_acctinputoctets?: number | null | undefined;
250
+ rad_acctoutputoctets?: number | null | undefined;
251
+ rad_framedprotocol?: string | null | undefined;
252
+ rad_framedipv6prefix?: string | null | undefined;
253
+ rad_delegatedipv6prefix?: string | null | undefined;
254
+ }[], "contracts.listServices">, import("./operation.js").OperationDefinition<{
255
+ [x: string]: unknown;
256
+ status: number;
257
+ msg?: string | null | undefined;
258
+ servico_id?: number | null | undefined;
259
+ contratoId?: number | null | undefined;
260
+ login?: string | null | undefined;
261
+ razaoSocial?: string | null | undefined;
262
+ cpfCnpj?: string | null | undefined;
263
+ }[], "contracts.checkConnection">, import("./operation.js").OperationDefinition<{
264
+ [x: string]: unknown;
265
+ paginacao: {
266
+ [x: string]: unknown;
267
+ offset?: number | null | undefined;
268
+ limit?: number | null | undefined;
269
+ parcial?: number | null | undefined;
270
+ total: number;
271
+ };
272
+ titulos: {
273
+ [x: string]: unknown;
274
+ id: number;
275
+ status?: string | null | undefined;
276
+ valor?: number | null | undefined;
277
+ dataVencimento?: string | null | undefined;
278
+ clienteNome?: string | null | undefined;
279
+ clienteCpfcnpj?: string | null | undefined;
280
+ clienteContrato?: number | null | undefined;
281
+ portador?: string | null | undefined;
282
+ numeroDocumento?: string | number | null | undefined;
283
+ nossoNumero?: string | null | undefined;
284
+ link?: string | null | undefined;
285
+ link_cobranca?: string | null | undefined;
286
+ valorDesconto?: number | null | undefined;
287
+ valorCorrigido?: number | null | undefined;
288
+ valorPago?: number | null | undefined;
289
+ valorPagoParcial?: number | null | undefined;
290
+ codigoBarras?: string | null | undefined;
291
+ linhaDigitavel?: string | null | undefined;
292
+ codigoPix?: string | null | undefined;
293
+ dataEmissao?: string | null | undefined;
294
+ dataPagamento?: string | null | undefined;
295
+ dataCancelamento?: string | null | undefined;
296
+ demonstrativo?: string | null | undefined;
297
+ acordoPagamento?: {
298
+ [x: string]: unknown;
299
+ acordados?: unknown[] | null | undefined;
300
+ cobrados?: unknown[] | null | undefined;
301
+ } | null | undefined;
302
+ formaPagamento?: string | null | undefined;
303
+ usuario_baixa?: string | null | undefined;
304
+ }[];
305
+ }, "invoices.list">, import("./operation.js").OperationDefinition<{
306
+ [x: string]: unknown;
307
+ planos: {
308
+ [x: string]: unknown;
309
+ id: number & import("zod").$brand<"PlanId">;
310
+ descricao?: string | null | undefined;
311
+ preco?: number | null | undefined;
312
+ ativo?: boolean | null | undefined;
313
+ grupo?: string | null | undefined;
314
+ tipo?: string | null | undefined;
315
+ pos_pago?: boolean | null | undefined;
316
+ desconto?: number | null | undefined;
317
+ desconto_venc?: number | null | undefined;
318
+ desconto_venc_modo?: string | null | undefined;
319
+ valor_desconto_temporario?: number | null | undefined;
320
+ desconto_temporario_modo?: string | null | undefined;
321
+ desconto_temporario_quantidade?: number | null | undefined;
322
+ descricao_desconto_temporario?: string | null | undefined;
323
+ desconto_temporario_proporcional?: boolean | null | undefined;
324
+ observacao?: string | null | undefined;
325
+ instalacao_qtd_parcelas?: number | null | undefined;
326
+ instalacao_valor?: number | null | undefined;
327
+ instalacao_desconto_max?: number | null | undefined;
328
+ instalacao_desconto_min?: number | null | undefined;
329
+ disponivel_pre_cadastro?: boolean | null | undefined;
330
+ disponivel_pre_cadastro_publico?: boolean | null | undefined;
331
+ data_validade?: string | null | undefined;
332
+ pops?: {
333
+ [x: string]: unknown;
334
+ id?: number | null | undefined;
335
+ uf?: string | null | undefined;
336
+ pop?: string | null | undefined;
337
+ }[] | null | undefined;
338
+ auto_bloqueio?: boolean | null | undefined;
339
+ dias_bloqueio_pos_venc?: number | null | undefined;
340
+ dias_bloqueio_aviso?: number | null | undefined;
341
+ dias_reducao_velocidade?: number | null | undefined;
342
+ download?: number | null | undefined;
343
+ upload?: number | null | undefined;
344
+ trafego_mensal?: number | null | undefined;
345
+ contabilizacao_trafego_mensal?: string | null | undefined;
346
+ trafego_excedente_acao?: string | null | undefined;
347
+ valor_trafego_excedido?: number | null | undefined;
348
+ duplicacao_noturna?: boolean | null | undefined;
349
+ inicio_duplicacao_noturna?: string | null | undefined;
350
+ fim_duplicacao_noturna?: string | null | undefined;
351
+ modo_velocidade_reduzida?: string | null | undefined;
352
+ download_red_financeiro?: number | null | undefined;
353
+ upload_red_financeiro?: number | null | undefined;
354
+ modo_velocidade_red_franquia?: string | null | undefined;
355
+ download_red_franquia?: number | null | undefined;
356
+ upload_red_franquia?: number | null | undefined;
357
+ combo?: unknown[] | null | undefined;
358
+ qtd_servicos?: number | null | undefined;
359
+ }[];
360
+ total_planos?: number | null | undefined;
361
+ total_qtd_servicos?: number | null | undefined;
362
+ }, "plans.list">, import("./operation.js").OperationDefinition<{
363
+ [x: string]: unknown;
364
+ paginacao: {
365
+ [x: string]: unknown;
366
+ offset?: number | null | undefined;
367
+ limit?: number | null | undefined;
368
+ parcial?: number | null | undefined;
369
+ total: number;
370
+ };
371
+ ordens_servicos: {
372
+ [x: string]: unknown;
373
+ id: number;
374
+ contrato?: number | null | undefined;
375
+ status_id?: number | null | undefined;
376
+ status?: string | null | undefined;
377
+ tipo_id?: number | null | undefined;
378
+ data_cadastro?: string | null | undefined;
379
+ cliente?: string | null | undefined;
380
+ contrato_status?: string | null | undefined;
381
+ contrato_status_id?: number | null | undefined;
382
+ ocorrencia?: string | null | undefined;
383
+ hora_cadastro?: string | null | undefined;
384
+ data_agendamento?: string | null | undefined;
385
+ hora_agendamento?: string | null | undefined;
386
+ data_finalizacao?: string | null | undefined;
387
+ hora_finalizacao?: string | null | undefined;
388
+ tipo?: string | null | undefined;
389
+ motivo?: string | null | undefined;
390
+ pop?: string | null | undefined;
391
+ conteudo?: string | null | undefined;
392
+ responsavel?: string | null | undefined;
393
+ tecnicos_auxiliares?: unknown[] | null | undefined;
394
+ usuario?: string | null | undefined;
395
+ usuario_finalizacao?: string | null | undefined;
396
+ classificacoes?: unknown[] | null | undefined;
397
+ }[];
398
+ }, "workOrders.list">, import("./operation.js").OperationDefinition<{
399
+ [x: string]: unknown;
400
+ msg: string;
401
+ }, "services.changePlan">, import("./operation.js").OperationDefinition<{
402
+ [x: string]: unknown;
403
+ msg: string;
404
+ clientecontrato_id?: number | null | undefined;
405
+ servico_id: number;
406
+ }, "services.addTv">, import("./operation.js").OperationDefinition<{
407
+ [x: string]: unknown;
408
+ }, "services.addGeneric">, import("./operation.js").OperationDefinition<{
409
+ [x: string]: unknown;
410
+ msg: string;
411
+ clientecontrato_id?: number | null | undefined;
412
+ servico_id: number;
413
+ }, "services.removeTv">, import("./operation.js").OperationDefinition<{
414
+ [x: string]: unknown;
415
+ }, "services.removeGeneric">, import("./operation.js").OperationDefinition<import("./operations/experimental-annotations-list.js").ExperimentalAnnotationsListData, "experimental.annotations.list">, import("./operation.js").OperationDefinition<{
416
+ [x: string]: unknown;
417
+ id: number;
418
+ pop?: string | null | undefined;
419
+ }[], "catalogs.listPops">, import("./operation.js").OperationDefinition<{
420
+ [x: string]: unknown;
421
+ id: number;
422
+ descricao?: string | null | undefined;
423
+ identificador?: string | null | undefined;
424
+ endereco_ip?: string | null | undefined;
425
+ ativo?: boolean | null | undefined;
426
+ pops?: {
427
+ [x: string]: unknown;
428
+ id?: number | null | undefined;
429
+ cidade?: string | null | undefined;
430
+ uf?: string | null | undefined;
431
+ codigo_ibge?: number | null | undefined;
432
+ ativo?: boolean | null | undefined;
433
+ }[] | null | undefined;
434
+ }[], "catalogs.listNas">, import("./operation.js").OperationDefinition<{
435
+ [x: string]: unknown;
436
+ id: number;
437
+ descricao?: string | null | undefined;
438
+ codigo_banco?: string | null | undefined;
439
+ }[], "catalogs.listBillingProfiles">, import("./operation.js").OperationDefinition<{
440
+ [x: string]: unknown;
441
+ id: number;
442
+ codigo: number;
443
+ descricao?: string | null | undefined;
444
+ ativo?: boolean | null | undefined;
445
+ classificacoes?: unknown[] | null | undefined;
446
+ classificacoes_obrigatorio?: boolean | null | undefined;
447
+ setores?: unknown[] | null | undefined;
448
+ classificacoes_obrigatorio_encerramento?: boolean | null | undefined;
449
+ }[], "occurrences.listTypes">, import("./operation.js").OperationDefinition<{
450
+ [x: string]: unknown;
451
+ codigo: number;
452
+ descricao?: string | null | undefined;
453
+ }[], "occurrences.listMethods">, import("./operation.js").OperationDefinition<{
454
+ [x: string]: unknown;
455
+ id: number;
456
+ codigo: number;
457
+ descricao?: string | null | undefined;
458
+ ativo?: boolean | null | undefined;
459
+ classificacoes?: unknown[] | null | undefined;
460
+ classificacoes_obrigatorio?: boolean | null | undefined;
461
+ setores?: unknown[] | null | undefined;
462
+ }[], "workOrders.listReasons">, import("./operation.js").OperationDefinition<{
463
+ [x: string]: unknown;
464
+ id: number & import("zod").$brand<"PreRegistrationPlanId">;
465
+ tipo?: string | null | undefined;
466
+ valor?: number | null | undefined;
467
+ descricao?: string | null | undefined;
468
+ observacao?: string | null | undefined;
469
+ gateway?: {
470
+ [x: string]: unknown;
471
+ gateway_id?: number | null | undefined;
472
+ id?: number | null | undefined;
473
+ descricao?: string | null | undefined;
474
+ } | null | undefined;
475
+ }[], "preRegistrations.listPlans">, import("./operation.js").OperationDefinition<{
476
+ [x: string]: unknown;
477
+ id: number;
478
+ dia?: number | null | undefined;
479
+ }[], "preRegistrations.listDueDays">, import("./operation.js").OperationDefinition<{
480
+ [x: string]: unknown;
481
+ id: number;
482
+ nome?: string | null | undefined;
483
+ cpf?: string | null | undefined;
484
+ email?: string | null | undefined;
485
+ }[], "preRegistrations.listSellers">, import("./operation.js").OperationDefinition<{
486
+ [x: string]: unknown;
487
+ id: number;
488
+ motivo?: string | null | undefined;
489
+ }[], "contracts.listStatusReasons">, import("./operation.js").OperationDefinition<{
490
+ [x: string]: unknown;
491
+ id: number;
492
+ cliente_id: number & import("zod").$brand<"CustomerId">;
493
+ arquivo?: string | null | undefined;
494
+ descricao?: string | null | undefined;
495
+ usuario?: string | null | undefined;
496
+ }[], "documents.list">, import("./operation.js").OperationDefinition<import("./operations/coverage-check.js").CoverageCheckData, "coverage.check">, import("./operation.js").OperationDefinition<{
497
+ [x: string]: unknown;
498
+ id: number;
499
+ descricao: string;
500
+ gateway?: string | null | undefined;
501
+ }[], "coverage.listGateways">, import("./operation.js").OperationDefinition<{
502
+ [x: string]: unknown;
503
+ cliente_id: number & import("zod").$brand<"CustomerId">;
504
+ message?: string | null | undefined;
505
+ }, "crm.customers.create">, import("./operation.js").OperationDefinition<{
506
+ [x: string]: unknown;
507
+ cliente_id: number & import("zod").$brand<"CustomerId">;
508
+ message?: string | null | undefined;
509
+ novo_status: {
510
+ [x: string]: unknown;
511
+ codigo: number;
512
+ descricao?: string | null | undefined;
513
+ };
514
+ }, "crm.customers.updateStatus">, import("./operation.js").OperationDefinition<{
515
+ [x: string]: unknown;
516
+ message?: string | null | undefined;
517
+ clientecontrato: number;
518
+ cliente?: string | null | undefined;
519
+ }, "crm.contracts.create">, import("./operation.js").OperationDefinition<{
520
+ [x: string]: unknown;
521
+ message?: string | null | undefined;
522
+ clientecontrato: number;
523
+ cliente?: string | null | undefined;
524
+ }, "crm.contracts.createByCpfCnpj">, import("./operation.js").OperationDefinition<{
525
+ [x: string]: unknown;
526
+ cliente?: string | null | undefined;
527
+ cpf_cnpj?: string | null | undefined;
528
+ contratos: {
529
+ [x: string]: unknown;
530
+ cliente_contrato_id: number;
531
+ data_cadastro?: string | null | undefined;
532
+ vencimento_dia?: number | null | undefined;
533
+ pop?: string | null | undefined;
534
+ endereco?: string | null | undefined;
535
+ forma_cobranca?: string | null | undefined;
536
+ status?: string | null | undefined;
537
+ data_status?: string | null | undefined;
538
+ modo_status?: string | null | undefined;
539
+ motivo_status?: string | null | undefined;
540
+ vendedor?: string | null | undefined;
541
+ servicos?: {
542
+ [x: string]: unknown;
543
+ plano?: string | null | undefined;
544
+ login?: string | null | undefined;
545
+ contrato_tipo?: string | null | undefined;
546
+ situacao?: string | null | undefined;
547
+ aquisicao?: string | null | undefined;
548
+ }[] | null | undefined;
549
+ }[];
550
+ }, "crm.contracts.list">, import("./operation.js").OperationDefinition<{
551
+ [x: string]: unknown;
552
+ status: 1;
553
+ protocolo: string;
554
+ id: number;
555
+ contratoId?: number | null | undefined;
556
+ razaoSocial?: string | null | undefined;
557
+ cpfCnpj?: string | null | undefined;
558
+ msg?: string | null | undefined;
559
+ }, "occurrences.create">, import("./operation.js").OperationDefinition<null, "documents.add">, import("./operation.js").OperationDefinition<{
560
+ [x: string]: unknown;
561
+ paginacao: {
562
+ [x: string]: unknown;
563
+ offset?: number | null | undefined;
564
+ limit?: number | null | undefined;
565
+ parcial?: number | null | undefined;
566
+ total: number;
567
+ };
568
+ ocorrencias: {
569
+ [x: string]: unknown;
570
+ id: number;
571
+ cliente?: string | null | undefined;
572
+ contrato?: number | null | undefined;
573
+ contrato_status?: string | null | undefined;
574
+ contrato_status_id?: number | null | undefined;
575
+ pop?: string | null | undefined;
576
+ numero?: string | null | undefined;
577
+ status?: string | null | undefined;
578
+ status_id?: number | null | undefined;
579
+ data_cadastro?: string | null | undefined;
580
+ data_agendamento?: string | null | undefined;
581
+ data_finalizacao?: string | null | undefined;
582
+ tipo?: string | null | undefined;
583
+ metodo?: string | null | undefined;
584
+ conteudo?: string | null | undefined;
585
+ responsavel?: string | null | undefined;
586
+ usuario?: string | null | undefined;
587
+ usuario_finalizacao?: string | null | undefined;
588
+ protocolos_externos?: unknown[] | null | undefined;
589
+ servico?: unknown[] | null | undefined;
590
+ comentarios?: unknown[] | null | undefined;
591
+ ordens_servicos?: {
592
+ [x: string]: unknown;
593
+ id: number;
594
+ status?: string | null | undefined;
595
+ status_id?: number | null | undefined;
596
+ data_cadastro?: string | null | undefined;
597
+ data_agendamento?: string | null | undefined;
598
+ data_finalizacao?: string | null | undefined;
599
+ tipo?: string | null | undefined;
600
+ tipo_id?: number | null | undefined;
601
+ motivo?: string | null | undefined;
602
+ pop?: string | null | undefined;
603
+ conteudo?: string | null | undefined;
604
+ responsavel?: string | null | undefined;
605
+ tecnicos_auxiliares?: unknown[] | null | undefined;
606
+ usuario?: string | null | undefined;
607
+ usuario_finalizacao?: string | null | undefined;
608
+ }[] | null | undefined;
609
+ }[];
610
+ }, "occurrences.list">, import("./operation.js").OperationDefinition<{
611
+ [x: string]: unknown;
612
+ os_id: number;
613
+ os_protocolo?: string | null | undefined;
614
+ os_status?: number | null | undefined;
615
+ os_status_txt?: string | null | undefined;
616
+ os_prioridade?: number | null | undefined;
617
+ os_motivo_id?: number | null | undefined;
618
+ os_motivo_descricao?: string | null | undefined;
619
+ os_data_cadastro?: string | null | undefined;
620
+ os_data_agendamento?: string | null | undefined;
621
+ os_data_finalizacao?: string | null | undefined;
622
+ os_conteudo?: string | null | undefined;
623
+ os_observacao?: string | null | undefined;
624
+ os_anotacao?: string | null | undefined;
625
+ os_servicoprestado?: string | null | undefined;
626
+ os_setor_id?: number | null | undefined;
627
+ os_setor?: string | null | undefined;
628
+ os_tecnico_responsavel?: string | null | undefined;
629
+ os_tecnicos_auxiliares?: unknown[] | null | undefined;
630
+ os_agendamento_confirmado?: boolean | null | undefined;
631
+ os_agendamento_confirmacao_data?: string | null | undefined;
632
+ os_agendamento_confirmacao_status?: number | null | undefined;
633
+ os_agendamento_confirmacao_status_txt?: string | null | undefined;
634
+ os_close_edit?: boolean | null | undefined;
635
+ os_encerrada_impedir_estorno?: boolean | null | undefined;
636
+ os_encerrada_impedir_lancamento_avulso?: boolean | null | undefined;
637
+ os_finalizada_permite_add_imagem?: boolean | null | undefined;
638
+ os_lancamento_comodato?: boolean | null | undefined;
639
+ os_djson?: Record<string, unknown> | null | undefined;
640
+ comentarios?: unknown[] | null | undefined;
641
+ cliente_id?: (number & import("zod").$brand<"CustomerId">) | null | undefined;
642
+ cliente?: string | null | undefined;
643
+ cliente_email?: string | null | undefined;
644
+ cliente_contato?: string | null | undefined;
645
+ contrato_id?: number | null | undefined;
646
+ contrato_status?: string | null | undefined;
647
+ contrato_status_id?: number | null | undefined;
648
+ contrato_status_data?: string | null | undefined;
649
+ contrato_pop_id?: number | null | undefined;
650
+ contrato_pop?: string | null | undefined;
651
+ contrato_endereco_ll?: string | null | undefined;
652
+ endereco_id?: number | null | undefined;
653
+ endereco_logradouro?: string | null | undefined;
654
+ endereco_numero?: string | number | null | undefined;
655
+ endereco_complemento?: string | null | undefined;
656
+ endereco_bairro?: string | null | undefined;
657
+ endereco_cidade?: string | null | undefined;
658
+ endereco_uf?: string | null | undefined;
659
+ endereco_pontoreferencia?: string | null | undefined;
660
+ endereco_ll?: string | null | undefined;
661
+ plano_id?: number | null | undefined;
662
+ plano?: string | null | undefined;
663
+ plano_download?: string | null | undefined;
664
+ plano_upload?: string | null | undefined;
665
+ servico_id?: number | null | undefined;
666
+ servico_tipo?: number | null | undefined;
667
+ servico_login?: string | null | undefined;
668
+ servico_password?: string | null | undefined;
669
+ servico_online?: boolean | null | undefined;
670
+ servico_mac?: string | null | undefined;
671
+ servico_ip?: string | null | undefined;
672
+ servico_online_mac?: string | null | undefined;
673
+ servico_online_ip?: string | null | undefined;
674
+ servico_online_ipv6_pd?: unknown;
675
+ nas_ip?: string | null | undefined;
676
+ wifi_ssid?: string | null | undefined;
677
+ wifi_password?: string | null | undefined;
678
+ wifi_channel?: string | null | undefined;
679
+ wifi_ssid_5?: string | null | undefined;
680
+ wifi_password_5?: string | null | undefined;
681
+ wifi_channel_5?: string | null | undefined;
682
+ wan_user?: string | null | undefined;
683
+ wan_password?: string | null | undefined;
684
+ }, "workOrders.get">, import("./operation.js").OperationDefinition<{
685
+ [x: string]: unknown;
686
+ comentario_id?: number | null | undefined;
687
+ comentario?: string | null | undefined;
688
+ usuario?: string | null | undefined;
689
+ data_cadastro?: string | null | undefined;
690
+ checklist_id?: number | null | undefined;
691
+ checklist_descricao?: string | null | undefined;
692
+ usuario_setores?: unknown[] | null | undefined;
693
+ }[], "workOrders.listComments">, import("./operation.js").OperationDefinition<{
694
+ [x: string]: unknown;
695
+ id: number;
696
+ descricao?: string | null | undefined;
697
+ data_inicial?: string | null | undefined;
698
+ data_final?: string | null | undefined;
699
+ observacoes?: string | null | undefined;
700
+ mensagem_central?: string | null | undefined;
701
+ mensagem_ura?: string | null | undefined;
702
+ enviar_sms?: boolean | null | undefined;
703
+ ativa?: boolean | null | undefined;
704
+ severidade?: string | null | undefined;
705
+ status?: string | null | undefined;
706
+ pops?: unknown[] | null | undefined;
707
+ nas?: unknown[] | null | undefined;
708
+ aps?: unknown[] | null | undefined;
709
+ sources?: unknown[] | null | undefined;
710
+ switches?: unknown[] | null | undefined;
711
+ olts?: unknown[] | null | undefined;
712
+ oltpons?: unknown[] | null | undefined;
713
+ ctos?: unknown[] | null | undefined;
714
+ vlans?: unknown[] | null | undefined;
715
+ }[], "maintenance.list">, import("./operation.js").OperationDefinition<{
716
+ [x: string]: unknown;
717
+ viabilidade?: boolean | null | undefined;
718
+ }, "coverage.checkAddress">];
719
+ /**
720
+ * Name of every typed operation of the client, as in `SgpError.operation`. `request()` is not one:
721
+ * its `error.operation` is `"request"`, and it declares no sensitivity (see `getSensitivity`).
722
+ */
723
+ export type OperationName = (typeof shippedOperations)[number]["name"];
724
+ /**
725
+ * The secret and personal keys an operation declares, for its request (`input`) and its 2xx body
726
+ * (`output`), per item path. Use it to know what to strip; to decide what to send on, prefer an
727
+ * allowlist with `pick`: a key that is not listed is not safe, SGP adds fields without notice.
728
+ */
729
+ export declare const getSensitivity: (operation: OperationName) => OperationSensitivity;