@halo-dev/api-client 0.0.66 → 0.0.67
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 +159 -36
- package/dist/index.d.ts +212 -49
- package/dist/index.mjs +159 -36
- 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, sortOrder, contributor, publishPhase, category, 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,27 +731,27 @@ 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 (sortOrder !== void 0) {
|
|
738
735
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
739
736
|
}
|
|
737
|
+
if (contributor) {
|
|
738
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
739
|
+
}
|
|
740
740
|
if (publishPhase !== void 0) {
|
|
741
741
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
742
742
|
}
|
|
743
743
|
if (category) {
|
|
744
744
|
localVarQueryParameter["category"] = Array.from(category);
|
|
745
745
|
}
|
|
746
|
-
if (tag) {
|
|
747
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
748
|
-
}
|
|
749
746
|
if (visible !== void 0) {
|
|
750
747
|
localVarQueryParameter["visible"] = visible;
|
|
751
748
|
}
|
|
752
749
|
if (keyword !== void 0) {
|
|
753
750
|
localVarQueryParameter["keyword"] = keyword;
|
|
754
751
|
}
|
|
752
|
+
if (tag) {
|
|
753
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
754
|
+
}
|
|
755
755
|
if (size !== void 0) {
|
|
756
756
|
localVarQueryParameter["size"] = size;
|
|
757
757
|
}
|
|
@@ -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, sortOrder, contributor, publishPhase, category, visible, keyword, tag, size, labelSelector, fieldSelector, page, options) {
|
|
899
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, sortOrder, contributor, publishPhase, category, 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, sortOrder, contributor, publishPhase, category, visible, keyword, tag, size, labelSelector, fieldSelector, page, options) {
|
|
931
|
+
return localVarFp.listPosts(sort, sortOrder, contributor, publishPhase, category, 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.sortOrder, requestParameters.contributor, requestParameters.publishPhase, requestParameters.category, 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, sortOrder, contributor, publishPhase, 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,12 +1073,12 @@ 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 (sortOrder !== void 0) {
|
|
1080
1077
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1081
1078
|
}
|
|
1079
|
+
if (contributor) {
|
|
1080
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1081
|
+
}
|
|
1082
1082
|
if (publishPhase !== void 0) {
|
|
1083
1083
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1084
1084
|
}
|
|
@@ -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, sortOrder, contributor, publishPhase, visible, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
1190
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, contributor, publishPhase, 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, sortOrder, contributor, publishPhase, visible, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
1214
|
+
return localVarFp.listSinglePages(sort, sortOrder, contributor, publishPhase, 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.sortOrder, requestParameters.contributor, requestParameters.publishPhase, 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));
|
|
@@ -1291,6 +1291,68 @@ class ApiConsoleHaloRunV1alpha1StatsApi extends BaseAPI {
|
|
|
1291
1291
|
|
|
1292
1292
|
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
1293
1293
|
return {
|
|
1294
|
+
fetchActivatedTheme: async (options = {}) => {
|
|
1295
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/-/activation`;
|
|
1296
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1297
|
+
let baseOptions;
|
|
1298
|
+
if (configuration) {
|
|
1299
|
+
baseOptions = configuration.baseOptions;
|
|
1300
|
+
}
|
|
1301
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1302
|
+
const localVarHeaderParameter = {};
|
|
1303
|
+
const localVarQueryParameter = {};
|
|
1304
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1305
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1306
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1307
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1308
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1309
|
+
return {
|
|
1310
|
+
url: toPathString(localVarUrlObj),
|
|
1311
|
+
options: localVarRequestOptions
|
|
1312
|
+
};
|
|
1313
|
+
},
|
|
1314
|
+
fetchThemeConfig: async (name, options = {}) => {
|
|
1315
|
+
assertParamExists("fetchThemeConfig", "name", name);
|
|
1316
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1317
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1318
|
+
let baseOptions;
|
|
1319
|
+
if (configuration) {
|
|
1320
|
+
baseOptions = configuration.baseOptions;
|
|
1321
|
+
}
|
|
1322
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1323
|
+
const localVarHeaderParameter = {};
|
|
1324
|
+
const localVarQueryParameter = {};
|
|
1325
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1326
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1327
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1328
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1329
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1330
|
+
return {
|
|
1331
|
+
url: toPathString(localVarUrlObj),
|
|
1332
|
+
options: localVarRequestOptions
|
|
1333
|
+
};
|
|
1334
|
+
},
|
|
1335
|
+
fetchThemeSetting: async (name, options = {}) => {
|
|
1336
|
+
assertParamExists("fetchThemeSetting", "name", name);
|
|
1337
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/setting`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1338
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1339
|
+
let baseOptions;
|
|
1340
|
+
if (configuration) {
|
|
1341
|
+
baseOptions = configuration.baseOptions;
|
|
1342
|
+
}
|
|
1343
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1344
|
+
const localVarHeaderParameter = {};
|
|
1345
|
+
const localVarQueryParameter = {};
|
|
1346
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1347
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1348
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1349
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1350
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1351
|
+
return {
|
|
1352
|
+
url: toPathString(localVarUrlObj),
|
|
1353
|
+
options: localVarRequestOptions
|
|
1354
|
+
};
|
|
1355
|
+
},
|
|
1294
1356
|
installTheme: async (file, options = {}) => {
|
|
1295
1357
|
assertParamExists("installTheme", "file", file);
|
|
1296
1358
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/install`;
|
|
@@ -1396,6 +1458,27 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1396
1458
|
options: localVarRequestOptions
|
|
1397
1459
|
};
|
|
1398
1460
|
},
|
|
1461
|
+
updateThemeConfig: async (name, options = {}) => {
|
|
1462
|
+
assertParamExists("updateThemeConfig", "name", name);
|
|
1463
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1464
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1465
|
+
let baseOptions;
|
|
1466
|
+
if (configuration) {
|
|
1467
|
+
baseOptions = configuration.baseOptions;
|
|
1468
|
+
}
|
|
1469
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1470
|
+
const localVarHeaderParameter = {};
|
|
1471
|
+
const localVarQueryParameter = {};
|
|
1472
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1473
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1474
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1475
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1476
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1477
|
+
return {
|
|
1478
|
+
url: toPathString(localVarUrlObj),
|
|
1479
|
+
options: localVarRequestOptions
|
|
1480
|
+
};
|
|
1481
|
+
},
|
|
1399
1482
|
upgradeTheme: async (name, file, options = {}) => {
|
|
1400
1483
|
assertParamExists("upgradeTheme", "name", name);
|
|
1401
1484
|
assertParamExists("upgradeTheme", "file", file);
|
|
@@ -1429,6 +1512,18 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1429
1512
|
const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
1430
1513
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
|
1431
1514
|
return {
|
|
1515
|
+
async fetchActivatedTheme(options) {
|
|
1516
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchActivatedTheme(options);
|
|
1517
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1518
|
+
},
|
|
1519
|
+
async fetchThemeConfig(name, options) {
|
|
1520
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchThemeConfig(name, options);
|
|
1521
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1522
|
+
},
|
|
1523
|
+
async fetchThemeSetting(name, options) {
|
|
1524
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchThemeSetting(name, options);
|
|
1525
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1526
|
+
},
|
|
1432
1527
|
async installTheme(file, options) {
|
|
1433
1528
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1434
1529
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
@@ -1445,6 +1540,10 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1445
1540
|
const localVarAxiosArgs = await localVarAxiosParamCreator.resetThemeConfig(name, options);
|
|
1446
1541
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1447
1542
|
},
|
|
1543
|
+
async updateThemeConfig(name, options) {
|
|
1544
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateThemeConfig(name, options);
|
|
1545
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1546
|
+
},
|
|
1448
1547
|
async upgradeTheme(name, file, options) {
|
|
1449
1548
|
const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeTheme(name, file, options);
|
|
1450
1549
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
@@ -1454,6 +1553,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1454
1553
|
const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePath, axios) {
|
|
1455
1554
|
const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration);
|
|
1456
1555
|
return {
|
|
1556
|
+
fetchActivatedTheme(options) {
|
|
1557
|
+
return localVarFp.fetchActivatedTheme(options).then((request) => request(axios, basePath));
|
|
1558
|
+
},
|
|
1559
|
+
fetchThemeConfig(name, options) {
|
|
1560
|
+
return localVarFp.fetchThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1561
|
+
},
|
|
1562
|
+
fetchThemeSetting(name, options) {
|
|
1563
|
+
return localVarFp.fetchThemeSetting(name, options).then((request) => request(axios, basePath));
|
|
1564
|
+
},
|
|
1457
1565
|
installTheme(file, options) {
|
|
1458
1566
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1459
1567
|
},
|
|
@@ -1466,12 +1574,24 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1466
1574
|
resetThemeConfig(name, options) {
|
|
1467
1575
|
return localVarFp.resetThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1468
1576
|
},
|
|
1577
|
+
updateThemeConfig(name, options) {
|
|
1578
|
+
return localVarFp.updateThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1579
|
+
},
|
|
1469
1580
|
upgradeTheme(name, file, options) {
|
|
1470
1581
|
return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
|
|
1471
1582
|
}
|
|
1472
1583
|
};
|
|
1473
1584
|
};
|
|
1474
1585
|
class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
1586
|
+
fetchActivatedTheme(options) {
|
|
1587
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchActivatedTheme(options).then((request) => request(this.axios, this.basePath));
|
|
1588
|
+
}
|
|
1589
|
+
fetchThemeConfig(requestParameters, options) {
|
|
1590
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1591
|
+
}
|
|
1592
|
+
fetchThemeSetting(requestParameters, options) {
|
|
1593
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1594
|
+
}
|
|
1475
1595
|
installTheme(requestParameters, options) {
|
|
1476
1596
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1477
1597
|
}
|
|
@@ -1484,6 +1604,9 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1484
1604
|
resetThemeConfig(requestParameters, options) {
|
|
1485
1605
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).resetThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1486
1606
|
}
|
|
1607
|
+
updateThemeConfig(requestParameters, options) {
|
|
1608
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).updateThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1609
|
+
}
|
|
1487
1610
|
upgradeTheme(requestParameters, options) {
|
|
1488
1611
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1489
1612
|
}
|
|
@@ -1786,12 +1909,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1786
1909
|
if (version !== void 0) {
|
|
1787
1910
|
localVarQueryParameter["version"] = version;
|
|
1788
1911
|
}
|
|
1789
|
-
if (kind !== void 0) {
|
|
1790
|
-
localVarQueryParameter["kind"] = kind;
|
|
1791
|
-
}
|
|
1792
1912
|
if (group !== void 0) {
|
|
1793
1913
|
localVarQueryParameter["group"] = group;
|
|
1794
1914
|
}
|
|
1915
|
+
if (kind !== void 0) {
|
|
1916
|
+
localVarQueryParameter["kind"] = kind;
|
|
1917
|
+
}
|
|
1795
1918
|
if (size !== void 0) {
|
|
1796
1919
|
localVarQueryParameter["size"] = size;
|
|
1797
1920
|
}
|
|
@@ -1892,12 +2015,12 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1892
2015
|
if (highlightPostTag !== void 0) {
|
|
1893
2016
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1894
2017
|
}
|
|
1895
|
-
if (limit !== void 0) {
|
|
1896
|
-
localVarQueryParameter["limit"] = limit;
|
|
1897
|
-
}
|
|
1898
2018
|
if (keyword !== void 0) {
|
|
1899
2019
|
localVarQueryParameter["keyword"] = keyword;
|
|
1900
2020
|
}
|
|
2021
|
+
if (limit !== void 0) {
|
|
2022
|
+
localVarQueryParameter["limit"] = limit;
|
|
2023
|
+
}
|
|
1901
2024
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1902
2025
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1903
2026
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|