letsfg 1.0.5 → 1.1.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/README.md +1 -1
- package/dist/{chunk-ES56QTBU.mjs → chunk-GSV6LFSX.mjs} +2 -2
- package/dist/cli.js +2 -2
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ letsfg book off_xxx -p '{"id":"pas_xxx","given_name":"John",...}' -e john@exampl
|
|
|
74
74
|
|
|
75
75
|
### `searchLocal(origin, destination, dateFrom, options?)`
|
|
76
76
|
|
|
77
|
-
Search
|
|
77
|
+
Search 150+ airline connectors locally (no API key needed). Requires Python + `letsfg` installed.
|
|
78
78
|
|
|
79
79
|
```typescript
|
|
80
80
|
import { searchLocal } from 'letsfg';
|
|
@@ -238,7 +238,7 @@ var LetsFG = class {
|
|
|
238
238
|
return this.post("/api/v1/bookings/unlock", { offer_id: offerId });
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
241
|
-
* Book a flight —
|
|
241
|
+
* Book a flight — charges ticket price via Stripe.
|
|
242
242
|
* Creates a real airline reservation with PNR.
|
|
243
243
|
*
|
|
244
244
|
* Always provide idempotencyKey to prevent double-bookings on retry.
|
|
@@ -256,7 +256,7 @@ var LetsFG = class {
|
|
|
256
256
|
return this.post("/api/v1/bookings/book", body);
|
|
257
257
|
}
|
|
258
258
|
/**
|
|
259
|
-
* Set up payment method (
|
|
259
|
+
* Set up payment method (required before booking).
|
|
260
260
|
*/
|
|
261
261
|
async setupPayment(token = "tok_visa") {
|
|
262
262
|
this.requireApiKey();
|
package/dist/cli.js
CHANGED
|
@@ -210,7 +210,7 @@ var LetsFG = class {
|
|
|
210
210
|
return this.post("/api/v1/bookings/unlock", { offer_id: offerId });
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
|
-
* Book a flight —
|
|
213
|
+
* Book a flight — charges ticket price via Stripe.
|
|
214
214
|
* Creates a real airline reservation with PNR.
|
|
215
215
|
*
|
|
216
216
|
* Always provide idempotencyKey to prevent double-bookings on retry.
|
|
@@ -228,7 +228,7 @@ var LetsFG = class {
|
|
|
228
228
|
return this.post("/api/v1/bookings/book", body);
|
|
229
229
|
}
|
|
230
230
|
/**
|
|
231
|
-
* Set up payment method (
|
|
231
|
+
* Set up payment method (required before booking).
|
|
232
232
|
*/
|
|
233
233
|
async setupPayment(token = "tok_visa") {
|
|
234
234
|
this.requireApiKey();
|
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -223,14 +223,14 @@ declare class LetsFG {
|
|
|
223
223
|
*/
|
|
224
224
|
unlock(offerId: string): Promise<UnlockResult>;
|
|
225
225
|
/**
|
|
226
|
-
* Book a flight —
|
|
226
|
+
* Book a flight — charges ticket price via Stripe.
|
|
227
227
|
* Creates a real airline reservation with PNR.
|
|
228
228
|
*
|
|
229
229
|
* Always provide idempotencyKey to prevent double-bookings on retry.
|
|
230
230
|
*/
|
|
231
231
|
book(offerId: string, passengers: Passenger[], contactEmail: string, contactPhone?: string, idempotencyKey?: string): Promise<BookingResult>;
|
|
232
232
|
/**
|
|
233
|
-
* Set up payment method (
|
|
233
|
+
* Set up payment method (required before booking).
|
|
234
234
|
*/
|
|
235
235
|
setupPayment(token?: string): Promise<Record<string, unknown>>;
|
|
236
236
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -223,14 +223,14 @@ declare class LetsFG {
|
|
|
223
223
|
*/
|
|
224
224
|
unlock(offerId: string): Promise<UnlockResult>;
|
|
225
225
|
/**
|
|
226
|
-
* Book a flight —
|
|
226
|
+
* Book a flight — charges ticket price via Stripe.
|
|
227
227
|
* Creates a real airline reservation with PNR.
|
|
228
228
|
*
|
|
229
229
|
* Always provide idempotencyKey to prevent double-bookings on retry.
|
|
230
230
|
*/
|
|
231
231
|
book(offerId: string, passengers: Passenger[], contactEmail: string, contactPhone?: string, idempotencyKey?: string): Promise<BookingResult>;
|
|
232
232
|
/**
|
|
233
|
-
* Set up payment method (
|
|
233
|
+
* Set up payment method (required before booking).
|
|
234
234
|
*/
|
|
235
235
|
setupPayment(token?: string): Promise<Record<string, unknown>>;
|
|
236
236
|
/**
|
package/dist/index.js
CHANGED
|
@@ -288,7 +288,7 @@ var LetsFG = class {
|
|
|
288
288
|
return this.post("/api/v1/bookings/unlock", { offer_id: offerId });
|
|
289
289
|
}
|
|
290
290
|
/**
|
|
291
|
-
* Book a flight —
|
|
291
|
+
* Book a flight — charges ticket price via Stripe.
|
|
292
292
|
* Creates a real airline reservation with PNR.
|
|
293
293
|
*
|
|
294
294
|
* Always provide idempotencyKey to prevent double-bookings on retry.
|
|
@@ -306,7 +306,7 @@ var LetsFG = class {
|
|
|
306
306
|
return this.post("/api/v1/bookings/book", body);
|
|
307
307
|
}
|
|
308
308
|
/**
|
|
309
|
-
* Set up payment method (
|
|
309
|
+
* Set up payment method (required before booking).
|
|
310
310
|
*/
|
|
311
311
|
async setupPayment(token = "tok_visa") {
|
|
312
312
|
this.requireApiKey();
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "letsfg",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Agent-native flight search & booking. 102 airline connectors run locally + enterprise GDS/NDC APIs. Built for autonomous AI agents.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|