letsfg 2026.5.55 → 2026.5.56
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/dist/{chunk-7C3EKQ37.mjs → chunk-3GLZR3AT.mjs} +2 -0
- package/dist/cli.js +7 -1
- package/dist/cli.mjs +6 -2
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1596,6 +1596,8 @@ var LetsFG = class {
|
|
|
1596
1596
|
if (options.cabinClass) body.cabin_class = options.cabinClass;
|
|
1597
1597
|
if (options.maxStopovers != null) body.max_stopovers = options.maxStopovers;
|
|
1598
1598
|
if (options.sort) body.sort = options.sort;
|
|
1599
|
+
if (options.departureTimeFrom) body.departure_time_from = options.departureTimeFrom;
|
|
1600
|
+
if (options.departureTimeTo) body.departure_time_to = options.departureTimeTo;
|
|
1599
1601
|
if (this.usingPFS) {
|
|
1600
1602
|
return this.searchPFS(body);
|
|
1601
1603
|
}
|
package/dist/cli.js
CHANGED
|
@@ -351,6 +351,8 @@ var LetsFG = class {
|
|
|
351
351
|
if (options.cabinClass) body.cabin_class = options.cabinClass;
|
|
352
352
|
if (options.maxStopovers != null) body.max_stopovers = options.maxStopovers;
|
|
353
353
|
if (options.sort) body.sort = options.sort;
|
|
354
|
+
if (options.departureTimeFrom) body.departure_time_from = options.departureTimeFrom;
|
|
355
|
+
if (options.departureTimeTo) body.departure_time_to = options.departureTimeTo;
|
|
354
356
|
if (this.usingPFS) {
|
|
355
357
|
return this.searchPFS(body);
|
|
356
358
|
}
|
|
@@ -541,6 +543,8 @@ async function cmdSearch(args) {
|
|
|
541
543
|
const currency = getFlag(args, "--currency") || "EUR";
|
|
542
544
|
const limit = parseInt(getFlag(args, "--limit", "-l") || "20");
|
|
543
545
|
const sort = getFlag(args, "--sort") || "price";
|
|
546
|
+
const departureFrom = getFlag(args, "--departure-from");
|
|
547
|
+
const departureTo = getFlag(args, "--departure-to");
|
|
544
548
|
const [origin, destination, date] = args;
|
|
545
549
|
if (!origin || !destination || !date) {
|
|
546
550
|
console.error("Usage: letsfg search <origin> <destination> <date> [options]");
|
|
@@ -554,7 +558,9 @@ async function cmdSearch(args) {
|
|
|
554
558
|
maxStopovers: stops,
|
|
555
559
|
currency,
|
|
556
560
|
limit,
|
|
557
|
-
sort
|
|
561
|
+
sort,
|
|
562
|
+
departureTimeFrom: departureFrom,
|
|
563
|
+
departureTimeTo: departureTo
|
|
558
564
|
});
|
|
559
565
|
if (jsonOut) {
|
|
560
566
|
console.log(JSON.stringify({
|
package/dist/cli.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
LetsFG,
|
|
4
4
|
LetsFGError,
|
|
5
5
|
offerSummary
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3GLZR3AT.mjs";
|
|
7
7
|
|
|
8
8
|
// src/cli.ts
|
|
9
9
|
function getFlag(args, flag, alias) {
|
|
@@ -53,6 +53,8 @@ async function cmdSearch(args) {
|
|
|
53
53
|
const currency = getFlag(args, "--currency") || "EUR";
|
|
54
54
|
const limit = parseInt(getFlag(args, "--limit", "-l") || "20");
|
|
55
55
|
const sort = getFlag(args, "--sort") || "price";
|
|
56
|
+
const departureFrom = getFlag(args, "--departure-from");
|
|
57
|
+
const departureTo = getFlag(args, "--departure-to");
|
|
56
58
|
const [origin, destination, date] = args;
|
|
57
59
|
if (!origin || !destination || !date) {
|
|
58
60
|
console.error("Usage: letsfg search <origin> <destination> <date> [options]");
|
|
@@ -66,7 +68,9 @@ async function cmdSearch(args) {
|
|
|
66
68
|
maxStopovers: stops,
|
|
67
69
|
currency,
|
|
68
70
|
limit,
|
|
69
|
-
sort
|
|
71
|
+
sort,
|
|
72
|
+
departureTimeFrom: departureFrom,
|
|
73
|
+
departureTimeTo: departureTo
|
|
70
74
|
});
|
|
71
75
|
if (jsonOut) {
|
|
72
76
|
console.log(JSON.stringify({
|
package/dist/index.d.mts
CHANGED
|
@@ -379,6 +379,8 @@ interface SearchOptions {
|
|
|
379
379
|
currency?: string;
|
|
380
380
|
limit?: number;
|
|
381
381
|
sort?: 'price' | 'duration';
|
|
382
|
+
departureTimeFrom?: string;
|
|
383
|
+
departureTimeTo?: string;
|
|
382
384
|
}
|
|
383
385
|
interface LetsFGConfig {
|
|
384
386
|
/** PFS Bearer token from `letsfg auth`. Enables free search via POST /api/search polling. */
|
package/dist/index.d.ts
CHANGED
|
@@ -379,6 +379,8 @@ interface SearchOptions {
|
|
|
379
379
|
currency?: string;
|
|
380
380
|
limit?: number;
|
|
381
381
|
sort?: 'price' | 'duration';
|
|
382
|
+
departureTimeFrom?: string;
|
|
383
|
+
departureTimeTo?: string;
|
|
382
384
|
}
|
|
383
385
|
interface LetsFGConfig {
|
|
384
386
|
/** PFS Bearer token from `letsfg auth`. Enables free search via POST /api/search polling. */
|
package/dist/index.js
CHANGED
|
@@ -1644,6 +1644,8 @@ var LetsFG = class {
|
|
|
1644
1644
|
if (options.cabinClass) body.cabin_class = options.cabinClass;
|
|
1645
1645
|
if (options.maxStopovers != null) body.max_stopovers = options.maxStopovers;
|
|
1646
1646
|
if (options.sort) body.sort = options.sort;
|
|
1647
|
+
if (options.departureTimeFrom) body.departure_time_from = options.departureTimeFrom;
|
|
1648
|
+
if (options.departureTimeTo) body.departure_time_to = options.departureTimeTo;
|
|
1647
1649
|
if (this.usingPFS) {
|
|
1648
1650
|
return this.searchPFS(body);
|
|
1649
1651
|
}
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "letsfg",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.56",
|
|
4
4
|
"description": "Flight search & booking for AI agents. Server-side engine covers hundreds of airlines. Free search via Bearer token or prepaid Developer API. Includes open-source ranking engine.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|