aves-sdk 2.0.0 → 3.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.
- package/CHANGELOG.md +13 -0
- package/README.md +7 -1
- package/dist/index.d.mts +5007 -9959
- package/dist/index.mjs +1 -2
- package/package.json +3 -2
- package/dist/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ All notable changes to this project are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.0.0] - 2026-08-06
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **Breaking:** `master.search` success payload is now `MasterRecordDetailResponse[]` — always a flat array (`[]`, one element, or many). No `rsStatus` wrapper on success (non-OK AVES status remains `result.error`). Replaces the prior `{ rsStatus, masterRecordList }` shape.
|
|
13
|
+
|
|
14
|
+
## [2.0.1] - 2026-08-05
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Omit source maps from the published package; `files` now ships only
|
|
19
|
+
`dist/index.mjs` and `dist/index.d.mts`.
|
|
20
|
+
|
|
8
21
|
## [2.0.0] - 2026-08-05
|
|
9
22
|
|
|
10
23
|
### Changed
|
package/README.md
CHANGED
|
@@ -33,7 +33,8 @@ const result = await client.master.search({
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
if (result.success) {
|
|
36
|
-
|
|
36
|
+
const [record] = result.data;
|
|
37
|
+
console.log(record?.recordCode);
|
|
37
38
|
} else {
|
|
38
39
|
console.error(result.error.kind, result.error.message, result.error.code);
|
|
39
40
|
}
|
|
@@ -121,6 +122,11 @@ const byCode = await client.master.search({
|
|
|
121
122
|
recordCode: '508558',
|
|
122
123
|
});
|
|
123
124
|
|
|
125
|
+
if (byCode.success) {
|
|
126
|
+
const [record] = byCode.data;
|
|
127
|
+
console.log(record?.recordCode);
|
|
128
|
+
}
|
|
129
|
+
|
|
124
130
|
const byEmail = await client.master.search({
|
|
125
131
|
searchType: 'EMAIL',
|
|
126
132
|
email: 'user@example.com',
|