7vsdk-pessoas 1.0.7 → 1.0.12
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/clients/base/CrudClientBase.d.ts +13 -0
- package/dist/clients/base/CrudClientBase.js +68 -0
- package/dist/clients/base/index.d.ts +1 -0
- package/dist/clients/base/index.js +17 -0
- package/dist/clients/enderecos/EnderecoBairroClient.d.ts +10 -0
- package/dist/clients/enderecos/EnderecoBairroClient.js +15 -0
- package/dist/clients/enderecos/EnderecoCidadeClient.d.ts +10 -0
- package/dist/clients/enderecos/EnderecoCidadeClient.js +15 -0
- package/dist/clients/enderecos/EnderecoSdk.d.ts +10 -0
- package/dist/clients/enderecos/EnderecoSdk.js +38 -0
- package/dist/clients/enderecos/UfClient.d.ts +5 -0
- package/dist/clients/enderecos/UfClient.js +10 -0
- package/dist/clients/enderecos/index.d.ts +1 -0
- package/dist/clients/enderecos/index.js +17 -0
- package/dist/clients/index.d.ts +3 -0
- package/dist/clients/index.js +19 -0
- package/dist/clients/pessoas/PessoaClient.d.ts +21 -0
- package/dist/clients/pessoas/PessoaClient.js +30 -0
- package/dist/clients/pessoas/PessoaCnpjClient.d.ts +7 -0
- package/dist/clients/pessoas/PessoaCnpjClient.js +10 -0
- package/dist/clients/pessoas/PessoaCpfClient.d.ts +7 -0
- package/dist/clients/pessoas/PessoaCpfClient.js +10 -0
- package/dist/clients/pessoas/PessoaEmailClient.d.ts +7 -0
- package/dist/clients/pessoas/PessoaEmailClient.js +10 -0
- package/dist/clients/pessoas/PessoaEnderecoClient.d.ts +7 -0
- package/dist/clients/pessoas/PessoaEnderecoClient.js +10 -0
- package/dist/clients/pessoas/PessoaNascimentoClient.d.ts +7 -0
- package/dist/clients/pessoas/PessoaNascimentoClient.js +10 -0
- package/dist/clients/pessoas/PessoaNecessidadeEspecial.d.ts +7 -0
- package/dist/clients/pessoas/PessoaNecessidadeEspecial.js +10 -0
- package/dist/clients/pessoas/PessoaProcedimentoClient.d.ts +7 -0
- package/dist/clients/pessoas/PessoaProcedimentoClient.js +10 -0
- package/dist/clients/pessoas/PessoaRelacaoClient.d.ts +7 -0
- package/dist/clients/pessoas/PessoaRelacaoClient.js +10 -0
- package/dist/clients/pessoas/PessoaRelacaoGrupoClient.d.ts +7 -0
- package/dist/clients/pessoas/PessoaRelacaoGrupoClient.js +10 -0
- package/dist/clients/pessoas/PessoaRelacaoTipoClient.d.ts +7 -0
- package/dist/clients/pessoas/PessoaRelacaoTipoClient.js +10 -0
- package/dist/clients/pessoas/PessoaTelefoneClient.d.ts +11 -0
- package/dist/clients/pessoas/PessoaTelefoneClient.js +15 -0
- package/dist/clients/pessoas/PessoaTipoClient.d.ts +7 -0
- package/dist/clients/pessoas/PessoaTipoClient.js +10 -0
- package/dist/clients/pessoas/index.d.ts +12 -0
- package/dist/clients/pessoas/index.js +28 -0
- package/dist/clients/portalContador/ImpostoEstadualSdk.d.ts +11 -0
- package/dist/clients/portalContador/ImpostoEstadualSdk.js +13 -0
- package/dist/clients/portalContador/ImpostoFederalSdk.d.ts +11 -0
- package/dist/clients/portalContador/ImpostoFederalSdk.js +16 -0
- package/dist/clients/portalContador/index.d.ts +1 -0
- package/dist/clients/portalContador/index.js +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -0
- package/dist/test.d.ts +1 -0
- package/dist/test.js +27 -0
- package/package.json +13 -15
- package/src/clients/base/CrudClientBase.ts +23 -3
- package/src/clients/enderecos/EnderecoBairroClient.ts +6 -5
- package/src/clients/enderecos/EnderecoCidadeClient.ts +9 -7
- package/src/clients/enderecos/EnderecoSdk.ts +53 -0
- package/src/clients/enderecos/UfClient.ts +6 -5
- package/src/clients/enderecos/index.ts +1 -5
- package/src/clients/index.ts +1 -2
- package/src/clients/pessoas/PessoaClient.ts +40 -4
- package/src/clients/portalContador/EmpresaSdk.ts +14 -0
- package/src/clients/portalContador/ImpostoEstadualSdk.ts +25 -0
- package/src/clients/portalContador/ImpostoFederalSdk.ts +27 -0
- package/tsconfig.json +5 -6
- package/tsconfig.tsbuildinfo +1 -0
- package/src/clients/enderecos/EnderecoClient.ts +0 -21
- package/src/clients/enderecos/EnderecoTipoClient.ts +0 -20
- package/src/clients/portalContador/empresaClient.ts +0 -40
- package/src/test.ts +0 -61
package/src/test.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { PessoaRequest, UsuarioRequest } from "7vdomain";
|
|
2
|
-
import { EnderecoRequest } from "7vdomain";
|
|
3
|
-
import { PessoaTelefoneRequest } from "7vdomain";
|
|
4
|
-
import { PessoaClient } from "./clients/pessoas/PessoaClient.js";
|
|
5
|
-
import { AuthClient } from "7vsdk-usuarios";
|
|
6
|
-
|
|
7
|
-
async function incluirEmpresaRoot(cnpj: string, razaoSocial: string)
|
|
8
|
-
{
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
async function incluirEmpresaRootCompleto(cnpj: string, razaoSocial: string, enderecos: EnderecoRequest[], telefone: PessoaTelefoneRequest[])
|
|
13
|
-
{
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
async function incluirClientePj(cnpjPai: string, cnpjFilho: string, razaoSocialFilho: string)
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
async function incluirClientePjCompleto(cnpjPai: string, cnpjFilho: string, razaoSocialFilho: string)
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
async function incluirClientePf(cnpjPai: string, cpfFilho: string, nome: string)
|
|
28
|
-
{
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
async function incluirClientePfCompleto(cnpjPai: string, cpfFilho: string, nome: string, enderecos: EnderecoRequest[], telefones: PessoaTelefoneRequest[]){
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
async function main() {
|
|
37
|
-
const auth = new AuthClient("http://localhost:7192");
|
|
38
|
-
|
|
39
|
-
const usuario: UsuarioRequest = {
|
|
40
|
-
Nome: "teste da silva",
|
|
41
|
-
Senha: "7192",
|
|
42
|
-
PerfilId: 1,
|
|
43
|
-
PessoaRelacaoId: 1
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const token = await auth.gerarToken(usuario);
|
|
47
|
-
|
|
48
|
-
console.log("Token gerado:", token);
|
|
49
|
-
const pessoac = new PessoaClient("http://localhost:7192", token);
|
|
50
|
-
|
|
51
|
-
const pess: PessoaRequest =
|
|
52
|
-
{
|
|
53
|
-
Nome: "vido to typescript",
|
|
54
|
-
Sexo: "H"
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return { auth, usuario, token };
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
main();
|