aves-sdk 1.7.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 +15 -0
- package/README.md +33 -42
- package/dist/index.d.mts +755 -432
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ 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
|
+
## [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
|
+
|
|
8
23
|
## [1.7.0] - 2026-08-03
|
|
9
24
|
|
|
10
25
|
### Added
|
package/README.md
CHANGED
|
@@ -303,32 +303,29 @@ There is **no** Create Package API in AVES XML 1.8.0. Search, detail, and commit
|
|
|
303
303
|
|
|
304
304
|
| Method | Purpose |
|
|
305
305
|
| ------ | ------- |
|
|
306
|
-
| `searchPackages` | Search programs (`avesSearchType
|
|
307
|
-
| `searchTopServices` | Search TOP services (`avesSearchType
|
|
306
|
+
| `searchPackages` | Search programs (defaults `avesSearchType: 'PACKAGE'`) |
|
|
307
|
+
| `searchTopServices` | Search TOP services (defaults `avesSearchType: 'SERVICE'`) |
|
|
308
308
|
| `getPackageDetail` | Package base info + service list |
|
|
309
309
|
| `commitPackage` | Publish existing package (`packageCode` only) |
|
|
310
310
|
|
|
311
|
+
`paxQty` defaults to `passengerList.length`; `paxQtyCriteria` defaults to `GREATER_OR_EQUAL`. `languageCode` can be omitted when set on `AvesClient` options.
|
|
312
|
+
|
|
311
313
|
```typescript
|
|
312
314
|
const packages = await client.packages.searchPackages({
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
],
|
|
328
|
-
},
|
|
329
|
-
avesSearchType: 'PACKAGE',
|
|
330
|
-
paxQty: '1',
|
|
331
|
-
paxQtyCriteria: 'GREATER_OR_EQUAL',
|
|
315
|
+
customerRecordCode: '138311',
|
|
316
|
+
languageCode: '01',
|
|
317
|
+
currencyCode: 'EUR',
|
|
318
|
+
startDate: '2014-12-27T00:00:00',
|
|
319
|
+
endDate: '2015-01-03T00:00:00',
|
|
320
|
+
passengerList: [
|
|
321
|
+
{
|
|
322
|
+
rph: '001',
|
|
323
|
+
roomRph: '001',
|
|
324
|
+
name: 'ADULTI 001',
|
|
325
|
+
categoryCode: 'AD',
|
|
326
|
+
sex: 'M',
|
|
327
|
+
},
|
|
328
|
+
],
|
|
332
329
|
servOrPackCode: '2014MDE0000010',
|
|
333
330
|
});
|
|
334
331
|
|
|
@@ -426,28 +423,9 @@ Outbound path: validate → `createApiSchema` / `toWireBody` → `invokeOp` →
|
|
|
426
423
|
import type {
|
|
427
424
|
AvesClientOptions,
|
|
428
425
|
AvesClientDeps,
|
|
429
|
-
SearchMasterRecord,
|
|
430
|
-
SearchMasterRecordRS,
|
|
431
|
-
MasterRecordDetail,
|
|
432
|
-
ManageMasterRecordRS,
|
|
433
|
-
BookingFileRQ,
|
|
434
|
-
BookingFileRS,
|
|
435
|
-
ModFileServicesRQ,
|
|
436
|
-
ModFileHeaderRQ,
|
|
437
|
-
CancelFileRQ,
|
|
438
|
-
SetFileStatusRQ,
|
|
439
|
-
SetFileServiceStatusRQ,
|
|
440
|
-
FilePaymentListRQ,
|
|
441
|
-
BookingStatusOnlyRS,
|
|
442
|
-
SearchBookingFileRQ,
|
|
443
|
-
SearchBookingFileRS,
|
|
444
426
|
AvesSearchRQ,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
PackageDetailRQ,
|
|
448
|
-
PackageDetailRS,
|
|
449
|
-
CommitPackageRQ,
|
|
450
|
-
CommitPackageRS,
|
|
427
|
+
BookingFileRQ,
|
|
428
|
+
SearchMasterRecord,
|
|
451
429
|
} from 'aves-sdk';
|
|
452
430
|
|
|
453
431
|
import {
|
|
@@ -457,7 +435,20 @@ import {
|
|
|
457
435
|
BookingClient,
|
|
458
436
|
PackageCatalogClient,
|
|
459
437
|
AvesError,
|
|
438
|
+
// object enums
|
|
439
|
+
AvesSearchType,
|
|
440
|
+
BookingFileStatus,
|
|
441
|
+
InsertCriteria,
|
|
442
|
+
PassengerCategory,
|
|
443
|
+
PaxQtyCriteria,
|
|
444
|
+
PaymentType,
|
|
445
|
+
SearchMasterType,
|
|
460
446
|
} from 'aves-sdk';
|
|
447
|
+
|
|
448
|
+
PaxQtyCriteria.GREATER_OR_EQUAL
|
|
449
|
+
AvesSearchType.PACKAGE
|
|
450
|
+
PaymentType.B
|
|
451
|
+
InsertCriteria.T
|
|
461
452
|
```
|
|
462
453
|
|
|
463
454
|
## License
|