7vsdk-pessoas 1.0.3 → 1.0.5

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "7vsdk-pessoas",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -17,7 +17,7 @@
17
17
  "typescript": "^5.9.3"
18
18
  },
19
19
  "dependencies": {
20
- "7vdomain": "^1.0.21",
20
+ "7vdomain": "file:7vdomain-1.0.31.tgz",
21
21
  "7vsdk-usuarios": "^1.0.10"
22
22
  }
23
23
  }
@@ -1,18 +1,22 @@
1
1
  import { PessoaTelefoneRequest, PessoaTelefoneResponse } from "7vdomain";
2
- import { CrudClientBase } from "7vsdk-usuarios";
2
+ import { TelefoneTipoEnum } from "7vdomain";
3
+ import { CrudClientBase } from "../base";
3
4
 
4
5
  interface IPessoaTelefoneClient
5
6
  {
6
- postarTelefone(numero: string, pessoaId: number, telefoneTipo: number): Promise<PessoaTelefoneResponse>;
7
+ postarTelefone(numero: string, pessoaId: number, telefoneTipo: TelefoneTipoEnum): Promise<PessoaTelefoneResponse>;
7
8
  }
8
9
 
9
10
  export class PesosaTelefoneClient extends CrudClientBase<PessoaTelefoneRequest, PessoaTelefoneResponse>
11
+ implements IPessoaTelefoneClient
10
12
  {
11
13
  constructor(url: string, tok: string)
12
14
  {
13
15
  super(url, "api/pessoa/telefone", tok);
14
16
  }
15
-
16
-
17
-
17
+ async postarTelefone(numero: string, pessoaId: number, telefoneTipo: TelefoneTipoEnum): Promise<PessoaTelefoneResponse> {
18
+ const _req: PessoaTelefoneRequest = {Numero: numero, PessoaId: pessoaId, TelefoneTipoId: telefoneTipo}
19
+ const _res = await this.postAsync(_req);
20
+ return _res;
21
+ }
18
22
  }
@@ -1,6 +1,6 @@
1
+ import { EnderecoClient } from "../enderecos";
1
2
  import { EmpresaRequest, EmpresaResponse, EnderecoRequest, PessoaTelefoneRequest } from "7vdomain"
2
3
  import { CrudClientBase } from "7vsdk-usuarios";
3
- import { EnderecoClient } from "../enderecos";
4
4
 
5
5
  export class EmpresaClient extends CrudClientBase<EmpresaRequest, EmpresaResponse>
6
6
  {
package/tsconfig.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "rootDir": "src",
4
- "outDir": "dist",
5
- "module": "nodenext",
6
- "target": "esnext",
7
- "strict": true,
3
+ "module": "CommonJS",
4
+ "target": "ES2020",
5
+ "moduleResolution": "Node",
8
6
  "esModuleInterop": true,
9
- "declaration": true,
10
- "sourceMap": true
7
+ "allowSyntheticDefaultImports": true,
8
+ "baseUrl": ".",
9
+ "paths": {
10
+ "*": ["node_modules/*"]
11
+ }
11
12
  },
12
- "include": ["src/**/*"]
13
+ "include": ["src"]
13
14
  }