@voyantjs/flights 0.19.0 → 0.20.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/LICENSE +201 -0
- package/dist/contract/adapter.d.ts +52 -1
- package/dist/contract/adapter.d.ts.map +1 -1
- package/dist/contract/types.d.ts +284 -3
- package/dist/contract/types.d.ts.map +1 -1
- package/dist/contract/types.js +2 -0
- package/package.json +63 -75
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may accept and charge a
|
|
167
|
+
fee for, the acceptance of support, warranty, indemnity, or
|
|
168
|
+
other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 PixelMakers Studio SRL
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -12,10 +12,15 @@
|
|
|
12
12
|
*
|
|
13
13
|
* See `docs/architecture/catalog-flights-architecture.md` §3.
|
|
14
14
|
*/
|
|
15
|
-
import type { FlightBookRequest, FlightCapability, FlightOffer, FlightOrder, FlightSearchRequest } from "./types.js";
|
|
15
|
+
import type { AncillaryRequest, AncillaryResponse, FlightBookRequest, FlightCapability, FlightOffer, FlightOrder, FlightOrderStatus, FlightSearchPaginationMeta, FlightSearchRequest, SeatMapRequest, SeatMapResponse } from "./types.js";
|
|
16
16
|
/**
|
|
17
17
|
* Context passed to every adapter call. Identifies the connection and
|
|
18
18
|
* carries credentials, optional point-of-sale, tracing identifiers.
|
|
19
|
+
*
|
|
20
|
+
* `deps` is an escape hatch for adapter-specific runtime dependencies that
|
|
21
|
+
* shouldn't bleed into the contract — e.g. a Postgres handle for a demo
|
|
22
|
+
* adapter that self-persists, or a feature-flag client. Real connectors
|
|
23
|
+
* (Sabre, Amadeus, Duffel) ignore it.
|
|
19
24
|
*/
|
|
20
25
|
export interface FlightAdapterContext {
|
|
21
26
|
connectionId: string;
|
|
@@ -23,9 +28,16 @@ export interface FlightAdapterContext {
|
|
|
23
28
|
/** Operator's IATA office id / pseudo-city / point-of-sale, when applicable. */
|
|
24
29
|
pointOfSale?: string;
|
|
25
30
|
correlationId?: string;
|
|
31
|
+
deps?: Record<string, unknown>;
|
|
26
32
|
}
|
|
27
33
|
export interface FlightSearchResponse {
|
|
28
34
|
offers: FlightOffer[];
|
|
35
|
+
/**
|
|
36
|
+
* Pagination metadata, present when the adapter honors
|
|
37
|
+
* `request.pagination`. Omitted by adapters that always return the
|
|
38
|
+
* full result set in one call.
|
|
39
|
+
*/
|
|
40
|
+
pagination?: FlightSearchPaginationMeta;
|
|
29
41
|
/** Provider-specific data, opaque to the consumer. */
|
|
30
42
|
providerData?: Record<string, unknown>;
|
|
31
43
|
}
|
|
@@ -55,6 +67,23 @@ export interface FlightCancelResponse {
|
|
|
55
67
|
};
|
|
56
68
|
}
|
|
57
69
|
export type FlightCancelReason = "customer_request" | "schedule_change" | "operational" | "fraud";
|
|
70
|
+
export interface FlightOrdersListQuery {
|
|
71
|
+
/** Pagination cursor — opaque, returned by the previous response. */
|
|
72
|
+
cursor?: string;
|
|
73
|
+
limit?: number;
|
|
74
|
+
/** Restrict to orders in any of these statuses. */
|
|
75
|
+
status?: FlightOrderStatus[];
|
|
76
|
+
/** Free-text match against PNR, passenger name, or contact email. */
|
|
77
|
+
search?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface FlightOrdersListResponse {
|
|
80
|
+
orders: FlightOrder[];
|
|
81
|
+
pagination: {
|
|
82
|
+
total: number;
|
|
83
|
+
hasMore: boolean;
|
|
84
|
+
cursor?: string;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
58
87
|
/**
|
|
59
88
|
* Capability declaration returned by the adapter at registration time.
|
|
60
89
|
* The orchestration layer reads `capabilities` to route requests and to
|
|
@@ -97,8 +126,30 @@ export interface FlightConnectorAdapter {
|
|
|
97
126
|
getOrder(ctx: FlightAdapterContext, orderId: string): Promise<FlightGetOrderResponse>;
|
|
98
127
|
/** Cancel an order. */
|
|
99
128
|
cancelOrder(ctx: FlightAdapterContext, orderId: string, reason?: FlightCancelReason): Promise<FlightCancelResponse>;
|
|
129
|
+
/**
|
|
130
|
+
* `flight/list-orders` — return a paginated list of orders the adapter
|
|
131
|
+
* has visibility on. Real GDS connectors typically only support listing
|
|
132
|
+
* by PNR/locator (not the full agency book of business), but persistent
|
|
133
|
+
* adapters and self-hosted demos can list everything they've stored.
|
|
134
|
+
*/
|
|
135
|
+
listOrders?(ctx: FlightAdapterContext, query: FlightOrdersListQuery): Promise<FlightOrdersListResponse>;
|
|
100
136
|
/** `flight/holds` — promote a held order to ticketed. */
|
|
101
137
|
ticketOrder?(ctx: FlightAdapterContext, orderId: string): Promise<FlightGetOrderResponse>;
|
|
138
|
+
/**
|
|
139
|
+
* `flight/ancillaries` — list bag / assistance / extra options for an offer.
|
|
140
|
+
* Catalog is per-offer because availability depends on the booked itinerary;
|
|
141
|
+
* for round-trip flows where each leg is its own offer, callers fetch one
|
|
142
|
+
* catalog per leg and merge the picks at book time via
|
|
143
|
+
* `FlightBookRequest.ancillaries`.
|
|
144
|
+
*/
|
|
145
|
+
getAncillaries?(ctx: FlightAdapterContext, request: AncillaryRequest): Promise<AncillaryResponse>;
|
|
146
|
+
/**
|
|
147
|
+
* `flight/seatmap` — fetch the seat map for one segment of an offer.
|
|
148
|
+
* Maps are per-segment because layouts differ by aircraft and cabin
|
|
149
|
+
* (a multi-stop itinerary may use different equipment per leg). Picks
|
|
150
|
+
* are submitted at book time via `FlightBookRequest.ancillaries.seats`.
|
|
151
|
+
*/
|
|
152
|
+
getSeatMap?(ctx: FlightAdapterContext, request: SeatMapRequest): Promise<SeatMapResponse>;
|
|
102
153
|
}
|
|
103
154
|
/**
|
|
104
155
|
* Standard error code for capability-gated methods that aren't supported
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/contract/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,mBAAmB,
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/contract/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,0BAA0B,EAC1B,mBAAmB,EACnB,cAAc,EACd,eAAe,EAChB,MAAM,YAAY,CAAA;AAEnB;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACpC,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC/B;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,0BAA0B,CAAA;IACvC,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACvC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,wEAAwE;IACxE,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,WAAW,CAAA;IAClB,yEAAyE;IACzE,KAAK,EAAE,OAAO,CAAA;IACd,0DAA0D;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,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AE,gBAAgB,EAC5B,SAAS,EAAE,MAAM;CAQpC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,yBAAyB,EACvC,UAAU,EAAE,gBAAgB,EAC5B,SAAS,EAAE,MAAM,GAChB,IAAI,CAIN"}
|
package/dist/contract/types.d.ts
CHANGED
|
@@ -87,9 +87,62 @@ export interface FlightOffer {
|
|
|
87
87
|
/** ISO 8601 — last ticketing date. */
|
|
88
88
|
lastTicketingDate?: string;
|
|
89
89
|
instantTicketing?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Branded fare bundles available for this offer (Basic / Standard / Plus
|
|
92
|
+
* style). Optional — adapters that don't surface branded fares omit this
|
|
93
|
+
* field; the offer's `totalPrice` is then the only fare. Bundles are
|
|
94
|
+
* defined per-offer; for round-trip flows where each leg is its own
|
|
95
|
+
* offer, callers fetch bundles per leg and submit picks via
|
|
96
|
+
* `AncillarySelection.fareBundle`.
|
|
97
|
+
*/
|
|
98
|
+
fareBundles?: FareBundle[];
|
|
90
99
|
/** Provider-specific data — opaque round-trip. */
|
|
91
100
|
providerData?: Record<string, unknown>;
|
|
92
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* A branded fare upsell tier. Tiers add inclusions (bag, seat, refund
|
|
104
|
+
* flexibility) on top of the offer's base fare for a per-pax delta.
|
|
105
|
+
*/
|
|
106
|
+
export interface FareBundle {
|
|
107
|
+
id: string;
|
|
108
|
+
/** Display label, e.g. "Wizz Standard", "Plus", "Lufthansa Light". */
|
|
109
|
+
label: string;
|
|
110
|
+
/** Tier hint — UI uses it to badge / order tiles. */
|
|
111
|
+
tier: "basic" | "standard" | "plus" | "premium";
|
|
112
|
+
/** Per-adult price delta on top of `FlightOffer.totalPrice`. */
|
|
113
|
+
priceDelta: Money;
|
|
114
|
+
/** Highlights the recommended tier in the UI (typically "standard"). */
|
|
115
|
+
recommended?: boolean;
|
|
116
|
+
/** Structured inclusions — UI renders as a checklist on the tile. */
|
|
117
|
+
inclusions: FareBundleInclusions;
|
|
118
|
+
/** Provider-specific data — opaque round-trip. */
|
|
119
|
+
providerData?: Record<string, unknown>;
|
|
120
|
+
}
|
|
121
|
+
export interface FareBundleInclusions {
|
|
122
|
+
/** Cabin / personal item allowance. */
|
|
123
|
+
cabinBag?: {
|
|
124
|
+
included: boolean;
|
|
125
|
+
weightKg?: number;
|
|
126
|
+
};
|
|
127
|
+
/** Checked baggage allowance. */
|
|
128
|
+
checkedBag?: {
|
|
129
|
+
included: boolean;
|
|
130
|
+
pieces?: number;
|
|
131
|
+
weightKg?: number;
|
|
132
|
+
};
|
|
133
|
+
/** Seat selection rights. `free` = pick any seat; `standard` = standard only. */
|
|
134
|
+
seatSelection?: "none" | "standard" | "free";
|
|
135
|
+
/** Priority boarding. */
|
|
136
|
+
priorityBoarding?: boolean;
|
|
137
|
+
/** Lounge access. */
|
|
138
|
+
loungeAccess?: boolean;
|
|
139
|
+
/** Refundable status — typically false for basic, partial for standard, true for plus. */
|
|
140
|
+
refundable?: boolean;
|
|
141
|
+
/** Date / time changes allowed without fee. */
|
|
142
|
+
changeable?: boolean;
|
|
143
|
+
/** Free-text additional perks the carrier wants to surface. */
|
|
144
|
+
notes?: string[];
|
|
145
|
+
}
|
|
93
146
|
/**
|
|
94
147
|
* One slice of a search request. Slice count determines trip type:
|
|
95
148
|
* - 1 slice → one-way
|
|
@@ -110,6 +163,32 @@ export interface PassengerCounts {
|
|
|
110
163
|
children?: number;
|
|
111
164
|
infants?: number;
|
|
112
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* Pagination cursor for results. Adapters that don't support pagination
|
|
168
|
+
* may ignore this entirely and return the full result set on every call.
|
|
169
|
+
*
|
|
170
|
+
* `cursor` is opaque to the caller — it's whatever the previous response
|
|
171
|
+
* returned in `pagination.cursor`. The demo adapter uses 1-indexed page
|
|
172
|
+
* numbers; real connectors typically return GDS-issued continuation tokens.
|
|
173
|
+
*/
|
|
174
|
+
export interface FlightSearchPagination {
|
|
175
|
+
/** Max offers per page. Adapters may cap or ignore. */
|
|
176
|
+
limit?: number;
|
|
177
|
+
/** Continuation token from the prior response, or omitted for first page. */
|
|
178
|
+
cursor?: string;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Pagination metadata returned by the adapter alongside the offer page.
|
|
182
|
+
* `total` is the count BEFORE pagination but AFTER any server-side filters
|
|
183
|
+
* declared on the request — so the UI can render "Showing 1-20 of 47".
|
|
184
|
+
*/
|
|
185
|
+
export interface FlightSearchPaginationMeta {
|
|
186
|
+
total: number;
|
|
187
|
+
/** Cursor to pass for the next page, omitted on the last page. */
|
|
188
|
+
cursor?: string;
|
|
189
|
+
/** Convenience flag — equivalent to `cursor != null`. */
|
|
190
|
+
hasMore: boolean;
|
|
191
|
+
}
|
|
113
192
|
export interface FlightSearchRequest {
|
|
114
193
|
slices: FlightSlice[];
|
|
115
194
|
passengers: PassengerCounts;
|
|
@@ -120,7 +199,18 @@ export interface FlightSearchRequest {
|
|
|
120
199
|
minConnectionMinutes?: number;
|
|
121
200
|
includeCarriers?: string[];
|
|
122
201
|
excludeCarriers?: string[];
|
|
202
|
+
/**
|
|
203
|
+
* Cap the offer total price (in offer currency). Adapters that don't
|
|
204
|
+
* declare currency-aware filtering should treat this as a same-currency
|
|
205
|
+
* cap and skip offers priced above it.
|
|
206
|
+
*/
|
|
207
|
+
maxPrice?: number;
|
|
123
208
|
};
|
|
209
|
+
/**
|
|
210
|
+
* Optional pagination cursor. Adapters that don't support pagination
|
|
211
|
+
* may ignore this and return the full result set.
|
|
212
|
+
*/
|
|
213
|
+
pagination?: FlightSearchPagination;
|
|
124
214
|
}
|
|
125
215
|
/**
|
|
126
216
|
* Intent-driven booking — caller declares what they want, system honors
|
|
@@ -149,9 +239,10 @@ export interface BillingAddress {
|
|
|
149
239
|
export interface FlightPassenger {
|
|
150
240
|
passengerId: string;
|
|
151
241
|
type: PassengerType;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
242
|
+
firstName: string;
|
|
243
|
+
middleName?: string;
|
|
244
|
+
lastName: string;
|
|
245
|
+
dateOfBirth: string;
|
|
155
246
|
gender?: "M" | "F" | "X";
|
|
156
247
|
email?: string;
|
|
157
248
|
phone?: string;
|
|
@@ -174,6 +265,14 @@ export interface FlightBookRequest {
|
|
|
174
265
|
phone?: string;
|
|
175
266
|
};
|
|
176
267
|
paymentIntent?: PaymentIntent;
|
|
268
|
+
/**
|
|
269
|
+
* Optional ancillary picks (bags / assistance / extras) collected at
|
|
270
|
+
* checkout. Adapters that don't declare `flight/ancillaries` must accept
|
|
271
|
+
* this field but ignore it; supporting adapters echo the picks back on
|
|
272
|
+
* the resulting `FlightOrder.providerData` and reflect prices in the
|
|
273
|
+
* order total.
|
|
274
|
+
*/
|
|
275
|
+
ancillaries?: AncillarySelection;
|
|
177
276
|
}
|
|
178
277
|
export type FlightOrderStatus = "pending" | "confirmed" | "ticketed" | "cancelled" | "failed";
|
|
179
278
|
export interface FlightTicket {
|
|
@@ -202,6 +301,186 @@ export interface FlightOrder {
|
|
|
202
301
|
/** Provider-specific data — opaque round-trip. */
|
|
203
302
|
providerData?: Record<string, unknown>;
|
|
204
303
|
}
|
|
304
|
+
/**
|
|
305
|
+
* Bag option offered for a single itinerary. Per-pax pricing — the UI
|
|
306
|
+
* multiplies by quantity + selected pax count.
|
|
307
|
+
*/
|
|
308
|
+
export interface AncillaryBaggageOption {
|
|
309
|
+
id: string;
|
|
310
|
+
/** Display label, e.g. "20 kg checked bag". */
|
|
311
|
+
label: string;
|
|
312
|
+
/** Bag category. `personal_item` is the under-seat bag; `cabin` is overhead. */
|
|
313
|
+
category: "checked" | "cabin" | "personal_item" | "sports" | "oversized";
|
|
314
|
+
weightKg?: number;
|
|
315
|
+
dimensions?: {
|
|
316
|
+
lengthCm?: number;
|
|
317
|
+
widthCm?: number;
|
|
318
|
+
heightCm?: number;
|
|
319
|
+
};
|
|
320
|
+
/** Per-pax per-leg price. */
|
|
321
|
+
price: Money;
|
|
322
|
+
/** Hint that the UI should highlight this tier (typical: 20kg). */
|
|
323
|
+
recommended?: boolean;
|
|
324
|
+
/** Provider-specific data — opaque round-trip. */
|
|
325
|
+
providerData?: Record<string, unknown>;
|
|
326
|
+
}
|
|
327
|
+
/** Special-assistance option. Most are free; a few carriers charge. */
|
|
328
|
+
export interface AncillaryAssistanceOption {
|
|
329
|
+
id: string;
|
|
330
|
+
label: string;
|
|
331
|
+
category: "wheelchair" | "visual" | "hearing" | "cognitive" | "medical" | "other";
|
|
332
|
+
/** Free when omitted. */
|
|
333
|
+
price?: Money;
|
|
334
|
+
/** Free-text guidance for the operator (e.g. "Bring own equipment"). */
|
|
335
|
+
notes?: string;
|
|
336
|
+
}
|
|
337
|
+
/** Catch-all extras: priority boarding, pet in cabin, lounge access, etc. */
|
|
338
|
+
export interface AncillaryExtraOption {
|
|
339
|
+
id: string;
|
|
340
|
+
label: string;
|
|
341
|
+
/** Provider-defined tag — UI may group by this. */
|
|
342
|
+
category: string;
|
|
343
|
+
price: Money;
|
|
344
|
+
/** Per-pax (default) vs per-booking pricing. */
|
|
345
|
+
pricingScope?: "per_passenger" | "per_booking";
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Catalog of ancillaries available for one offer. The catalog is offer-scoped
|
|
349
|
+
* because availability and pricing depend on the booked itinerary (carrier,
|
|
350
|
+
* cabin, route, fare class). For round-trip flows where the journey is
|
|
351
|
+
* composed of two single-leg offers, the UI fetches one catalog per leg.
|
|
352
|
+
*/
|
|
353
|
+
export interface AncillaryCatalog {
|
|
354
|
+
baggage: AncillaryBaggageOption[];
|
|
355
|
+
assistance: AncillaryAssistanceOption[];
|
|
356
|
+
extras: AncillaryExtraOption[];
|
|
357
|
+
}
|
|
358
|
+
export interface AncillaryRequest {
|
|
359
|
+
offerId: string;
|
|
360
|
+
/** Some providers require the offer payload echoed back. */
|
|
361
|
+
offer?: FlightOffer;
|
|
362
|
+
}
|
|
363
|
+
export interface AncillaryResponse {
|
|
364
|
+
catalog: AncillaryCatalog;
|
|
365
|
+
/** ISO 8601 — when this catalog quote stops being valid for booking. */
|
|
366
|
+
validUntil?: string;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Ancillary selection submitted with `bookFlight`. Picks are indexed by
|
|
370
|
+
* passenger id and (for per-leg picks) by slice index — slice 0 = outbound,
|
|
371
|
+
* slice 1 = return (matching the order in `FlightOffer.itineraries`).
|
|
372
|
+
*
|
|
373
|
+
* The shape stays additive: providers that introduce per-segment seat picks
|
|
374
|
+
* later get a sibling field on this interface, not a breaking change.
|
|
375
|
+
*/
|
|
376
|
+
export interface AncillarySelection {
|
|
377
|
+
/** Per-pax per-slice baggage picks. */
|
|
378
|
+
baggage?: Array<{
|
|
379
|
+
passengerId: string;
|
|
380
|
+
sliceIndex: number;
|
|
381
|
+
optionId: string;
|
|
382
|
+
/** Defaults to 1 — same option may be picked multiple times per pax. */
|
|
383
|
+
quantity?: number;
|
|
384
|
+
}>;
|
|
385
|
+
/** Per-pax assistance picks. Trip-wide (not per-slice) by convention. */
|
|
386
|
+
assistance?: Array<{
|
|
387
|
+
passengerId: string;
|
|
388
|
+
optionId: string;
|
|
389
|
+
}>;
|
|
390
|
+
/** Per-pax per-slice extras (priority boarding, sports equipment, etc.). */
|
|
391
|
+
extras?: Array<{
|
|
392
|
+
passengerId: string;
|
|
393
|
+
sliceIndex: number;
|
|
394
|
+
optionId: string;
|
|
395
|
+
quantity?: number;
|
|
396
|
+
}>;
|
|
397
|
+
/**
|
|
398
|
+
* Per-pax per-segment seat picks. Seats are assigned at the segment level
|
|
399
|
+
* (not the slice level) because a multi-stop itinerary requires distinct
|
|
400
|
+
* picks per leg of the journey. Omit any pax/segment combination to defer
|
|
401
|
+
* the assignment to airline auto-allocation.
|
|
402
|
+
*/
|
|
403
|
+
seats?: Array<{
|
|
404
|
+
passengerId: string;
|
|
405
|
+
segmentId: string;
|
|
406
|
+
seatNumber: string;
|
|
407
|
+
}>;
|
|
408
|
+
/**
|
|
409
|
+
* Per-pax per-slice branded fare bundle picks (e.g. Adult 1 on Standard
|
|
410
|
+
* outbound + Plus return; Adult 2 on Basic both legs). Omit any
|
|
411
|
+
* pax/slice combination to keep that pax on the offer's base "Basic"
|
|
412
|
+
* fare for that leg. The shell defaults to applying one pick to all pax
|
|
413
|
+
* on a leg ("Same fare for all passengers" toggle), but the contract
|
|
414
|
+
* stays honest about the per-pax shape — many full-service carriers
|
|
415
|
+
* (LH, BA, AF) and B2B agency bookings actually exercise per-pax mixes.
|
|
416
|
+
*/
|
|
417
|
+
fareBundle?: Array<{
|
|
418
|
+
passengerId: string;
|
|
419
|
+
sliceIndex: number;
|
|
420
|
+
bundleId: string;
|
|
421
|
+
}>;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* One seat on a seat map. Seats are addressed by an airline-style
|
|
425
|
+
* row+column code (e.g. "12A") — the canonical identifier for booking. The
|
|
426
|
+
* `category` drives how the UI styles + prices the seat.
|
|
427
|
+
*/
|
|
428
|
+
export interface Seat {
|
|
429
|
+
/** Combined row+column, e.g. "12A". Stable across the seat map call. */
|
|
430
|
+
seatNumber: string;
|
|
431
|
+
/** Row number, 1-indexed (matches airline numbering). */
|
|
432
|
+
row: number;
|
|
433
|
+
/** Column letter, e.g. "A", "B", "F". */
|
|
434
|
+
column: string;
|
|
435
|
+
status: "available" | "blocked" | "unavailable" | "selected";
|
|
436
|
+
category: "standard" | "preferred" | "extra_legroom" | "exit_row" | "premium" | "bulkhead";
|
|
437
|
+
/** Per-pax seat fee. Omitted = included in fare. */
|
|
438
|
+
price?: Money;
|
|
439
|
+
/**
|
|
440
|
+
* Provider hint about restrictions: e.g. "exit_row_restrictions",
|
|
441
|
+
* "no_recline". Free-text, opaque to the UI; surface as a tooltip badge.
|
|
442
|
+
*/
|
|
443
|
+
notes?: string;
|
|
444
|
+
/** True for window seats. */
|
|
445
|
+
window?: boolean;
|
|
446
|
+
/** True for aisle seats. */
|
|
447
|
+
aisle?: boolean;
|
|
448
|
+
/** Provider-specific data — opaque round-trip. */
|
|
449
|
+
providerData?: Record<string, unknown>;
|
|
450
|
+
}
|
|
451
|
+
export interface SeatRow {
|
|
452
|
+
/** 1-indexed row number. */
|
|
453
|
+
row: number;
|
|
454
|
+
/** Seats in cabin-order (left-to-right). Sparse: gaps render as aisles. */
|
|
455
|
+
seats: Seat[];
|
|
456
|
+
}
|
|
457
|
+
export interface SeatMap {
|
|
458
|
+
segmentId: string;
|
|
459
|
+
/** Aircraft IATA code if known — UI may display the model name. */
|
|
460
|
+
aircraft?: string;
|
|
461
|
+
/** Cabin class this map applies to. */
|
|
462
|
+
cabin: CabinClass;
|
|
463
|
+
/**
|
|
464
|
+
* Column layout — letters in cabin order, with `null` for aisle gaps.
|
|
465
|
+
* Example narrow-body 3-3: `["A","B","C",null,"D","E","F"]`.
|
|
466
|
+
* Example wide-body 3-3-3: `["A","B","C",null,"D","E","F",null,"G","H","J"]`.
|
|
467
|
+
*/
|
|
468
|
+
columnLayout: Array<string | null>;
|
|
469
|
+
rows: SeatRow[];
|
|
470
|
+
/** Provider-specific data — opaque round-trip. */
|
|
471
|
+
providerData?: Record<string, unknown>;
|
|
472
|
+
}
|
|
473
|
+
export interface SeatMapRequest {
|
|
474
|
+
offerId: string;
|
|
475
|
+
segmentId: string;
|
|
476
|
+
/** Some providers require the offer payload echoed back. */
|
|
477
|
+
offer?: FlightOffer;
|
|
478
|
+
}
|
|
479
|
+
export interface SeatMapResponse {
|
|
480
|
+
seatMap: SeatMap;
|
|
481
|
+
/** ISO 8601 — when this seat map quote stops being valid for booking. */
|
|
482
|
+
validUntil?: string;
|
|
483
|
+
}
|
|
205
484
|
/**
|
|
206
485
|
* Capability ids declared per connection. Adapters that don't declare a
|
|
207
486
|
* capability stub the corresponding method with `CAPABILITY_NOT_SUPPORTED`.
|
|
@@ -217,6 +496,8 @@ export declare const FLIGHT_CAPABILITIES: {
|
|
|
217
496
|
readonly VOID: "flight/void";
|
|
218
497
|
readonly SSR: "flight/ssr";
|
|
219
498
|
readonly BRANDED_FARES: "flight/branded-fares";
|
|
499
|
+
/** `listOrders(ctx, query)` is queryable — the adapter persists orders. */
|
|
500
|
+
readonly LIST_ORDERS: "flight/list-orders";
|
|
220
501
|
};
|
|
221
502
|
export type FlightCapability = (typeof FLIGHT_CAPABILITIES)[keyof typeof FLIGHT_CAPABILITIES];
|
|
222
503
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/contract/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,qDAAqD;AACrD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,iBAAiB,GAAG,UAAU,GAAG,OAAO,CAAA;AAE7E,+DAA+D;AAC/D,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE7E,yBAAyB;AACzB,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,mEAAmE;IACnE,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAA;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,EAAE,EAAE,MAAM,CAAA;KACX,CAAA;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,MAAM,CAAA;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,EAAE,EAAE,MAAM,CAAA;KACX,CAAA;IACD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAA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,mBAAmB;;;;;;;;;;;IAW9B,2EAA2E;;CAEnE,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAA"}
|
package/dist/contract/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,95 +1,83 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/flights",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
|
-
".":
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"./
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./contract/types": {
|
|
13
|
+
"types": "./dist/contract/types.d.ts",
|
|
14
|
+
"import": "./dist/contract/types.js",
|
|
15
|
+
"default": "./dist/contract/types.js"
|
|
16
|
+
},
|
|
17
|
+
"./contract/adapter": {
|
|
18
|
+
"types": "./dist/contract/adapter.d.ts",
|
|
19
|
+
"import": "./dist/contract/adapter.js",
|
|
20
|
+
"default": "./dist/contract/adapter.js"
|
|
21
|
+
},
|
|
22
|
+
"./orchestration/fingerprint": {
|
|
23
|
+
"types": "./dist/orchestration/fingerprint.d.ts",
|
|
24
|
+
"import": "./dist/orchestration/fingerprint.js",
|
|
25
|
+
"default": "./dist/orchestration/fingerprint.js"
|
|
26
|
+
},
|
|
27
|
+
"./orchestration/fan-out": {
|
|
28
|
+
"types": "./dist/orchestration/fan-out.d.ts",
|
|
29
|
+
"import": "./dist/orchestration/fan-out.js",
|
|
30
|
+
"default": "./dist/orchestration/fan-out.js"
|
|
31
|
+
},
|
|
32
|
+
"./snapshot": {
|
|
33
|
+
"types": "./dist/snapshot.d.ts",
|
|
34
|
+
"import": "./dist/snapshot.js",
|
|
35
|
+
"default": "./dist/snapshot.js"
|
|
36
|
+
},
|
|
37
|
+
"./reference/contract": {
|
|
38
|
+
"types": "./dist/reference/contract.d.ts",
|
|
39
|
+
"import": "./dist/reference/contract.js",
|
|
40
|
+
"default": "./dist/reference/contract.js"
|
|
41
|
+
},
|
|
42
|
+
"./reference/local-postgres": {
|
|
43
|
+
"types": "./dist/reference/local-postgres.d.ts",
|
|
44
|
+
"import": "./dist/reference/local-postgres.js",
|
|
45
|
+
"default": "./dist/reference/local-postgres.js"
|
|
46
|
+
},
|
|
47
|
+
"./reference/static-bundle": {
|
|
48
|
+
"types": "./dist/reference/static-bundle.d.ts",
|
|
49
|
+
"import": "./dist/reference/static-bundle.js",
|
|
50
|
+
"default": "./dist/reference/static-bundle.js"
|
|
51
|
+
}
|
|
24
52
|
},
|
|
25
53
|
"files": [
|
|
26
54
|
"dist"
|
|
27
55
|
],
|
|
28
56
|
"publishConfig": {
|
|
29
|
-
"access": "public"
|
|
30
|
-
"exports": {
|
|
31
|
-
".": {
|
|
32
|
-
"types": "./dist/index.d.ts",
|
|
33
|
-
"import": "./dist/index.js",
|
|
34
|
-
"default": "./dist/index.js"
|
|
35
|
-
},
|
|
36
|
-
"./contract/types": {
|
|
37
|
-
"types": "./dist/contract/types.d.ts",
|
|
38
|
-
"import": "./dist/contract/types.js",
|
|
39
|
-
"default": "./dist/contract/types.js"
|
|
40
|
-
},
|
|
41
|
-
"./contract/adapter": {
|
|
42
|
-
"types": "./dist/contract/adapter.d.ts",
|
|
43
|
-
"import": "./dist/contract/adapter.js",
|
|
44
|
-
"default": "./dist/contract/adapter.js"
|
|
45
|
-
},
|
|
46
|
-
"./orchestration/fingerprint": {
|
|
47
|
-
"types": "./dist/orchestration/fingerprint.d.ts",
|
|
48
|
-
"import": "./dist/orchestration/fingerprint.js",
|
|
49
|
-
"default": "./dist/orchestration/fingerprint.js"
|
|
50
|
-
},
|
|
51
|
-
"./orchestration/fan-out": {
|
|
52
|
-
"types": "./dist/orchestration/fan-out.d.ts",
|
|
53
|
-
"import": "./dist/orchestration/fan-out.js",
|
|
54
|
-
"default": "./dist/orchestration/fan-out.js"
|
|
55
|
-
},
|
|
56
|
-
"./snapshot": {
|
|
57
|
-
"types": "./dist/snapshot.d.ts",
|
|
58
|
-
"import": "./dist/snapshot.js",
|
|
59
|
-
"default": "./dist/snapshot.js"
|
|
60
|
-
},
|
|
61
|
-
"./reference/contract": {
|
|
62
|
-
"types": "./dist/reference/contract.d.ts",
|
|
63
|
-
"import": "./dist/reference/contract.js",
|
|
64
|
-
"default": "./dist/reference/contract.js"
|
|
65
|
-
},
|
|
66
|
-
"./reference/local-postgres": {
|
|
67
|
-
"types": "./dist/reference/local-postgres.d.ts",
|
|
68
|
-
"import": "./dist/reference/local-postgres.js",
|
|
69
|
-
"default": "./dist/reference/local-postgres.js"
|
|
70
|
-
},
|
|
71
|
-
"./reference/static-bundle": {
|
|
72
|
-
"types": "./dist/reference/static-bundle.d.ts",
|
|
73
|
-
"import": "./dist/reference/static-bundle.js",
|
|
74
|
-
"default": "./dist/reference/static-bundle.js"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"main": "./dist/index.js",
|
|
78
|
-
"types": "./dist/index.d.ts"
|
|
57
|
+
"access": "public"
|
|
79
58
|
},
|
|
80
59
|
"dependencies": {
|
|
81
|
-
"
|
|
82
|
-
"@voyantjs/
|
|
83
|
-
"
|
|
60
|
+
"drizzle-orm": "^0.45.2",
|
|
61
|
+
"@voyantjs/db": "0.20.0",
|
|
62
|
+
"@voyantjs/catalog": "0.20.0"
|
|
84
63
|
},
|
|
85
64
|
"devDependencies": {
|
|
86
|
-
"@voyantjs/voyant-typescript-config": "workspace:*",
|
|
87
65
|
"typescript": "^6.0.2",
|
|
88
|
-
"vitest": "^4.1.2"
|
|
66
|
+
"vitest": "^4.1.2",
|
|
67
|
+
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
89
68
|
},
|
|
90
69
|
"repository": {
|
|
91
70
|
"type": "git",
|
|
92
71
|
"url": "https://github.com/voyantjs/voyant.git",
|
|
93
72
|
"directory": "packages/flights"
|
|
94
|
-
}
|
|
95
|
-
|
|
73
|
+
},
|
|
74
|
+
"scripts": {
|
|
75
|
+
"typecheck": "tsc --noEmit",
|
|
76
|
+
"lint": "biome check src/",
|
|
77
|
+
"test": "vitest run",
|
|
78
|
+
"build": "tsc -p tsconfig.json",
|
|
79
|
+
"clean": "rm -rf dist"
|
|
80
|
+
},
|
|
81
|
+
"main": "./dist/index.js",
|
|
82
|
+
"types": "./dist/index.d.ts"
|
|
83
|
+
}
|