7vsdk-pessoas 1.0.15 → 1.0.16

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/package.json CHANGED
@@ -1,19 +1,17 @@
1
1
  {
2
2
  "name": "7vsdk-pessoas",
3
- "version": "1.0.15",
4
- "description": "SDK de clientes para a API de Pessoas da 7Virtual.",
5
- "compilerOptions": {
6
- "target": "es6",
7
- "module": "commonjs",
8
- "outDir": "out",
9
- "rootDir": "src",
10
- "strict": true,
11
- "esModuleInterop": true
3
+ "version": "1.0.16",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "build": "tsc",
8
+ "start": "node dist/index.js",
9
+ "watch": "tsc --watch"
10
+ },
11
+ "devDependencies": {
12
+ "typescript": "^5.0.0"
12
13
  },
13
- "include": [
14
- "src/**/*"
15
- ],
16
14
  "dependencies": {
17
- "7vdomain": "^1.1.14"
15
+ "7vdomain": "^1.0.18"
18
16
  }
19
17
  }
@@ -1,6 +1,7 @@
1
+ // src/clients/pessoas/index.ts
1
2
  export * from "./PessoaClient";
2
- export * from "./PessoaCnpjClient";
3
3
  export * from "./PessoaCpfClient";
4
+ export * from "./PessoaCnpjClient";
4
5
  export * from "./PessoaEmailClient";
5
6
  export * from "./PessoaEnderecoClient";
6
7
  export * from "./PessoaNascimentoClient";
@@ -9,4 +10,5 @@ export * from "./PessoaProcedimentoClient";
9
10
  export * from "./PessoaRelacaoClient";
10
11
  export * from "./PessoaRelacaoGrupoClient";
11
12
  export * from "./PessoaRelacaoTipoClient";
12
- export * from "./PessoaTipoClient";
13
+ export * from "./PessoaTelefoneClient";
14
+ export * from "./PessoaTipoClient";
package/src/index.ts CHANGED
@@ -1 +1,4 @@
1
- export * from "./clients"
1
+ export * from "./clients/pessoas"; // exporta todos os clients de pessoas
2
+ export * from "./clients/enderecos"; // exporta todos os clients de endereços
3
+ export * from "./clients/base"; // exporta classes base, se necessário
4
+ export * from "./clients/portalContador";
package/tsconfig.json CHANGED
@@ -1,15 +1,13 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ES2020", // moderno, async/await sem problemas
4
- "module": "ESNext", // gera ESM, named exports
5
- "moduleResolution": "node",
6
- "outDir": "out",
7
- "rootDir": "src",
3
+ "target": "ES2017",
4
+ "module": "NodeNext", // corrigido de ESNext
5
+ "moduleResolution": "NodeNext",
6
+ "declaration": true,
7
+ "outDir": "dist",
8
8
  "strict": true,
9
- "esModuleInterop": true, // compatibilidade com CommonJS se necessário
10
- "forceConsistentCasingInFileNames": true,
11
- "declaration": true, // gera arquivos .d.ts
12
- "declarationMap": true // mapas para facilitar debugging de tipos
9
+ "esModuleInterop": true,
10
+ "lib": ["ES2017", "DOM"]
13
11
  },
14
12
  "include": ["src/**/*"]
15
13
  }