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