aves-sdk 1.6.0 → 1.8.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 ADDED
@@ -0,0 +1,239 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.8.0] - 2026-08-03
9
+
10
+ ### Added
11
+
12
+ - Exportable shared object enums (`PaxQtyCriteria`, `AvesSearchType`, `PaymentType`, `InsertCriteria`, booking/master statuses, etc.) and matching `*Schema` picklists
13
+
14
+ ### Changed
15
+
16
+ - **Breaking:** `searchPackages` / `searchTopServices` payload is flat (no `baseSearch` nest)
17
+ - Defaults: `avesSearchType` (`PACKAGE` / `SERVICE` by method), `paxQty` ← `passengerList.length`, `paxQtyCriteria` ← `GREATER_OR_EQUAL`
18
+ - `languageCode` optional when set on `AvesClient` options
19
+ - Schemas use shared object enums instead of inline string unions
20
+
21
+ ---
22
+
23
+ ## [1.7.0] - 2026-08-03
24
+
25
+ ### Added
26
+
27
+ - Package / Program catalog APIs: `searchPackages`, `searchTopServices`, `getPackageDetail`, `commitPackage`
28
+ - `searchBookingFiles` (`FILE_CODE` | `PAX_NAME` | `PACKAGE_CODE` | `OTHER`)
29
+ - Domain clients with DI: `AvesTransport`, `MasterRecordsClient`, `BookingClient`, `PackageCatalogClient`, `AvesClientDeps`
30
+ - Per-request `WireShape` model (`src/utils/wire-shapes.ts`)
31
+ - Flat method aliases auto-bound from domain prototypes (`client/flat-aliases.ts`)
32
+
33
+ ### Changed
34
+
35
+ - `AvesClient` is a thin facade; prefer `client.booking.*` / `client.packages.*` / `client.master.*`
36
+ - Single outbound wire path: `createApiSchema` / `toWireBody` / `invokeOp` (optional `bodyKey`)
37
+ - XML helpers moved to `src/xml/`
38
+ - Master search/upsert routed through `invokeOp`
39
+
40
+ ### Fixed
41
+
42
+ - InsertFilePaymentList root `paymentUser` emitted as `@PaymentUser` (not a child element)
43
+
44
+ ### Removed
45
+
46
+ - Global `ATTRIBUTE_FIELDS` registry
47
+ - Versioned docs under `docs/` from git (`docs/` gitignored)
48
+
49
+ ---
50
+
51
+ ## [1.6.0] - 2026-07-29
52
+
53
+ ### Changed
54
+
55
+ - **Breaking:** booking `*List` SDK inputs are flat `Detail[]`; SDK wraps to AVES List/Detail XML
56
+ - Shared `PaymentTypeSchema` across booking ops
57
+ - README refreshed for constructor, `Result` / `AvesError`, and flat list examples
58
+ - Documented additional package managers in README
59
+
60
+ ---
61
+
62
+ ## [1.5.1] - 2026-07-29
63
+
64
+ ### Changed
65
+
66
+ - Added `fast-xml-builder` dependency
67
+ - Dependency / `tsdown` config maintenance
68
+
69
+ ---
70
+
71
+ ## [1.5.0] - 2026-07-29
72
+
73
+ ### Added
74
+
75
+ - `insertFilePaymentList` (InsertFilePaymentList) for payment registration
76
+ - Tighter `invokeOp` schema inference
77
+ - Booking ops documentation updates
78
+
79
+ ---
80
+
81
+ ## [1.4.0] - 2026-07-29
82
+
83
+ ### Added
84
+
85
+ - Booking ops: ModBookingFileServices, ModBookingFileHeader, CancelBookingFile, SetStatus / SetStatusService
86
+ - Shared transforms and typed BOOKEDFILE responses
87
+ - Unit coverage for booking ops
88
+
89
+ ### Changed
90
+
91
+ - Dependency updates
92
+
93
+ ---
94
+
95
+ ## [1.3.4] - 2026-03-09
96
+
97
+ ### Added
98
+
99
+ - Create-booking related input schemas: financial deadlines, payments, selected packages/services, notes, passengers
100
+
101
+ ### Fixed
102
+
103
+ - Union formatting in `SelectedServiceListInputSchema`
104
+
105
+ ### Changed
106
+
107
+ - Error handling via `isOk`
108
+ - Schema / quote standardization across client and types
109
+
110
+ ---
111
+
112
+ ## [1.3.3] - 2026-02-26
113
+
114
+ ### Fixed
115
+
116
+ - `package.json` packaging fix
117
+
118
+ ---
119
+
120
+ ## [1.3.2] - 2026-02-10
121
+
122
+ ### Added
123
+
124
+ - `createBooking` (CreateBookingFile) with tests
125
+ - Migrated bundler from `tsup` to `tsdown`
126
+
127
+ ### Changed
128
+
129
+ - Package configuration updates
130
+
131
+ ---
132
+
133
+ ## [1.3.1] - 2026-02-01
134
+
135
+ ### Changed
136
+
137
+ - Error-handling path formatting simplified
138
+ - String-quote standardization
139
+
140
+ ---
141
+
142
+ ## [1.3.0] - 2026-02-01
143
+
144
+ ### Added
145
+
146
+ - Biome linting
147
+ - Undici-based mock improvements in tests
148
+ - Additional master-record properties and attribute-schema refactor
149
+ - Broader test coverage
150
+
151
+ ### Changed
152
+
153
+ - Consolidated XML root element definitions and utilities
154
+
155
+ ---
156
+
157
+ ## [1.2.16] - 2026-01-27
158
+
159
+ ### Changed
160
+
161
+ - Removed unnecessary `as any` casts
162
+
163
+ ---
164
+
165
+ ## [1.2.15] - 2026-01-27
166
+
167
+ ### Fixed
168
+
169
+ - XML / validation follow-up fixes
170
+
171
+ ---
172
+
173
+ ## [1.2.14] - 2026-01-27
174
+
175
+ ### Changed
176
+
177
+ - XML ↔ JSON conversion and validation schema improvements
178
+
179
+ ---
180
+
181
+ ## [1.2.13] - 2026-01-27
182
+
183
+ ### Added
184
+
185
+ - Request timeout handling with clear timeout vs other errors
186
+ - `isAbortError` utility
187
+
188
+ ### Changed
189
+
190
+ - `AvesClientOptions` moved to `types.ts`
191
+ - Request method uses Valibot `BaseSchema` more consistently
192
+ - Upsert response schema and error detail improvements
193
+ - `recordCode` length validation tests
194
+
195
+ ---
196
+
197
+ ## [1.2.12] - 2026-01-26
198
+
199
+ ### Added
200
+
201
+ - Export `AvesClientOptions` for external usage
202
+ - Mapped profiling record support
203
+
204
+ ### Changed
205
+
206
+ - Restructured `AvesError` handling and client initialization
207
+ - Optional `insertCriteria` on upsert flow
208
+
209
+ ### Fixed
210
+
211
+ - Misc client fixes
212
+
213
+ ---
214
+
215
+ ## [1.2.11] - 2026-01-21
216
+
217
+ ### Fixed
218
+
219
+ - Error code handling uses numeric values instead of strings
220
+
221
+ ---
222
+
223
+ ## [1.0.3] - 2025-10-04
224
+
225
+ Early tagged releases (`v1.0.0` … `v1.0.3`) from the initial NestJS-oriented AVES SDK work. Detailed commit notes for those tags are limited in the current branch history.
226
+
227
+ ### Added
228
+
229
+ - Initial AVES SDK implementation with XML/REST interfaces (2025-10-03)
230
+
231
+ ---
232
+
233
+ ## Links
234
+
235
+ - [npm](https://www.npmjs.com/package/aves-sdk)
236
+ - [GitHub](https://github.com/simoneguglielmi/aves-sdk)
237
+ - Tags: [v1.0.0](https://github.com/simoneguglielmi/aves-sdk/releases/tag/v1.0.0) … [v1.0.3](https://github.com/simoneguglielmi/aves-sdk/releases/tag/v1.0.3)
238
+
239
+ > Git tags after `v1.0.3` were not present when this file was generated; version sections follow `package.json` bumps and commit messages.