@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.mjs
CHANGED
|
@@ -538,7 +538,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
538
538
|
options: localVarRequestOptions
|
|
539
539
|
};
|
|
540
540
|
},
|
|
541
|
-
listPlugins: async (sort,
|
|
541
|
+
listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
542
542
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
543
543
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
544
544
|
let baseOptions;
|
|
@@ -553,12 +553,12 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
553
553
|
if (sort) {
|
|
554
554
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
555
555
|
}
|
|
556
|
-
if (enabled !== void 0) {
|
|
557
|
-
localVarQueryParameter["enabled"] = enabled;
|
|
558
|
-
}
|
|
559
556
|
if (keyword !== void 0) {
|
|
560
557
|
localVarQueryParameter["keyword"] = keyword;
|
|
561
558
|
}
|
|
559
|
+
if (enabled !== void 0) {
|
|
560
|
+
localVarQueryParameter["enabled"] = enabled;
|
|
561
|
+
}
|
|
562
562
|
if (size !== void 0) {
|
|
563
563
|
localVarQueryParameter["size"] = size;
|
|
564
564
|
}
|
|
@@ -637,8 +637,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
637
637
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
638
638
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
639
639
|
},
|
|
640
|
-
async listPlugins(sort,
|
|
641
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
640
|
+
async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
|
|
641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options);
|
|
642
642
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
643
643
|
},
|
|
644
644
|
async resetPluginConfig(name, options) {
|
|
@@ -657,8 +657,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
657
657
|
installPlugin(file, options) {
|
|
658
658
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
659
659
|
},
|
|
660
|
-
listPlugins(sort,
|
|
661
|
-
return localVarFp.listPlugins(sort,
|
|
660
|
+
listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
|
|
661
|
+
return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
662
662
|
},
|
|
663
663
|
resetPluginConfig(name, options) {
|
|
664
664
|
return localVarFp.resetPluginConfig(name, options).then((request) => request(axios, basePath));
|
|
@@ -673,7 +673,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
673
673
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
674
674
|
}
|
|
675
675
|
listPlugins(requestParameters = {}, options) {
|
|
676
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
676
|
+
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));
|
|
677
677
|
}
|
|
678
678
|
resetPluginConfig(requestParameters, options) {
|
|
679
679
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).resetPluginConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -708,7 +708,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
708
708
|
options: localVarRequestOptions
|
|
709
709
|
};
|
|
710
710
|
},
|
|
711
|
-
listPosts: async (sort,
|
|
711
|
+
listPosts: async (sort, publishPhase, category, sortOrder, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
712
712
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
713
713
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
714
714
|
let baseOptions;
|
|
@@ -723,9 +723,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
723
723
|
if (sort !== void 0) {
|
|
724
724
|
localVarQueryParameter["sort"] = sort;
|
|
725
725
|
}
|
|
726
|
-
if (contributor) {
|
|
727
|
-
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
728
|
-
}
|
|
729
726
|
if (publishPhase !== void 0) {
|
|
730
727
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
731
728
|
}
|
|
@@ -735,14 +732,17 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
735
732
|
if (sortOrder !== void 0) {
|
|
736
733
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
737
734
|
}
|
|
738
|
-
if (
|
|
739
|
-
localVarQueryParameter["
|
|
735
|
+
if (contributor) {
|
|
736
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
737
|
+
}
|
|
738
|
+
if (visible !== void 0) {
|
|
739
|
+
localVarQueryParameter["visible"] = visible;
|
|
740
740
|
}
|
|
741
741
|
if (keyword !== void 0) {
|
|
742
742
|
localVarQueryParameter["keyword"] = keyword;
|
|
743
743
|
}
|
|
744
|
-
if (
|
|
745
|
-
localVarQueryParameter["
|
|
744
|
+
if (tag) {
|
|
745
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
746
746
|
}
|
|
747
747
|
if (size !== void 0) {
|
|
748
748
|
localVarQueryParameter["size"] = size;
|
|
@@ -887,8 +887,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
887
887
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
888
888
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
889
889
|
},
|
|
890
|
-
async listPosts(sort,
|
|
891
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
890
|
+
async listPosts(sort, publishPhase, category, sortOrder, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options) {
|
|
891
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, publishPhase, category, sortOrder, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options);
|
|
892
892
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
893
893
|
},
|
|
894
894
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -919,8 +919,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
919
919
|
draftPost(postRequest, options) {
|
|
920
920
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
921
921
|
},
|
|
922
|
-
listPosts(sort,
|
|
923
|
-
return localVarFp.listPosts(sort,
|
|
922
|
+
listPosts(sort, publishPhase, category, sortOrder, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options) {
|
|
923
|
+
return localVarFp.listPosts(sort, publishPhase, category, sortOrder, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
924
924
|
},
|
|
925
925
|
publishPost(name, headSnapshot, options) {
|
|
926
926
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -944,7 +944,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
944
944
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
945
945
|
}
|
|
946
946
|
listPosts(requestParameters = {}, options) {
|
|
947
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
947
|
+
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));
|
|
948
948
|
}
|
|
949
949
|
publishPost(requestParameters, options) {
|
|
950
950
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1050,7 +1050,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1050
1050
|
options: localVarRequestOptions
|
|
1051
1051
|
};
|
|
1052
1052
|
},
|
|
1053
|
-
listSinglePages: async (sort,
|
|
1053
|
+
listSinglePages: async (sort, publishPhase, sortOrder, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
1054
1054
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1055
1055
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1056
1056
|
let baseOptions;
|
|
@@ -1065,21 +1065,21 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1065
1065
|
if (sort !== void 0) {
|
|
1066
1066
|
localVarQueryParameter["sort"] = sort;
|
|
1067
1067
|
}
|
|
1068
|
-
if (contributor) {
|
|
1069
|
-
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1070
|
-
}
|
|
1071
1068
|
if (publishPhase !== void 0) {
|
|
1072
1069
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1073
1070
|
}
|
|
1074
1071
|
if (sortOrder !== void 0) {
|
|
1075
1072
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1076
1073
|
}
|
|
1077
|
-
if (
|
|
1078
|
-
localVarQueryParameter["
|
|
1074
|
+
if (contributor) {
|
|
1075
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1079
1076
|
}
|
|
1080
1077
|
if (visible !== void 0) {
|
|
1081
1078
|
localVarQueryParameter["visible"] = visible;
|
|
1082
1079
|
}
|
|
1080
|
+
if (keyword !== void 0) {
|
|
1081
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1082
|
+
}
|
|
1083
1083
|
if (size !== void 0) {
|
|
1084
1084
|
localVarQueryParameter["size"] = size;
|
|
1085
1085
|
}
|
|
@@ -1178,8 +1178,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1178
1178
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1179
1179
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1180
1180
|
},
|
|
1181
|
-
async listSinglePages(sort,
|
|
1182
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1181
|
+
async listSinglePages(sort, publishPhase, sortOrder, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
1182
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, publishPhase, sortOrder, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options);
|
|
1183
1183
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1184
1184
|
},
|
|
1185
1185
|
async publishSinglePage(name, options) {
|
|
@@ -1202,8 +1202,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1202
1202
|
draftSinglePage(singlePageRequest, options) {
|
|
1203
1203
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1204
1204
|
},
|
|
1205
|
-
listSinglePages(sort,
|
|
1206
|
-
return localVarFp.listSinglePages(sort,
|
|
1205
|
+
listSinglePages(sort, publishPhase, sortOrder, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
1206
|
+
return localVarFp.listSinglePages(sort, publishPhase, sortOrder, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1207
1207
|
},
|
|
1208
1208
|
publishSinglePage(name, options) {
|
|
1209
1209
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1221,7 +1221,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1221
1221
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1222
1222
|
}
|
|
1223
1223
|
listSinglePages(requestParameters = {}, options) {
|
|
1224
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1224
|
+
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));
|
|
1225
1225
|
}
|
|
1226
1226
|
publishSinglePage(requestParameters, options) {
|
|
1227
1227
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1571,6 +1571,29 @@ const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration
|
|
|
1571
1571
|
url: toPathString(localVarUrlObj),
|
|
1572
1572
|
options: localVarRequestOptions
|
|
1573
1573
|
};
|
|
1574
|
+
},
|
|
1575
|
+
updateCurrentUser: async (user, options = {}) => {
|
|
1576
|
+
assertParamExists("updateCurrentUser", "user", user);
|
|
1577
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-`;
|
|
1578
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1579
|
+
let baseOptions;
|
|
1580
|
+
if (configuration) {
|
|
1581
|
+
baseOptions = configuration.baseOptions;
|
|
1582
|
+
}
|
|
1583
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1584
|
+
const localVarHeaderParameter = {};
|
|
1585
|
+
const localVarQueryParameter = {};
|
|
1586
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1587
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1588
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1589
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1590
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1591
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1592
|
+
localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration);
|
|
1593
|
+
return {
|
|
1594
|
+
url: toPathString(localVarUrlObj),
|
|
1595
|
+
options: localVarRequestOptions
|
|
1596
|
+
};
|
|
1574
1597
|
}
|
|
1575
1598
|
};
|
|
1576
1599
|
};
|
|
@@ -1592,6 +1615,10 @@ const ApiConsoleHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
|
1592
1615
|
async grantPermission(name, grantRequest, options) {
|
|
1593
1616
|
const localVarAxiosArgs = await localVarAxiosParamCreator.grantPermission(name, grantRequest, options);
|
|
1594
1617
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1618
|
+
},
|
|
1619
|
+
async updateCurrentUser(user, options) {
|
|
1620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCurrentUser(user, options);
|
|
1621
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1595
1622
|
}
|
|
1596
1623
|
};
|
|
1597
1624
|
};
|
|
@@ -1609,6 +1636,9 @@ const ApiConsoleHaloRunV1alpha1UserApiFactory = function(configuration, basePath
|
|
|
1609
1636
|
},
|
|
1610
1637
|
grantPermission(name, grantRequest, options) {
|
|
1611
1638
|
return localVarFp.grantPermission(name, grantRequest, options).then((request) => request(axios, basePath));
|
|
1639
|
+
},
|
|
1640
|
+
updateCurrentUser(user, options) {
|
|
1641
|
+
return localVarFp.updateCurrentUser(user, options).then((request) => request(axios, basePath));
|
|
1612
1642
|
}
|
|
1613
1643
|
};
|
|
1614
1644
|
};
|
|
@@ -1625,6 +1655,9 @@ class ApiConsoleHaloRunV1alpha1UserApi extends BaseAPI {
|
|
|
1625
1655
|
grantPermission(requestParameters, options) {
|
|
1626
1656
|
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).grantPermission(requestParameters.name, requestParameters.grantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1627
1657
|
}
|
|
1658
|
+
updateCurrentUser(requestParameters, options) {
|
|
1659
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).updateCurrentUser(requestParameters.user, options).then((request) => request(this.axios, this.basePath));
|
|
1660
|
+
}
|
|
1628
1661
|
}
|
|
1629
1662
|
|
|
1630
1663
|
const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
@@ -1745,12 +1778,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1745
1778
|
if (version !== void 0) {
|
|
1746
1779
|
localVarQueryParameter["version"] = version;
|
|
1747
1780
|
}
|
|
1748
|
-
if (kind !== void 0) {
|
|
1749
|
-
localVarQueryParameter["kind"] = kind;
|
|
1750
|
-
}
|
|
1751
1781
|
if (group !== void 0) {
|
|
1752
1782
|
localVarQueryParameter["group"] = group;
|
|
1753
1783
|
}
|
|
1784
|
+
if (kind !== void 0) {
|
|
1785
|
+
localVarQueryParameter["kind"] = kind;
|
|
1786
|
+
}
|
|
1754
1787
|
if (size !== void 0) {
|
|
1755
1788
|
localVarQueryParameter["size"] = size;
|
|
1756
1789
|
}
|
|
@@ -1851,12 +1884,12 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1851
1884
|
if (highlightPostTag !== void 0) {
|
|
1852
1885
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1853
1886
|
}
|
|
1854
|
-
if (limit !== void 0) {
|
|
1855
|
-
localVarQueryParameter["limit"] = limit;
|
|
1856
|
-
}
|
|
1857
1887
|
if (keyword !== void 0) {
|
|
1858
1888
|
localVarQueryParameter["keyword"] = keyword;
|
|
1859
1889
|
}
|
|
1890
|
+
if (limit !== void 0) {
|
|
1891
|
+
localVarQueryParameter["limit"] = limit;
|
|
1892
|
+
}
|
|
1860
1893
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1861
1894
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1862
1895
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3494,6 +3527,60 @@ class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
|
|
|
3494
3527
|
}
|
|
3495
3528
|
}
|
|
3496
3529
|
|
|
3530
|
+
const MigrationControllerApiAxiosParamCreator = function(configuration) {
|
|
3531
|
+
return {
|
|
3532
|
+
importMigrationData: async (file, options = {}) => {
|
|
3533
|
+
assertParamExists("importMigrationData", "file", file);
|
|
3534
|
+
const localVarPath = `/apis/api.plugin.halo.run/v1alpha1/plugins/PluginMigrate/migrations/import`;
|
|
3535
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3536
|
+
let baseOptions;
|
|
3537
|
+
if (configuration) {
|
|
3538
|
+
baseOptions = configuration.baseOptions;
|
|
3539
|
+
}
|
|
3540
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3541
|
+
const localVarHeaderParameter = {};
|
|
3542
|
+
const localVarQueryParameter = {};
|
|
3543
|
+
const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
|
|
3544
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
3545
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3546
|
+
if (file !== void 0) {
|
|
3547
|
+
localVarFormParams.append("file", file);
|
|
3548
|
+
}
|
|
3549
|
+
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
3550
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3551
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3552
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3553
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
3554
|
+
return {
|
|
3555
|
+
url: toPathString(localVarUrlObj),
|
|
3556
|
+
options: localVarRequestOptions
|
|
3557
|
+
};
|
|
3558
|
+
}
|
|
3559
|
+
};
|
|
3560
|
+
};
|
|
3561
|
+
const MigrationControllerApiFp = function(configuration) {
|
|
3562
|
+
const localVarAxiosParamCreator = MigrationControllerApiAxiosParamCreator(configuration);
|
|
3563
|
+
return {
|
|
3564
|
+
async importMigrationData(file, options) {
|
|
3565
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importMigrationData(file, options);
|
|
3566
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3567
|
+
}
|
|
3568
|
+
};
|
|
3569
|
+
};
|
|
3570
|
+
const MigrationControllerApiFactory = function(configuration, basePath, axios) {
|
|
3571
|
+
const localVarFp = MigrationControllerApiFp(configuration);
|
|
3572
|
+
return {
|
|
3573
|
+
importMigrationData(file, options) {
|
|
3574
|
+
return localVarFp.importMigrationData(file, options).then((request) => request(axios, basePath));
|
|
3575
|
+
}
|
|
3576
|
+
};
|
|
3577
|
+
};
|
|
3578
|
+
class MigrationControllerApi extends BaseAPI {
|
|
3579
|
+
importMigrationData(requestParameters, options) {
|
|
3580
|
+
return MigrationControllerApiFp(this.configuration).importMigrationData(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
3581
|
+
}
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3497
3584
|
const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function(configuration) {
|
|
3498
3585
|
return {
|
|
3499
3586
|
createpluginHaloRunV1alpha1Plugin: async (plugin, options = {}) => {
|
|
@@ -6699,4 +6786,4 @@ const SinglePageSpecVisibleEnum = {
|
|
|
6699
6786
|
Private: "PRIVATE"
|
|
6700
6787
|
};
|
|
6701
6788
|
|
|
6702
|
-
export { ApiConsoleHaloRunV1alpha1AttachmentApi, ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1AttachmentApiFactory, ApiConsoleHaloRunV1alpha1AttachmentApiFp, ApiConsoleHaloRunV1alpha1CommentApi, ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1CommentApiFactory, ApiConsoleHaloRunV1alpha1CommentApiFp, ApiConsoleHaloRunV1alpha1ContentApi, ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ContentApiFactory, ApiConsoleHaloRunV1alpha1ContentApiFp, ApiConsoleHaloRunV1alpha1IndicesApi, ApiConsoleHaloRunV1alpha1IndicesApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1IndicesApiFactory, ApiConsoleHaloRunV1alpha1IndicesApiFp, ApiConsoleHaloRunV1alpha1PluginApi, ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1PluginApiFactory, ApiConsoleHaloRunV1alpha1PluginApiFp, ApiConsoleHaloRunV1alpha1PostApi, ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1PostApiFactory, ApiConsoleHaloRunV1alpha1PostApiFp, ApiConsoleHaloRunV1alpha1ReplyApi, ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ReplyApiFactory, ApiConsoleHaloRunV1alpha1ReplyApiFp, ApiConsoleHaloRunV1alpha1SinglePageApi, ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1SinglePageApiFactory, ApiConsoleHaloRunV1alpha1SinglePageApiFp, ApiConsoleHaloRunV1alpha1StatsApi, ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1StatsApiFactory, ApiConsoleHaloRunV1alpha1StatsApiFp, ApiConsoleHaloRunV1alpha1ThemeApi, ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ThemeApiFactory, ApiConsoleHaloRunV1alpha1ThemeApiFp, ApiConsoleHaloRunV1alpha1UserApi, ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1UserApiFactory, ApiConsoleHaloRunV1alpha1UserApiFp, ApiHaloRunV1alpha1CommentApi, ApiHaloRunV1alpha1CommentApiAxiosParamCreator, ApiHaloRunV1alpha1CommentApiFactory, ApiHaloRunV1alpha1CommentApiFp, ApiHaloRunV1alpha1PostApi, ApiHaloRunV1alpha1PostApiAxiosParamCreator, ApiHaloRunV1alpha1PostApiFactory, ApiHaloRunV1alpha1PostApiFp, ApiHaloRunV1alpha1TrackerApi, ApiHaloRunV1alpha1TrackerApiAxiosParamCreator, ApiHaloRunV1alpha1TrackerApiFactory, ApiHaloRunV1alpha1TrackerApiFp, ConditionStatusEnum, Configuration, ContentHaloRunV1alpha1CategoryApi, ContentHaloRunV1alpha1CategoryApiAxiosParamCreator, ContentHaloRunV1alpha1CategoryApiFactory, ContentHaloRunV1alpha1CategoryApiFp, ContentHaloRunV1alpha1CommentApi, ContentHaloRunV1alpha1CommentApiAxiosParamCreator, ContentHaloRunV1alpha1CommentApiFactory, ContentHaloRunV1alpha1CommentApiFp, ContentHaloRunV1alpha1PostApi, ContentHaloRunV1alpha1PostApiAxiosParamCreator, ContentHaloRunV1alpha1PostApiFactory, ContentHaloRunV1alpha1PostApiFp, ContentHaloRunV1alpha1ReplyApi, ContentHaloRunV1alpha1ReplyApiAxiosParamCreator, ContentHaloRunV1alpha1ReplyApiFactory, ContentHaloRunV1alpha1ReplyApiFp, ContentHaloRunV1alpha1SinglePageApi, ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator, ContentHaloRunV1alpha1SinglePageApiFactory, ContentHaloRunV1alpha1SinglePageApiFp, ContentHaloRunV1alpha1SnapshotApi, ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator, ContentHaloRunV1alpha1SnapshotApiFactory, ContentHaloRunV1alpha1SnapshotApiFp, ContentHaloRunV1alpha1TagApi, ContentHaloRunV1alpha1TagApiAxiosParamCreator, ContentHaloRunV1alpha1TagApiFactory, ContentHaloRunV1alpha1TagApiFp, MetricsHaloRunV1alpha1CounterApi, MetricsHaloRunV1alpha1CounterApiAxiosParamCreator, MetricsHaloRunV1alpha1CounterApiFactory, MetricsHaloRunV1alpha1CounterApiFp, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginHaloRunV1alpha1SearchEngineApi, PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator, PluginHaloRunV1alpha1SearchEngineApiFactory, PluginHaloRunV1alpha1SearchEngineApiFp, PluginStatusPhaseEnum, PostSpecVisibleEnum, SinglePageSpecVisibleEnum, StorageHaloRunV1alpha1AttachmentApi, StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator, StorageHaloRunV1alpha1AttachmentApiFactory, StorageHaloRunV1alpha1AttachmentApiFp, StorageHaloRunV1alpha1GroupApi, StorageHaloRunV1alpha1GroupApiAxiosParamCreator, StorageHaloRunV1alpha1GroupApiFactory, StorageHaloRunV1alpha1GroupApiFp, StorageHaloRunV1alpha1PolicyApi, StorageHaloRunV1alpha1PolicyApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyApiFactory, StorageHaloRunV1alpha1PolicyApiFp, StorageHaloRunV1alpha1PolicyTemplateApi, StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyTemplateApiFactory, StorageHaloRunV1alpha1PolicyTemplateApiFp, ThemeHaloRunV1alpha1ThemeApi, ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator, ThemeHaloRunV1alpha1ThemeApiFactory, ThemeHaloRunV1alpha1ThemeApiFp, V1alpha1AnnotationSettingApi, V1alpha1AnnotationSettingApiAxiosParamCreator, V1alpha1AnnotationSettingApiFactory, V1alpha1AnnotationSettingApiFp, 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 };
|
|
6789
|
+
export { ApiConsoleHaloRunV1alpha1AttachmentApi, ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1AttachmentApiFactory, ApiConsoleHaloRunV1alpha1AttachmentApiFp, ApiConsoleHaloRunV1alpha1CommentApi, ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1CommentApiFactory, ApiConsoleHaloRunV1alpha1CommentApiFp, ApiConsoleHaloRunV1alpha1ContentApi, ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ContentApiFactory, ApiConsoleHaloRunV1alpha1ContentApiFp, ApiConsoleHaloRunV1alpha1IndicesApi, ApiConsoleHaloRunV1alpha1IndicesApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1IndicesApiFactory, ApiConsoleHaloRunV1alpha1IndicesApiFp, ApiConsoleHaloRunV1alpha1PluginApi, ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1PluginApiFactory, ApiConsoleHaloRunV1alpha1PluginApiFp, ApiConsoleHaloRunV1alpha1PostApi, ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1PostApiFactory, ApiConsoleHaloRunV1alpha1PostApiFp, ApiConsoleHaloRunV1alpha1ReplyApi, ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ReplyApiFactory, ApiConsoleHaloRunV1alpha1ReplyApiFp, ApiConsoleHaloRunV1alpha1SinglePageApi, ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1SinglePageApiFactory, ApiConsoleHaloRunV1alpha1SinglePageApiFp, ApiConsoleHaloRunV1alpha1StatsApi, ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1StatsApiFactory, ApiConsoleHaloRunV1alpha1StatsApiFp, ApiConsoleHaloRunV1alpha1ThemeApi, ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ThemeApiFactory, ApiConsoleHaloRunV1alpha1ThemeApiFp, ApiConsoleHaloRunV1alpha1UserApi, ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1UserApiFactory, ApiConsoleHaloRunV1alpha1UserApiFp, ApiHaloRunV1alpha1CommentApi, ApiHaloRunV1alpha1CommentApiAxiosParamCreator, ApiHaloRunV1alpha1CommentApiFactory, ApiHaloRunV1alpha1CommentApiFp, ApiHaloRunV1alpha1PostApi, ApiHaloRunV1alpha1PostApiAxiosParamCreator, ApiHaloRunV1alpha1PostApiFactory, ApiHaloRunV1alpha1PostApiFp, ApiHaloRunV1alpha1TrackerApi, ApiHaloRunV1alpha1TrackerApiAxiosParamCreator, ApiHaloRunV1alpha1TrackerApiFactory, ApiHaloRunV1alpha1TrackerApiFp, ConditionStatusEnum, Configuration, ContentHaloRunV1alpha1CategoryApi, ContentHaloRunV1alpha1CategoryApiAxiosParamCreator, ContentHaloRunV1alpha1CategoryApiFactory, ContentHaloRunV1alpha1CategoryApiFp, ContentHaloRunV1alpha1CommentApi, ContentHaloRunV1alpha1CommentApiAxiosParamCreator, ContentHaloRunV1alpha1CommentApiFactory, ContentHaloRunV1alpha1CommentApiFp, ContentHaloRunV1alpha1PostApi, ContentHaloRunV1alpha1PostApiAxiosParamCreator, ContentHaloRunV1alpha1PostApiFactory, ContentHaloRunV1alpha1PostApiFp, ContentHaloRunV1alpha1ReplyApi, ContentHaloRunV1alpha1ReplyApiAxiosParamCreator, ContentHaloRunV1alpha1ReplyApiFactory, ContentHaloRunV1alpha1ReplyApiFp, ContentHaloRunV1alpha1SinglePageApi, ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator, ContentHaloRunV1alpha1SinglePageApiFactory, ContentHaloRunV1alpha1SinglePageApiFp, ContentHaloRunV1alpha1SnapshotApi, ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator, ContentHaloRunV1alpha1SnapshotApiFactory, ContentHaloRunV1alpha1SnapshotApiFp, ContentHaloRunV1alpha1TagApi, ContentHaloRunV1alpha1TagApiAxiosParamCreator, ContentHaloRunV1alpha1TagApiFactory, ContentHaloRunV1alpha1TagApiFp, MetricsHaloRunV1alpha1CounterApi, MetricsHaloRunV1alpha1CounterApiAxiosParamCreator, MetricsHaloRunV1alpha1CounterApiFactory, MetricsHaloRunV1alpha1CounterApiFp, MigrationControllerApi, MigrationControllerApiAxiosParamCreator, MigrationControllerApiFactory, MigrationControllerApiFp, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginHaloRunV1alpha1SearchEngineApi, PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator, PluginHaloRunV1alpha1SearchEngineApiFactory, PluginHaloRunV1alpha1SearchEngineApiFp, PluginStatusPhaseEnum, PostSpecVisibleEnum, SinglePageSpecVisibleEnum, StorageHaloRunV1alpha1AttachmentApi, StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator, StorageHaloRunV1alpha1AttachmentApiFactory, StorageHaloRunV1alpha1AttachmentApiFp, StorageHaloRunV1alpha1GroupApi, StorageHaloRunV1alpha1GroupApiAxiosParamCreator, StorageHaloRunV1alpha1GroupApiFactory, StorageHaloRunV1alpha1GroupApiFp, StorageHaloRunV1alpha1PolicyApi, StorageHaloRunV1alpha1PolicyApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyApiFactory, StorageHaloRunV1alpha1PolicyApiFp, StorageHaloRunV1alpha1PolicyTemplateApi, StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyTemplateApiFactory, StorageHaloRunV1alpha1PolicyTemplateApiFp, ThemeHaloRunV1alpha1ThemeApi, ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator, ThemeHaloRunV1alpha1ThemeApiFactory, ThemeHaloRunV1alpha1ThemeApiFp, V1alpha1AnnotationSettingApi, V1alpha1AnnotationSettingApiAxiosParamCreator, V1alpha1AnnotationSettingApiFactory, V1alpha1AnnotationSettingApiFp, 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 };
|