@mrbody/angofind 1.0.1 → 1.0.2

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 (2) hide show
  1. package/README.md +121 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,16 +1,130 @@
1
- # angofind-lib
1
+ # @mrbody/angofind
2
+
3
+ Official JavaScript & TypeScript SDK for the **AngoFind API**. Easily integrate queries for company publications (GUE), NIF/BI details, and taxpayer information (AGT) into your applications.
4
+
5
+ ---
6
+
7
+ ## 📦 Installation
2
8
 
3
9
  To install dependencies:
4
10
 
5
11
  ```bash
6
- bun install
12
+ npm i @mrbody/angofind
7
13
  ```
8
14
 
9
- To run:
15
+ ## 🚀 Usage
10
16
 
11
- ```bash
12
- bun run index.ts
17
+ ```javascript
18
+ import { AngoFind } from "@mrbody/angofind"
19
+
20
+ const angofind = new AngoFind({
21
+ apiKey: YOUR_API_KEY_HERE,
22
+ });
23
+
24
+ ```
25
+
26
+ ### 🏗️ Searching by (telefone/empresa/ndi/nome)
27
+
28
+
29
+ ```javascript
30
+ async function main() {
31
+ const data = await angofind.getPublication({
32
+ telefone: "920000000"
33
+ });
34
+ }
35
+ ```
36
+
37
+
38
+ ```typescript
39
+ {
40
+ posicao?: string | null;
41
+ nome?: string | null;
42
+ dataPublicacao?: string | null;
43
+ nif?: string | null;
44
+ origem?: string | null;
45
+ link?: string | null;
46
+ }
47
+ ```
48
+
49
+ ### Searching by BI/NIF
50
+ ```javascript
51
+ async function main() {
52
+ const data = await angofind.getNif("500008796");
53
+ console.log(data)
54
+ }
55
+ ```
56
+ ```typescript
57
+ {
58
+ numero?: string | null;
59
+ nome_completo?: string | null;
60
+ denominacao?: string | null;
61
+ nome?: string | null;
62
+ email?: string | null;
63
+ telemovel?: string | null;
64
+ numero_contacto?: string | null;
65
+ data_constituicao?: string | null;
66
+ nif_administrador?: string | null;
67
+ utente_morada2?: string | null;
68
+ apelido?: string | null;
69
+ nif?: string | null;
70
+ data_nasc?: string | null;
71
+ genero?: string | null;
72
+ naturalidade?: string | null;
73
+ pai_nome_completo?: string | null;
74
+ mae_nome_completo?: string | null;
75
+ estado_civil?: string | null;
76
+ data_emissao?: string | null;
77
+ emissao_local?: string | null;
78
+ }
79
+ ```
80
+
81
+ ### Searching by Publication URL (GUE)
82
+
83
+ ```javascript
84
+ async function main() {
85
+ const data = await angofind.getPublicationURL("https://gue.gov.ao/portal/publicacao/ver/000000");
86
+
87
+ console.log(data)
88
+ }
89
+ ```
90
+
91
+ ```typescript
92
+ {
93
+ source?: string | null;
94
+ registrationNumber?: string | null;
95
+ companyName?: string | null;
96
+ capital?: string | null;
97
+ subject?: string | null;
98
+ headquarters?: string | null;
99
+ partner?: string | null;
100
+ manager?: string | null;
101
+ signedDate?: string | null;
102
+ rawText?: string | null;
103
+ }
104
+ ```
105
+
106
+ ### Searching by NIF (AGT)
107
+
108
+ ```javascript
109
+ async function main() {
110
+ const data = await angofind.getContribuinte("00000000000KN44");
111
+
112
+ console.log(data)
113
+ }
114
+ ```
115
+
116
+ ```typescript
117
+ {
118
+ nif?: string | null;
119
+ nome?: string | null;
120
+ denominacao?: string | null;
121
+ estado?: string | null;
122
+ reparticaoFiscal?: string | null;
123
+ tipoContribuinte?: string | null;
124
+ dataInicioAtividade?: string | null;
125
+ atividadePrincipal?: string | null;
126
+ rawText?: string | null;
127
+ }
13
128
  ```
14
129
 
15
- This project was created using `bun init` in bun v1.4.0. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
16
- # angofind-sdk
130
+ This project was created using `bun init` in bun v1.4.0. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrbody/angofind",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Official JavaScript SDK for the AngoFind API",
5
5
  "license": "ISC",
6
6
  "module": "dist/index.js",