apiempresas 1.0.0 → 1.0.1

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.
@@ -34,4 +34,20 @@ export declare class Companies {
34
34
  * (Business) Obtiene Insights IA de una empresa.
35
35
  */
36
36
  insights(cif: string): Promise<any>;
37
+ /**
38
+ * (Pro) Obtiene datos de contacto y preparación de la empresa.
39
+ */
40
+ contactPrep(cif: string): Promise<any>;
41
+ /**
42
+ * (Business) Obtiene la información del Radar de empresas.
43
+ */
44
+ radar(cif: string): Promise<any>;
45
+ /**
46
+ * (Business) Realiza un match avanzado con los datos de una empresa.
47
+ */
48
+ match(cif: string): Promise<any>;
49
+ /**
50
+ * (Business) Obtiene la red o entramado societario (Network) de una empresa.
51
+ */
52
+ network(cif: string): Promise<any>;
37
53
  }
@@ -64,5 +64,37 @@ class Companies {
64
64
  const response = await this.client.request(`/companies/insights?${params.toString()}`);
65
65
  return response.data;
66
66
  }
67
+ /**
68
+ * (Pro) Obtiene datos de contacto y preparación de la empresa.
69
+ */
70
+ async contactPrep(cif) {
71
+ const params = new URLSearchParams({ cif });
72
+ const response = await this.client.request(`/companies/contact-prep?${params.toString()}`);
73
+ return response.data;
74
+ }
75
+ /**
76
+ * (Business) Obtiene la información del Radar de empresas.
77
+ */
78
+ async radar(cif) {
79
+ const params = new URLSearchParams({ cif });
80
+ const response = await this.client.request(`/companies/radar?${params.toString()}`);
81
+ return response.data;
82
+ }
83
+ /**
84
+ * (Business) Realiza un match avanzado con los datos de una empresa.
85
+ */
86
+ async match(cif) {
87
+ const params = new URLSearchParams({ cif });
88
+ const response = await this.client.request(`/companies/match?${params.toString()}`);
89
+ return response.data;
90
+ }
91
+ /**
92
+ * (Business) Obtiene la red o entramado societario (Network) de una empresa.
93
+ */
94
+ async network(cif) {
95
+ const params = new URLSearchParams({ cif });
96
+ const response = await this.client.request(`/companies/network?${params.toString()}`);
97
+ return response.data;
98
+ }
67
99
  }
68
100
  exports.Companies = Companies;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apiempresas",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "SDK oficial de APIEmpresas.es para Node.js y TypeScript",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",