7vsdk-pessoas 1.0.0

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.
Files changed (102) hide show
  1. package/package.json +28 -0
  2. package/src/clients/Base/CrudClientBase.d.ts +14 -0
  3. package/src/clients/Base/CrudClientBase.d.ts.map +1 -0
  4. package/src/clients/Base/CrudClientBase.js +57 -0
  5. package/src/clients/Base/CrudClientBase.js.map +1 -0
  6. package/src/clients/Base/CrudClientBase.ts +66 -0
  7. package/src/clients/Enderecos/EnderecoBairroClient.d.ts +8 -0
  8. package/src/clients/Enderecos/EnderecoBairroClient.d.ts.map +1 -0
  9. package/src/clients/Enderecos/EnderecoBairroClient.js +7 -0
  10. package/src/clients/Enderecos/EnderecoBairroClient.js.map +1 -0
  11. package/src/clients/Enderecos/EnderecoBairroClient.ts +8 -0
  12. package/src/clients/Enderecos/EnderecoCidadeClient.d.ts +8 -0
  13. package/src/clients/Enderecos/EnderecoCidadeClient.d.ts.map +1 -0
  14. package/src/clients/Enderecos/EnderecoCidadeClient.js +7 -0
  15. package/src/clients/Enderecos/EnderecoCidadeClient.js.map +1 -0
  16. package/src/clients/Enderecos/EnderecoCidadeClient.ts +8 -0
  17. package/src/clients/Enderecos/EnderecoClient.d.ts +8 -0
  18. package/src/clients/Enderecos/EnderecoClient.d.ts.map +1 -0
  19. package/src/clients/Enderecos/EnderecoClient.js +7 -0
  20. package/src/clients/Enderecos/EnderecoClient.js.map +1 -0
  21. package/src/clients/Enderecos/EnderecoClient.ts +8 -0
  22. package/src/clients/Enderecos/EnderecoTipoClient.d.ts +8 -0
  23. package/src/clients/Enderecos/EnderecoTipoClient.d.ts.map +1 -0
  24. package/src/clients/Enderecos/EnderecoTipoClient.js +7 -0
  25. package/src/clients/Enderecos/EnderecoTipoClient.js.map +1 -0
  26. package/src/clients/Enderecos/EnderecoTipoClient.ts +8 -0
  27. package/src/clients/Enderecos/UfClient.d.ts +8 -0
  28. package/src/clients/Enderecos/UfClient.d.ts.map +1 -0
  29. package/src/clients/Enderecos/UfClient.js +7 -0
  30. package/src/clients/Enderecos/UfClient.js.map +1 -0
  31. package/src/clients/Enderecos/UfClient.ts +8 -0
  32. package/src/clients/Pessoas/PessoaClient.d.ts +10 -0
  33. package/src/clients/Pessoas/PessoaClient.d.ts.map +1 -0
  34. package/src/clients/Pessoas/PessoaClient.js +12 -0
  35. package/src/clients/Pessoas/PessoaClient.js.map +1 -0
  36. package/src/clients/Pessoas/PessoaClient.ts +16 -0
  37. package/src/clients/Pessoas/PessoaCnpjClient.d.ts +9 -0
  38. package/src/clients/Pessoas/PessoaCnpjClient.d.ts.map +1 -0
  39. package/src/clients/Pessoas/PessoaCnpjClient.js +7 -0
  40. package/src/clients/Pessoas/PessoaCnpjClient.js.map +1 -0
  41. package/src/clients/Pessoas/PessoaCnpjClient.ts +9 -0
  42. package/src/clients/Pessoas/PessoaCpfClient.d.ts +8 -0
  43. package/src/clients/Pessoas/PessoaCpfClient.d.ts.map +1 -0
  44. package/src/clients/Pessoas/PessoaCpfClient.js +7 -0
  45. package/src/clients/Pessoas/PessoaCpfClient.js.map +1 -0
  46. package/src/clients/Pessoas/PessoaCpfClient.ts +8 -0
  47. package/src/clients/Pessoas/PessoaEmailClient.d.ts +8 -0
  48. package/src/clients/Pessoas/PessoaEmailClient.d.ts.map +1 -0
  49. package/src/clients/Pessoas/PessoaEmailClient.js +7 -0
  50. package/src/clients/Pessoas/PessoaEmailClient.js.map +1 -0
  51. package/src/clients/Pessoas/PessoaEmailClient.ts +8 -0
  52. package/src/clients/Pessoas/PessoaEnderecoClient.d.ts +8 -0
  53. package/src/clients/Pessoas/PessoaEnderecoClient.d.ts.map +1 -0
  54. package/src/clients/Pessoas/PessoaEnderecoClient.js +7 -0
  55. package/src/clients/Pessoas/PessoaEnderecoClient.js.map +1 -0
  56. package/src/clients/Pessoas/PessoaEnderecoClient.ts +8 -0
  57. package/src/clients/Pessoas/PessoaNascimentoClient.d.ts +8 -0
  58. package/src/clients/Pessoas/PessoaNascimentoClient.d.ts.map +1 -0
  59. package/src/clients/Pessoas/PessoaNascimentoClient.js +7 -0
  60. package/src/clients/Pessoas/PessoaNascimentoClient.js.map +1 -0
  61. package/src/clients/Pessoas/PessoaNascimentoClient.ts +9 -0
  62. package/src/clients/Pessoas/PessoaNecessidadeEspecial.d.ts +8 -0
  63. package/src/clients/Pessoas/PessoaNecessidadeEspecial.d.ts.map +1 -0
  64. package/src/clients/Pessoas/PessoaNecessidadeEspecial.js +7 -0
  65. package/src/clients/Pessoas/PessoaNecessidadeEspecial.js.map +1 -0
  66. package/src/clients/Pessoas/PessoaNecessidadeEspecial.ts +9 -0
  67. package/src/clients/Pessoas/PessoaProcedimentoClient.d.ts +8 -0
  68. package/src/clients/Pessoas/PessoaProcedimentoClient.d.ts.map +1 -0
  69. package/src/clients/Pessoas/PessoaProcedimentoClient.js +7 -0
  70. package/src/clients/Pessoas/PessoaProcedimentoClient.js.map +1 -0
  71. package/src/clients/Pessoas/PessoaProcedimentoClient.ts +8 -0
  72. package/src/clients/Pessoas/PessoaRelacaoClient.d.ts +8 -0
  73. package/src/clients/Pessoas/PessoaRelacaoClient.d.ts.map +1 -0
  74. package/src/clients/Pessoas/PessoaRelacaoClient.js +7 -0
  75. package/src/clients/Pessoas/PessoaRelacaoClient.js.map +1 -0
  76. package/src/clients/Pessoas/PessoaRelacaoClient.ts +8 -0
  77. package/src/clients/Pessoas/PessoaRelacaoGrupoClient.d.ts +8 -0
  78. package/src/clients/Pessoas/PessoaRelacaoGrupoClient.d.ts.map +1 -0
  79. package/src/clients/Pessoas/PessoaRelacaoGrupoClient.js +7 -0
  80. package/src/clients/Pessoas/PessoaRelacaoGrupoClient.js.map +1 -0
  81. package/src/clients/Pessoas/PessoaRelacaoGrupoClient.ts +8 -0
  82. package/src/clients/Pessoas/PessoaRelacaoTipoClient.d.ts +8 -0
  83. package/src/clients/Pessoas/PessoaRelacaoTipoClient.d.ts.map +1 -0
  84. package/src/clients/Pessoas/PessoaRelacaoTipoClient.js +7 -0
  85. package/src/clients/Pessoas/PessoaRelacaoTipoClient.js.map +1 -0
  86. package/src/clients/Pessoas/PessoaRelacaoTipoClient.ts +8 -0
  87. package/src/clients/Pessoas/PessoaTipoClient.d.ts +9 -0
  88. package/src/clients/Pessoas/PessoaTipoClient.d.ts.map +1 -0
  89. package/src/clients/Pessoas/PessoaTipoClient.js +10 -0
  90. package/src/clients/Pessoas/PessoaTipoClient.js.map +1 -0
  91. package/src/clients/Pessoas/PessoaTipoClient.ts +11 -0
  92. package/src/clients/Pessoas/index.d.ts +2 -0
  93. package/src/clients/Pessoas/index.d.ts.map +1 -0
  94. package/src/clients/Pessoas/index.js +2 -0
  95. package/src/clients/Pessoas/index.js.map +1 -0
  96. package/src/clients/Pessoas/index.ts +1 -0
  97. package/src/test.d.ts +2 -0
  98. package/src/test.d.ts.map +1 -0
  99. package/src/test.js +22 -0
  100. package/src/test.js.map +1 -0
  101. package/src/test.ts +38 -0
  102. package/tsconfig.json +13 -0
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "7vsdk-pessoas",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "type": "module",
6
+ "scripts": {
7
+ "build": "tsc",
8
+ "start": "node dist/test.js",
9
+ "test": "echo \"Error: no test specified\" && exit 1"
10
+ },
11
+ "keywords": [],
12
+ "author": "",
13
+ "license": "ISC",
14
+ "description": "",
15
+ "devDependencies": {
16
+ "@types/node": "^24.10.1",
17
+ "7vDomainCore": "file:7vDomainCore-0.0.2.ts.tgz",
18
+ "ts-node": "^10.9.2",
19
+ "typescript": "^5.9.3"
20
+ },
21
+ "dependencies": {
22
+ "7vdomain": "^0.2.0",
23
+ "7vdomain-core": "file:7vdomain-core-0.0.2.tgz",
24
+ "7vDomainCore": "file:7vDomainCore-0.0.2.ts.tgz",
25
+ "auth": "file:auth-1.0.0.tgz",
26
+ "domain-core": "file:domain-core-0.0.1.tgz"
27
+ }
28
+ }
@@ -0,0 +1,14 @@
1
+ export declare abstract class CrudClientBase<TResponse, TRequest> {
2
+ protected baseUrl: string;
3
+ protected endpointBase: string;
4
+ protected tokenJwt?: string;
5
+ constructor(baseUrl: string, endpoint: string, tokenJwt: string);
6
+ private get headers();
7
+ private handleResponse;
8
+ getAsync(id: number): Promise<TResponse>;
9
+ getPagedAsync(pageNumber?: number, pageSize?: number): Promise<TResponse[]>;
10
+ postAsync(request: TRequest): Promise<TResponse>;
11
+ updateAsync(id: number, newObject: TRequest): Promise<TResponse>;
12
+ deleteAsync(id: number): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=CrudClientBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CrudClientBase.d.ts","sourceRoot":"","sources":["CrudClientBase.ts"],"names":[],"mappings":"AAEA,8BAAsB,cAAc,CAAC,SAAS,EAAE,QAAQ;IACpD,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAEhB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAO/D,OAAO,KAAK,OAAO,GAIlB;YAEa,cAAc;IAOtB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAKxC,aAAa,CAAC,UAAU,GAAE,MAAU,EAAE,QAAQ,GAAE,MAAW,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAQlF,SAAS,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC;IAShD,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC;IAShE,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAO/C"}
@@ -0,0 +1,57 @@
1
+ export class CrudClientBase {
2
+ baseUrl;
3
+ endpointBase;
4
+ tokenJwt;
5
+ constructor(baseUrl, endpoint, tokenJwt) {
6
+ this.baseUrl = baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl;
7
+ this.endpointBase = endpoint.startsWith('/') ? endpoint : '/' + endpoint;
8
+ this.tokenJwt = tokenJwt;
9
+ }
10
+ get headers() {
11
+ const h = { "Content-Type": "application/json" };
12
+ if (this.tokenJwt)
13
+ h["Authorization"] = `Bearer ${this.tokenJwt}`;
14
+ return h;
15
+ }
16
+ async handleResponse(res) {
17
+ if (!res.ok)
18
+ throw new Error(`HTTP ${res.status}: ${res.statusText}`);
19
+ const envelope = await res.json();
20
+ if (!envelope?.data)
21
+ throw new Error("Resposta inválida do servidor.");
22
+ return envelope.data;
23
+ }
24
+ async getAsync(id) {
25
+ const res = await fetch(`${this.baseUrl}${this.endpointBase}/${id}`, { headers: this.headers });
26
+ return this.handleResponse(res);
27
+ }
28
+ async getPagedAsync(pageNumber = 1, pageSize = 25) {
29
+ const res = await fetch(`${this.baseUrl}${this.endpointBase}?pageNumber=${pageNumber}&pageSize=${pageSize}`, { headers: this.headers });
30
+ return this.handleResponse(res);
31
+ }
32
+ async postAsync(request) {
33
+ const res = await fetch(`${this.baseUrl}${this.endpointBase}`, {
34
+ method: "POST",
35
+ headers: this.headers,
36
+ body: JSON.stringify(request),
37
+ });
38
+ return this.handleResponse(res);
39
+ }
40
+ async updateAsync(id, newObject) {
41
+ const res = await fetch(`${this.baseUrl}${this.endpointBase}/${id}`, {
42
+ method: "PUT",
43
+ headers: this.headers,
44
+ body: JSON.stringify(newObject),
45
+ });
46
+ return this.handleResponse(res);
47
+ }
48
+ async deleteAsync(id) {
49
+ const res = await fetch(`${this.baseUrl}${this.endpointBase}/${id}`, {
50
+ method: "DELETE",
51
+ headers: this.headers,
52
+ });
53
+ if (!res.ok)
54
+ throw new Error(`HTTP ${res.status}: ${res.statusText}`);
55
+ }
56
+ }
57
+ //# sourceMappingURL=CrudClientBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CrudClientBase.js","sourceRoot":"","sources":["CrudClientBase.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,66 @@
1
+ import type { ResultDto } from "domain-core";
2
+
3
+ export abstract class CrudClientBase<TResponse, TRequest> {
4
+ protected baseUrl: string;
5
+ protected endpointBase: string;
6
+ protected tokenJwt?: string;
7
+
8
+ constructor(baseUrl: string, endpoint: string, tokenJwt: string) {
9
+ this.baseUrl = baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl;
10
+ this.endpointBase = endpoint.startsWith('/') ? endpoint : '/' + endpoint;
11
+ this.tokenJwt = tokenJwt;
12
+ }
13
+
14
+
15
+ private get headers(): HeadersInit {
16
+ const h: HeadersInit = { "Content-Type": "application/json" };
17
+ if (this.tokenJwt) h["Authorization"] = `Bearer ${this.tokenJwt}`;
18
+ return h;
19
+ }
20
+
21
+ private async handleResponse<T>(res: Response): Promise<T> {
22
+ if (!res.ok) throw new Error(`HTTP ${res.status}: ${res.statusText}`);
23
+ const envelope: ResultDto<T> = await res.json();
24
+ if (!envelope?.data) throw new Error("Resposta inválida do servidor.");
25
+ return envelope.data;
26
+ }
27
+
28
+ async getAsync(id: number): Promise<TResponse> {
29
+ const res = await fetch(`${this.baseUrl}${this.endpointBase}/${id}`, { headers: this.headers });
30
+ return this.handleResponse<TResponse>(res);
31
+ }
32
+
33
+ async getPagedAsync(pageNumber: number = 1, pageSize: number = 25): Promise<TResponse[]> {
34
+ const res = await fetch(
35
+ `${this.baseUrl}${this.endpointBase}?pageNumber=${pageNumber}&pageSize=${pageSize}`,
36
+ { headers: this.headers }
37
+ );
38
+ return this.handleResponse<TResponse[]>(res);
39
+ }
40
+
41
+ async postAsync(request: TRequest): Promise<TResponse> {
42
+ const res = await fetch(`${this.baseUrl}${this.endpointBase}`, {
43
+ method: "POST",
44
+ headers: this.headers,
45
+ body: JSON.stringify(request),
46
+ });
47
+ return this.handleResponse<TResponse>(res);
48
+ }
49
+
50
+ async updateAsync(id: number, newObject: TRequest): Promise<TResponse> {
51
+ const res = await fetch(`${this.baseUrl}${this.endpointBase}/${id}`, {
52
+ method: "PUT",
53
+ headers: this.headers,
54
+ body: JSON.stringify(newObject),
55
+ });
56
+ return this.handleResponse<TResponse>(res);
57
+ }
58
+
59
+ async deleteAsync(id: number): Promise<void> {
60
+ const res = await fetch(`${this.baseUrl}${this.endpointBase}/${id}`, {
61
+ method: "DELETE",
62
+ headers: this.headers,
63
+ });
64
+ if (!res.ok) throw new Error(`HTTP ${res.status}: ${res.statusText}`);
65
+ }
66
+ }
@@ -0,0 +1,8 @@
1
+ import type { EnderecoBairroRequest, EnderecoBairroResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class EnderecoBairroClient extends CrudClientBase<EnderecoBairroRequest, EnderecoBairroResponse> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=EnderecoBairroClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnderecoBairroClient.d.ts","sourceRoot":"","sources":["EnderecoBairroClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,qBAAqB,EAAE,sBAAsB,CAAC;gBACzF,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class EnderecoBairroClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/endereco/bairro", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=EnderecoBairroClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnderecoBairroClient.js","sourceRoot":"","sources":["EnderecoBairroClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,oBAAqB,SAAQ,cAA6D;IACrG,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC;IACrD,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { EnderecoBairroRequest, EnderecoBairroResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class EnderecoBairroClient extends CrudClientBase<EnderecoBairroRequest, EnderecoBairroResponse> {
5
+ constructor(server: { Url: string }, tokenJwt: string) {
6
+ super(server.Url, "api/endereco/bairro", tokenJwt);
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { EnderecoCidadeRequest, EnderecoCidadeResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class EnderecoCidadeClient extends CrudClientBase<EnderecoCidadeRequest, EnderecoCidadeResponse> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=EnderecoCidadeClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnderecoCidadeClient.d.ts","sourceRoot":"","sources":["EnderecoCidadeClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,qBAAqB,EAAE,sBAAsB,CAAC;gBACzF,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class EnderecoCidadeClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/endereco/bairro", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=EnderecoCidadeClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnderecoCidadeClient.js","sourceRoot":"","sources":["EnderecoCidadeClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,oBAAqB,SAAQ,cAA6D;IACrG,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC;IACrD,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { EnderecoCidadeRequest, EnderecoCidadeResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class EnderecoCidadeClient extends CrudClientBase<EnderecoCidadeRequest, EnderecoCidadeResponse> {
5
+ constructor(server: { Url: string }, tokenJwt: string) {
6
+ super(server.Url, "api/endereco/bairro", tokenJwt);
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { EnderecoRequest, EnderecoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class EnderecoClient extends CrudClientBase<EnderecoRequest, EnderecoResponse> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=EnderecoClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnderecoClient.d.ts","sourceRoot":"","sources":["EnderecoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,cAAe,SAAQ,cAAc,CAAC,eAAe,EAAC,gBAAgB,CAAC;gBACtE,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class EnderecoClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/endereco/bairro", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=EnderecoClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnderecoClient.js","sourceRoot":"","sources":["EnderecoClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,cAAe,SAAQ,cAAgD;IAClF,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC;IACrD,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { EnderecoRequest, EnderecoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class EnderecoClient extends CrudClientBase<EnderecoRequest,EnderecoResponse> {
5
+ constructor(server: { Url: string }, tokenJwt: string) {
6
+ super(server.Url, "api/endereco/bairro", tokenJwt);
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { EnderecoTipoRequest, EnderecoTipoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class EnderecoTipoClient extends CrudClientBase<EnderecoTipoRequest, EnderecoTipoResponse> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=EnderecoTipoClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnderecoTipoClient.d.ts","sourceRoot":"","sources":["EnderecoTipoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,kBAAmB,SAAQ,cAAc,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;gBACnF,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class EnderecoTipoClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/endereco/bairro", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=EnderecoTipoClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnderecoTipoClient.js","sourceRoot":"","sources":["EnderecoTipoClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,kBAAmB,SAAQ,cAAyD;IAC/F,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC;IACrD,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { EnderecoTipoRequest, EnderecoTipoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class EnderecoTipoClient extends CrudClientBase<EnderecoTipoRequest, EnderecoTipoResponse> {
5
+ constructor(server: { Url: string }, tokenJwt: string) {
6
+ super(server.Url, "api/endereco/bairro", tokenJwt);
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { UfRequest, UfResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class EnderecoBairroClient extends CrudClientBase<UfRequest, UfResponse> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=UfClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UfClient.d.ts","sourceRoot":"","sources":["UfClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,SAAS,EAAE,UAAU,CAAC;gBACjE,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class EnderecoBairroClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/endereco/bairro", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=UfClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UfClient.js","sourceRoot":"","sources":["UfClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,oBAAqB,SAAQ,cAAqC;IAC7E,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC;IACrD,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { UfRequest, UfResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class EnderecoBairroClient extends CrudClientBase<UfRequest, UfResponse> {
5
+ constructor(server: { Url: string }, tokenJwt: string) {
6
+ super(server.Url, "api/endereco/bairro", tokenJwt);
7
+ }
8
+ }
@@ -0,0 +1,10 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ import type { PessoaRequest } from "domain-core";
3
+ import type { PessoaResponse } from "domain-core";
4
+ export declare class PessoaClient extends CrudClientBase<PessoaResponse, PessoaRequest> {
5
+ constructor(urlServer: string, tokenJwt: string);
6
+ constructor(server: {
7
+ Url: string;
8
+ }, tokenJwt: string);
9
+ }
10
+ //# sourceMappingURL=PessoaClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaClient.d.ts","sourceRoot":"","sources":["PessoaClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,qBAAa,YAAa,SAAQ,cAAc,CAAC,cAAc,EAAE,aAAa,CAAC;gBACjE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;gBACnC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAStD"}
@@ -0,0 +1,12 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class PessoaClient extends CrudClientBase {
3
+ constructor(urlOrServer, tokenJwt) {
4
+ if (typeof urlOrServer === 'string') {
5
+ super(urlOrServer, '/api/pessoa', tokenJwt);
6
+ }
7
+ else {
8
+ super(urlOrServer.Url, '/api/pessoa', tokenJwt);
9
+ }
10
+ }
11
+ }
12
+ //# sourceMappingURL=PessoaClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaClient.js","sourceRoot":"","sources":["PessoaClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAI3D,MAAM,OAAO,YAAa,SAAQ,cAA6C;IAG7E,YAAY,WAAqC,EAAE,QAAgB;QAEjE,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACpC,KAAK,CAAC,WAAW,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC;QAC9C,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,16 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ import type { PessoaRequest } from "domain-core";
3
+ import type { PessoaResponse } from "domain-core";
4
+
5
+ export class PessoaClient extends CrudClientBase<PessoaResponse, PessoaRequest> {
6
+ constructor(urlServer: string, tokenJwt: string);
7
+ constructor(server: { Url: string }, tokenJwt: string);
8
+ constructor(urlOrServer: string | { Url: string }, tokenJwt: string) {
9
+
10
+ if (typeof urlOrServer === 'string') {
11
+ super(urlOrServer, '/api/pessoa', tokenJwt);
12
+ } else {
13
+ super(urlOrServer.Url, '/api/pessoa', tokenJwt);
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,9 @@
1
+ import type { PessoaCnpjRequest } from "domain-core";
2
+ import type { PessoaCnpjResponse } from "domain-core";
3
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
4
+ export declare class PessoaCnpjClient extends CrudClientBase<PessoaCnpjResponse, PessoaCnpjRequest> {
5
+ constructor(server: {
6
+ Url: string;
7
+ }, tokenJwt: string);
8
+ }
9
+ //# sourceMappingURL=PessoaCnpjClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaCnpjClient.d.ts","sourceRoot":"","sources":["PessoaCnpjClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,kBAAkB,EAAE,iBAAiB,CAAC;gBAC7E,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class PessoaCnpjClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/pessoa/cnpj", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=PessoaCnpjClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaCnpjClient.js","sourceRoot":"","sources":["PessoaCnpjClient.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,gBAAiB,SAAQ,cAAqD;IACzF,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,iBAAiB,EAAE,QAAQ,CAAC,CAAC;IACjD,CAAC;CACF"}
@@ -0,0 +1,9 @@
1
+ import type { PessoaCnpjRequest } from "domain-core";
2
+ import type { PessoaCnpjResponse } from "domain-core";
3
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
4
+
5
+ export class PessoaCnpjClient extends CrudClientBase<PessoaCnpjResponse, PessoaCnpjRequest> {
6
+ constructor(server: { Url: string }, tokenJwt: string) {
7
+ super(server.Url, "api/pessoa/cnpj", tokenJwt);
8
+ }
9
+ }
@@ -0,0 +1,8 @@
1
+ import type { PessoaCpfRequest, PessoaCpfResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class PessoaCpfClient extends CrudClientBase<PessoaCpfResponse, PessoaCpfRequest> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=PessoaCpfClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaCpfClient.d.ts","sourceRoot":"","sources":["PessoaCpfClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,eAAgB,SAAQ,cAAc,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;gBAC1E,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class PessoaCpfClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/pessoa/cpf", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=PessoaCpfClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaCpfClient.js","sourceRoot":"","sources":["PessoaCpfClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,eAAgB,SAAQ,cAAmD;IACtF,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,gBAAgB,EAAE,QAAQ,CAAC,CAAC;IAChD,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { PessoaCpfRequest, PessoaCpfResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class PessoaCpfClient extends CrudClientBase<PessoaCpfResponse, PessoaCpfRequest> {
5
+ constructor(server: { Url: string }, tokenJwt: string) {
6
+ super(server.Url, "api/pessoa/cpf", tokenJwt);
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { PessoaEmailRequest, PessoaEmailResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class PessoaEmailClient extends CrudClientBase<PessoaEmailResponse, PessoaEmailRequest> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=PessoaEmailClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaEmailClient.d.ts","sourceRoot":"","sources":["PessoaEmailClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;gBAChF,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class PessoaEmailClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/pessoa/email", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=PessoaEmailClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaEmailClient.js","sourceRoot":"","sources":["PessoaEmailClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,iBAAkB,SAAQ,cAAuD;IAC5F,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,kBAAkB,EAAE,QAAQ,CAAC,CAAC;IAClD,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { PessoaEmailRequest, PessoaEmailResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class PessoaEmailClient extends CrudClientBase<PessoaEmailResponse, PessoaEmailRequest> {
5
+ constructor(server: { Url: string }, tokenJwt: string) {
6
+ super(server.Url, "api/pessoa/email", tokenJwt);
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { PessoaEnderecoRequest, PessoaEnderecoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class PessoaEnderecoClient extends CrudClientBase<PessoaEnderecoResponse, PessoaEnderecoRequest> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=PessoaEnderecoClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaEnderecoClient.d.ts","sourceRoot":"","sources":["PessoaEnderecoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,sBAAsB,EAAE,qBAAqB,CAAC;gBACzF,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class PessoaEnderecoClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/pessoa/endereco", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=PessoaEnderecoClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaEnderecoClient.js","sourceRoot":"","sources":["PessoaEnderecoClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,oBAAqB,SAAQ,cAA6D;IACrG,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC;IACrD,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { PessoaEnderecoRequest, PessoaEnderecoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class PessoaEnderecoClient extends CrudClientBase<PessoaEnderecoResponse, PessoaEnderecoRequest> {
5
+ constructor(server: { Url: string }, tokenJwt: string) {
6
+ super(server.Url, "api/pessoa/endereco", tokenJwt);
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { PessoaNascimentoRequest, PessoaNascimentoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class PessoaNascimentoClient extends CrudClientBase<PessoaNascimentoResponse, PessoaNascimentoRequest> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=PessoaNascimentoClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaNascimentoClient.d.ts","sourceRoot":"","sources":["PessoaNascimentoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,qBAAa,sBAAuB,SAAQ,cAAc,CAAC,wBAAwB,EAAE,uBAAuB,CAAC;gBAC/F,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class PessoaNascimentoClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/pessoa/nascimento", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=PessoaNascimentoClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaNascimentoClient.js","sourceRoot":"","sources":["PessoaNascimentoClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,MAAM,OAAO,sBAAuB,SAAQ,cAAiE;IAC3G,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,uBAAuB,EAAE,QAAQ,CAAC,CAAC;IACvD,CAAC;CACF"}
@@ -0,0 +1,9 @@
1
+ import type { PessoaNascimentoRequest, PessoaNascimentoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+
5
+ export class PessoaNascimentoClient extends CrudClientBase<PessoaNascimentoResponse, PessoaNascimentoRequest> {
6
+ constructor(server: { Url: string }, tokenJwt: string) {
7
+ super(server.Url, "api/pessoa/nascimento", tokenJwt);
8
+ }
9
+ }
@@ -0,0 +1,8 @@
1
+ import type { PessoaNecessidadeEspecialRequest, PessoaNecessidadeEspecialResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class PessoaNecessidadeEspecialClient extends CrudClientBase<PessoaNecessidadeEspecialResponse, PessoaNecessidadeEspecialRequest> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=PessoaNecessidadeEspecial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaNecessidadeEspecial.d.ts","sourceRoot":"","sources":["PessoaNecessidadeEspecial.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AACvG,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,qBAAa,+BAAgC,SAAQ,cAAc,CAAC,iCAAiC,EAAE,gCAAgC,CAAC;gBAC1H,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class PessoaNecessidadeEspecialClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/pessoa/necessidade-especial", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=PessoaNecessidadeEspecial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaNecessidadeEspecial.js","sourceRoot":"","sources":["PessoaNecessidadeEspecial.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,MAAM,OAAO,+BAAgC,SAAQ,cAAmF;IACtI,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,iCAAiC,EAAE,QAAQ,CAAC,CAAC;IACjE,CAAC;CACF"}
@@ -0,0 +1,9 @@
1
+ import type { PessoaNecessidadeEspecialRequest, PessoaNecessidadeEspecialResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+
5
+ export class PessoaNecessidadeEspecialClient extends CrudClientBase<PessoaNecessidadeEspecialResponse, PessoaNecessidadeEspecialRequest> {
6
+ constructor(server: { Url: string }, tokenJwt: string) {
7
+ super(server.Url, "api/pessoa/necessidade-especial", tokenJwt);
8
+ }
9
+ }
@@ -0,0 +1,8 @@
1
+ import type { PessoaProcedimentoRequest, PessoaProcedimentoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class PessoaProcedimentoClient extends CrudClientBase<PessoaProcedimentoResponse, PessoaProcedimentoRequest> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=PessoaProcedimentoClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaProcedimentoClient.d.ts","sourceRoot":"","sources":["PessoaProcedimentoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,wBAAyB,SAAQ,cAAc,CAAC,0BAA0B,EAAE,yBAAyB,CAAC;gBACrG,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class PessoaProcedimentoClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/pessoa/procedimento", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=PessoaProcedimentoClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaProcedimentoClient.js","sourceRoot":"","sources":["PessoaProcedimentoClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,wBAAyB,SAAQ,cAAqE;IACjH,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,yBAAyB,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { PessoaProcedimentoRequest, PessoaProcedimentoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class PessoaProcedimentoClient extends CrudClientBase<PessoaProcedimentoResponse, PessoaProcedimentoRequest> {
5
+ constructor(server: { Url: string }, tokenJwt: string) {
6
+ super(server.Url, "api/pessoa/procedimento", tokenJwt);
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { PessoaRelacaoRequest, PessoaRelacaoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class PessoaRelacaoClient extends CrudClientBase<PessoaRelacaoResponse, PessoaRelacaoRequest> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=PessoaRelacaoClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaRelacaoClient.d.ts","sourceRoot":"","sources":["PessoaRelacaoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,mBAAoB,SAAQ,cAAc,CAAC,qBAAqB,EAAE,oBAAoB,CAAC;gBACtF,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class PessoaRelacaoClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/pessoa/relacao", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=PessoaRelacaoClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaRelacaoClient.js","sourceRoot":"","sources":["PessoaRelacaoClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,mBAAoB,SAAQ,cAA2D;IAClG,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,oBAAoB,EAAE,QAAQ,CAAC,CAAC;IACpD,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { PessoaRelacaoRequest, PessoaRelacaoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class PessoaRelacaoClient extends CrudClientBase<PessoaRelacaoResponse, PessoaRelacaoRequest> {
5
+ constructor(server: { Url: string }, tokenJwt: string) {
6
+ super(server.Url, "api/pessoa/relacao", tokenJwt);
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { PessoaRelacaoGrupoRequest, PessoaRelacaoGrupoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class PessoaRelacaoGrupoClient extends CrudClientBase<PessoaRelacaoGrupoResponse, PessoaRelacaoGrupoRequest> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=PessoaRelacaoGrupoClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaRelacaoGrupoClient.d.ts","sourceRoot":"","sources":["PessoaRelacaoGrupoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,wBAAyB,SAAQ,cAAc,CAAC,0BAA0B,EAAE,yBAAyB,CAAC;gBACrG,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class PessoaRelacaoGrupoClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "api/pessoa/relacao/grupo", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=PessoaRelacaoGrupoClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaRelacaoGrupoClient.js","sourceRoot":"","sources":["PessoaRelacaoGrupoClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,wBAAyB,SAAQ,cAAqE;IACjH,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,0BAA0B,EAAE,QAAQ,CAAC,CAAC;IAC1D,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { PessoaRelacaoGrupoRequest, PessoaRelacaoGrupoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class PessoaRelacaoGrupoClient extends CrudClientBase<PessoaRelacaoGrupoResponse, PessoaRelacaoGrupoRequest> {
5
+ constructor(server: { Url: string }, tokenJwt: string) {
6
+ super(server.Url, "api/pessoa/relacao/grupo", tokenJwt);
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { PessoaRelacaoRequest, PessoaRelacaoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class PessoaRelacaoTipoClient extends CrudClientBase<PessoaRelacaoResponse, PessoaRelacaoRequest> {
4
+ constructor(server: {
5
+ Url: string;
6
+ }, tokenJwt: string);
7
+ }
8
+ //# sourceMappingURL=PessoaRelacaoTipoClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaRelacaoTipoClient.d.ts","sourceRoot":"","sources":["PessoaRelacaoTipoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,uBAAwB,SAAQ,cAAc,CAAC,qBAAqB,EAAE,oBAAoB,CAAC;gBAC1F,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,7 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class PessoaRelacaoTipoClient extends CrudClientBase {
3
+ constructor(server, tokenJwt) {
4
+ super(server.Url, "pessoa/relacao/tipo", tokenJwt);
5
+ }
6
+ }
7
+ //# sourceMappingURL=PessoaRelacaoTipoClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaRelacaoTipoClient.js","sourceRoot":"","sources":["PessoaRelacaoTipoClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,uBAAwB,SAAQ,cAA2D;IACtG,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,qBAAqB,EAAE,QAAQ,CAAC,CAAC;IACrD,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { PessoaRelacaoRequest, PessoaRelacaoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class PessoaRelacaoTipoClient extends CrudClientBase<PessoaRelacaoResponse, PessoaRelacaoRequest> {
5
+ constructor(server: { Url: string }, tokenJwt: string) {
6
+ super(server.Url, "pessoa/relacao/tipo", tokenJwt);
7
+ }
8
+ }
@@ -0,0 +1,9 @@
1
+ import type { PessoaTipoRequest, PessoaTipoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+ export declare class PessoaTipoClient extends CrudClientBase<PessoaTipoResponse, PessoaTipoRequest> {
4
+ list(): void;
5
+ constructor(server: {
6
+ Url: string;
7
+ }, tokenJwt: string);
8
+ }
9
+ //# sourceMappingURL=PessoaTipoClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaTipoClient.d.ts","sourceRoot":"","sources":["PessoaTipoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,kBAAkB,EAAE,iBAAiB,CAAC;IACzF,IAAI;gBAGQ,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,10 @@
1
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
2
+ export class PessoaTipoClient extends CrudClientBase {
3
+ list() {
4
+ throw new Error("Method not implemented.");
5
+ }
6
+ constructor(server, tokenJwt) {
7
+ super(server.Url, "api/pessoa/tipo", tokenJwt);
8
+ }
9
+ }
10
+ //# sourceMappingURL=PessoaTipoClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PessoaTipoClient.js","sourceRoot":"","sources":["PessoaTipoClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,OAAO,gBAAiB,SAAQ,cAAqD;IACzF,IAAI;QACA,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IACD,YAAY,MAAuB,EAAE,QAAgB;QACnD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,iBAAiB,EAAE,QAAQ,CAAC,CAAC;IACjD,CAAC;CACF"}
@@ -0,0 +1,11 @@
1
+ import type { PessoaTipoRequest, PessoaTipoResponse } from "domain-core";
2
+ import { CrudClientBase } from "../Base/CrudClientBase.js";
3
+
4
+ export class PessoaTipoClient extends CrudClientBase<PessoaTipoResponse, PessoaTipoRequest> {
5
+ list() {
6
+ throw new Error("Method not implemented.");
7
+ }
8
+ constructor(server: { Url: string }, tokenJwt: string) {
9
+ super(server.Url, "api/pessoa/tipo", tokenJwt);
10
+ }
11
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./PessoaClient.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./PessoaClient.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1 @@
1
+ export * from "./PessoaClient.js"
package/src/test.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":""}
package/src/test.js ADDED
@@ -0,0 +1,22 @@
1
+ import { AuthClient } from "auth";
2
+ import { PessoaClient } from "./clients/Pessoas/PessoaClient.js";
3
+ async function main() {
4
+ const auth = new AuthClient("http://localhost:7192");
5
+ const usuario = {
6
+ Nome: "teste da silva",
7
+ Senha: "7192",
8
+ PerfilId: 1,
9
+ PessoaRelacaoId: 1
10
+ };
11
+ const token = await auth.gerarToken(usuario);
12
+ console.log("Token gerado:", token);
13
+ const pessoac = new PessoaClient("http://localhost:7192", token);
14
+ const pess = {
15
+ Nome: "vido to typescript",
16
+ Sexo: "H"
17
+ };
18
+ pessoac.postAsync(pess);
19
+ return { auth, usuario, token };
20
+ }
21
+ main();
22
+ //# sourceMappingURL=test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,KAAK,UAAU,IAAI;IACf,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,uBAAuB,CAAC,CAAC;IAErD,MAAM,OAAO,GAAmB;QAC5B,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,CAAC;QACX,eAAe,EAAE,CAAC;KACrB,CAAC;IAEF,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAE7C,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IACpC,MAAM,OAAO,GAAG,IAAI,YAAY,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAEjE,MAAM,IAAI,GACV;QACI,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,GAAG;KACZ,CAAC;IAEF,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAExB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AACpC,CAAC;AAED,IAAI,EAAE,CAAC"}
package/src/test.ts ADDED
@@ -0,0 +1,38 @@
1
+ import { AuthClient } from "auth";
2
+ import type { PessoaRequest, PessoaResponse, UsuarioRequest } from "domain-core";
3
+ import { PessoaClient } from "./clients/Pessoas/PessoaClient.js";
4
+
5
+ async function main() {
6
+ const auth = new AuthClient("http://localhost:7192");
7
+
8
+ const usuario: UsuarioRequest = {
9
+ Nome: "teste da silva",
10
+ Senha: "7192",
11
+ PerfilId: 1,
12
+ PessoaRelacaoId: 1
13
+ };
14
+
15
+ const token = await auth.gerarToken(usuario);
16
+
17
+ console.log("Token gerado:", token);
18
+ const pessoac = new PessoaClient("http://localhost:7192", token);
19
+
20
+ const pess: PessoaRequest =
21
+ {
22
+ Nome: "vido to typescript",
23
+ Sexo: "H"
24
+ };
25
+
26
+
27
+ const pessoaVolta = await pessoac.postAsync(pess);
28
+ console.log(pessoaVolta);
29
+ try {
30
+ await pessoac.deleteAsync(1402);
31
+ } catch (err) {
32
+ console.error('Falha ao deletar pessoa:', err);
33
+ }
34
+
35
+ return { auth, usuario, token };
36
+ }
37
+
38
+ main();
package/tsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "rootDir": "src",
4
+ "outDir": "dist",
5
+ "module": "nodenext",
6
+ "target": "esnext",
7
+ "strict": true,
8
+ "esModuleInterop": true,
9
+ "declaration": true,
10
+ "sourceMap": true
11
+ },
12
+ "include": ["src/**/*"]
13
+ }