@gojinko/api-client 2.20.0 → 2.21.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.
@@ -16,9 +16,7 @@ export interface paths {
16
16
  */
17
17
  get: {
18
18
  parameters: {
19
- query: {
20
- /** @description Analysis mode. `trend` is accepted but currently returns snapshot-shaped data. */
21
- analysis: components["parameters"]["analysis"];
19
+ query?: {
22
20
  /** @description Origin market filter as <Level>:<Code>, e.g. Country:US or City:NYC. */
23
21
  origin_market?: components["parameters"]["originMarket"];
24
22
  /** @description Optional destination filter as <Level>:<Code>, e.g. Country:TH. */
@@ -41,10 +39,8 @@ export interface paths {
41
39
  search_window_min?: components["parameters"]["searchWindowMin"];
42
40
  /** @description Maximum advance-purchase window in days (must be >= search_window_min). */
43
41
  search_window_max?: components["parameters"]["searchWindowMax"];
44
- /** @description Snapshot mode only: number of most-recent days of search activity aggregated into the demand level (min 2, default 7, max 90 — a 1-day window is the current day, whose data is incomplete; the cube retains 90 days). Rejected when analysis=trend. */
42
+ /** @description Number of most-recent days of search activity aggregated into the demand level (min 2, default 7, max 90 — a 1-day window is the current day, whose data is incomplete; the cube retains 90 days). */
45
43
  snapshot_window_days?: components["parameters"]["snapshotWindowDays"];
46
- /** @description Trend mode only: size in days of each of the two adjacent windows compared for growth (min 2, default 7, max 45 — a 1-day window's recent period is the current day, whose data is incomplete; a trend spans 2x the window within the cube's 90-day retention). Rejected when analysis=snapshot. */
47
- trend_window_days?: components["parameters"]["trendWindowDays"];
48
44
  /** @description Max rows (1-200, default 20). */
49
45
  limit?: components["parameters"]["limit"];
50
46
  };
@@ -105,8 +101,6 @@ export interface paths {
105
101
  get: {
106
102
  parameters: {
107
103
  query: {
108
- /** @description Analysis mode. `trend` is accepted but currently returns snapshot-shaped data. */
109
- analysis: components["parameters"]["analysis"];
110
104
  /** @description Destination as <Level>:<Code>, e.g. Country:TH. Required for this endpoint. */
111
105
  destination: components["parameters"]["destinationRequired"];
112
106
  /** @description Origin market filter as <Level>:<Code>, e.g. Country:US or City:NYC. */
@@ -129,10 +123,8 @@ export interface paths {
129
123
  search_window_min?: components["parameters"]["searchWindowMin"];
130
124
  /** @description Maximum advance-purchase window in days (must be >= search_window_min). */
131
125
  search_window_max?: components["parameters"]["searchWindowMax"];
132
- /** @description Snapshot mode only: number of most-recent days of search activity aggregated into the demand level (min 2, default 7, max 90 — a 1-day window is the current day, whose data is incomplete; the cube retains 90 days). Rejected when analysis=trend. */
126
+ /** @description Number of most-recent days of search activity aggregated into the demand level (min 2, default 7, max 90 — a 1-day window is the current day, whose data is incomplete; the cube retains 90 days). */
133
127
  snapshot_window_days?: components["parameters"]["snapshotWindowDays"];
134
- /** @description Trend mode only: size in days of each of the two adjacent windows compared for growth (min 2, default 7, max 45 — a 1-day window's recent period is the current day, whose data is incomplete; a trend spans 2x the window within the cube's 90-day retention). Rejected when analysis=snapshot. */
135
- trend_window_days?: components["parameters"]["trendWindowDays"];
136
128
  /** @description Max rows (1-200, default 20). */
137
129
  limit?: components["parameters"]["limit"];
138
130
  };
@@ -193,8 +185,6 @@ export interface paths {
193
185
  get: {
194
186
  parameters: {
195
187
  query: {
196
- /** @description Analysis mode. `trend` is accepted but currently returns snapshot-shaped data. */
197
- analysis: components["parameters"]["analysis"];
198
188
  /** @description Destination as <Level>:<Code>, e.g. Country:TH. Required for this endpoint. */
199
189
  destination: components["parameters"]["destinationRequired"];
200
190
  /** @description Origin market filter as <Level>:<Code>, e.g. Country:US or City:NYC. */
@@ -215,10 +205,8 @@ export interface paths {
215
205
  search_window_min?: components["parameters"]["searchWindowMin"];
216
206
  /** @description Maximum advance-purchase window in days (must be >= search_window_min). */
217
207
  search_window_max?: components["parameters"]["searchWindowMax"];
218
- /** @description Snapshot mode only: number of most-recent days of search activity aggregated into the demand level (min 2, default 7, max 90 — a 1-day window is the current day, whose data is incomplete; the cube retains 90 days). Rejected when analysis=trend. */
208
+ /** @description Number of most-recent days of search activity aggregated into the demand level (min 2, default 7, max 90 — a 1-day window is the current day, whose data is incomplete; the cube retains 90 days). */
219
209
  snapshot_window_days?: components["parameters"]["snapshotWindowDays"];
220
- /** @description Trend mode only: size in days of each of the two adjacent windows compared for growth (min 2, default 7, max 45 — a 1-day window's recent period is the current day, whose data is incomplete; a trend spans 2x the window within the cube's 90-day retention). Rejected when analysis=snapshot. */
221
- trend_window_days?: components["parameters"]["trendWindowDays"];
222
210
  /** @description Max rows (1-200, default 20). */
223
211
  limit?: components["parameters"]["limit"];
224
212
  };
@@ -265,7 +253,7 @@ export interface paths {
265
253
  patch?: never;
266
254
  trace?: never;
267
255
  };
268
- "/v1/evolution": {
256
+ "/v1/trend": {
269
257
  parameters: {
270
258
  query?: never;
271
259
  header?: never;
@@ -273,8 +261,8 @@ export interface paths {
273
261
  cookie?: never;
274
262
  };
275
263
  /**
276
- * Daily demand time series for explicit origin/destination pairs
277
- * @description Deep dive: returns one daily de-sampled search-volume series per (origin, destination) pair. v1 allows a list on only one side — a single origin with many destinations, or many origins with a single destination.
264
+ * Demand time series for explicit origin/destination pairs
265
+ * @description Deep dive: returns one de-sampled search-volume series per (origin, destination) pair. v1 allows a list on only one side — a single origin with many destinations, or many origins with a single destination.
278
266
  */
279
267
  get: {
280
268
  parameters: {
@@ -301,9 +289,9 @@ export interface paths {
301
289
  search_window_min?: components["parameters"]["searchWindowMin"];
302
290
  /** @description Maximum advance-purchase window in days (must be >= search_window_min). */
303
291
  search_window_max?: components["parameters"]["searchWindowMax"];
304
- /** @description Size of the evolution window in days (min 2, default 7, max 45). The series spans the last N complete days ending yesterday; the current day is excluded as incomplete. */
305
- trend_window_days?: components["parameters"]["evolutionWindowDays"];
306
- /** @description Bucket size for the returned series: day (default), week, or month. */
292
+ /** @description Number of buckets N in the chosen granularity's own unit (min 2; max depends on granularity: day <= 60, week <= 52, month <= 12; default 12 applied server-side). The series spans the last N complete buckets, excluding the in-progress one. */
293
+ trend_window?: components["parameters"]["trendWindow"];
294
+ /** @description Bucket size for the returned series: week (default), day, or month. */
307
295
  granularity?: components["parameters"]["granularity"];
308
296
  };
309
297
  header?: never;
@@ -318,7 +306,7 @@ export interface paths {
318
306
  [name: string]: unknown;
319
307
  };
320
308
  content: {
321
- "application/json": components["schemas"]["EvolutionResponse"];
309
+ "application/json": components["schemas"]["TrendResponse"];
322
310
  };
323
311
  };
324
312
  /** @description Authentication required */
@@ -349,7 +337,7 @@ export interface paths {
349
337
  patch?: never;
350
338
  trace?: never;
351
339
  };
352
- "/v1/destination/evolution": {
340
+ "/v1/destination/trend": {
353
341
  parameters: {
354
342
  query?: never;
355
343
  header?: never;
@@ -357,8 +345,8 @@ export interface paths {
357
345
  cookie?: never;
358
346
  };
359
347
  /**
360
- * Daily demand time series for the top-N destinations
361
- * @description Ranks destinations (optionally reachable from origin_market) by within-window growth, then returns each top-N destination's daily series.
348
+ * Demand time series for the top-N destinations
349
+ * @description Ranks destinations (optionally reachable from origin_market) by within-window growth, then returns each top-N destination's series.
362
350
  */
363
351
  get: {
364
352
  parameters: {
@@ -385,12 +373,12 @@ export interface paths {
385
373
  search_window_min?: components["parameters"]["searchWindowMin"];
386
374
  /** @description Maximum advance-purchase window in days (must be >= search_window_min). */
387
375
  search_window_max?: components["parameters"]["searchWindowMax"];
388
- /** @description Size of the evolution window in days (min 2, default 7, max 45). The series spans the last N complete days ending yesterday; the current day is excluded as incomplete. */
389
- trend_window_days?: components["parameters"]["evolutionWindowDays"];
390
- /** @description Bucket size for the returned series: day (default), week, or month. */
376
+ /** @description Number of buckets N in the chosen granularity's own unit (min 2; max depends on granularity: day <= 60, week <= 52, month <= 12; default 12 applied server-side). The series spans the last N complete buckets, excluding the in-progress one. */
377
+ trend_window?: components["parameters"]["trendWindow"];
378
+ /** @description Bucket size for the returned series: week (default), day, or month. */
391
379
  granularity?: components["parameters"]["granularity"];
392
- /** @description Evolution endpoints: maximum number of series (top-N keys). Default 10, max 50. */
393
- limit?: components["parameters"]["evolutionLimit"];
380
+ /** @description Trend endpoints: maximum number of series (top-N keys). Default 10, max 50. */
381
+ limit?: components["parameters"]["trendLimit"];
394
382
  };
395
383
  header?: never;
396
384
  path?: never;
@@ -404,7 +392,7 @@ export interface paths {
404
392
  [name: string]: unknown;
405
393
  };
406
394
  content: {
407
- "application/json": components["schemas"]["EvolutionResponse"];
395
+ "application/json": components["schemas"]["TrendResponse"];
408
396
  };
409
397
  };
410
398
  /** @description Authentication required */
@@ -435,7 +423,7 @@ export interface paths {
435
423
  patch?: never;
436
424
  trace?: never;
437
425
  };
438
- "/v1/market/evolution": {
426
+ "/v1/market/trend": {
439
427
  parameters: {
440
428
  query?: never;
441
429
  header?: never;
@@ -443,8 +431,8 @@ export interface paths {
443
431
  cookie?: never;
444
432
  };
445
433
  /**
446
- * Daily demand time series for the top-N source markets
447
- * @description Ranks source markets for a destination by within-window growth, then returns each top-N market's daily series. `destination` is required.
434
+ * Demand time series for the top-N source markets
435
+ * @description Ranks source markets for a destination by within-window growth, then returns each top-N market's series. `destination` is required.
448
436
  */
449
437
  get: {
450
438
  parameters: {
@@ -471,12 +459,12 @@ export interface paths {
471
459
  search_window_min?: components["parameters"]["searchWindowMin"];
472
460
  /** @description Maximum advance-purchase window in days (must be >= search_window_min). */
473
461
  search_window_max?: components["parameters"]["searchWindowMax"];
474
- /** @description Size of the evolution window in days (min 2, default 7, max 45). The series spans the last N complete days ending yesterday; the current day is excluded as incomplete. */
475
- trend_window_days?: components["parameters"]["evolutionWindowDays"];
476
- /** @description Bucket size for the returned series: day (default), week, or month. */
462
+ /** @description Number of buckets N in the chosen granularity's own unit (min 2; max depends on granularity: day <= 60, week <= 52, month <= 12; default 12 applied server-side). The series spans the last N complete buckets, excluding the in-progress one. */
463
+ trend_window?: components["parameters"]["trendWindow"];
464
+ /** @description Bucket size for the returned series: week (default), day, or month. */
477
465
  granularity?: components["parameters"]["granularity"];
478
- /** @description Evolution endpoints: maximum number of series (top-N keys). Default 10, max 50. */
479
- limit?: components["parameters"]["evolutionLimit"];
466
+ /** @description Trend endpoints: maximum number of series (top-N keys). Default 10, max 50. */
467
+ limit?: components["parameters"]["trendLimit"];
480
468
  };
481
469
  header?: never;
482
470
  path?: never;
@@ -490,7 +478,7 @@ export interface paths {
490
478
  [name: string]: unknown;
491
479
  };
492
480
  content: {
493
- "application/json": components["schemas"]["EvolutionResponse"];
481
+ "application/json": components["schemas"]["TrendResponse"];
494
482
  };
495
483
  };
496
484
  /** @description Authentication required */
@@ -521,7 +509,7 @@ export interface paths {
521
509
  patch?: never;
522
510
  trace?: never;
523
511
  };
524
- "/v1/audience/evolution": {
512
+ "/v1/audience/trend": {
525
513
  parameters: {
526
514
  query?: never;
527
515
  header?: never;
@@ -529,8 +517,8 @@ export interface paths {
529
517
  cookie?: never;
530
518
  };
531
519
  /**
532
- * Daily demand time series for the traveler-type mix
533
- * @description Returns a daily series per traveler-type segment (Solo / Couple / Family / Group) of demand for a destination. `destination` is required; `traveler_type` is not a filter here — this endpoint buckets by it.
520
+ * Demand time series for the traveler-type mix
521
+ * @description Returns a series per traveler-type segment (Solo / Couple / Family / Group) of demand for a destination. `destination` is required; `traveler_type` is not a filter here — this endpoint buckets by it.
534
522
  */
535
523
  get: {
536
524
  parameters: {
@@ -555,12 +543,12 @@ export interface paths {
555
543
  search_window_min?: components["parameters"]["searchWindowMin"];
556
544
  /** @description Maximum advance-purchase window in days (must be >= search_window_min). */
557
545
  search_window_max?: components["parameters"]["searchWindowMax"];
558
- /** @description Size of the evolution window in days (min 2, default 7, max 45). The series spans the last N complete days ending yesterday; the current day is excluded as incomplete. */
559
- trend_window_days?: components["parameters"]["evolutionWindowDays"];
560
- /** @description Bucket size for the returned series: day (default), week, or month. */
546
+ /** @description Number of buckets N in the chosen granularity's own unit (min 2; max depends on granularity: day <= 60, week <= 52, month <= 12; default 12 applied server-side). The series spans the last N complete buckets, excluding the in-progress one. */
547
+ trend_window?: components["parameters"]["trendWindow"];
548
+ /** @description Bucket size for the returned series: week (default), day, or month. */
561
549
  granularity?: components["parameters"]["granularity"];
562
- /** @description Evolution endpoints: maximum number of series (top-N keys). Default 10, max 50. */
563
- limit?: components["parameters"]["evolutionLimit"];
550
+ /** @description Trend endpoints: maximum number of series (top-N keys). Default 10, max 50. */
551
+ limit?: components["parameters"]["trendLimit"];
564
552
  };
565
553
  header?: never;
566
554
  path?: never;
@@ -574,7 +562,7 @@ export interface paths {
574
562
  [name: string]: unknown;
575
563
  };
576
564
  content: {
577
- "application/json": components["schemas"]["EvolutionResponse"];
565
+ "application/json": components["schemas"]["TrendResponse"];
578
566
  };
579
567
  };
580
568
  /** @description Authentication required */
@@ -3544,8 +3532,6 @@ export interface components {
3544
3532
  last_name?: string;
3545
3533
  };
3546
3534
  /** @enum {string} */
3547
- AnalysisType: "snapshot" | "trend";
3548
- /** @enum {string} */
3549
3535
  TravelPeriod: "Summer" | "Winter" | "Christmas" | "Easter" | "Next30Days" | "Next90Days" | "Custom";
3550
3536
  /** @enum {string} */
3551
3537
  TravelerType: "Solo" | "Couple" | "Group" | "Family";
@@ -3556,52 +3542,34 @@ export interface components {
3556
3542
  destination: string;
3557
3543
  /** Format: double */
3558
3544
  share?: number;
3559
- /**
3560
- * Format: double
3561
- * @description Growth % in trend mode (analysis=trend); omitted in snapshot.
3562
- */
3563
- growth?: number;
3564
3545
  };
3565
3546
  MarketRow: {
3566
3547
  rank?: number;
3567
3548
  market: string;
3568
3549
  /** Format: double */
3569
3550
  share?: number;
3570
- /**
3571
- * Format: double
3572
- * @description Growth % in trend mode (analysis=trend); omitted in snapshot.
3573
- */
3574
- growth?: number;
3575
3551
  };
3576
3552
  AudienceRow: {
3577
3553
  rank?: number;
3578
3554
  audience: string;
3579
3555
  /** Format: double */
3580
3556
  share?: number;
3581
- /**
3582
- * Format: double
3583
- * @description Growth % in trend mode (analysis=trend); omitted in snapshot.
3584
- */
3585
- growth?: number;
3586
3557
  };
3587
3558
  DestinationResponse: {
3588
- analysis_type: components["schemas"]["AnalysisType"];
3589
3559
  rows: components["schemas"]["DestinationRow"][];
3590
3560
  };
3591
3561
  MarketResponse: {
3592
- analysis_type: components["schemas"]["AnalysisType"];
3593
3562
  rows: components["schemas"]["MarketRow"][];
3594
3563
  };
3595
3564
  AudienceResponse: {
3596
- analysis_type: components["schemas"]["AnalysisType"];
3597
3565
  rows: components["schemas"]["AudienceRow"][];
3598
3566
  };
3599
3567
  /**
3600
- * @description Bucket size for an evolution series: day (default), week, or month.
3568
+ * @description Bucket size for a trend series: week (default), day, or month.
3601
3569
  * @enum {string}
3602
3570
  */
3603
3571
  Granularity: "day" | "week" | "month";
3604
- EvolutionPoint: {
3572
+ TrendPoint: {
3605
3573
  /**
3606
3574
  * Format: date
3607
3575
  * @description Bucket start date (YYYY-MM-DD).
@@ -3644,7 +3612,7 @@ export interface components {
3644
3612
  */
3645
3613
  peak_value?: number;
3646
3614
  };
3647
- EvolutionSeries: {
3615
+ TrendSeries: {
3648
3616
  /**
3649
3617
  * @description Ranked dimension value (destination/market/audience endpoints); omitted for the pairs endpoint.
3650
3618
  * @example Country:FR
@@ -3660,10 +3628,10 @@ export interface components {
3660
3628
  * @example Country:FR
3661
3629
  */
3662
3630
  destination?: string;
3663
- series: components["schemas"]["EvolutionPoint"][];
3631
+ series: components["schemas"]["TrendPoint"][];
3664
3632
  summary?: components["schemas"]["SeriesSummary"];
3665
3633
  };
3666
- EvolutionResponse: {
3634
+ TrendResponse: {
3667
3635
  granularity: components["schemas"]["Granularity"];
3668
3636
  /**
3669
3637
  * Format: date
@@ -3677,13 +3645,11 @@ export interface components {
3677
3645
  * @example 2026-06-25
3678
3646
  */
3679
3647
  to: string;
3680
- series: components["schemas"]["EvolutionSeries"][];
3648
+ series: components["schemas"]["TrendSeries"][];
3681
3649
  };
3682
3650
  };
3683
3651
  responses: never;
3684
3652
  parameters: {
3685
- /** @description Analysis mode. `trend` is accepted but currently returns snapshot-shaped data. */
3686
- analysis: components["schemas"]["AnalysisType"];
3687
3653
  /** @description Origin market filter as <Level>:<Code>, e.g. Country:US or City:NYC. */
3688
3654
  originMarket: string;
3689
3655
  /** @description Optional destination filter as <Level>:<Code>, e.g. Country:TH. */
@@ -3708,22 +3674,20 @@ export interface components {
3708
3674
  searchWindowMin: number;
3709
3675
  /** @description Maximum advance-purchase window in days (must be >= search_window_min). */
3710
3676
  searchWindowMax: number;
3711
- /** @description Snapshot mode only: number of most-recent days of search activity aggregated into the demand level (min 2, default 7, max 90 — a 1-day window is the current day, whose data is incomplete; the cube retains 90 days). Rejected when analysis=trend. */
3677
+ /** @description Number of most-recent days of search activity aggregated into the demand level (min 2, default 7, max 90 — a 1-day window is the current day, whose data is incomplete; the cube retains 90 days). */
3712
3678
  snapshotWindowDays: number;
3713
- /** @description Trend mode only: size in days of each of the two adjacent windows compared for growth (min 2, default 7, max 45 — a 1-day window's recent period is the current day, whose data is incomplete; a trend spans 2x the window within the cube's 90-day retention). Rejected when analysis=snapshot. */
3714
- trendWindowDays: number;
3715
3679
  /** @description Max rows (1-200, default 20). */
3716
3680
  limit: number;
3717
3681
  /** @description Pairs endpoint: comma-separated origin selectors `<Level>:<Code>` (e.g. `Country:US,Country:CA`). v1: at most one of origins/destinations may have more than one entry. */
3718
3682
  origins: string;
3719
3683
  /** @description Pairs endpoint: comma-separated destination selectors `<Level>:<Code>` (e.g. `Country:FR,Country:DE`). */
3720
3684
  destinations: string;
3721
- /** @description Size of the evolution window in days (min 2, default 7, max 45). The series spans the last N complete days ending yesterday; the current day is excluded as incomplete. */
3722
- evolutionWindowDays: number;
3723
- /** @description Bucket size for the returned series: day (default), week, or month. */
3685
+ /** @description Number of buckets N in the chosen granularity's own unit (min 2; max depends on granularity: day <= 60, week <= 52, month <= 12; default 12 applied server-side). The series spans the last N complete buckets, excluding the in-progress one. */
3686
+ trendWindow: number;
3687
+ /** @description Bucket size for the returned series: week (default), day, or month. */
3724
3688
  granularity: components["schemas"]["Granularity"];
3725
- /** @description Evolution endpoints: maximum number of series (top-N keys). Default 10, max 50. */
3726
- evolutionLimit: number;
3689
+ /** @description Trend endpoints: maximum number of series (top-N keys). Default 10, max 50. */
3690
+ trendLimit: number;
3727
3691
  };
3728
3692
  requestBodies: never;
3729
3693
  headers: never;