@djvlc/openapi-registry-client 1.2.0 → 1.3.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/index.js +13 -36
- package/dist/index.mjs +13 -36
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1768,11 +1768,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1768
1768
|
if (this.configuration && this.configuration.apiKey) {
|
|
1769
1769
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1770
1770
|
}
|
|
1771
|
-
let urlPath = `/registry/components/{name}/versions/{version}/block`;
|
|
1772
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
1773
|
-
urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"])));
|
|
1774
1771
|
const response = await this.request({
|
|
1775
|
-
path:
|
|
1772
|
+
path: `/registry/components/{name}/versions/{version}/block`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"]))),
|
|
1776
1773
|
method: "POST",
|
|
1777
1774
|
headers: headerParameters,
|
|
1778
1775
|
query: queryParameters,
|
|
@@ -1811,10 +1808,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1811
1808
|
if (this.configuration && this.configuration.apiKey) {
|
|
1812
1809
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1813
1810
|
}
|
|
1814
|
-
let urlPath = `/registry/components/{name}/deprecate`;
|
|
1815
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
1816
1811
|
const response = await this.request({
|
|
1817
|
-
path:
|
|
1812
|
+
path: `/registry/components/{name}/deprecate`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))),
|
|
1818
1813
|
method: "POST",
|
|
1819
1814
|
headers: headerParameters,
|
|
1820
1815
|
query: queryParameters,
|
|
@@ -1845,10 +1840,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1845
1840
|
if (this.configuration && this.configuration.apiKey) {
|
|
1846
1841
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1847
1842
|
}
|
|
1848
|
-
let urlPath = `/registry/components/{name}`;
|
|
1849
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
1850
1843
|
const response = await this.request({
|
|
1851
|
-
path:
|
|
1844
|
+
path: `/registry/components/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))),
|
|
1852
1845
|
method: "GET",
|
|
1853
1846
|
headers: headerParameters,
|
|
1854
1847
|
query: queryParameters
|
|
@@ -1883,11 +1876,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1883
1876
|
if (this.configuration && this.configuration.apiKey) {
|
|
1884
1877
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1885
1878
|
}
|
|
1886
|
-
let urlPath = `/registry/components/{name}/versions/{version}`;
|
|
1887
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
1888
|
-
urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"])));
|
|
1889
1879
|
const response = await this.request({
|
|
1890
|
-
path:
|
|
1880
|
+
path: `/registry/components/{name}/versions/{version}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"]))),
|
|
1891
1881
|
method: "GET",
|
|
1892
1882
|
headers: headerParameters,
|
|
1893
1883
|
query: queryParameters
|
|
@@ -1919,10 +1909,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1919
1909
|
if (this.configuration && this.configuration.apiKey) {
|
|
1920
1910
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1921
1911
|
}
|
|
1922
|
-
let urlPath = `/registry/components/{name}/versions`;
|
|
1923
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
1924
1912
|
const response = await this.request({
|
|
1925
|
-
path:
|
|
1913
|
+
path: `/registry/components/{name}/versions`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))),
|
|
1926
1914
|
method: "GET",
|
|
1927
1915
|
headers: headerParameters,
|
|
1928
1916
|
query: queryParameters
|
|
@@ -1951,9 +1939,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1951
1939
|
if (this.configuration && this.configuration.apiKey) {
|
|
1952
1940
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1953
1941
|
}
|
|
1954
|
-
let urlPath = `/registry/blocked`;
|
|
1955
1942
|
const response = await this.request({
|
|
1956
|
-
path:
|
|
1943
|
+
path: `/registry/blocked`,
|
|
1957
1944
|
method: "GET",
|
|
1958
1945
|
headers: headerParameters,
|
|
1959
1946
|
query: queryParameters
|
|
@@ -1991,9 +1978,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1991
1978
|
if (this.configuration && this.configuration.apiKey) {
|
|
1992
1979
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1993
1980
|
}
|
|
1994
|
-
let urlPath = `/registry/components`;
|
|
1995
1981
|
const response = await this.request({
|
|
1996
|
-
path:
|
|
1982
|
+
path: `/registry/components`,
|
|
1997
1983
|
method: "GET",
|
|
1998
1984
|
headers: headerParameters,
|
|
1999
1985
|
query: queryParameters
|
|
@@ -2030,10 +2016,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
2030
2016
|
if (this.configuration && this.configuration.apiKey) {
|
|
2031
2017
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
2032
2018
|
}
|
|
2033
|
-
let urlPath = `/registry/components/{name}/promote`;
|
|
2034
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
2035
2019
|
const response = await this.request({
|
|
2036
|
-
path:
|
|
2020
|
+
path: `/registry/components/{name}/promote`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))),
|
|
2037
2021
|
method: "POST",
|
|
2038
2022
|
headers: headerParameters,
|
|
2039
2023
|
query: queryParameters,
|
|
@@ -2066,9 +2050,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
2066
2050
|
if (this.configuration && this.configuration.apiKey) {
|
|
2067
2051
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
2068
2052
|
}
|
|
2069
|
-
let urlPath = `/registry/components`;
|
|
2070
2053
|
const response = await this.request({
|
|
2071
|
-
path:
|
|
2054
|
+
path: `/registry/components`,
|
|
2072
2055
|
method: "POST",
|
|
2073
2056
|
headers: headerParameters,
|
|
2074
2057
|
query: queryParameters,
|
|
@@ -2105,11 +2088,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
2105
2088
|
if (this.configuration && this.configuration.apiKey) {
|
|
2106
2089
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
2107
2090
|
}
|
|
2108
|
-
let urlPath = `/registry/components/{name}/versions/{version}/unblock`;
|
|
2109
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
2110
|
-
urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"])));
|
|
2111
2091
|
const response = await this.request({
|
|
2112
|
-
path:
|
|
2092
|
+
path: `/registry/components/{name}/versions/{version}/unblock`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"]))),
|
|
2113
2093
|
method: "POST",
|
|
2114
2094
|
headers: headerParameters,
|
|
2115
2095
|
query: queryParameters
|
|
@@ -2157,9 +2137,8 @@ var ResolveApi = class extends BaseAPI {
|
|
|
2157
2137
|
if (this.configuration && this.configuration.apiKey) {
|
|
2158
2138
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
2159
2139
|
}
|
|
2160
|
-
let urlPath = `/api/registry/resolve/batch`;
|
|
2161
2140
|
const response = await this.request({
|
|
2162
|
-
path:
|
|
2141
|
+
path: `/api/registry/resolve/batch`,
|
|
2163
2142
|
method: "POST",
|
|
2164
2143
|
headers: headerParameters,
|
|
2165
2144
|
query: queryParameters,
|
|
@@ -2192,9 +2171,8 @@ var ResolveApi = class extends BaseAPI {
|
|
|
2192
2171
|
if (this.configuration && this.configuration.apiKey) {
|
|
2193
2172
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
2194
2173
|
}
|
|
2195
|
-
let urlPath = `/api/registry/check-updates`;
|
|
2196
2174
|
const response = await this.request({
|
|
2197
|
-
path:
|
|
2175
|
+
path: `/api/registry/check-updates`,
|
|
2198
2176
|
method: "POST",
|
|
2199
2177
|
headers: headerParameters,
|
|
2200
2178
|
query: queryParameters,
|
|
@@ -2227,9 +2205,8 @@ var ResolveApi = class extends BaseAPI {
|
|
|
2227
2205
|
if (this.configuration && this.configuration.apiKey) {
|
|
2228
2206
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
2229
2207
|
}
|
|
2230
|
-
let urlPath = `/api/registry/resolve`;
|
|
2231
2208
|
const response = await this.request({
|
|
2232
|
-
path:
|
|
2209
|
+
path: `/api/registry/resolve`,
|
|
2233
2210
|
method: "POST",
|
|
2234
2211
|
headers: headerParameters,
|
|
2235
2212
|
query: queryParameters,
|
package/dist/index.mjs
CHANGED
|
@@ -1551,11 +1551,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1551
1551
|
if (this.configuration && this.configuration.apiKey) {
|
|
1552
1552
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1553
1553
|
}
|
|
1554
|
-
let urlPath = `/registry/components/{name}/versions/{version}/block`;
|
|
1555
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
1556
|
-
urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"])));
|
|
1557
1554
|
const response = await this.request({
|
|
1558
|
-
path:
|
|
1555
|
+
path: `/registry/components/{name}/versions/{version}/block`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"]))),
|
|
1559
1556
|
method: "POST",
|
|
1560
1557
|
headers: headerParameters,
|
|
1561
1558
|
query: queryParameters,
|
|
@@ -1594,10 +1591,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1594
1591
|
if (this.configuration && this.configuration.apiKey) {
|
|
1595
1592
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1596
1593
|
}
|
|
1597
|
-
let urlPath = `/registry/components/{name}/deprecate`;
|
|
1598
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
1599
1594
|
const response = await this.request({
|
|
1600
|
-
path:
|
|
1595
|
+
path: `/registry/components/{name}/deprecate`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))),
|
|
1601
1596
|
method: "POST",
|
|
1602
1597
|
headers: headerParameters,
|
|
1603
1598
|
query: queryParameters,
|
|
@@ -1628,10 +1623,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1628
1623
|
if (this.configuration && this.configuration.apiKey) {
|
|
1629
1624
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1630
1625
|
}
|
|
1631
|
-
let urlPath = `/registry/components/{name}`;
|
|
1632
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
1633
1626
|
const response = await this.request({
|
|
1634
|
-
path:
|
|
1627
|
+
path: `/registry/components/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))),
|
|
1635
1628
|
method: "GET",
|
|
1636
1629
|
headers: headerParameters,
|
|
1637
1630
|
query: queryParameters
|
|
@@ -1666,11 +1659,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1666
1659
|
if (this.configuration && this.configuration.apiKey) {
|
|
1667
1660
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1668
1661
|
}
|
|
1669
|
-
let urlPath = `/registry/components/{name}/versions/{version}`;
|
|
1670
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
1671
|
-
urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"])));
|
|
1672
1662
|
const response = await this.request({
|
|
1673
|
-
path:
|
|
1663
|
+
path: `/registry/components/{name}/versions/{version}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"]))),
|
|
1674
1664
|
method: "GET",
|
|
1675
1665
|
headers: headerParameters,
|
|
1676
1666
|
query: queryParameters
|
|
@@ -1702,10 +1692,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1702
1692
|
if (this.configuration && this.configuration.apiKey) {
|
|
1703
1693
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1704
1694
|
}
|
|
1705
|
-
let urlPath = `/registry/components/{name}/versions`;
|
|
1706
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
1707
1695
|
const response = await this.request({
|
|
1708
|
-
path:
|
|
1696
|
+
path: `/registry/components/{name}/versions`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))),
|
|
1709
1697
|
method: "GET",
|
|
1710
1698
|
headers: headerParameters,
|
|
1711
1699
|
query: queryParameters
|
|
@@ -1734,9 +1722,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1734
1722
|
if (this.configuration && this.configuration.apiKey) {
|
|
1735
1723
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1736
1724
|
}
|
|
1737
|
-
let urlPath = `/registry/blocked`;
|
|
1738
1725
|
const response = await this.request({
|
|
1739
|
-
path:
|
|
1726
|
+
path: `/registry/blocked`,
|
|
1740
1727
|
method: "GET",
|
|
1741
1728
|
headers: headerParameters,
|
|
1742
1729
|
query: queryParameters
|
|
@@ -1774,9 +1761,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1774
1761
|
if (this.configuration && this.configuration.apiKey) {
|
|
1775
1762
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1776
1763
|
}
|
|
1777
|
-
let urlPath = `/registry/components`;
|
|
1778
1764
|
const response = await this.request({
|
|
1779
|
-
path:
|
|
1765
|
+
path: `/registry/components`,
|
|
1780
1766
|
method: "GET",
|
|
1781
1767
|
headers: headerParameters,
|
|
1782
1768
|
query: queryParameters
|
|
@@ -1813,10 +1799,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1813
1799
|
if (this.configuration && this.configuration.apiKey) {
|
|
1814
1800
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1815
1801
|
}
|
|
1816
|
-
let urlPath = `/registry/components/{name}/promote`;
|
|
1817
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
1818
1802
|
const response = await this.request({
|
|
1819
|
-
path:
|
|
1803
|
+
path: `/registry/components/{name}/promote`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))),
|
|
1820
1804
|
method: "POST",
|
|
1821
1805
|
headers: headerParameters,
|
|
1822
1806
|
query: queryParameters,
|
|
@@ -1849,9 +1833,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1849
1833
|
if (this.configuration && this.configuration.apiKey) {
|
|
1850
1834
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1851
1835
|
}
|
|
1852
|
-
let urlPath = `/registry/components`;
|
|
1853
1836
|
const response = await this.request({
|
|
1854
|
-
path:
|
|
1837
|
+
path: `/registry/components`,
|
|
1855
1838
|
method: "POST",
|
|
1856
1839
|
headers: headerParameters,
|
|
1857
1840
|
query: queryParameters,
|
|
@@ -1888,11 +1871,8 @@ var ComponentsApi = class extends BaseAPI {
|
|
|
1888
1871
|
if (this.configuration && this.configuration.apiKey) {
|
|
1889
1872
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1890
1873
|
}
|
|
1891
|
-
let urlPath = `/registry/components/{name}/versions/{version}/unblock`;
|
|
1892
|
-
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"])));
|
|
1893
|
-
urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"])));
|
|
1894
1874
|
const response = await this.request({
|
|
1895
|
-
path:
|
|
1875
|
+
path: `/registry/components/{name}/versions/{version}/unblock`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters["name"]))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"]))),
|
|
1896
1876
|
method: "POST",
|
|
1897
1877
|
headers: headerParameters,
|
|
1898
1878
|
query: queryParameters
|
|
@@ -1940,9 +1920,8 @@ var ResolveApi = class extends BaseAPI {
|
|
|
1940
1920
|
if (this.configuration && this.configuration.apiKey) {
|
|
1941
1921
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1942
1922
|
}
|
|
1943
|
-
let urlPath = `/api/registry/resolve/batch`;
|
|
1944
1923
|
const response = await this.request({
|
|
1945
|
-
path:
|
|
1924
|
+
path: `/api/registry/resolve/batch`,
|
|
1946
1925
|
method: "POST",
|
|
1947
1926
|
headers: headerParameters,
|
|
1948
1927
|
query: queryParameters,
|
|
@@ -1975,9 +1954,8 @@ var ResolveApi = class extends BaseAPI {
|
|
|
1975
1954
|
if (this.configuration && this.configuration.apiKey) {
|
|
1976
1955
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
1977
1956
|
}
|
|
1978
|
-
let urlPath = `/api/registry/check-updates`;
|
|
1979
1957
|
const response = await this.request({
|
|
1980
|
-
path:
|
|
1958
|
+
path: `/api/registry/check-updates`,
|
|
1981
1959
|
method: "POST",
|
|
1982
1960
|
headers: headerParameters,
|
|
1983
1961
|
query: queryParameters,
|
|
@@ -2010,9 +1988,8 @@ var ResolveApi = class extends BaseAPI {
|
|
|
2010
1988
|
if (this.configuration && this.configuration.apiKey) {
|
|
2011
1989
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
2012
1990
|
}
|
|
2013
|
-
let urlPath = `/api/registry/resolve`;
|
|
2014
1991
|
const response = await this.request({
|
|
2015
|
-
path:
|
|
1992
|
+
path: `/api/registry/resolve`,
|
|
2016
1993
|
method: "POST",
|
|
2017
1994
|
headers: headerParameters,
|
|
2018
1995
|
query: queryParameters,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djvlc/openapi-registry-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "DJV Low-code Platform - Registry API 客户端(自动生成)",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"typecheck": "tsc --noEmit"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@djvlc/openapi-client-core": "1.
|
|
28
|
+
"@djvlc/openapi-client-core": "1.1.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^20.0.0",
|