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.
- package/CHANGELOG.md +234 -0
- package/COMPATIBILITY.md +231 -0
- package/MIGRATION.md +344 -0
- package/README.md +464 -265
- package/dist/address.d.ts +46 -0
- package/dist/annotation-selection.d.ts +32 -0
- package/dist/budget.d.ts +29 -0
- package/dist/classify.d.ts +15 -0
- package/dist/client.d.ts +938 -165
- package/dist/config.d.ts +115 -0
- package/dist/constants.d.ts +85 -0
- package/dist/document.d.ts +11 -0
- package/dist/effect.d.ts +22 -0
- package/dist/executor.d.ts +9 -0
- package/dist/exposure.d.ts +21 -0
- package/dist/guards.d.ts +2 -0
- package/dist/hooks.d.ts +16 -0
- package/dist/ids.d.ts +19 -0
- package/dist/index.d.ts +55 -49
- package/dist/index.js +3750 -1293
- package/dist/normalize.d.ts +9 -0
- package/dist/operation-sensitivity.d.ts +729 -0
- package/dist/operation.d.ts +145 -0
- package/dist/operations/catalogs-list-billing-profiles.d.ts +16 -0
- package/dist/operations/catalogs-list-nas.d.ts +25 -0
- package/dist/operations/catalogs-list-pops.d.ts +14 -0
- package/dist/operations/contracts-check-connection.d.ts +56 -0
- package/dist/operations/contracts-list-services.d.ts +103 -0
- package/dist/operations/contracts-list-status-reasons.d.ts +15 -0
- package/dist/operations/contracts-list.d.ts +52 -0
- package/dist/operations/contracts-update-status.d.ts +41 -0
- package/dist/operations/contracts-update.d.ts +39 -0
- package/dist/operations/coverage-check-address.d.ts +46 -0
- package/dist/operations/coverage-check.d.ts +43 -0
- package/dist/operations/coverage-list-gateways.d.ts +16 -0
- package/dist/operations/crm-contracts-create-by-cpf-cnpj.d.ts +97 -0
- package/dist/operations/crm-contracts-create.d.ts +221 -0
- package/dist/operations/crm-contracts-list.d.ts +50 -0
- package/dist/operations/crm-customers-create.d.ts +165 -0
- package/dist/operations/crm-customers-update-status.d.ts +41 -0
- package/dist/operations/customers-list.d.ts +104 -0
- package/dist/{endpoints/ura/lookup-customer.d.ts → operations/customers-search.d.ts} +56 -46
- package/dist/operations/documents-add.d.ts +29 -0
- package/dist/operations/documents-list.d.ts +31 -0
- package/dist/operations/experimental-annotations-list.d.ts +67 -0
- package/dist/operations/invoices-list.d.ts +148 -0
- package/dist/operations/maintenance-list.d.ts +35 -0
- package/dist/operations/occurrences-create.d.ts +125 -0
- package/dist/operations/occurrences-list-methods.d.ts +14 -0
- package/dist/operations/occurrences-list-types.d.ts +20 -0
- package/dist/operations/occurrences-list.d.ts +127 -0
- package/dist/{endpoints/ura/list-plans.d.ts → operations/plans-list.d.ts} +33 -23
- package/dist/operations/pre-registrations-create.d.ts +276 -0
- package/dist/operations/pre-registrations-list-due-days.d.ts +15 -0
- package/dist/operations/pre-registrations-list-plans.d.ts +24 -0
- package/dist/operations/pre-registrations-list-sellers.d.ts +16 -0
- package/dist/operations/services-add-generic.d.ts +52 -0
- package/dist/operations/services-add-tv.d.ts +47 -0
- package/dist/operations/services-change-plan.d.ts +40 -0
- package/dist/operations/services-remove-generic.d.ts +28 -0
- package/dist/operations/services-remove-tv.d.ts +29 -0
- package/dist/operations/work-orders-get.d.ts +99 -0
- package/dist/operations/work-orders-list-comments.d.ts +34 -0
- package/dist/operations/work-orders-list-reasons.d.ts +20 -0
- package/dist/operations/work-orders-list.d.ts +81 -0
- package/dist/path.d.ts +13 -0
- package/dist/raw-request.d.ts +26 -0
- package/dist/request.d.ts +28 -0
- package/dist/result.d.ts +113 -41
- package/dist/retry.d.ts +34 -0
- package/dist/sensitivity.d.ts +89 -4
- package/dist/tolerant.d.ts +21 -0
- package/dist/validation.d.ts +3 -0
- package/package.json +6 -3
- package/dist/endpoint.d.ts +0 -66
- package/dist/endpoints/crm/address.d.ts +0 -20
- package/dist/endpoints/crm/create-contract.d.ts +0 -109
- package/dist/endpoints/crm/create-customer.d.ts +0 -65
- package/dist/endpoints/crm/update-customer-status.d.ts +0 -43
- package/dist/endpoints/os/list-occurrence-reasons.d.ts +0 -24
- package/dist/endpoints/os/list-occurrence-types.d.ts +0 -25
- package/dist/endpoints/precadastro/list-due-days.d.ts +0 -19
- package/dist/endpoints/precadastro/list-sellers.d.ts +0 -21
- package/dist/endpoints/suporte/add-customer-document.d.ts +0 -24
- package/dist/endpoints/suporte/list-customer-documents.d.ts +0 -25
- package/dist/endpoints/ura/check-coverage.d.ts +0 -46
- package/dist/endpoints/ura/list-annotations.d.ts +0 -32
- package/dist/endpoints/ura/list-clients.d.ts +0 -58
- package/dist/endpoints/ura/list-contracts.d.ts +0 -45
- package/dist/endpoints/ura/list-invoices.d.ts +0 -107
- package/dist/endpoints/ura/list-nas.d.ts +0 -29
- package/dist/endpoints/ura/list-occurrence-methods.d.ts +0 -19
- package/dist/endpoints/ura/list-payment-carriers.d.ts +0 -20
- package/dist/endpoints/ura/list-pops.d.ts +0 -19
- package/dist/endpoints/ura/list-service-orders.d.ts +0 -64
- package/dist/endpoints/ura/open-ticket.d.ts +0 -81
- package/dist/errors.d.ts +0 -59
- package/dist/schema/parse.d.ts +0 -19
- package/dist/schema/paths.d.ts +0 -38
- package/dist/transport.d.ts +0 -65
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { WriteEndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** SGP's CRM statuses, by the `status_id` it takes. */
|
|
4
|
-
export declare const crmStatus: {
|
|
5
|
-
readonly emAnalise: 1;
|
|
6
|
-
readonly aprovado: 2;
|
|
7
|
-
readonly reprovado: 3;
|
|
8
|
-
readonly aguardandoContato: 4;
|
|
9
|
-
readonly tentandoContato: 5;
|
|
10
|
-
readonly contratoRealizadoNoSgp: 6;
|
|
11
|
-
readonly inviabilidadeTecnica: 7;
|
|
12
|
-
readonly contratoEmProspeccao: 8;
|
|
13
|
-
readonly reprovadoSpcSerasa: 9;
|
|
14
|
-
readonly analiseViabilidadeTecnica: 10;
|
|
15
|
-
};
|
|
16
|
-
/** A valid `status_id` of `POST /api/crm/cliente/{cliente_id}/status/`. */
|
|
17
|
-
export type CrmStatusId = (typeof crmStatus)[keyof typeof crmStatus];
|
|
18
|
-
/** Success body of `POST /api/crm/cliente/{cliente_id}/status/`: the customer and the status now set. */
|
|
19
|
-
export declare const updateCustomerStatusSchema: z.ZodObject<{
|
|
20
|
-
cliente_id: z.ZodNumber;
|
|
21
|
-
message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22
|
-
novo_status: z.ZodObject<{
|
|
23
|
-
codigo: z.ZodNumber;
|
|
24
|
-
descricao: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
25
|
-
}, z.core.$strip>;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
/** Key fields of `crm/cliente/{cliente_id}/status/`: required and strict; a 2xx without them is not a success. */
|
|
28
|
-
export declare const updateCustomerStatusKeyFields: readonly ["cliente_id", "novo_status.codigo"];
|
|
29
|
-
/** Normalized path of the updated customer in the response (the root object). */
|
|
30
|
-
export declare const customerStatusItemPath = "";
|
|
31
|
-
/** Keys of the response holding secrets (none in `crm/cliente/{cliente_id}/status/`). */
|
|
32
|
-
export declare const customerStatusSecretKeys: readonly [];
|
|
33
|
-
/** Keys of the response holding personal data: SGP's message carries the customer's name. */
|
|
34
|
-
export declare const customerStatusPersonalKeys: readonly ["message"];
|
|
35
|
-
/** Parsed response of `POST /api/crm/cliente/{cliente_id}/status/`. */
|
|
36
|
-
export type UpdateCustomerStatusResponse = z.output<typeof updateCustomerStatusSchema>;
|
|
37
|
-
/** Params of `POST /api/crm/cliente/{cliente_id}/status/`; `cliente_id` goes in the path. */
|
|
38
|
-
export interface UpdateCustomerStatusParams {
|
|
39
|
-
status_id: CrmStatusId;
|
|
40
|
-
motivo?: string;
|
|
41
|
-
}
|
|
42
|
-
/** Definition of `POST /api/crm/cliente/{cliente_id}/status/` (trailing slash required by the token whitelist). */
|
|
43
|
-
export declare const updateCustomerStatusDefinition: WriteEndpointDefinition<typeof updateCustomerStatusSchema>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** Response of `GET /api/os/ocorrencia/motivo/list/`: a bare array with the occurrence reasons. */
|
|
4
|
-
export declare const listOccurrenceReasonsSchema: z.ZodArray<z.ZodObject<{
|
|
5
|
-
id: z.ZodNumber;
|
|
6
|
-
codigo: z.ZodNumber;
|
|
7
|
-
descricao: z.ZodString;
|
|
8
|
-
ativo: z.ZodBoolean;
|
|
9
|
-
classificacoes: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
10
|
-
classificacoes_obrigatorio: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
-
setores: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
12
|
-
}, z.core.$strip>>;
|
|
13
|
-
/** Key fields of `os/ocorrencia/motivo/list`: required and strict; any mismatch is `SCHEMA_MISMATCH`. */
|
|
14
|
-
export declare const listOccurrenceReasonsKeyFields: readonly ["[].id", "[].codigo", "[].descricao", "[].ativo"];
|
|
15
|
-
/** Normalized path of each reason in the `os/ocorrencia/motivo/list` response (the root array). */
|
|
16
|
-
export declare const occurrenceReasonItemPath = "[]";
|
|
17
|
-
/** Keys of an occurrence reason holding secrets (none in `os/ocorrencia/motivo/list`). */
|
|
18
|
-
export declare const occurrenceReasonSecretKeys: readonly [];
|
|
19
|
-
/** Keys of an occurrence reason holding personal data (none in `os/ocorrencia/motivo/list`). */
|
|
20
|
-
export declare const occurrenceReasonPersonalKeys: readonly [];
|
|
21
|
-
/** Parsed response of `GET /api/os/ocorrencia/motivo/list/`. */
|
|
22
|
-
export type ListOccurrenceReasonsResponse = z.output<typeof listOccurrenceReasonsSchema>;
|
|
23
|
-
/** Definition of `GET /api/os/ocorrencia/motivo/list/`. */
|
|
24
|
-
export declare const listOccurrenceReasonsDefinition: EndpointDefinition<typeof listOccurrenceReasonsSchema>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** Response of `GET /api/os/ocorrencia/tipo/list/`: a bare array with the occurrence types. */
|
|
4
|
-
export declare const listOccurrenceTypesSchema: z.ZodArray<z.ZodObject<{
|
|
5
|
-
id: z.ZodNumber;
|
|
6
|
-
codigo: z.ZodNumber;
|
|
7
|
-
descricao: z.ZodString;
|
|
8
|
-
ativo: z.ZodBoolean;
|
|
9
|
-
classificacoes: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
10
|
-
classificacoes_obrigatorio: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
-
setores: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
12
|
-
classificacoes_obrigatorio_encerramento: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
/** Key fields of `os/ocorrencia/tipo/list`: required and strict; any mismatch is `SCHEMA_MISMATCH`. */
|
|
15
|
-
export declare const listOccurrenceTypesKeyFields: readonly ["[].id", "[].codigo", "[].descricao", "[].ativo"];
|
|
16
|
-
/** Normalized path of each type in the `os/ocorrencia/tipo/list` response (the root array). */
|
|
17
|
-
export declare const occurrenceTypeItemPath = "[]";
|
|
18
|
-
/** Keys of an occurrence type holding secrets (none in `os/ocorrencia/tipo/list`). */
|
|
19
|
-
export declare const occurrenceTypeSecretKeys: readonly [];
|
|
20
|
-
/** Keys of an occurrence type holding personal data (none in `os/ocorrencia/tipo/list`). */
|
|
21
|
-
export declare const occurrenceTypePersonalKeys: readonly [];
|
|
22
|
-
/** Parsed response of `GET /api/os/ocorrencia/tipo/list/`. */
|
|
23
|
-
export type ListOccurrenceTypesResponse = z.output<typeof listOccurrenceTypesSchema>;
|
|
24
|
-
/** Definition of `GET /api/os/ocorrencia/tipo/list/`. */
|
|
25
|
-
export declare const listOccurrenceTypesDefinition: EndpointDefinition<typeof listOccurrenceTypesSchema>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** Response of `POST /api/precadastro/vencimento/list`: a bare array with the due days. */
|
|
4
|
-
export declare const listDueDaysSchema: z.ZodArray<z.ZodObject<{
|
|
5
|
-
id: z.ZodNumber;
|
|
6
|
-
dia: z.ZodNumber;
|
|
7
|
-
}, z.core.$strip>>;
|
|
8
|
-
/** Key fields of `precadastro/vencimento/list`: required and strict; any mismatch is `SCHEMA_MISMATCH`. */
|
|
9
|
-
export declare const listDueDaysKeyFields: readonly ["[].id", "[].dia"];
|
|
10
|
-
/** Normalized path of each due day in the `precadastro/vencimento/list` response (the root array). */
|
|
11
|
-
export declare const dueDayItemPath = "[]";
|
|
12
|
-
/** Keys of a due day holding secrets (none in `precadastro/vencimento/list`). */
|
|
13
|
-
export declare const dueDaySecretKeys: readonly [];
|
|
14
|
-
/** Keys of a due day holding personal data (none in `precadastro/vencimento/list`). */
|
|
15
|
-
export declare const dueDayPersonalKeys: readonly [];
|
|
16
|
-
/** Parsed response of `POST /api/precadastro/vencimento/list`. */
|
|
17
|
-
export type ListDueDaysResponse = z.output<typeof listDueDaysSchema>;
|
|
18
|
-
/** Definition of `POST /api/precadastro/vencimento/list` (no trailing slash). */
|
|
19
|
-
export declare const listDueDaysDefinition: EndpointDefinition<typeof listDueDaysSchema>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** Response of `POST /api/precadastro/vendedor/list`: a bare array with the sellers. */
|
|
4
|
-
export declare const listSellersSchema: z.ZodArray<z.ZodObject<{
|
|
5
|
-
id: z.ZodNumber;
|
|
6
|
-
nome: z.ZodString;
|
|
7
|
-
cpf: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
-
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
|
-
}, z.core.$strip>>;
|
|
10
|
-
/** Key fields of `precadastro/vendedor/list`: required and strict; any mismatch is `SCHEMA_MISMATCH`. */
|
|
11
|
-
export declare const listSellersKeyFields: readonly ["[].id", "[].nome"];
|
|
12
|
-
/** Normalized path of each seller in the `precadastro/vendedor/list` response (the root array). */
|
|
13
|
-
export declare const sellerItemPath = "[]";
|
|
14
|
-
/** Keys of a seller holding secrets (none in `precadastro/vendedor/list`). */
|
|
15
|
-
export declare const sellerSecretKeys: readonly [];
|
|
16
|
-
/** Keys of a seller holding personal data: sellers are employees, so name, CPF and e-mail are personal. */
|
|
17
|
-
export declare const sellerPersonalKeys: readonly ["nome", "cpf", "email"];
|
|
18
|
-
/** Parsed response of `POST /api/precadastro/vendedor/list`. */
|
|
19
|
-
export type ListSellersResponse = z.output<typeof listSellersSchema>;
|
|
20
|
-
/** Definition of `POST /api/precadastro/vendedor/list` (no trailing slash). */
|
|
21
|
-
export declare const listSellersDefinition: EndpointDefinition<typeof listSellersSchema>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { WriteEndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/**
|
|
4
|
-
* Success body of `PUT /api/suporte/cliente/{cliente_id}/documento/add/`: none. SGP answers 200 with
|
|
5
|
-
* an empty body, which the transport yields as `null`; anything else is not a confirmed success.
|
|
6
|
-
*/
|
|
7
|
-
export declare const addCustomerDocumentSchema: z.ZodNull;
|
|
8
|
-
/** Key fields of `suporte/cliente/{cliente_id}/documento/add/`: none, the success body is empty. */
|
|
9
|
-
export declare const addCustomerDocumentKeyFields: readonly [];
|
|
10
|
-
/** Normalized path of the success body in the response (the root: it is empty). */
|
|
11
|
-
export declare const customerDocumentAddedItemPath = "";
|
|
12
|
-
/** Keys of the response holding secrets (none: the response is empty). */
|
|
13
|
-
export declare const customerDocumentAddedSecretKeys: readonly [];
|
|
14
|
-
/** Keys of the response holding personal data (none: the response is empty). */
|
|
15
|
-
export declare const customerDocumentAddedPersonalKeys: readonly [];
|
|
16
|
-
/** Parsed response of `PUT /api/suporte/cliente/{cliente_id}/documento/add/`: always `null`. */
|
|
17
|
-
export type AddCustomerDocumentResponse = z.output<typeof addCustomerDocumentSchema>;
|
|
18
|
-
/** Params of `PUT /api/suporte/cliente/{cliente_id}/documento/add/`; `cliente_id` goes in the path. */
|
|
19
|
-
export interface AddCustomerDocumentParams {
|
|
20
|
-
/** Description of the document; personal data when it names the customer. */
|
|
21
|
-
descricao?: string;
|
|
22
|
-
}
|
|
23
|
-
/** Definition of `PUT /api/suporte/cliente/{cliente_id}/documento/add/` (trailing slash required by the token whitelist). */
|
|
24
|
-
export declare const addCustomerDocumentDefinition: WriteEndpointDefinition<typeof addCustomerDocumentSchema>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** Response of `GET /api/suporte/cliente/{cliente_id}/documento/list/`: a bare array with the customer's documents. */
|
|
4
|
-
export declare const listCustomerDocumentsSchema: z.ZodArray<z.ZodObject<{
|
|
5
|
-
id: z.ZodNumber;
|
|
6
|
-
cliente_id: z.ZodNumber;
|
|
7
|
-
arquivo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
-
descricao: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
|
-
usuario: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
10
|
-
}, z.core.$strip>>;
|
|
11
|
-
/** Key fields of `suporte/cliente/{cliente_id}/documento/list/`: required and strict; any mismatch is `SCHEMA_MISMATCH`. */
|
|
12
|
-
export declare const listCustomerDocumentsKeyFields: readonly ["[].id", "[].cliente_id"];
|
|
13
|
-
/** Normalized path of each document in the response (the root array). */
|
|
14
|
-
export declare const customerDocumentItemPath = "[]";
|
|
15
|
-
/** Keys of a document holding secrets (none in `suporte/cliente/{cliente_id}/documento/list/`). */
|
|
16
|
-
export declare const customerDocumentSecretKeys: readonly [];
|
|
17
|
-
/** Keys of a document holding personal data: the file (a customer's document), its description and the operator. */
|
|
18
|
-
export declare const customerDocumentPersonalKeys: readonly ["arquivo", "descricao", "usuario"];
|
|
19
|
-
/** Parsed response of `GET /api/suporte/cliente/{cliente_id}/documento/list/`. */
|
|
20
|
-
export type ListCustomerDocumentsResponse = z.output<typeof listCustomerDocumentsSchema>;
|
|
21
|
-
/**
|
|
22
|
-
* Definition of `GET /api/suporte/cliente/{cliente_id}/documento/list/` (trailing slash required by
|
|
23
|
-
* the token whitelist). Not in the `endpointRegistry`: the route needs a customer ID in its path.
|
|
24
|
-
*/
|
|
25
|
-
export declare const listCustomerDocumentsDefinition: EndpointDefinition<typeof listCustomerDocumentsSchema>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/**
|
|
4
|
-
* Response of `GET /api/ura/viabilidadeinstalacao`: an array whose object is keyed by the
|
|
5
|
-
* gateway's `descricao` (data-defined: `"SGPMaps"`, `"Geogrid"`), holding either the CTOs within
|
|
6
|
-
* the radius (`lat`, `lng`, `distancia` in meters, `nome`, and `id` on Geogrid) or the message
|
|
7
|
-
* `"Localização inviável"` when there are none.
|
|
8
|
-
*
|
|
9
|
-
* `lat`, `lng` and `distancia` are always numbers: Geogrid sends them as numeric strings and the
|
|
10
|
-
* schema converts them, so both gateways look the same to the consumer. `id` is always a string:
|
|
11
|
-
* a numeric id is converted.
|
|
12
|
-
*
|
|
13
|
-
* A gateway entry that is neither CTOs nor a message (for example a CTO with a non-numeric `lat`)
|
|
14
|
-
* is a malformed answer: the result is `SCHEMA_MISMATCH`, never a success without that entry.
|
|
15
|
-
*/
|
|
16
|
-
export declare const checkCoverageSchema: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
17
|
-
lat: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
|
|
18
|
-
lng: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
|
|
19
|
-
distancia: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
|
|
20
|
-
id: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>>>;
|
|
21
|
-
nome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22
|
-
}, z.core.$strip>>, z.ZodString]>>>;
|
|
23
|
-
/**
|
|
24
|
-
* Key fields of `ura/viabilidadeinstalacao`: every gateway entry (`*` is its data-defined name),
|
|
25
|
-
* so a malformed gateway answer is `SCHEMA_MISMATCH`.
|
|
26
|
-
*/
|
|
27
|
-
export declare const checkCoverageKeyFields: readonly ["[].*"];
|
|
28
|
-
/** Normalized path of each gateway answer in the `ura/viabilidadeinstalacao` response (the root array). */
|
|
29
|
-
export declare const coverageItemPath = "[]";
|
|
30
|
-
/** Keys of a gateway answer holding secrets (none in `ura/viabilidadeinstalacao`). */
|
|
31
|
-
export declare const coverageSecretKeys: readonly [];
|
|
32
|
-
/** Keys of a gateway answer holding personal data (none in `ura/viabilidadeinstalacao`). */
|
|
33
|
-
export declare const coveragePersonalKeys: readonly [];
|
|
34
|
-
/** Query parameters of `GET /api/ura/viabilidadeinstalacao` (besides credentials); all required. */
|
|
35
|
-
export interface CheckCoverageParams {
|
|
36
|
-
/** ID of the map gateway, from `/api/ura/listgatewaymapa`. */
|
|
37
|
-
gateway: number;
|
|
38
|
-
/** Search radius in meters. */
|
|
39
|
-
raio: number;
|
|
40
|
-
/** Coordinate to check, `"lat,lng"`, e.g. `"-23.55,-46.63"`. */
|
|
41
|
-
coordenada: string;
|
|
42
|
-
}
|
|
43
|
-
/** Parsed response of `GET /api/ura/viabilidadeinstalacao`. */
|
|
44
|
-
export type CheckCoverageResponse = z.output<typeof checkCoverageSchema>;
|
|
45
|
-
/** Definition of `GET /api/ura/viabilidadeinstalacao`. */
|
|
46
|
-
export declare const checkCoverageDefinition: EndpointDefinition<typeof checkCoverageSchema>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { SgpResult } from "../../result.js";
|
|
3
|
-
import { type SgpClientConfig } from "../../transport.js";
|
|
4
|
-
/** Parsed, locally selected annotations; unknown fields are stripped. */
|
|
5
|
-
export declare const listAnnotationsSchema: z.ZodArray<z.ZodObject<{
|
|
6
|
-
id: z.ZodNumber;
|
|
7
|
-
cliente: z.ZodNumber;
|
|
8
|
-
clientecontrato: z.ZodNullable<z.ZodNumber>;
|
|
9
|
-
anotacao: z.ZodString;
|
|
10
|
-
usuario: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
11
|
-
tipo: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
-
alerta_modo: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
13
|
-
data_cadastro: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
|
-
data_alteracao: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15
|
-
}, z.core.$strip>>;
|
|
16
|
-
/** Required strict fields of each selected annotation. */
|
|
17
|
-
export declare const listAnnotationsKeyFields: readonly ["[].id", "[].cliente", "[].clientecontrato", "[].anotacao"];
|
|
18
|
-
/** Normalized path of each annotation in the root array. */
|
|
19
|
-
export declare const annotationItemPath = "[]";
|
|
20
|
-
/** No declared credential fields; free text can still contain sensitive content. */
|
|
21
|
-
export declare const annotationSecretKeys: readonly [];
|
|
22
|
-
/** Free text and staff identity must be omitted before logging or forwarding. */
|
|
23
|
-
export declare const annotationPersonalKeys: readonly ["anotacao", "usuario"];
|
|
24
|
-
/** At least one positive safe-integer filter is required; both filters mean AND. */
|
|
25
|
-
export interface ListAnnotationsParams {
|
|
26
|
-
cliente_id?: number;
|
|
27
|
-
contrato_id?: number;
|
|
28
|
-
}
|
|
29
|
-
/** Selected notes present in one SGP response, not a guarantee of source completeness. */
|
|
30
|
-
export type ListAnnotationsResponse = z.output<typeof listAnnotationsSchema>;
|
|
31
|
-
/** Special read: never add to the generic filterless probe registry. */
|
|
32
|
-
export declare const listAnnotations: (config: SgpClientConfig, params: ListAnnotationsParams) => Promise<SgpResult<ListAnnotationsResponse>>;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** Response of `POST /api/ura/clientes/`: one page of clients with their address and contacts. */
|
|
4
|
-
export declare const listClientsSchema: z.ZodObject<{
|
|
5
|
-
paginacao: z.ZodObject<{
|
|
6
|
-
offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
7
|
-
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
8
|
-
parcial: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
9
|
-
total: z.ZodNumber;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
clientes: z.ZodArray<z.ZodObject<{
|
|
12
|
-
id: z.ZodNumber;
|
|
13
|
-
nome: z.ZodString;
|
|
14
|
-
tipo: z.ZodString;
|
|
15
|
-
cpfcnpj: z.ZodString;
|
|
16
|
-
sexo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
|
-
dataCadastro: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
-
endereco: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
19
|
-
logradouro: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
|
-
numero: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
21
|
-
bairro: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22
|
-
cidade: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
-
uf: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
-
cep: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
25
|
-
complemento: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
|
-
latitude: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
27
|
-
longitude: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
-
}, z.core.$strip>>>;
|
|
29
|
-
contratos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
30
|
-
titulos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
31
|
-
contatos: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
32
|
-
telefones: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
33
|
-
celulares: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
34
|
-
emails: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
35
|
-
outros: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
36
|
-
}, z.core.$strip>>>;
|
|
37
|
-
}, z.core.$strip>>;
|
|
38
|
-
}, z.core.$strip>;
|
|
39
|
-
/** Key fields of `ura/clientes`: required and strict; any mismatch is `SCHEMA_MISMATCH`. */
|
|
40
|
-
export declare const listClientsKeyFields: readonly ["paginacao.total", "clientes", "clientes[].id", "clientes[].nome", "clientes[].cpfcnpj", "clientes[].tipo"];
|
|
41
|
-
/** Normalized path of each client item in the `ura/clientes` response. */
|
|
42
|
-
export declare const clientItemPath = "clientes[]";
|
|
43
|
-
/** Keys of a client item holding secrets (none in `ura/clientes`). */
|
|
44
|
-
export declare const clientSecretKeys: readonly [];
|
|
45
|
-
/** Keys of a client item holding personal data. */
|
|
46
|
-
export declare const clientPersonalKeys: readonly ["nome", "cpfcnpj", "sexo", "endereco", "contatos"];
|
|
47
|
-
/** Body parameters of `POST /api/ura/clientes/` (besides credentials); all optional filters and paging. */
|
|
48
|
-
export interface ListClientsParams {
|
|
49
|
-
offset?: number;
|
|
50
|
-
limit?: number;
|
|
51
|
-
cliente_id?: number;
|
|
52
|
-
cpfcnpj?: string;
|
|
53
|
-
cliente_nome?: string;
|
|
54
|
-
}
|
|
55
|
-
/** Parsed response of `POST /api/ura/clientes/`. */
|
|
56
|
-
export type ListClientsResponse = z.output<typeof listClientsSchema>;
|
|
57
|
-
/** Definition of `POST /api/ura/clientes/`. */
|
|
58
|
-
export declare const listClientsDefinition: EndpointDefinition<typeof listClientsSchema>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** Response of `POST /api/ura/listacontrato/`: a bare array with one summary per contract. */
|
|
4
|
-
export declare const listContractsSchema: z.ZodArray<z.ZodObject<{
|
|
5
|
-
id_contrato: z.ZodNumber;
|
|
6
|
-
id_cliente: z.ZodNumber;
|
|
7
|
-
status: z.ZodString;
|
|
8
|
-
pop_id: z.ZodNumber;
|
|
9
|
-
nome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
10
|
-
cpfcnpj: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
-
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
|
-
telefone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
-
data_status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
|
-
data_cadastro: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15
|
-
motivo_status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
/** Key fields of `ura/listacontrato`: required and strict; any mismatch is `SCHEMA_MISMATCH`. */
|
|
18
|
-
export declare const listContractsKeyFields: readonly ["[].id_contrato", "[].id_cliente", "[].status", "[].pop_id"];
|
|
19
|
-
/** Normalized path of each contract item in the `ura/listacontrato` response (the root array). */
|
|
20
|
-
export declare const contractSummaryItemPath = "[]";
|
|
21
|
-
/** Keys of a contract summary holding secrets (none in `ura/listacontrato`). */
|
|
22
|
-
export declare const contractSummarySecretKeys: readonly [];
|
|
23
|
-
/** Keys of a contract summary holding personal data. */
|
|
24
|
-
export declare const contractSummaryPersonalKeys: readonly ["nome", "cpfcnpj", "email", "telefone", "motivo_status"];
|
|
25
|
-
/**
|
|
26
|
-
* Body parameters of `POST /api/ura/listacontrato/` (besides credentials); all optional filters.
|
|
27
|
-
*
|
|
28
|
-
* Without any filter the response may carry the whole contract base.
|
|
29
|
-
*/
|
|
30
|
-
export interface ListContractsParams {
|
|
31
|
-
/** Contract ID. */
|
|
32
|
-
contrato?: number;
|
|
33
|
-
/** ID of the plan linked to the contract. */
|
|
34
|
-
plano?: number;
|
|
35
|
-
/** Person type (see the public SGP documentation for the values). */
|
|
36
|
-
tipo?: string;
|
|
37
|
-
/** Contract status ID (see the public SGP documentation for the values). */
|
|
38
|
-
status?: number;
|
|
39
|
-
/** Ask SGP to include the address; address fields are not transcribed yet, so the schema drops them. */
|
|
40
|
-
exibir_endereco?: boolean;
|
|
41
|
-
}
|
|
42
|
-
/** Parsed response of `POST /api/ura/listacontrato/`. */
|
|
43
|
-
export type ListContractsResponse = z.output<typeof listContractsSchema>;
|
|
44
|
-
/** Definition of `POST /api/ura/listacontrato/`. */
|
|
45
|
-
export declare const listContractsDefinition: EndpointDefinition<typeof listContractsSchema>;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** Response of `POST /api/ura/titulos/`: one page of invoices (titulos). */
|
|
4
|
-
export declare const listInvoicesSchema: z.ZodObject<{
|
|
5
|
-
paginacao: z.ZodObject<{
|
|
6
|
-
offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
7
|
-
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
8
|
-
parcial: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
9
|
-
total: z.ZodNumber;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
titulos: z.ZodArray<z.ZodObject<{
|
|
12
|
-
id: z.ZodNumber;
|
|
13
|
-
status: z.ZodString;
|
|
14
|
-
valor: z.ZodNumber;
|
|
15
|
-
dataVencimento: z.ZodString;
|
|
16
|
-
clienteNome: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
|
-
clienteCpfcnpj: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
-
clienteContrato: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
|
-
portador: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
|
-
numeroDocumento: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
21
|
-
nossoNumero: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22
|
-
link: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
-
link_cobranca: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
-
valorDesconto: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
25
|
-
valorCorrigido: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
26
|
-
valorPago: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
27
|
-
valorPagoParcial: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
28
|
-
codigoBarras: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
|
-
linhaDigitavel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
30
|
-
codigoPix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
-
dataEmissao: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
-
dataPagamento: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
-
dataCancelamento: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
-
demonstrativo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
35
|
-
acordoPagamento: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
36
|
-
acordados: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
37
|
-
cobrados: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
38
|
-
}, z.core.$strip>>>;
|
|
39
|
-
formaPagamento: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
40
|
-
usuario_baixa: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
|
-
}, z.core.$strip>>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
/** Key fields of `ura/titulos`: required and strict; any mismatch is `SCHEMA_MISMATCH`. */
|
|
44
|
-
export declare const listInvoicesKeyFields: readonly ["paginacao.total", "titulos", "titulos[].id", "titulos[].status", "titulos[].valor", "titulos[].dataVencimento"];
|
|
45
|
-
/** Normalized path of each invoice in the `ura/titulos` response. */
|
|
46
|
-
export declare const invoiceItemPath = "titulos[]";
|
|
47
|
-
/** Keys of an invoice holding secrets (none in `ura/titulos`). */
|
|
48
|
-
export declare const invoiceSecretKeys: readonly [];
|
|
49
|
-
/**
|
|
50
|
-
* Keys of an invoice holding personal data: customer name and CPF/CNPJ, the statement text, the
|
|
51
|
-
* payment links and the PIX code.
|
|
52
|
-
*
|
|
53
|
-
* `link` and `link_cobranca` open the boleto, which prints the payer's name, CPF/CNPJ and address,
|
|
54
|
-
* and a dynamic PIX code may resolve to the debtor. `codigoBarras`, `linhaDigitavel`, `nossoNumero`
|
|
55
|
-
* and `usuario_baixa` are deliberately not classified.
|
|
56
|
-
*/
|
|
57
|
-
export declare const invoicePersonalKeys: readonly ["clienteNome", "clienteCpfcnpj", "demonstrativo", "link", "link_cobranca", "codigoPix"];
|
|
58
|
-
/**
|
|
59
|
-
* Body parameters of `POST /api/ura/titulos/` (besides credentials); all optional filters, paging
|
|
60
|
-
* and ordering, with the names and choices of SGP's public Postman collection.
|
|
61
|
-
*/
|
|
62
|
-
export interface ListInvoicesParams {
|
|
63
|
-
/** Offset of the query; SGP starts at 0. */
|
|
64
|
-
offset?: number;
|
|
65
|
-
/** Page size; SGP documents a maximum of 250. */
|
|
66
|
-
limit?: number;
|
|
67
|
-
/** Invoice (titulo) ID. */
|
|
68
|
-
titulo_id?: number;
|
|
69
|
-
/** ID of the client linked to the invoices. */
|
|
70
|
-
cliente_id?: number;
|
|
71
|
-
/** CPF or CNPJ of the client linked to the invoices. */
|
|
72
|
-
cpfcnpj?: string;
|
|
73
|
-
/** ID of the service contract linked to the invoices. */
|
|
74
|
-
contrato?: number;
|
|
75
|
-
/** Invoice status filter. */
|
|
76
|
-
status?: "abertos" | "pagos" | "cancelados";
|
|
77
|
-
/** ID of the payment carrier (portador) that generated the invoices. */
|
|
78
|
-
portador?: number;
|
|
79
|
-
/** Field the invoices are ordered by. */
|
|
80
|
-
ordenar?: "data_documento" | "data_vencimento" | "data_pagamento";
|
|
81
|
-
/** Ascending or descending order. */
|
|
82
|
-
ordenar_ordem?: "asc" | "desc";
|
|
83
|
-
/** CNPJ of the company that issued the invoices; several allowed, separated by comma. */
|
|
84
|
-
empresa_cnpj?: string;
|
|
85
|
-
/** Person type linked to the invoices: F (individual), J (company), E (foreign individual), EJ (foreign company). */
|
|
86
|
-
tipo_pessoa?: "F" | "J" | "E" | "EJ";
|
|
87
|
-
/** Initial due date, `AAAA-MM-DD`; required when `data_vencimento_fim` is sent. */
|
|
88
|
-
data_vencimento_inicio?: string;
|
|
89
|
-
/** Final due date, `AAAA-MM-DD`. */
|
|
90
|
-
data_vencimento_fim?: string;
|
|
91
|
-
/** Initial payment date, `AAAA-MM-DD`; required when `data_pagamento_fim` is sent. */
|
|
92
|
-
data_pagamento_inicio?: string;
|
|
93
|
-
/** Final payment date, `AAAA-MM-DD`. */
|
|
94
|
-
data_pagamento_fim?: string;
|
|
95
|
-
/** Initial cancellation date, `AAAA-MM-DD`; alone, matches invoices cancelled on that day. */
|
|
96
|
-
data_cancelamento_inicio?: string;
|
|
97
|
-
/** Final cancellation date, `AAAA-MM-DD`; use with the initial one. */
|
|
98
|
-
data_cancelamento_fim?: string;
|
|
99
|
-
/** Initial date on which payment-agreement invoices were generated, `AAAA-MM-DD`; alone, matches that day. */
|
|
100
|
-
data_acordo_inicio?: string;
|
|
101
|
-
/** Final date on which payment-agreement invoices were generated, `AAAA-MM-DD`. */
|
|
102
|
-
data_acordo_fim?: string;
|
|
103
|
-
}
|
|
104
|
-
/** Parsed response of `POST /api/ura/titulos/`. */
|
|
105
|
-
export type ListInvoicesResponse = z.output<typeof listInvoicesSchema>;
|
|
106
|
-
/** Definition of `POST /api/ura/titulos/`. */
|
|
107
|
-
export declare const listInvoicesDefinition: EndpointDefinition<typeof listInvoicesSchema>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** Response of `POST /api/ura/nas/list/`: a bare array with the NAS (network access servers) and the POPs each serves. */
|
|
4
|
-
export declare const listNasSchema: z.ZodArray<z.ZodObject<{
|
|
5
|
-
id: z.ZodNumber;
|
|
6
|
-
descricao: z.ZodString;
|
|
7
|
-
identificador: z.ZodString;
|
|
8
|
-
endereco_ip: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
|
-
ativo: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
10
|
-
pops: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
-
id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
-
cidade: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
-
uf: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
|
-
codigo_ibge: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
15
|
-
ativo: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
16
|
-
}, z.core.$strip>>>>;
|
|
17
|
-
}, z.core.$strip>>;
|
|
18
|
-
/** Key fields of `ura/nas/list`: required and strict; any mismatch is `SCHEMA_MISMATCH`. */
|
|
19
|
-
export declare const listNasKeyFields: readonly ["[].id", "[].descricao", "[].identificador"];
|
|
20
|
-
/** Normalized path of each NAS in the `ura/nas/list` response (the root array). */
|
|
21
|
-
export declare const nasItemPath = "[]";
|
|
22
|
-
/** Keys of a NAS holding secrets: its IP address, which is network infrastructure. */
|
|
23
|
-
export declare const nasSecretKeys: readonly ["endereco_ip"];
|
|
24
|
-
/** Keys of a NAS holding personal data (none in `ura/nas/list`). */
|
|
25
|
-
export declare const nasPersonalKeys: readonly [];
|
|
26
|
-
/** Parsed response of `POST /api/ura/nas/list/`. */
|
|
27
|
-
export type ListNasResponse = z.output<typeof listNasSchema>;
|
|
28
|
-
/** Definition of `POST /api/ura/nas/list/`. */
|
|
29
|
-
export declare const listNasDefinition: EndpointDefinition<typeof listNasSchema>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** Response of `GET /api/ura/ocorrencia/metodo/list/`: a bare array with the occurrence methods. */
|
|
4
|
-
export declare const listOccurrenceMethodsSchema: z.ZodArray<z.ZodObject<{
|
|
5
|
-
codigo: z.ZodNumber;
|
|
6
|
-
descricao: z.ZodString;
|
|
7
|
-
}, z.core.$strip>>;
|
|
8
|
-
/** Key fields of `ura/ocorrencia/metodo/list`: required and strict; any mismatch is `SCHEMA_MISMATCH`. */
|
|
9
|
-
export declare const listOccurrenceMethodsKeyFields: readonly ["[].codigo", "[].descricao"];
|
|
10
|
-
/** Normalized path of each method in the `ura/ocorrencia/metodo/list` response (the root array). */
|
|
11
|
-
export declare const occurrenceMethodItemPath = "[]";
|
|
12
|
-
/** Keys of an occurrence method holding secrets (none in `ura/ocorrencia/metodo/list`). */
|
|
13
|
-
export declare const occurrenceMethodSecretKeys: readonly [];
|
|
14
|
-
/** Keys of an occurrence method holding personal data (none in `ura/ocorrencia/metodo/list`). */
|
|
15
|
-
export declare const occurrenceMethodPersonalKeys: readonly [];
|
|
16
|
-
/** Parsed response of `GET /api/ura/ocorrencia/metodo/list/`. */
|
|
17
|
-
export type ListOccurrenceMethodsResponse = z.output<typeof listOccurrenceMethodsSchema>;
|
|
18
|
-
/** Definition of `GET /api/ura/ocorrencia/metodo/list/`. */
|
|
19
|
-
export declare const listOccurrenceMethodsDefinition: EndpointDefinition<typeof listOccurrenceMethodsSchema>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** Response of `GET /api/ura/portador/`: a bare array with the payment carriers (portadores). */
|
|
4
|
-
export declare const listPaymentCarriersSchema: z.ZodArray<z.ZodObject<{
|
|
5
|
-
id: z.ZodNumber;
|
|
6
|
-
descricao: z.ZodString;
|
|
7
|
-
codigo_banco: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
-
}, z.core.$strip>>;
|
|
9
|
-
/** Key fields of `ura/portador`: required and strict; any mismatch is `SCHEMA_MISMATCH`. */
|
|
10
|
-
export declare const listPaymentCarriersKeyFields: readonly ["[].id", "[].descricao"];
|
|
11
|
-
/** Normalized path of each carrier in the `ura/portador` response (the root array). */
|
|
12
|
-
export declare const paymentCarrierItemPath = "[]";
|
|
13
|
-
/** Keys of a payment carrier holding secrets (none in `ura/portador`). */
|
|
14
|
-
export declare const paymentCarrierSecretKeys: readonly [];
|
|
15
|
-
/** Keys of a payment carrier holding personal data (none in `ura/portador`). */
|
|
16
|
-
export declare const paymentCarrierPersonalKeys: readonly [];
|
|
17
|
-
/** Parsed response of `GET /api/ura/portador/`. */
|
|
18
|
-
export type ListPaymentCarriersResponse = z.output<typeof listPaymentCarriersSchema>;
|
|
19
|
-
/** Definition of `GET /api/ura/portador/`. */
|
|
20
|
-
export declare const listPaymentCarriersDefinition: EndpointDefinition<typeof listPaymentCarriersSchema>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { EndpointDefinition } from "../../endpoint.js";
|
|
3
|
-
/** Response of `POST /api/ura/pops/`: a bare array with the POPs (points of presence). */
|
|
4
|
-
export declare const listPopsSchema: z.ZodArray<z.ZodObject<{
|
|
5
|
-
id: z.ZodNumber;
|
|
6
|
-
pop: z.ZodString;
|
|
7
|
-
}, z.core.$strip>>;
|
|
8
|
-
/** Key fields of `ura/pops`: required and strict; any mismatch is `SCHEMA_MISMATCH`. */
|
|
9
|
-
export declare const listPopsKeyFields: readonly ["[].id", "[].pop"];
|
|
10
|
-
/** Normalized path of each POP in the `ura/pops` response (the root array). */
|
|
11
|
-
export declare const popItemPath = "[]";
|
|
12
|
-
/** Keys of a POP holding secrets (none in `ura/pops`). */
|
|
13
|
-
export declare const popSecretKeys: readonly [];
|
|
14
|
-
/** Keys of a POP holding personal data (none in `ura/pops`). */
|
|
15
|
-
export declare const popPersonalKeys: readonly [];
|
|
16
|
-
/** Parsed response of `POST /api/ura/pops/`. */
|
|
17
|
-
export type ListPopsResponse = z.output<typeof listPopsSchema>;
|
|
18
|
-
/** Definition of `POST /api/ura/pops/`. */
|
|
19
|
-
export declare const listPopsDefinition: EndpointDefinition<typeof listPopsSchema>;
|