@gojinko/cli 1.2.1 → 2.0.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 +30 -5
- package/dist/commands/checkout.d.ts.map +1 -1
- package/dist/commands/checkout.js +2 -4
- package/dist/commands/checkout.js.map +1 -1
- package/dist/commands/exchange.d.ts.map +1 -1
- package/dist/commands/exchange.js +2 -0
- package/dist/commands/exchange.js.map +1 -1
- package/dist/commands/find-destination.d.ts +5 -0
- package/dist/commands/find-destination.d.ts.map +1 -1
- package/dist/commands/find-destination.js +89 -90
- package/dist/commands/find-destination.js.map +1 -1
- package/dist/commands/find-flight.d.ts.map +1 -1
- package/dist/commands/find-flight.js +45 -33
- package/dist/commands/find-flight.js.map +1 -1
- package/dist/commands/flight-calendar.d.ts.map +1 -1
- package/dist/commands/flight-calendar.js +31 -25
- package/dist/commands/flight-calendar.js.map +1 -1
- package/dist/commands/flight-search.d.ts.map +1 -1
- package/dist/commands/flight-search.js +52 -48
- package/dist/commands/flight-search.js.map +1 -1
- package/dist/commands/get-booking.d.ts.map +1 -1
- package/dist/commands/get-booking.js +16 -7
- package/dist/commands/get-booking.js.map +1 -1
- package/dist/commands/hotel-cancel.d.ts +4 -2
- package/dist/commands/hotel-cancel.d.ts.map +1 -1
- package/dist/commands/hotel-cancel.js +18 -14
- package/dist/commands/hotel-cancel.js.map +1 -1
- package/dist/commands/hotel-search.d.ts.map +1 -1
- package/dist/commands/hotel-search.js +122 -42
- package/dist/commands/hotel-search.js.map +1 -1
- package/dist/commands/price-monitoring.d.ts.map +1 -1
- package/dist/commands/price-monitoring.js +48 -33
- package/dist/commands/price-monitoring.js.map +1 -1
- package/dist/commands/select-ancillaries.d.ts.map +1 -1
- package/dist/commands/select-ancillaries.js +5 -7
- package/dist/commands/select-ancillaries.js.map +1 -1
- package/dist/commands/shared.d.ts +11 -0
- package/dist/commands/shared.d.ts.map +1 -1
- package/dist/commands/shared.js +17 -0
- package/dist/commands/shared.js.map +1 -1
- package/dist/commands/trip-status.d.ts.map +1 -1
- package/dist/commands/trip-status.js +2 -4
- package/dist/commands/trip-status.js.map +1 -1
- package/dist/commands/trip.d.ts.map +1 -1
- package/dist/commands/trip.js +2 -4
- package/dist/commands/trip.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/commands/hotel-lookup-booking.d.ts +0 -7
- package/dist/commands/hotel-lookup-booking.d.ts.map +0 -1
- package/dist/commands/hotel-lookup-booking.js +0 -20
- package/dist/commands/hotel-lookup-booking.js.map +0 -1
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { withClient, output } from './shared.js';
|
|
2
|
-
/**
|
|
3
|
-
* `gojinko hotel-lookup-booking` — guest-access hotel booking retrieval.
|
|
4
|
-
* JIN-281. Wraps BFF POST /api/v1/hotels/retrieve-booking.
|
|
5
|
-
*/
|
|
6
|
-
export function registerHotelLookupBookingCommand(program) {
|
|
7
|
-
program
|
|
8
|
-
.command('hotel-lookup-booking')
|
|
9
|
-
.description('Look up a hotel booking by Jinko reference + last name (guest access). Returns status, hotel details, total, and cancellation policy.')
|
|
10
|
-
.requiredOption('--ref <ref>', 'Jinko booking reference (e.g. JNK-A7B3X9)')
|
|
11
|
-
.requiredOption('--last-name <name>', 'Last name of the lead guest')
|
|
12
|
-
.action(withClient(async (client, globals, opts) => {
|
|
13
|
-
const response = await client.hotelRetrieveBooking({
|
|
14
|
-
booking_ref: opts.ref,
|
|
15
|
-
last_name: opts.lastName,
|
|
16
|
-
});
|
|
17
|
-
output(response, { format: globals.format });
|
|
18
|
-
}));
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=hotel-lookup-booking.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hotel-lookup-booking.js","sourceRoot":"","sources":["../../src/commands/hotel-lookup-booking.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAEjD;;;GAGG;AACH,MAAM,UAAU,iCAAiC,CAAC,OAAgB;IAChE,OAAO;SACJ,OAAO,CAAC,sBAAsB,CAAC;SAC/B,WAAW,CACV,uIAAuI,CACxI;SACA,cAAc,CAAC,aAAa,EAAE,2CAA2C,CAAC;SAC1E,cAAc,CAAC,oBAAoB,EAAE,6BAA6B,CAAC;SACnE,MAAM,CACL,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QACzC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC;YACjD,WAAW,EAAE,IAAI,CAAC,GAAG;YACrB,SAAS,EAAE,IAAI,CAAC,QAAQ;SACzB,CAAC,CAAC;QACH,MAAM,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/C,CAAC,CAAC,CACH,CAAC;AACN,CAAC"}
|