@halo-dev/api-client 0.0.7 → 0.0.10
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.cjs +435 -0
- package/dist/index.d.ts +734 -9
- package/dist/index.mjs +424 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -128,6 +128,59 @@ class ApiHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
128
128
|
return ApiHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(file, options).then((request) => request(this.axios, this.basePath));
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
+
const ApiHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
132
|
+
return {
|
|
133
|
+
installTheme: async (file, options = {}) => {
|
|
134
|
+
assertParamExists("installTheme", "file", file);
|
|
135
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/themes/install`;
|
|
136
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
137
|
+
let baseOptions;
|
|
138
|
+
if (configuration) {
|
|
139
|
+
baseOptions = configuration.baseOptions;
|
|
140
|
+
}
|
|
141
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
142
|
+
const localVarHeaderParameter = {};
|
|
143
|
+
const localVarQueryParameter = {};
|
|
144
|
+
const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
|
|
145
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
146
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
147
|
+
if (file !== void 0) {
|
|
148
|
+
localVarFormParams.append("file", file);
|
|
149
|
+
}
|
|
150
|
+
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
151
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
154
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
155
|
+
return {
|
|
156
|
+
url: toPathString(localVarUrlObj),
|
|
157
|
+
options: localVarRequestOptions
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
const ApiHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
163
|
+
const localVarAxiosParamCreator = ApiHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
|
164
|
+
return {
|
|
165
|
+
async installTheme(file, options) {
|
|
166
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
167
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
const ApiHaloRunV1alpha1ThemeApiFactory = function(configuration, basePath, axios) {
|
|
172
|
+
const localVarFp = ApiHaloRunV1alpha1ThemeApiFp(configuration);
|
|
173
|
+
return {
|
|
174
|
+
installTheme(file, options) {
|
|
175
|
+
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
class ApiHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
180
|
+
installTheme(file, options) {
|
|
181
|
+
return ApiHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(file, options).then((request) => request(this.axios, this.basePath));
|
|
182
|
+
}
|
|
183
|
+
}
|
|
131
184
|
const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
132
185
|
return {
|
|
133
186
|
changePassword: async (name, changePasswordRequest, options = {}) => {
|
|
@@ -1614,6 +1667,376 @@ class V1alpha1ConfigMapApi extends BaseAPI {
|
|
|
1614
1667
|
return V1alpha1ConfigMapApiFp(this.configuration).updatev1alpha1ConfigMap(name, configMap, options).then((request) => request(this.axios, this.basePath));
|
|
1615
1668
|
}
|
|
1616
1669
|
}
|
|
1670
|
+
const V1alpha1MenuApiAxiosParamCreator = function(configuration) {
|
|
1671
|
+
return {
|
|
1672
|
+
createv1alpha1Menu: async (menu, options = {}) => {
|
|
1673
|
+
const localVarPath = `/api/v1alpha1/menus`;
|
|
1674
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1675
|
+
let baseOptions;
|
|
1676
|
+
if (configuration) {
|
|
1677
|
+
baseOptions = configuration.baseOptions;
|
|
1678
|
+
}
|
|
1679
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1680
|
+
const localVarHeaderParameter = {};
|
|
1681
|
+
const localVarQueryParameter = {};
|
|
1682
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1683
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1684
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1685
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1686
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1687
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1688
|
+
localVarRequestOptions.data = serializeDataIfNeeded(menu, localVarRequestOptions, configuration);
|
|
1689
|
+
return {
|
|
1690
|
+
url: toPathString(localVarUrlObj),
|
|
1691
|
+
options: localVarRequestOptions
|
|
1692
|
+
};
|
|
1693
|
+
},
|
|
1694
|
+
deletev1alpha1Menu: async (name, options = {}) => {
|
|
1695
|
+
assertParamExists("deletev1alpha1Menu", "name", name);
|
|
1696
|
+
const localVarPath = `/api/v1alpha1/menus/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1697
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1698
|
+
let baseOptions;
|
|
1699
|
+
if (configuration) {
|
|
1700
|
+
baseOptions = configuration.baseOptions;
|
|
1701
|
+
}
|
|
1702
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1703
|
+
const localVarHeaderParameter = {};
|
|
1704
|
+
const localVarQueryParameter = {};
|
|
1705
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1706
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1707
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1708
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1709
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1710
|
+
return {
|
|
1711
|
+
url: toPathString(localVarUrlObj),
|
|
1712
|
+
options: localVarRequestOptions
|
|
1713
|
+
};
|
|
1714
|
+
},
|
|
1715
|
+
getv1alpha1Menu: async (name, options = {}) => {
|
|
1716
|
+
assertParamExists("getv1alpha1Menu", "name", name);
|
|
1717
|
+
const localVarPath = `/api/v1alpha1/menus/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1718
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1719
|
+
let baseOptions;
|
|
1720
|
+
if (configuration) {
|
|
1721
|
+
baseOptions = configuration.baseOptions;
|
|
1722
|
+
}
|
|
1723
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1724
|
+
const localVarHeaderParameter = {};
|
|
1725
|
+
const localVarQueryParameter = {};
|
|
1726
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1727
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1728
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1729
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1730
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1731
|
+
return {
|
|
1732
|
+
url: toPathString(localVarUrlObj),
|
|
1733
|
+
options: localVarRequestOptions
|
|
1734
|
+
};
|
|
1735
|
+
},
|
|
1736
|
+
listv1alpha1Menu: async (page, size, labelSelector, fieldSelector, options = {}) => {
|
|
1737
|
+
const localVarPath = `/api/v1alpha1/menus`;
|
|
1738
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1739
|
+
let baseOptions;
|
|
1740
|
+
if (configuration) {
|
|
1741
|
+
baseOptions = configuration.baseOptions;
|
|
1742
|
+
}
|
|
1743
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1744
|
+
const localVarHeaderParameter = {};
|
|
1745
|
+
const localVarQueryParameter = {};
|
|
1746
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1747
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1748
|
+
if (page !== void 0) {
|
|
1749
|
+
localVarQueryParameter["page"] = page;
|
|
1750
|
+
}
|
|
1751
|
+
if (size !== void 0) {
|
|
1752
|
+
localVarQueryParameter["size"] = size;
|
|
1753
|
+
}
|
|
1754
|
+
if (labelSelector) {
|
|
1755
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1756
|
+
}
|
|
1757
|
+
if (fieldSelector) {
|
|
1758
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1759
|
+
}
|
|
1760
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1761
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1762
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1763
|
+
return {
|
|
1764
|
+
url: toPathString(localVarUrlObj),
|
|
1765
|
+
options: localVarRequestOptions
|
|
1766
|
+
};
|
|
1767
|
+
},
|
|
1768
|
+
updatev1alpha1Menu: async (name, menu, options = {}) => {
|
|
1769
|
+
assertParamExists("updatev1alpha1Menu", "name", name);
|
|
1770
|
+
const localVarPath = `/api/v1alpha1/menus/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1771
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1772
|
+
let baseOptions;
|
|
1773
|
+
if (configuration) {
|
|
1774
|
+
baseOptions = configuration.baseOptions;
|
|
1775
|
+
}
|
|
1776
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1777
|
+
const localVarHeaderParameter = {};
|
|
1778
|
+
const localVarQueryParameter = {};
|
|
1779
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1780
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1781
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1782
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1783
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1784
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1785
|
+
localVarRequestOptions.data = serializeDataIfNeeded(menu, localVarRequestOptions, configuration);
|
|
1786
|
+
return {
|
|
1787
|
+
url: toPathString(localVarUrlObj),
|
|
1788
|
+
options: localVarRequestOptions
|
|
1789
|
+
};
|
|
1790
|
+
}
|
|
1791
|
+
};
|
|
1792
|
+
};
|
|
1793
|
+
const V1alpha1MenuApiFp = function(configuration) {
|
|
1794
|
+
const localVarAxiosParamCreator = V1alpha1MenuApiAxiosParamCreator(configuration);
|
|
1795
|
+
return {
|
|
1796
|
+
async createv1alpha1Menu(menu, options) {
|
|
1797
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1Menu(menu, options);
|
|
1798
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1799
|
+
},
|
|
1800
|
+
async deletev1alpha1Menu(name, options) {
|
|
1801
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1Menu(name, options);
|
|
1802
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1803
|
+
},
|
|
1804
|
+
async getv1alpha1Menu(name, options) {
|
|
1805
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1Menu(name, options);
|
|
1806
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1807
|
+
},
|
|
1808
|
+
async listv1alpha1Menu(page, size, labelSelector, fieldSelector, options) {
|
|
1809
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1Menu(page, size, labelSelector, fieldSelector, options);
|
|
1810
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1811
|
+
},
|
|
1812
|
+
async updatev1alpha1Menu(name, menu, options) {
|
|
1813
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1Menu(name, menu, options);
|
|
1814
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1815
|
+
}
|
|
1816
|
+
};
|
|
1817
|
+
};
|
|
1818
|
+
const V1alpha1MenuApiFactory = function(configuration, basePath, axios) {
|
|
1819
|
+
const localVarFp = V1alpha1MenuApiFp(configuration);
|
|
1820
|
+
return {
|
|
1821
|
+
createv1alpha1Menu(menu, options) {
|
|
1822
|
+
return localVarFp.createv1alpha1Menu(menu, options).then((request) => request(axios, basePath));
|
|
1823
|
+
},
|
|
1824
|
+
deletev1alpha1Menu(name, options) {
|
|
1825
|
+
return localVarFp.deletev1alpha1Menu(name, options).then((request) => request(axios, basePath));
|
|
1826
|
+
},
|
|
1827
|
+
getv1alpha1Menu(name, options) {
|
|
1828
|
+
return localVarFp.getv1alpha1Menu(name, options).then((request) => request(axios, basePath));
|
|
1829
|
+
},
|
|
1830
|
+
listv1alpha1Menu(page, size, labelSelector, fieldSelector, options) {
|
|
1831
|
+
return localVarFp.listv1alpha1Menu(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1832
|
+
},
|
|
1833
|
+
updatev1alpha1Menu(name, menu, options) {
|
|
1834
|
+
return localVarFp.updatev1alpha1Menu(name, menu, options).then((request) => request(axios, basePath));
|
|
1835
|
+
}
|
|
1836
|
+
};
|
|
1837
|
+
};
|
|
1838
|
+
class V1alpha1MenuApi extends BaseAPI {
|
|
1839
|
+
createv1alpha1Menu(menu, options) {
|
|
1840
|
+
return V1alpha1MenuApiFp(this.configuration).createv1alpha1Menu(menu, options).then((request) => request(this.axios, this.basePath));
|
|
1841
|
+
}
|
|
1842
|
+
deletev1alpha1Menu(name, options) {
|
|
1843
|
+
return V1alpha1MenuApiFp(this.configuration).deletev1alpha1Menu(name, options).then((request) => request(this.axios, this.basePath));
|
|
1844
|
+
}
|
|
1845
|
+
getv1alpha1Menu(name, options) {
|
|
1846
|
+
return V1alpha1MenuApiFp(this.configuration).getv1alpha1Menu(name, options).then((request) => request(this.axios, this.basePath));
|
|
1847
|
+
}
|
|
1848
|
+
listv1alpha1Menu(page, size, labelSelector, fieldSelector, options) {
|
|
1849
|
+
return V1alpha1MenuApiFp(this.configuration).listv1alpha1Menu(page, size, labelSelector, fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1850
|
+
}
|
|
1851
|
+
updatev1alpha1Menu(name, menu, options) {
|
|
1852
|
+
return V1alpha1MenuApiFp(this.configuration).updatev1alpha1Menu(name, menu, options).then((request) => request(this.axios, this.basePath));
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
const V1alpha1MenuItemApiAxiosParamCreator = function(configuration) {
|
|
1856
|
+
return {
|
|
1857
|
+
createv1alpha1MenuItem: async (menuItem, options = {}) => {
|
|
1858
|
+
const localVarPath = `/api/v1alpha1/menuitems`;
|
|
1859
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1860
|
+
let baseOptions;
|
|
1861
|
+
if (configuration) {
|
|
1862
|
+
baseOptions = configuration.baseOptions;
|
|
1863
|
+
}
|
|
1864
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1865
|
+
const localVarHeaderParameter = {};
|
|
1866
|
+
const localVarQueryParameter = {};
|
|
1867
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1868
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1869
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1870
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1871
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1872
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1873
|
+
localVarRequestOptions.data = serializeDataIfNeeded(menuItem, localVarRequestOptions, configuration);
|
|
1874
|
+
return {
|
|
1875
|
+
url: toPathString(localVarUrlObj),
|
|
1876
|
+
options: localVarRequestOptions
|
|
1877
|
+
};
|
|
1878
|
+
},
|
|
1879
|
+
deletev1alpha1MenuItem: async (name, options = {}) => {
|
|
1880
|
+
assertParamExists("deletev1alpha1MenuItem", "name", name);
|
|
1881
|
+
const localVarPath = `/api/v1alpha1/menuitems/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1882
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1883
|
+
let baseOptions;
|
|
1884
|
+
if (configuration) {
|
|
1885
|
+
baseOptions = configuration.baseOptions;
|
|
1886
|
+
}
|
|
1887
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1888
|
+
const localVarHeaderParameter = {};
|
|
1889
|
+
const localVarQueryParameter = {};
|
|
1890
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1891
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1892
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1893
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1894
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1895
|
+
return {
|
|
1896
|
+
url: toPathString(localVarUrlObj),
|
|
1897
|
+
options: localVarRequestOptions
|
|
1898
|
+
};
|
|
1899
|
+
},
|
|
1900
|
+
getv1alpha1MenuItem: async (name, options = {}) => {
|
|
1901
|
+
assertParamExists("getv1alpha1MenuItem", "name", name);
|
|
1902
|
+
const localVarPath = `/api/v1alpha1/menuitems/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1903
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1904
|
+
let baseOptions;
|
|
1905
|
+
if (configuration) {
|
|
1906
|
+
baseOptions = configuration.baseOptions;
|
|
1907
|
+
}
|
|
1908
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1909
|
+
const localVarHeaderParameter = {};
|
|
1910
|
+
const localVarQueryParameter = {};
|
|
1911
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1912
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1913
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1914
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1915
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1916
|
+
return {
|
|
1917
|
+
url: toPathString(localVarUrlObj),
|
|
1918
|
+
options: localVarRequestOptions
|
|
1919
|
+
};
|
|
1920
|
+
},
|
|
1921
|
+
listv1alpha1MenuItem: async (page, size, labelSelector, fieldSelector, options = {}) => {
|
|
1922
|
+
const localVarPath = `/api/v1alpha1/menuitems`;
|
|
1923
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1924
|
+
let baseOptions;
|
|
1925
|
+
if (configuration) {
|
|
1926
|
+
baseOptions = configuration.baseOptions;
|
|
1927
|
+
}
|
|
1928
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1929
|
+
const localVarHeaderParameter = {};
|
|
1930
|
+
const localVarQueryParameter = {};
|
|
1931
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1932
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1933
|
+
if (page !== void 0) {
|
|
1934
|
+
localVarQueryParameter["page"] = page;
|
|
1935
|
+
}
|
|
1936
|
+
if (size !== void 0) {
|
|
1937
|
+
localVarQueryParameter["size"] = size;
|
|
1938
|
+
}
|
|
1939
|
+
if (labelSelector) {
|
|
1940
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1941
|
+
}
|
|
1942
|
+
if (fieldSelector) {
|
|
1943
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1944
|
+
}
|
|
1945
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1946
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1947
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1948
|
+
return {
|
|
1949
|
+
url: toPathString(localVarUrlObj),
|
|
1950
|
+
options: localVarRequestOptions
|
|
1951
|
+
};
|
|
1952
|
+
},
|
|
1953
|
+
updatev1alpha1MenuItem: async (name, menuItem, options = {}) => {
|
|
1954
|
+
assertParamExists("updatev1alpha1MenuItem", "name", name);
|
|
1955
|
+
const localVarPath = `/api/v1alpha1/menuitems/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1956
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1957
|
+
let baseOptions;
|
|
1958
|
+
if (configuration) {
|
|
1959
|
+
baseOptions = configuration.baseOptions;
|
|
1960
|
+
}
|
|
1961
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1962
|
+
const localVarHeaderParameter = {};
|
|
1963
|
+
const localVarQueryParameter = {};
|
|
1964
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1965
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1966
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1967
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1968
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1969
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1970
|
+
localVarRequestOptions.data = serializeDataIfNeeded(menuItem, localVarRequestOptions, configuration);
|
|
1971
|
+
return {
|
|
1972
|
+
url: toPathString(localVarUrlObj),
|
|
1973
|
+
options: localVarRequestOptions
|
|
1974
|
+
};
|
|
1975
|
+
}
|
|
1976
|
+
};
|
|
1977
|
+
};
|
|
1978
|
+
const V1alpha1MenuItemApiFp = function(configuration) {
|
|
1979
|
+
const localVarAxiosParamCreator = V1alpha1MenuItemApiAxiosParamCreator(configuration);
|
|
1980
|
+
return {
|
|
1981
|
+
async createv1alpha1MenuItem(menuItem, options) {
|
|
1982
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createv1alpha1MenuItem(menuItem, options);
|
|
1983
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1984
|
+
},
|
|
1985
|
+
async deletev1alpha1MenuItem(name, options) {
|
|
1986
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletev1alpha1MenuItem(name, options);
|
|
1987
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1988
|
+
},
|
|
1989
|
+
async getv1alpha1MenuItem(name, options) {
|
|
1990
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getv1alpha1MenuItem(name, options);
|
|
1991
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1992
|
+
},
|
|
1993
|
+
async listv1alpha1MenuItem(page, size, labelSelector, fieldSelector, options) {
|
|
1994
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listv1alpha1MenuItem(page, size, labelSelector, fieldSelector, options);
|
|
1995
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1996
|
+
},
|
|
1997
|
+
async updatev1alpha1MenuItem(name, menuItem, options) {
|
|
1998
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatev1alpha1MenuItem(name, menuItem, options);
|
|
1999
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2000
|
+
}
|
|
2001
|
+
};
|
|
2002
|
+
};
|
|
2003
|
+
const V1alpha1MenuItemApiFactory = function(configuration, basePath, axios) {
|
|
2004
|
+
const localVarFp = V1alpha1MenuItemApiFp(configuration);
|
|
2005
|
+
return {
|
|
2006
|
+
createv1alpha1MenuItem(menuItem, options) {
|
|
2007
|
+
return localVarFp.createv1alpha1MenuItem(menuItem, options).then((request) => request(axios, basePath));
|
|
2008
|
+
},
|
|
2009
|
+
deletev1alpha1MenuItem(name, options) {
|
|
2010
|
+
return localVarFp.deletev1alpha1MenuItem(name, options).then((request) => request(axios, basePath));
|
|
2011
|
+
},
|
|
2012
|
+
getv1alpha1MenuItem(name, options) {
|
|
2013
|
+
return localVarFp.getv1alpha1MenuItem(name, options).then((request) => request(axios, basePath));
|
|
2014
|
+
},
|
|
2015
|
+
listv1alpha1MenuItem(page, size, labelSelector, fieldSelector, options) {
|
|
2016
|
+
return localVarFp.listv1alpha1MenuItem(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2017
|
+
},
|
|
2018
|
+
updatev1alpha1MenuItem(name, menuItem, options) {
|
|
2019
|
+
return localVarFp.updatev1alpha1MenuItem(name, menuItem, options).then((request) => request(axios, basePath));
|
|
2020
|
+
}
|
|
2021
|
+
};
|
|
2022
|
+
};
|
|
2023
|
+
class V1alpha1MenuItemApi extends BaseAPI {
|
|
2024
|
+
createv1alpha1MenuItem(menuItem, options) {
|
|
2025
|
+
return V1alpha1MenuItemApiFp(this.configuration).createv1alpha1MenuItem(menuItem, options).then((request) => request(this.axios, this.basePath));
|
|
2026
|
+
}
|
|
2027
|
+
deletev1alpha1MenuItem(name, options) {
|
|
2028
|
+
return V1alpha1MenuItemApiFp(this.configuration).deletev1alpha1MenuItem(name, options).then((request) => request(this.axios, this.basePath));
|
|
2029
|
+
}
|
|
2030
|
+
getv1alpha1MenuItem(name, options) {
|
|
2031
|
+
return V1alpha1MenuItemApiFp(this.configuration).getv1alpha1MenuItem(name, options).then((request) => request(this.axios, this.basePath));
|
|
2032
|
+
}
|
|
2033
|
+
listv1alpha1MenuItem(page, size, labelSelector, fieldSelector, options) {
|
|
2034
|
+
return V1alpha1MenuItemApiFp(this.configuration).listv1alpha1MenuItem(page, size, labelSelector, fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2035
|
+
}
|
|
2036
|
+
updatev1alpha1MenuItem(name, menuItem, options) {
|
|
2037
|
+
return V1alpha1MenuItemApiFp(this.configuration).updatev1alpha1MenuItem(name, menuItem, options).then((request) => request(this.axios, this.basePath));
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
1617
2040
|
const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function(configuration) {
|
|
1618
2041
|
return {
|
|
1619
2042
|
createv1alpha1PersonalAccessToken: async (personalAccessToken, options = {}) => {
|
|
@@ -2556,4 +2979,4 @@ class Configuration {
|
|
|
2556
2979
|
}
|
|
2557
2980
|
}
|
|
2558
2981
|
|
|
2559
|
-
export { ApiHaloRunV1alpha1PluginApi, ApiHaloRunV1alpha1PluginApiAxiosParamCreator, ApiHaloRunV1alpha1PluginApiFactory, ApiHaloRunV1alpha1PluginApiFp, ApiHaloRunV1alpha1UserApi, ApiHaloRunV1alpha1UserApiAxiosParamCreator, ApiHaloRunV1alpha1UserApiFactory, ApiHaloRunV1alpha1UserApiFp, ApplesControllerApi, ApplesControllerApiAxiosParamCreator, ApplesControllerApiFactory, ApplesControllerApiFp, Configuration, CoreHaloRunV1alpha1LinkApi, CoreHaloRunV1alpha1LinkApiAxiosParamCreator, CoreHaloRunV1alpha1LinkApiFactory, CoreHaloRunV1alpha1LinkApiFp, CoreHaloRunV1alpha1LinkGroupApi, CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator, CoreHaloRunV1alpha1LinkGroupApiFactory, CoreHaloRunV1alpha1LinkGroupApiFp, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginStatusPhaseEnum, RunHaloTemplateV1alpha1AppleApi, RunHaloTemplateV1alpha1AppleApiAxiosParamCreator, RunHaloTemplateV1alpha1AppleApiFactory, RunHaloTemplateV1alpha1AppleApiFp, ThemeHaloRunV1alpha1ThemeApi, ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator, ThemeHaloRunV1alpha1ThemeApiFactory, ThemeHaloRunV1alpha1ThemeApiFp, V1alpha1ConfigMapApi, V1alpha1ConfigMapApiAxiosParamCreator, V1alpha1ConfigMapApiFactory, V1alpha1ConfigMapApiFp, V1alpha1PersonalAccessTokenApi, V1alpha1PersonalAccessTokenApiAxiosParamCreator, V1alpha1PersonalAccessTokenApiFactory, V1alpha1PersonalAccessTokenApiFp, V1alpha1RoleApi, V1alpha1RoleApiAxiosParamCreator, V1alpha1RoleApiFactory, V1alpha1RoleApiFp, V1alpha1RoleBindingApi, V1alpha1RoleBindingApiAxiosParamCreator, V1alpha1RoleBindingApiFactory, V1alpha1RoleBindingApiFp, V1alpha1SettingApi, V1alpha1SettingApiAxiosParamCreator, V1alpha1SettingApiFactory, V1alpha1SettingApiFp, V1alpha1UserApi, V1alpha1UserApiAxiosParamCreator, V1alpha1UserApiFactory, V1alpha1UserApiFp };
|
|
2982
|
+
export { ApiHaloRunV1alpha1PluginApi, ApiHaloRunV1alpha1PluginApiAxiosParamCreator, ApiHaloRunV1alpha1PluginApiFactory, ApiHaloRunV1alpha1PluginApiFp, ApiHaloRunV1alpha1ThemeApi, ApiHaloRunV1alpha1ThemeApiAxiosParamCreator, ApiHaloRunV1alpha1ThemeApiFactory, ApiHaloRunV1alpha1ThemeApiFp, ApiHaloRunV1alpha1UserApi, ApiHaloRunV1alpha1UserApiAxiosParamCreator, ApiHaloRunV1alpha1UserApiFactory, ApiHaloRunV1alpha1UserApiFp, ApplesControllerApi, ApplesControllerApiAxiosParamCreator, ApplesControllerApiFactory, ApplesControllerApiFp, Configuration, CoreHaloRunV1alpha1LinkApi, CoreHaloRunV1alpha1LinkApiAxiosParamCreator, CoreHaloRunV1alpha1LinkApiFactory, CoreHaloRunV1alpha1LinkApiFp, CoreHaloRunV1alpha1LinkGroupApi, CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator, CoreHaloRunV1alpha1LinkGroupApiFactory, CoreHaloRunV1alpha1LinkGroupApiFp, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginStatusPhaseEnum, RunHaloTemplateV1alpha1AppleApi, RunHaloTemplateV1alpha1AppleApiAxiosParamCreator, RunHaloTemplateV1alpha1AppleApiFactory, RunHaloTemplateV1alpha1AppleApiFp, ThemeHaloRunV1alpha1ThemeApi, ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator, ThemeHaloRunV1alpha1ThemeApiFactory, ThemeHaloRunV1alpha1ThemeApiFp, V1alpha1ConfigMapApi, V1alpha1ConfigMapApiAxiosParamCreator, V1alpha1ConfigMapApiFactory, V1alpha1ConfigMapApiFp, V1alpha1MenuApi, V1alpha1MenuApiAxiosParamCreator, V1alpha1MenuApiFactory, V1alpha1MenuApiFp, V1alpha1MenuItemApi, V1alpha1MenuItemApiAxiosParamCreator, V1alpha1MenuItemApiFactory, V1alpha1MenuItemApiFp, V1alpha1PersonalAccessTokenApi, V1alpha1PersonalAccessTokenApiAxiosParamCreator, V1alpha1PersonalAccessTokenApiFactory, V1alpha1PersonalAccessTokenApiFp, V1alpha1RoleApi, V1alpha1RoleApiAxiosParamCreator, V1alpha1RoleApiFactory, V1alpha1RoleApiFp, V1alpha1RoleBindingApi, V1alpha1RoleBindingApiAxiosParamCreator, V1alpha1RoleBindingApiFactory, V1alpha1RoleBindingApiFp, V1alpha1SettingApi, V1alpha1SettingApiAxiosParamCreator, V1alpha1SettingApiFactory, V1alpha1SettingApiFp, V1alpha1UserApi, V1alpha1UserApiAxiosParamCreator, V1alpha1UserApiFactory, V1alpha1UserApiFp };
|