@halo-dev/api-client 0.0.63 → 0.0.65
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 +130 -39
- package/dist/index.d.ts +170 -59
- package/dist/index.mjs +127 -40
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -546,7 +546,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
546
546
|
options: localVarRequestOptions
|
|
547
547
|
};
|
|
548
548
|
},
|
|
549
|
-
listPlugins: async (sort,
|
|
549
|
+
listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
550
550
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
551
551
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
552
552
|
let baseOptions;
|
|
@@ -561,12 +561,12 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
561
561
|
if (sort) {
|
|
562
562
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
563
563
|
}
|
|
564
|
-
if (enabled !== void 0) {
|
|
565
|
-
localVarQueryParameter["enabled"] = enabled;
|
|
566
|
-
}
|
|
567
564
|
if (keyword !== void 0) {
|
|
568
565
|
localVarQueryParameter["keyword"] = keyword;
|
|
569
566
|
}
|
|
567
|
+
if (enabled !== void 0) {
|
|
568
|
+
localVarQueryParameter["enabled"] = enabled;
|
|
569
|
+
}
|
|
570
570
|
if (size !== void 0) {
|
|
571
571
|
localVarQueryParameter["size"] = size;
|
|
572
572
|
}
|
|
@@ -645,8 +645,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
645
645
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
646
646
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
647
647
|
},
|
|
648
|
-
async listPlugins(sort,
|
|
649
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
648
|
+
async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
|
|
649
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options);
|
|
650
650
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
651
651
|
},
|
|
652
652
|
async resetPluginConfig(name, options) {
|
|
@@ -665,8 +665,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
665
665
|
installPlugin(file, options) {
|
|
666
666
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
667
667
|
},
|
|
668
|
-
listPlugins(sort,
|
|
669
|
-
return localVarFp.listPlugins(sort,
|
|
668
|
+
listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
|
|
669
|
+
return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
670
670
|
},
|
|
671
671
|
resetPluginConfig(name, options) {
|
|
672
672
|
return localVarFp.resetPluginConfig(name, options).then((request) => request(axios, basePath));
|
|
@@ -681,7 +681,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
681
681
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
682
682
|
}
|
|
683
683
|
listPlugins(requestParameters = {}, options) {
|
|
684
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
684
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.keyword, requestParameters.enabled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
685
685
|
}
|
|
686
686
|
resetPluginConfig(requestParameters, options) {
|
|
687
687
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).resetPluginConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -716,7 +716,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
716
716
|
options: localVarRequestOptions
|
|
717
717
|
};
|
|
718
718
|
},
|
|
719
|
-
listPosts: async (sort,
|
|
719
|
+
listPosts: async (sort, publishPhase, category, sortOrder, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
720
720
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
721
721
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
722
722
|
let baseOptions;
|
|
@@ -731,9 +731,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
731
731
|
if (sort !== void 0) {
|
|
732
732
|
localVarQueryParameter["sort"] = sort;
|
|
733
733
|
}
|
|
734
|
-
if (contributor) {
|
|
735
|
-
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
736
|
-
}
|
|
737
734
|
if (publishPhase !== void 0) {
|
|
738
735
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
739
736
|
}
|
|
@@ -743,14 +740,17 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
743
740
|
if (sortOrder !== void 0) {
|
|
744
741
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
745
742
|
}
|
|
746
|
-
if (
|
|
747
|
-
localVarQueryParameter["
|
|
743
|
+
if (contributor) {
|
|
744
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
745
|
+
}
|
|
746
|
+
if (visible !== void 0) {
|
|
747
|
+
localVarQueryParameter["visible"] = visible;
|
|
748
748
|
}
|
|
749
749
|
if (keyword !== void 0) {
|
|
750
750
|
localVarQueryParameter["keyword"] = keyword;
|
|
751
751
|
}
|
|
752
|
-
if (
|
|
753
|
-
localVarQueryParameter["
|
|
752
|
+
if (tag) {
|
|
753
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
754
754
|
}
|
|
755
755
|
if (size !== void 0) {
|
|
756
756
|
localVarQueryParameter["size"] = size;
|
|
@@ -895,8 +895,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
895
895
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
896
896
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
897
897
|
},
|
|
898
|
-
async listPosts(sort,
|
|
899
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
898
|
+
async listPosts(sort, publishPhase, category, sortOrder, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options) {
|
|
899
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, publishPhase, category, sortOrder, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options);
|
|
900
900
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
901
901
|
},
|
|
902
902
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -927,8 +927,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
927
927
|
draftPost(postRequest, options) {
|
|
928
928
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
929
929
|
},
|
|
930
|
-
listPosts(sort,
|
|
931
|
-
return localVarFp.listPosts(sort,
|
|
930
|
+
listPosts(sort, publishPhase, category, sortOrder, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options) {
|
|
931
|
+
return localVarFp.listPosts(sort, publishPhase, category, sortOrder, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
932
932
|
},
|
|
933
933
|
publishPost(name, headSnapshot, options) {
|
|
934
934
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -952,7 +952,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
952
952
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
953
953
|
}
|
|
954
954
|
listPosts(requestParameters = {}, options) {
|
|
955
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
955
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.contributor, requestParameters.visible, requestParameters.keyword, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
956
956
|
}
|
|
957
957
|
publishPost(requestParameters, options) {
|
|
958
958
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1058,7 +1058,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1058
1058
|
options: localVarRequestOptions
|
|
1059
1059
|
};
|
|
1060
1060
|
},
|
|
1061
|
-
listSinglePages: async (sort,
|
|
1061
|
+
listSinglePages: async (sort, publishPhase, sortOrder, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
1062
1062
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1063
1063
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1064
1064
|
let baseOptions;
|
|
@@ -1073,21 +1073,21 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1073
1073
|
if (sort !== void 0) {
|
|
1074
1074
|
localVarQueryParameter["sort"] = sort;
|
|
1075
1075
|
}
|
|
1076
|
-
if (contributor) {
|
|
1077
|
-
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1078
|
-
}
|
|
1079
1076
|
if (publishPhase !== void 0) {
|
|
1080
1077
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1081
1078
|
}
|
|
1082
1079
|
if (sortOrder !== void 0) {
|
|
1083
1080
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1084
1081
|
}
|
|
1085
|
-
if (
|
|
1086
|
-
localVarQueryParameter["
|
|
1082
|
+
if (contributor) {
|
|
1083
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1087
1084
|
}
|
|
1088
1085
|
if (visible !== void 0) {
|
|
1089
1086
|
localVarQueryParameter["visible"] = visible;
|
|
1090
1087
|
}
|
|
1088
|
+
if (keyword !== void 0) {
|
|
1089
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1090
|
+
}
|
|
1091
1091
|
if (size !== void 0) {
|
|
1092
1092
|
localVarQueryParameter["size"] = size;
|
|
1093
1093
|
}
|
|
@@ -1186,8 +1186,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1186
1186
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1187
1187
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1188
1188
|
},
|
|
1189
|
-
async listSinglePages(sort,
|
|
1190
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1189
|
+
async listSinglePages(sort, publishPhase, sortOrder, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
1190
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, publishPhase, sortOrder, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options);
|
|
1191
1191
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1192
1192
|
},
|
|
1193
1193
|
async publishSinglePage(name, options) {
|
|
@@ -1210,8 +1210,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1210
1210
|
draftSinglePage(singlePageRequest, options) {
|
|
1211
1211
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1212
1212
|
},
|
|
1213
|
-
listSinglePages(sort,
|
|
1214
|
-
return localVarFp.listSinglePages(sort,
|
|
1213
|
+
listSinglePages(sort, publishPhase, sortOrder, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
1214
|
+
return localVarFp.listSinglePages(sort, publishPhase, sortOrder, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1215
1215
|
},
|
|
1216
1216
|
publishSinglePage(name, options) {
|
|
1217
1217
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1229,7 +1229,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1229
1229
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1230
1230
|
}
|
|
1231
1231
|
listSinglePages(requestParameters = {}, options) {
|
|
1232
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1232
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.publishPhase, requestParameters.sortOrder, requestParameters.contributor, requestParameters.visible, requestParameters.keyword, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1233
1233
|
}
|
|
1234
1234
|
publishSinglePage(requestParameters, options) {
|
|
1235
1235
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1579,6 +1579,29 @@ const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration
|
|
|
1579
1579
|
url: toPathString(localVarUrlObj),
|
|
1580
1580
|
options: localVarRequestOptions
|
|
1581
1581
|
};
|
|
1582
|
+
},
|
|
1583
|
+
updateCurrentUser: async (user, options = {}) => {
|
|
1584
|
+
assertParamExists("updateCurrentUser", "user", user);
|
|
1585
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-`;
|
|
1586
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1587
|
+
let baseOptions;
|
|
1588
|
+
if (configuration) {
|
|
1589
|
+
baseOptions = configuration.baseOptions;
|
|
1590
|
+
}
|
|
1591
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1592
|
+
const localVarHeaderParameter = {};
|
|
1593
|
+
const localVarQueryParameter = {};
|
|
1594
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1595
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1596
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1597
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1598
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1599
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1600
|
+
localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration);
|
|
1601
|
+
return {
|
|
1602
|
+
url: toPathString(localVarUrlObj),
|
|
1603
|
+
options: localVarRequestOptions
|
|
1604
|
+
};
|
|
1582
1605
|
}
|
|
1583
1606
|
};
|
|
1584
1607
|
};
|
|
@@ -1600,6 +1623,10 @@ const ApiConsoleHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
|
1600
1623
|
async grantPermission(name, grantRequest, options) {
|
|
1601
1624
|
const localVarAxiosArgs = await localVarAxiosParamCreator.grantPermission(name, grantRequest, options);
|
|
1602
1625
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1626
|
+
},
|
|
1627
|
+
async updateCurrentUser(user, options) {
|
|
1628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCurrentUser(user, options);
|
|
1629
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1603
1630
|
}
|
|
1604
1631
|
};
|
|
1605
1632
|
};
|
|
@@ -1617,6 +1644,9 @@ const ApiConsoleHaloRunV1alpha1UserApiFactory = function(configuration, basePath
|
|
|
1617
1644
|
},
|
|
1618
1645
|
grantPermission(name, grantRequest, options) {
|
|
1619
1646
|
return localVarFp.grantPermission(name, grantRequest, options).then((request) => request(axios, basePath));
|
|
1647
|
+
},
|
|
1648
|
+
updateCurrentUser(user, options) {
|
|
1649
|
+
return localVarFp.updateCurrentUser(user, options).then((request) => request(axios, basePath));
|
|
1620
1650
|
}
|
|
1621
1651
|
};
|
|
1622
1652
|
};
|
|
@@ -1633,6 +1663,9 @@ class ApiConsoleHaloRunV1alpha1UserApi extends BaseAPI {
|
|
|
1633
1663
|
grantPermission(requestParameters, options) {
|
|
1634
1664
|
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).grantPermission(requestParameters.name, requestParameters.grantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1635
1665
|
}
|
|
1666
|
+
updateCurrentUser(requestParameters, options) {
|
|
1667
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).updateCurrentUser(requestParameters.user, options).then((request) => request(this.axios, this.basePath));
|
|
1668
|
+
}
|
|
1636
1669
|
}
|
|
1637
1670
|
|
|
1638
1671
|
const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
@@ -1753,12 +1786,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1753
1786
|
if (version !== void 0) {
|
|
1754
1787
|
localVarQueryParameter["version"] = version;
|
|
1755
1788
|
}
|
|
1756
|
-
if (kind !== void 0) {
|
|
1757
|
-
localVarQueryParameter["kind"] = kind;
|
|
1758
|
-
}
|
|
1759
1789
|
if (group !== void 0) {
|
|
1760
1790
|
localVarQueryParameter["group"] = group;
|
|
1761
1791
|
}
|
|
1792
|
+
if (kind !== void 0) {
|
|
1793
|
+
localVarQueryParameter["kind"] = kind;
|
|
1794
|
+
}
|
|
1762
1795
|
if (size !== void 0) {
|
|
1763
1796
|
localVarQueryParameter["size"] = size;
|
|
1764
1797
|
}
|
|
@@ -1859,12 +1892,12 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1859
1892
|
if (highlightPostTag !== void 0) {
|
|
1860
1893
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1861
1894
|
}
|
|
1862
|
-
if (limit !== void 0) {
|
|
1863
|
-
localVarQueryParameter["limit"] = limit;
|
|
1864
|
-
}
|
|
1865
1895
|
if (keyword !== void 0) {
|
|
1866
1896
|
localVarQueryParameter["keyword"] = keyword;
|
|
1867
1897
|
}
|
|
1898
|
+
if (limit !== void 0) {
|
|
1899
|
+
localVarQueryParameter["limit"] = limit;
|
|
1900
|
+
}
|
|
1868
1901
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1869
1902
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1870
1903
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3502,6 +3535,60 @@ class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
|
|
|
3502
3535
|
}
|
|
3503
3536
|
}
|
|
3504
3537
|
|
|
3538
|
+
const MigrationControllerApiAxiosParamCreator = function(configuration) {
|
|
3539
|
+
return {
|
|
3540
|
+
importMigrationData: async (file, options = {}) => {
|
|
3541
|
+
assertParamExists("importMigrationData", "file", file);
|
|
3542
|
+
const localVarPath = `/apis/api.plugin.halo.run/v1alpha1/plugins/PluginMigrate/migrations/import`;
|
|
3543
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3544
|
+
let baseOptions;
|
|
3545
|
+
if (configuration) {
|
|
3546
|
+
baseOptions = configuration.baseOptions;
|
|
3547
|
+
}
|
|
3548
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3549
|
+
const localVarHeaderParameter = {};
|
|
3550
|
+
const localVarQueryParameter = {};
|
|
3551
|
+
const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
|
|
3552
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
3553
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3554
|
+
if (file !== void 0) {
|
|
3555
|
+
localVarFormParams.append("file", file);
|
|
3556
|
+
}
|
|
3557
|
+
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
3558
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3559
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3560
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3561
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
3562
|
+
return {
|
|
3563
|
+
url: toPathString(localVarUrlObj),
|
|
3564
|
+
options: localVarRequestOptions
|
|
3565
|
+
};
|
|
3566
|
+
}
|
|
3567
|
+
};
|
|
3568
|
+
};
|
|
3569
|
+
const MigrationControllerApiFp = function(configuration) {
|
|
3570
|
+
const localVarAxiosParamCreator = MigrationControllerApiAxiosParamCreator(configuration);
|
|
3571
|
+
return {
|
|
3572
|
+
async importMigrationData(file, options) {
|
|
3573
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importMigrationData(file, options);
|
|
3574
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3575
|
+
}
|
|
3576
|
+
};
|
|
3577
|
+
};
|
|
3578
|
+
const MigrationControllerApiFactory = function(configuration, basePath, axios) {
|
|
3579
|
+
const localVarFp = MigrationControllerApiFp(configuration);
|
|
3580
|
+
return {
|
|
3581
|
+
importMigrationData(file, options) {
|
|
3582
|
+
return localVarFp.importMigrationData(file, options).then((request) => request(axios, basePath));
|
|
3583
|
+
}
|
|
3584
|
+
};
|
|
3585
|
+
};
|
|
3586
|
+
class MigrationControllerApi extends BaseAPI {
|
|
3587
|
+
importMigrationData(requestParameters, options) {
|
|
3588
|
+
return MigrationControllerApiFp(this.configuration).importMigrationData(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3591
|
+
|
|
3505
3592
|
const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function(configuration) {
|
|
3506
3593
|
return {
|
|
3507
3594
|
createpluginHaloRunV1alpha1Plugin: async (plugin, options = {}) => {
|
|
@@ -6797,6 +6884,10 @@ exports.MetricsHaloRunV1alpha1CounterApi = MetricsHaloRunV1alpha1CounterApi;
|
|
|
6797
6884
|
exports.MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = MetricsHaloRunV1alpha1CounterApiAxiosParamCreator;
|
|
6798
6885
|
exports.MetricsHaloRunV1alpha1CounterApiFactory = MetricsHaloRunV1alpha1CounterApiFactory;
|
|
6799
6886
|
exports.MetricsHaloRunV1alpha1CounterApiFp = MetricsHaloRunV1alpha1CounterApiFp;
|
|
6887
|
+
exports.MigrationControllerApi = MigrationControllerApi;
|
|
6888
|
+
exports.MigrationControllerApiAxiosParamCreator = MigrationControllerApiAxiosParamCreator;
|
|
6889
|
+
exports.MigrationControllerApiFactory = MigrationControllerApiFactory;
|
|
6890
|
+
exports.MigrationControllerApiFp = MigrationControllerApiFp;
|
|
6800
6891
|
exports.PluginHaloRunV1alpha1PluginApi = PluginHaloRunV1alpha1PluginApi;
|
|
6801
6892
|
exports.PluginHaloRunV1alpha1PluginApiAxiosParamCreator = PluginHaloRunV1alpha1PluginApiAxiosParamCreator;
|
|
6802
6893
|
exports.PluginHaloRunV1alpha1PluginApiFactory = PluginHaloRunV1alpha1PluginApiFactory;
|