@gojinko/cli 2.16.0 → 2.17.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.
|
@@ -2,8 +2,10 @@ import type { Command } from 'commander';
|
|
|
2
2
|
/**
|
|
3
3
|
* `jinko travel-demand <operation>` — Travel Demand Intelligence (JIN-1378).
|
|
4
4
|
*
|
|
5
|
-
* A second-level command group (like `auth`/`config`)
|
|
6
|
-
*
|
|
5
|
+
* A second-level command group (like `auth`/`config`) with three operations:
|
|
6
|
+
* destination / market / audience. ("demand-" is dropped — it is redundant under
|
|
7
|
+
* `travel-demand`.) The SDK keeps its demand* method names
|
|
8
|
+
* (demandDestination/demandMarket/demandAudience) since that namespace is flat.
|
|
7
9
|
* Registration is purely additive — see createProgram() in ../../index.ts.
|
|
8
10
|
*/
|
|
9
11
|
export declare function registerTravelDemandCommands(program: Command): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/travel-demand/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/travel-demand/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAkDnE"}
|
|
@@ -2,8 +2,10 @@ import { addCommonDemandOptions, demandAction } from './demand-shared.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* `jinko travel-demand <operation>` — Travel Demand Intelligence (JIN-1378).
|
|
4
4
|
*
|
|
5
|
-
* A second-level command group (like `auth`/`config`)
|
|
6
|
-
*
|
|
5
|
+
* A second-level command group (like `auth`/`config`) with three operations:
|
|
6
|
+
* destination / market / audience. ("demand-" is dropped — it is redundant under
|
|
7
|
+
* `travel-demand`.) The SDK keeps its demand* method names
|
|
8
|
+
* (demandDestination/demandMarket/demandAudience) since that namespace is flat.
|
|
7
9
|
* Registration is purely additive — see createProgram() in ../../index.ts.
|
|
8
10
|
*/
|
|
9
11
|
export function registerTravelDemandCommands(program) {
|
|
@@ -13,20 +15,20 @@ export function registerTravelDemandCommands(program) {
|
|
|
13
15
|
.description('Query de-sampled search-demand analytics (JIN-1378): the most-searched destinations, ' +
|
|
14
16
|
'the source markets driving demand for a destination, and the traveler-type mix.');
|
|
15
17
|
addCommonDemandOptions(td
|
|
16
|
-
.command('
|
|
18
|
+
.command('destination')
|
|
17
19
|
.summary('Top destinations by search demand')
|
|
18
20
|
.description('Most-searched destinations by de-sampled request share. Optionally scope to an origin ' +
|
|
19
21
|
'market with --origin-market, or filter to a single destination with --destination.')
|
|
20
22
|
.option('--destination <level:code>', 'optional destination filter, e.g. Country:TH')
|
|
21
23
|
.option('--traveler-type <type>', 'Solo|Couple|Group|Family')).action(demandAction({ allowTravelerType: true }, (client, query) => client.demandDestination(query)));
|
|
22
24
|
addCommonDemandOptions(td
|
|
23
|
-
.command('
|
|
25
|
+
.command('market')
|
|
24
26
|
.summary('Top source markets for a destination')
|
|
25
27
|
.description('Which source markets generate the most demand for a destination. --destination is required.')
|
|
26
28
|
.option('--destination <level:code>', 'destination, e.g. Country:TH (required)')
|
|
27
29
|
.option('--traveler-type <type>', 'Solo|Couple|Group|Family')).action(demandAction({ requireDestination: true, allowTravelerType: true }, (client, query) => client.demandMarket(query)));
|
|
28
30
|
addCommonDemandOptions(td
|
|
29
|
-
.command('
|
|
31
|
+
.command('audience')
|
|
30
32
|
.summary('Traveler-type mix for a destination')
|
|
31
33
|
.description('Traveler-type composition (Solo/Couple/Family/Group) of demand for a destination. ' +
|
|
32
34
|
'--destination is required. (traveler_type is not a filter here — it is the dimension.)')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/travel-demand/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE1E
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/travel-demand/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE1E;;;;;;;;GAQG;AACH,MAAM,UAAU,4BAA4B,CAAC,OAAgB;IAC3D,MAAM,EAAE,GAAG,OAAO;SACf,OAAO,CAAC,eAAe,CAAC;SACxB,OAAO,CAAC,6EAA6E,CAAC;SACtF,WAAW,CACV,uFAAuF;QACrF,iFAAiF,CACpF,CAAC;IAEJ,sBAAsB,CACpB,EAAE;SACC,OAAO,CAAC,aAAa,CAAC;SACtB,OAAO,CAAC,mCAAmC,CAAC;SAC5C,WAAW,CACV,wFAAwF;QACtF,oFAAoF,CACvF;SACA,MAAM,CAAC,4BAA4B,EAAE,8CAA8C,CAAC;SACpF,MAAM,CAAC,wBAAwB,EAAE,0BAA0B,CAAC,CAChE,CAAC,MAAM,CACN,YAAY,CAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAC9F,CAAC;IAEF,sBAAsB,CACpB,EAAE;SACC,OAAO,CAAC,QAAQ,CAAC;SACjB,OAAO,CAAC,sCAAsC,CAAC;SAC/C,WAAW,CACV,6FAA6F,CAC9F;SACA,MAAM,CAAC,4BAA4B,EAAE,yCAAyC,CAAC;SAC/E,MAAM,CAAC,wBAAwB,EAAE,0BAA0B,CAAC,CAChE,CAAC,MAAM,CACN,YAAY,CAAC,EAAE,kBAAkB,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CACpF,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAC3B,CACF,CAAC;IAEF,sBAAsB,CACpB,EAAE;SACC,OAAO,CAAC,UAAU,CAAC;SACnB,OAAO,CAAC,qCAAqC,CAAC;SAC9C,WAAW,CACV,oFAAoF;QAClF,wFAAwF,CAC3F;SACA,MAAM,CAAC,4BAA4B,EAAE,yCAAyC,CAAC,CACnF,CAAC,MAAM,CACN,YAAY,CAAC,EAAE,kBAAkB,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAC5F,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gojinko/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"jinko": "./dist/bin/jinko.js"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"docs:gen": "tsx scripts/gen-cli-docs.ts"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@gojinko/api-client": "2.
|
|
20
|
+
"@gojinko/api-client": "2.17.0",
|
|
21
21
|
"commander": "^12.1.0",
|
|
22
22
|
"chalk": "^5.4.1",
|
|
23
23
|
"open": "^10.0.0"
|