7vsdk-pessoas 1.0.20 → 1.0.21
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/index.d.ts +1 -4
- package/dist/index.js +1 -4
- package/package.json +1 -1
- package/dist/test.d.ts +0 -1
- package/dist/test.js +0 -27
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,7 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./clients
|
|
18
|
-
__exportStar(require("./clients/enderecos"), exports); // exporta todos os clients de endereços
|
|
19
|
-
__exportStar(require("./clients/base"), exports); // exporta classes base, se necessário
|
|
20
|
-
__exportStar(require("./clients/portalContador"), exports);
|
|
17
|
+
__exportStar(require("./clients"), exports);
|
package/package.json
CHANGED
package/dist/test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/test.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const _7vdomain_1 = require("7vdomain");
|
|
4
|
-
const _7vsdk_usuarios_1 = require("7vsdk-usuarios");
|
|
5
|
-
const clients_1 = require("./clients");
|
|
6
|
-
async function main() {
|
|
7
|
-
const auth = new _7vsdk_usuarios_1.AuthClient("http://localhost:7292");
|
|
8
|
-
const usuario = {
|
|
9
|
-
Nome: "teste da silva",
|
|
10
|
-
Senha: "7192",
|
|
11
|
-
PerfilId: 1,
|
|
12
|
-
PessoaRelacaoId: 1
|
|
13
|
-
};
|
|
14
|
-
const token = await auth.gerarToken(usuario);
|
|
15
|
-
console.log("Token gerado:", token);
|
|
16
|
-
const pessoac = new clients_1.PessoaClient("http://localhost:7292", token);
|
|
17
|
-
const req = new clients_1.PessoaClient("http://localhost:7292", token);
|
|
18
|
-
const endereco = new clients_1.EnderecoSdk("http://localhost:7292", token);
|
|
19
|
-
const enderecReq = {
|
|
20
|
-
CodigoIbge: "235353",
|
|
21
|
-
Nome: 'Cidade Exemplo',
|
|
22
|
-
UfId: _7vdomain_1.UfEnum.Bahia
|
|
23
|
-
};
|
|
24
|
-
await endereco.criarEndereco(enderecReq, "Bairro Exemplo", "Rua Exemplo", 1);
|
|
25
|
-
return { auth, usuario, token };
|
|
26
|
-
}
|
|
27
|
-
main();
|