@omnizoek/sdk 0.1.4 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +37 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Official TypeScript/JavaScript SDK for the [OmniZoek API](https://omnizoek.nl) — Dutch government data in one clean REST API.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@omnizoek/sdk)](https://www.npmjs.com/package/@omnizoek/sdk)
6
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
6
+ [![License: Proprietary](https://img.shields.io/badge/License-Proprietary-red.svg)](LICENSE)
7
7
 
8
8
  ---
9
9
 
@@ -67,11 +67,20 @@ Or visit [omnizoek.nl/playground](https://omnizoek.nl/playground) to try every e
67
67
  ### `omni.geo` — Geographic enrichment
68
68
 
69
69
  ```ts
70
+ // Enrich a Dutch address (BAG + PDOK)
70
71
  const result = await omni.geo.enrichAddress({
71
72
  postcode: "1012LG",
72
73
  houseNumber: "1",
73
74
  // energy?: boolean — include EP-Online energy label (default: true)
74
75
  });
76
+
77
+ // Forward geocode a free-text query
78
+ const geo = await omni.geo.geocode({ q: "Damrak 1, Amsterdam", rows: 5 });
79
+ // result: { query, results: [{ display_name, lat, lon, postcode, city, … }] }
80
+
81
+ // Reverse geocode coordinates to an address
82
+ const rev = await omni.geo.reverseGeocode({ lat: 52.3756, lon: 4.8951 });
83
+ // result: { display_name, postcode, city, street, house_number, … }
75
84
  ```
76
85
 
77
86
  Returns: full BAG address, coordinates, municipality, province, energy label.
@@ -91,6 +100,14 @@ const vat = await omni.finance.vatVerify({
91
100
  vatNumber: "123456782B01",
92
101
  });
93
102
  // result: { valid, status, company_name, address, checked_at, … }
103
+
104
+ // ECB daily euro exchange rates
105
+ const rates = await omni.finance.exchangeRates();
106
+ // result: { base: "EUR", date, rates: { USD: 1.08, GBP: 0.85, … } }
107
+
108
+ // VAT rates for an EU country
109
+ const vatRates = await omni.finance.vatRates({ country: "NL" });
110
+ // result: { standard_rate: 21, reduced_rates: [9], categories: […] }
94
111
  ```
95
112
 
96
113
  ---
@@ -148,6 +165,24 @@ const ze = await omni.logistics.emissionZone({ kenteken: "AB123C" });
148
165
  // NS train disruptions
149
166
  const disruptions = await omni.logistics.transitDisruptions({ stationCode: "ASD" });
150
167
  // result: { station_code, disruptions: [{ type, title, cause, start, end }], … }
168
+
169
+ // Full vehicle history from RDW (4 datasets + recalls)
170
+ const history = await omni.logistics.vehicleHistory({ kenteken: "AB123C" });
171
+ // result: { make, commercial_name, fuel_types, euro_standard, apk_expiry_date, open_recalls, … }
172
+ ```
173
+
174
+ ---
175
+
176
+ ### `omni.business` — Business entity data
177
+
178
+ ```ts
179
+ // Direct LEI lookup by code
180
+ const lei = await omni.business.leiLookup({ lei: "5493001KJTIIGC8Y1R12" });
181
+ // result: { legal_name, jurisdiction, status, registered_address, bic_codes, … }
182
+
183
+ // Search by company name
184
+ const results = await omni.business.leiLookup({ name: "ING", country: "NL" });
185
+ // result: { query, results: [LeiRecord, …] }
151
186
  ```
152
187
 
153
188
  ---
@@ -231,4 +266,4 @@ const omni = new OmniClient({
231
266
 
232
267
  ## License
233
268
 
234
- MIT — see [LICENSE](LICENSE).
269
+ Proprietary — see [LICENSE](LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnizoek/sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Official TypeScript/JavaScript SDK for the OmniZoek API — Dutch government data APIs (BAG, EP-Online, RDW, VIES, NS, WML, ENTSO-E).",
5
5
  "author": "OmniZoek <support@omnizoek.nl>",
6
6
  "license": "UNLICENSED",