@gojinko/api-client 2.20.0 → 2.22.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/dist/client.d.ts +19 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +44 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/tools.d.ts +9 -9
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +4 -4
- package/dist/tools.js.map +1 -1
- package/dist/types/devplatform.d.ts +42 -30
- package/dist/types/devplatform.d.ts.map +1 -1
- package/dist/types/generated.d.ts +89 -141
- package/dist/types/generated.d.ts.map +1 -1
- package/package.json +1 -1
- package/public-api.yaml +79 -116
package/public-api.yaml
CHANGED
|
@@ -1570,12 +1570,6 @@ components:
|
|
|
1570
1570
|
type: string
|
|
1571
1571
|
last_name:
|
|
1572
1572
|
type: string
|
|
1573
|
-
AnalysisType:
|
|
1574
|
-
type: string
|
|
1575
|
-
enum: [snapshot, trend]
|
|
1576
|
-
TravelPeriod:
|
|
1577
|
-
type: string
|
|
1578
|
-
enum: [Summer, Winter, Christmas, Easter, Next30Days, Next90Days, Custom]
|
|
1579
1573
|
TravelerType:
|
|
1580
1574
|
type: string
|
|
1581
1575
|
enum: [Solo, Couple, Group, Family]
|
|
@@ -1593,10 +1587,6 @@ components:
|
|
|
1593
1587
|
share:
|
|
1594
1588
|
type: number
|
|
1595
1589
|
format: double
|
|
1596
|
-
growth:
|
|
1597
|
-
type: number
|
|
1598
|
-
format: double
|
|
1599
|
-
description: "Growth % in trend mode (analysis=trend); omitted in snapshot."
|
|
1600
1590
|
MarketRow:
|
|
1601
1591
|
type: object
|
|
1602
1592
|
required: [market]
|
|
@@ -1608,10 +1598,6 @@ components:
|
|
|
1608
1598
|
share:
|
|
1609
1599
|
type: number
|
|
1610
1600
|
format: double
|
|
1611
|
-
growth:
|
|
1612
|
-
type: number
|
|
1613
|
-
format: double
|
|
1614
|
-
description: "Growth % in trend mode (analysis=trend); omitted in snapshot."
|
|
1615
1601
|
AudienceRow:
|
|
1616
1602
|
type: object
|
|
1617
1603
|
required: [audience]
|
|
@@ -1623,36 +1609,26 @@ components:
|
|
|
1623
1609
|
share:
|
|
1624
1610
|
type: number
|
|
1625
1611
|
format: double
|
|
1626
|
-
growth:
|
|
1627
|
-
type: number
|
|
1628
|
-
format: double
|
|
1629
|
-
description: "Growth % in trend mode (analysis=trend); omitted in snapshot."
|
|
1630
1612
|
DestinationResponse:
|
|
1631
1613
|
type: object
|
|
1632
|
-
required: [
|
|
1614
|
+
required: [rows]
|
|
1633
1615
|
properties:
|
|
1634
|
-
analysis_type:
|
|
1635
|
-
$ref: "#/components/schemas/AnalysisType"
|
|
1636
1616
|
rows:
|
|
1637
1617
|
type: array
|
|
1638
1618
|
items:
|
|
1639
1619
|
$ref: "#/components/schemas/DestinationRow"
|
|
1640
1620
|
MarketResponse:
|
|
1641
1621
|
type: object
|
|
1642
|
-
required: [
|
|
1622
|
+
required: [rows]
|
|
1643
1623
|
properties:
|
|
1644
|
-
analysis_type:
|
|
1645
|
-
$ref: "#/components/schemas/AnalysisType"
|
|
1646
1624
|
rows:
|
|
1647
1625
|
type: array
|
|
1648
1626
|
items:
|
|
1649
1627
|
$ref: "#/components/schemas/MarketRow"
|
|
1650
1628
|
AudienceResponse:
|
|
1651
1629
|
type: object
|
|
1652
|
-
required: [
|
|
1630
|
+
required: [rows]
|
|
1653
1631
|
properties:
|
|
1654
|
-
analysis_type:
|
|
1655
|
-
$ref: "#/components/schemas/AnalysisType"
|
|
1656
1632
|
rows:
|
|
1657
1633
|
type: array
|
|
1658
1634
|
items:
|
|
@@ -1660,8 +1636,8 @@ components:
|
|
|
1660
1636
|
Granularity:
|
|
1661
1637
|
type: string
|
|
1662
1638
|
enum: [day, week, month]
|
|
1663
|
-
description: "Bucket size for
|
|
1664
|
-
|
|
1639
|
+
description: "Bucket size for a trend series: week (default), day, or month."
|
|
1640
|
+
TrendPoint:
|
|
1665
1641
|
type: object
|
|
1666
1642
|
required: [date, value]
|
|
1667
1643
|
properties:
|
|
@@ -1701,7 +1677,7 @@ components:
|
|
|
1701
1677
|
type: number
|
|
1702
1678
|
format: double
|
|
1703
1679
|
example: 1890
|
|
1704
|
-
|
|
1680
|
+
TrendSeries:
|
|
1705
1681
|
type: object
|
|
1706
1682
|
required: [series]
|
|
1707
1683
|
properties:
|
|
@@ -1720,10 +1696,10 @@ components:
|
|
|
1720
1696
|
series:
|
|
1721
1697
|
type: array
|
|
1722
1698
|
items:
|
|
1723
|
-
$ref: "#/components/schemas/
|
|
1699
|
+
$ref: "#/components/schemas/TrendPoint"
|
|
1724
1700
|
summary:
|
|
1725
1701
|
$ref: "#/components/schemas/SeriesSummary"
|
|
1726
|
-
|
|
1702
|
+
TrendResponse:
|
|
1727
1703
|
type: object
|
|
1728
1704
|
required: [granularity, from, to, series]
|
|
1729
1705
|
properties:
|
|
@@ -1742,27 +1718,24 @@ components:
|
|
|
1742
1718
|
series:
|
|
1743
1719
|
type: array
|
|
1744
1720
|
items:
|
|
1745
|
-
$ref: "#/components/schemas/
|
|
1721
|
+
$ref: "#/components/schemas/TrendSeries"
|
|
1746
1722
|
parameters:
|
|
1747
|
-
|
|
1748
|
-
name:
|
|
1749
|
-
in: query
|
|
1750
|
-
required: true
|
|
1751
|
-
description: Analysis mode. `trend` is accepted but currently returns snapshot-shaped data.
|
|
1752
|
-
schema:
|
|
1753
|
-
$ref: "#/components/schemas/AnalysisType"
|
|
1754
|
-
originMarket:
|
|
1755
|
-
name: origin_market
|
|
1723
|
+
origin:
|
|
1724
|
+
name: origin
|
|
1756
1725
|
in: query
|
|
1757
1726
|
required: false
|
|
1758
|
-
description: "Origin
|
|
1727
|
+
description: "Origin filter as <Level>:<Code>, e.g. Country:US or City:NYC, or 'global' for all origins."
|
|
1759
1728
|
schema:
|
|
1760
1729
|
type: string
|
|
1761
|
-
|
|
1762
|
-
name:
|
|
1730
|
+
originCountry:
|
|
1731
|
+
name: origin_country
|
|
1763
1732
|
in: query
|
|
1764
1733
|
required: false
|
|
1765
|
-
description:
|
|
1734
|
+
description:
|
|
1735
|
+
"Origin country to rank cities within, as a Country selector Country:<code>
|
|
1736
|
+
(e.g. Country:US). Market rankings only, and allowed ONLY together with
|
|
1737
|
+
level=city: it scopes the ranked origin markets to a single country so that
|
|
1738
|
+
country's cities are ranked. Must be a country — a City selector is rejected."
|
|
1766
1739
|
schema:
|
|
1767
1740
|
type: string
|
|
1768
1741
|
destinationRequired:
|
|
@@ -1772,18 +1745,25 @@ components:
|
|
|
1772
1745
|
description: "Destination as <Level>:<Code>, e.g. Country:TH. Required for this endpoint."
|
|
1773
1746
|
schema:
|
|
1774
1747
|
type: string
|
|
1775
|
-
|
|
1776
|
-
name:
|
|
1748
|
+
destinationCountry:
|
|
1749
|
+
name: destination_country
|
|
1777
1750
|
in: query
|
|
1778
1751
|
required: false
|
|
1779
|
-
description:
|
|
1752
|
+
description:
|
|
1753
|
+
"Destination country to rank cities within, as a Country selector Country:<code>
|
|
1754
|
+
(e.g. Country:FR). Destination rankings only, and allowed ONLY together with
|
|
1755
|
+
level=city: it scopes the ranked destinations to a single country so that
|
|
1756
|
+
country's cities are ranked. Must be a country — a City selector is rejected."
|
|
1780
1757
|
schema:
|
|
1781
|
-
|
|
1758
|
+
type: string
|
|
1782
1759
|
departureDateFrom:
|
|
1783
1760
|
name: departure_date_from
|
|
1784
1761
|
in: query
|
|
1785
1762
|
required: false
|
|
1786
|
-
description:
|
|
1763
|
+
description:
|
|
1764
|
+
"Start of the departure window (YYYY-MM-DD). Supply together with
|
|
1765
|
+
departure_date_to; omit both for no departure-date filter (all departure
|
|
1766
|
+
dates)."
|
|
1787
1767
|
schema:
|
|
1788
1768
|
type: string
|
|
1789
1769
|
format: date
|
|
@@ -1791,7 +1771,10 @@ components:
|
|
|
1791
1771
|
name: departure_date_to
|
|
1792
1772
|
in: query
|
|
1793
1773
|
required: false
|
|
1794
|
-
description:
|
|
1774
|
+
description:
|
|
1775
|
+
"End of the departure window (YYYY-MM-DD). Supply together with
|
|
1776
|
+
departure_date_from; omit both for no departure-date filter (all
|
|
1777
|
+
departure dates)."
|
|
1795
1778
|
schema:
|
|
1796
1779
|
type: string
|
|
1797
1780
|
format: date
|
|
@@ -1845,20 +1828,11 @@ components:
|
|
|
1845
1828
|
name: snapshot_window_days
|
|
1846
1829
|
in: query
|
|
1847
1830
|
required: false
|
|
1848
|
-
description: "
|
|
1831
|
+
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)."
|
|
1849
1832
|
schema:
|
|
1850
1833
|
type: integer
|
|
1851
1834
|
minimum: 2
|
|
1852
1835
|
maximum: 90
|
|
1853
|
-
trendWindowDays:
|
|
1854
|
-
name: trend_window_days
|
|
1855
|
-
in: query
|
|
1856
|
-
required: false
|
|
1857
|
-
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."
|
|
1858
|
-
schema:
|
|
1859
|
-
type: integer
|
|
1860
|
-
minimum: 2
|
|
1861
|
-
maximum: 45
|
|
1862
1836
|
limit:
|
|
1863
1837
|
name: limit
|
|
1864
1838
|
in: query
|
|
@@ -1885,27 +1859,26 @@ components:
|
|
|
1885
1859
|
schema:
|
|
1886
1860
|
type: string
|
|
1887
1861
|
minLength: 1
|
|
1888
|
-
|
|
1889
|
-
name:
|
|
1862
|
+
trendWindow:
|
|
1863
|
+
name: trend_window
|
|
1890
1864
|
in: query
|
|
1891
1865
|
required: false
|
|
1892
|
-
description: "
|
|
1866
|
+
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."
|
|
1893
1867
|
schema:
|
|
1894
1868
|
type: integer
|
|
1895
1869
|
minimum: 2
|
|
1896
|
-
maximum: 45
|
|
1897
1870
|
granularity:
|
|
1898
1871
|
name: granularity
|
|
1899
1872
|
in: query
|
|
1900
1873
|
required: false
|
|
1901
|
-
description: "Bucket size for the returned series:
|
|
1874
|
+
description: "Bucket size for the returned series: week (default), day, or month."
|
|
1902
1875
|
schema:
|
|
1903
1876
|
$ref: "#/components/schemas/Granularity"
|
|
1904
|
-
|
|
1877
|
+
trendLimit:
|
|
1905
1878
|
name: limit
|
|
1906
1879
|
in: query
|
|
1907
1880
|
required: false
|
|
1908
|
-
description: "
|
|
1881
|
+
description: "Trend endpoints: maximum number of series (top-N keys). Default 10, max 50."
|
|
1909
1882
|
schema:
|
|
1910
1883
|
type: integer
|
|
1911
1884
|
minimum: 1
|
|
@@ -1918,16 +1891,14 @@ paths:
|
|
|
1918
1891
|
- demand
|
|
1919
1892
|
summary: Top destinations by search demand
|
|
1920
1893
|
description: >-
|
|
1921
|
-
Most-searched destinations by de-sampled request share. `
|
|
1922
|
-
|
|
1894
|
+
Most-searched destinations by de-sampled request share. Set `origin` to
|
|
1895
|
+
scope to one source market. Optional `destination_country` (a Country selector,
|
|
1896
|
+
allowed only with `level=city`) narrows the ranking to that country's destination cities.
|
|
1923
1897
|
security:
|
|
1924
1898
|
- ApiKeyAuth: []
|
|
1925
1899
|
- BearerAuth: []
|
|
1926
1900
|
parameters:
|
|
1927
|
-
- $ref: "#/components/parameters/
|
|
1928
|
-
- $ref: "#/components/parameters/originMarket"
|
|
1929
|
-
- $ref: "#/components/parameters/destinationFilter"
|
|
1930
|
-
- $ref: "#/components/parameters/travelPeriod"
|
|
1901
|
+
- $ref: "#/components/parameters/origin"
|
|
1931
1902
|
- $ref: "#/components/parameters/departureDateFrom"
|
|
1932
1903
|
- $ref: "#/components/parameters/departureDateTo"
|
|
1933
1904
|
- $ref: "#/components/parameters/travelerType"
|
|
@@ -1937,8 +1908,8 @@ paths:
|
|
|
1937
1908
|
- $ref: "#/components/parameters/searchWindowMin"
|
|
1938
1909
|
- $ref: "#/components/parameters/searchWindowMax"
|
|
1939
1910
|
- $ref: "#/components/parameters/snapshotWindowDays"
|
|
1940
|
-
- $ref: "#/components/parameters/trendWindowDays"
|
|
1941
1911
|
- $ref: "#/components/parameters/limit"
|
|
1912
|
+
- $ref: "#/components/parameters/destinationCountry"
|
|
1942
1913
|
responses:
|
|
1943
1914
|
"200":
|
|
1944
1915
|
description: OK
|
|
@@ -1968,10 +1939,7 @@ paths:
|
|
|
1968
1939
|
- ApiKeyAuth: []
|
|
1969
1940
|
- BearerAuth: []
|
|
1970
1941
|
parameters:
|
|
1971
|
-
- $ref: "#/components/parameters/analysis"
|
|
1972
1942
|
- $ref: "#/components/parameters/destinationRequired"
|
|
1973
|
-
- $ref: "#/components/parameters/originMarket"
|
|
1974
|
-
- $ref: "#/components/parameters/travelPeriod"
|
|
1975
1943
|
- $ref: "#/components/parameters/departureDateFrom"
|
|
1976
1944
|
- $ref: "#/components/parameters/departureDateTo"
|
|
1977
1945
|
- $ref: "#/components/parameters/travelerType"
|
|
@@ -1981,8 +1949,8 @@ paths:
|
|
|
1981
1949
|
- $ref: "#/components/parameters/searchWindowMin"
|
|
1982
1950
|
- $ref: "#/components/parameters/searchWindowMax"
|
|
1983
1951
|
- $ref: "#/components/parameters/snapshotWindowDays"
|
|
1984
|
-
- $ref: "#/components/parameters/trendWindowDays"
|
|
1985
1952
|
- $ref: "#/components/parameters/limit"
|
|
1953
|
+
- $ref: "#/components/parameters/originCountry"
|
|
1986
1954
|
responses:
|
|
1987
1955
|
"200":
|
|
1988
1956
|
description: OK
|
|
@@ -2014,10 +1982,8 @@ paths:
|
|
|
2014
1982
|
- ApiKeyAuth: []
|
|
2015
1983
|
- BearerAuth: []
|
|
2016
1984
|
parameters:
|
|
2017
|
-
- $ref: "#/components/parameters/analysis"
|
|
2018
1985
|
- $ref: "#/components/parameters/destinationRequired"
|
|
2019
|
-
- $ref: "#/components/parameters/
|
|
2020
|
-
- $ref: "#/components/parameters/travelPeriod"
|
|
1986
|
+
- $ref: "#/components/parameters/origin"
|
|
2021
1987
|
- $ref: "#/components/parameters/departureDateFrom"
|
|
2022
1988
|
- $ref: "#/components/parameters/departureDateTo"
|
|
2023
1989
|
- $ref: "#/components/parameters/tripType"
|
|
@@ -2026,7 +1992,6 @@ paths:
|
|
|
2026
1992
|
- $ref: "#/components/parameters/searchWindowMin"
|
|
2027
1993
|
- $ref: "#/components/parameters/searchWindowMax"
|
|
2028
1994
|
- $ref: "#/components/parameters/snapshotWindowDays"
|
|
2029
|
-
- $ref: "#/components/parameters/trendWindowDays"
|
|
2030
1995
|
- $ref: "#/components/parameters/limit"
|
|
2031
1996
|
responses:
|
|
2032
1997
|
"200":
|
|
@@ -2047,13 +2012,13 @@ paths:
|
|
|
2047
2012
|
application/json:
|
|
2048
2013
|
schema:
|
|
2049
2014
|
$ref: "#/components/schemas/ErrorResponse"
|
|
2050
|
-
/v1/
|
|
2015
|
+
/v1/trend:
|
|
2051
2016
|
get:
|
|
2052
2017
|
tags:
|
|
2053
2018
|
- demand
|
|
2054
|
-
summary:
|
|
2019
|
+
summary: Demand time series for explicit origin/destination pairs
|
|
2055
2020
|
description: >-
|
|
2056
|
-
Deep dive: returns one
|
|
2021
|
+
Deep dive: returns one de-sampled search-volume series per
|
|
2057
2022
|
(origin, destination) pair. v1 allows a list on only one side — a single
|
|
2058
2023
|
origin with many destinations, or many origins with a single destination.
|
|
2059
2024
|
security:
|
|
@@ -2062,7 +2027,6 @@ paths:
|
|
|
2062
2027
|
parameters:
|
|
2063
2028
|
- $ref: "#/components/parameters/origins"
|
|
2064
2029
|
- $ref: "#/components/parameters/destinations"
|
|
2065
|
-
- $ref: "#/components/parameters/travelPeriod"
|
|
2066
2030
|
- $ref: "#/components/parameters/departureDateFrom"
|
|
2067
2031
|
- $ref: "#/components/parameters/departureDateTo"
|
|
2068
2032
|
- $ref: "#/components/parameters/travelerType"
|
|
@@ -2071,7 +2035,7 @@ paths:
|
|
|
2071
2035
|
- $ref: "#/components/parameters/tripDurationMax"
|
|
2072
2036
|
- $ref: "#/components/parameters/searchWindowMin"
|
|
2073
2037
|
- $ref: "#/components/parameters/searchWindowMax"
|
|
2074
|
-
- $ref: "#/components/parameters/
|
|
2038
|
+
- $ref: "#/components/parameters/trendWindow"
|
|
2075
2039
|
- $ref: "#/components/parameters/granularity"
|
|
2076
2040
|
responses:
|
|
2077
2041
|
"200":
|
|
@@ -2079,7 +2043,7 @@ paths:
|
|
|
2079
2043
|
content:
|
|
2080
2044
|
application/json:
|
|
2081
2045
|
schema:
|
|
2082
|
-
$ref: "#/components/schemas/
|
|
2046
|
+
$ref: "#/components/schemas/TrendResponse"
|
|
2083
2047
|
"401":
|
|
2084
2048
|
description: Authentication required
|
|
2085
2049
|
content:
|
|
@@ -2092,21 +2056,21 @@ paths:
|
|
|
2092
2056
|
application/json:
|
|
2093
2057
|
schema:
|
|
2094
2058
|
$ref: "#/components/schemas/ErrorResponse"
|
|
2095
|
-
/v1/destination/
|
|
2059
|
+
/v1/destination/trend:
|
|
2096
2060
|
get:
|
|
2097
2061
|
tags:
|
|
2098
2062
|
- demand
|
|
2099
|
-
summary:
|
|
2063
|
+
summary: Demand time series for the top-N destinations
|
|
2100
2064
|
description: >-
|
|
2101
|
-
Ranks destinations (optionally reachable from
|
|
2102
|
-
within-window growth, then returns each top-N destination's
|
|
2065
|
+
Ranks destinations (optionally reachable from origin) by
|
|
2066
|
+
within-window growth, then returns each top-N destination's series.
|
|
2067
|
+
Optional destination_country (a Country selector, allowed only with
|
|
2068
|
+
level=city) narrows the ranking to that country's destination cities.
|
|
2103
2069
|
security:
|
|
2104
2070
|
- ApiKeyAuth: []
|
|
2105
2071
|
- BearerAuth: []
|
|
2106
2072
|
parameters:
|
|
2107
|
-
- $ref: "#/components/parameters/
|
|
2108
|
-
- $ref: "#/components/parameters/destinationFilter"
|
|
2109
|
-
- $ref: "#/components/parameters/travelPeriod"
|
|
2073
|
+
- $ref: "#/components/parameters/origin"
|
|
2110
2074
|
- $ref: "#/components/parameters/departureDateFrom"
|
|
2111
2075
|
- $ref: "#/components/parameters/departureDateTo"
|
|
2112
2076
|
- $ref: "#/components/parameters/travelerType"
|
|
@@ -2115,16 +2079,17 @@ paths:
|
|
|
2115
2079
|
- $ref: "#/components/parameters/tripDurationMax"
|
|
2116
2080
|
- $ref: "#/components/parameters/searchWindowMin"
|
|
2117
2081
|
- $ref: "#/components/parameters/searchWindowMax"
|
|
2118
|
-
- $ref: "#/components/parameters/
|
|
2082
|
+
- $ref: "#/components/parameters/trendWindow"
|
|
2119
2083
|
- $ref: "#/components/parameters/granularity"
|
|
2120
|
-
- $ref: "#/components/parameters/
|
|
2084
|
+
- $ref: "#/components/parameters/trendLimit"
|
|
2085
|
+
- $ref: "#/components/parameters/destinationCountry"
|
|
2121
2086
|
responses:
|
|
2122
2087
|
"200":
|
|
2123
2088
|
description: Top-N destination time series
|
|
2124
2089
|
content:
|
|
2125
2090
|
application/json:
|
|
2126
2091
|
schema:
|
|
2127
|
-
$ref: "#/components/schemas/
|
|
2092
|
+
$ref: "#/components/schemas/TrendResponse"
|
|
2128
2093
|
"401":
|
|
2129
2094
|
description: Authentication required
|
|
2130
2095
|
content:
|
|
@@ -2137,21 +2102,19 @@ paths:
|
|
|
2137
2102
|
application/json:
|
|
2138
2103
|
schema:
|
|
2139
2104
|
$ref: "#/components/schemas/ErrorResponse"
|
|
2140
|
-
/v1/market/
|
|
2105
|
+
/v1/market/trend:
|
|
2141
2106
|
get:
|
|
2142
2107
|
tags:
|
|
2143
2108
|
- demand
|
|
2144
|
-
summary:
|
|
2109
|
+
summary: Demand time series for the top-N source markets
|
|
2145
2110
|
description: >-
|
|
2146
2111
|
Ranks source markets for a destination by within-window growth, then
|
|
2147
|
-
returns each top-N market's
|
|
2112
|
+
returns each top-N market's series. `destination` is required.
|
|
2148
2113
|
security:
|
|
2149
2114
|
- ApiKeyAuth: []
|
|
2150
2115
|
- BearerAuth: []
|
|
2151
2116
|
parameters:
|
|
2152
2117
|
- $ref: "#/components/parameters/destinationRequired"
|
|
2153
|
-
- $ref: "#/components/parameters/originMarket"
|
|
2154
|
-
- $ref: "#/components/parameters/travelPeriod"
|
|
2155
2118
|
- $ref: "#/components/parameters/departureDateFrom"
|
|
2156
2119
|
- $ref: "#/components/parameters/departureDateTo"
|
|
2157
2120
|
- $ref: "#/components/parameters/travelerType"
|
|
@@ -2160,16 +2123,17 @@ paths:
|
|
|
2160
2123
|
- $ref: "#/components/parameters/tripDurationMax"
|
|
2161
2124
|
- $ref: "#/components/parameters/searchWindowMin"
|
|
2162
2125
|
- $ref: "#/components/parameters/searchWindowMax"
|
|
2163
|
-
- $ref: "#/components/parameters/
|
|
2126
|
+
- $ref: "#/components/parameters/trendWindow"
|
|
2164
2127
|
- $ref: "#/components/parameters/granularity"
|
|
2165
|
-
- $ref: "#/components/parameters/
|
|
2128
|
+
- $ref: "#/components/parameters/trendLimit"
|
|
2129
|
+
- $ref: "#/components/parameters/originCountry"
|
|
2166
2130
|
responses:
|
|
2167
2131
|
"200":
|
|
2168
2132
|
description: Top-N market time series
|
|
2169
2133
|
content:
|
|
2170
2134
|
application/json:
|
|
2171
2135
|
schema:
|
|
2172
|
-
$ref: "#/components/schemas/
|
|
2136
|
+
$ref: "#/components/schemas/TrendResponse"
|
|
2173
2137
|
"401":
|
|
2174
2138
|
description: Authentication required
|
|
2175
2139
|
content:
|
|
@@ -2182,13 +2146,13 @@ paths:
|
|
|
2182
2146
|
application/json:
|
|
2183
2147
|
schema:
|
|
2184
2148
|
$ref: "#/components/schemas/ErrorResponse"
|
|
2185
|
-
/v1/audience/
|
|
2149
|
+
/v1/audience/trend:
|
|
2186
2150
|
get:
|
|
2187
2151
|
tags:
|
|
2188
2152
|
- demand
|
|
2189
|
-
summary:
|
|
2153
|
+
summary: Demand time series for the traveler-type mix
|
|
2190
2154
|
description: >-
|
|
2191
|
-
Returns a
|
|
2155
|
+
Returns a series per traveler-type segment (Solo / Couple / Family /
|
|
2192
2156
|
Group) of demand for a destination. `destination` is required;
|
|
2193
2157
|
`traveler_type` is not a filter here — this endpoint buckets by it.
|
|
2194
2158
|
security:
|
|
@@ -2196,8 +2160,7 @@ paths:
|
|
|
2196
2160
|
- BearerAuth: []
|
|
2197
2161
|
parameters:
|
|
2198
2162
|
- $ref: "#/components/parameters/destinationRequired"
|
|
2199
|
-
- $ref: "#/components/parameters/
|
|
2200
|
-
- $ref: "#/components/parameters/travelPeriod"
|
|
2163
|
+
- $ref: "#/components/parameters/origin"
|
|
2201
2164
|
- $ref: "#/components/parameters/departureDateFrom"
|
|
2202
2165
|
- $ref: "#/components/parameters/departureDateTo"
|
|
2203
2166
|
- $ref: "#/components/parameters/tripType"
|
|
@@ -2205,16 +2168,16 @@ paths:
|
|
|
2205
2168
|
- $ref: "#/components/parameters/tripDurationMax"
|
|
2206
2169
|
- $ref: "#/components/parameters/searchWindowMin"
|
|
2207
2170
|
- $ref: "#/components/parameters/searchWindowMax"
|
|
2208
|
-
- $ref: "#/components/parameters/
|
|
2171
|
+
- $ref: "#/components/parameters/trendWindow"
|
|
2209
2172
|
- $ref: "#/components/parameters/granularity"
|
|
2210
|
-
- $ref: "#/components/parameters/
|
|
2173
|
+
- $ref: "#/components/parameters/trendLimit"
|
|
2211
2174
|
responses:
|
|
2212
2175
|
"200":
|
|
2213
2176
|
description: Per-segment time series
|
|
2214
2177
|
content:
|
|
2215
2178
|
application/json:
|
|
2216
2179
|
schema:
|
|
2217
|
-
$ref: "#/components/schemas/
|
|
2180
|
+
$ref: "#/components/schemas/TrendResponse"
|
|
2218
2181
|
"401":
|
|
2219
2182
|
description: Authentication required
|
|
2220
2183
|
content:
|