@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.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, sortOrder, contributor, publishPhase, category, 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,27 +723,27 @@ 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 (sortOrder !== void 0) {
|
|
730
727
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
731
728
|
}
|
|
729
|
+
if (contributor) {
|
|
730
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
731
|
+
}
|
|
732
732
|
if (publishPhase !== void 0) {
|
|
733
733
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
734
734
|
}
|
|
735
735
|
if (category) {
|
|
736
736
|
localVarQueryParameter["category"] = Array.from(category);
|
|
737
737
|
}
|
|
738
|
-
if (tag) {
|
|
739
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
740
|
-
}
|
|
741
738
|
if (visible !== void 0) {
|
|
742
739
|
localVarQueryParameter["visible"] = visible;
|
|
743
740
|
}
|
|
744
741
|
if (keyword !== void 0) {
|
|
745
742
|
localVarQueryParameter["keyword"] = keyword;
|
|
746
743
|
}
|
|
744
|
+
if (tag) {
|
|
745
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
746
|
+
}
|
|
747
747
|
if (size !== void 0) {
|
|
748
748
|
localVarQueryParameter["size"] = size;
|
|
749
749
|
}
|
|
@@ -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, sortOrder, contributor, publishPhase, category, visible, keyword, tag, size, labelSelector, fieldSelector, page, options) {
|
|
891
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, sortOrder, contributor, publishPhase, category, 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, sortOrder, contributor, publishPhase, category, visible, keyword, tag, size, labelSelector, fieldSelector, page, options) {
|
|
923
|
+
return localVarFp.listPosts(sort, sortOrder, contributor, publishPhase, category, 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.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));
|
|
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, sortOrder, contributor, publishPhase, 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,12 +1065,12 @@ 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 (sortOrder !== void 0) {
|
|
1072
1069
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1073
1070
|
}
|
|
1071
|
+
if (contributor) {
|
|
1072
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1073
|
+
}
|
|
1074
1074
|
if (publishPhase !== void 0) {
|
|
1075
1075
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1076
1076
|
}
|
|
@@ -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, sortOrder, contributor, publishPhase, visible, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
1182
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, contributor, publishPhase, 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, sortOrder, contributor, publishPhase, visible, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
1206
|
+
return localVarFp.listSinglePages(sort, sortOrder, contributor, publishPhase, 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.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));
|
|
1225
1225
|
}
|
|
1226
1226
|
publishSinglePage(requestParameters, options) {
|
|
1227
1227
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1283,6 +1283,68 @@ class ApiConsoleHaloRunV1alpha1StatsApi extends BaseAPI {
|
|
|
1283
1283
|
|
|
1284
1284
|
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
1285
1285
|
return {
|
|
1286
|
+
fetchActivatedTheme: async (options = {}) => {
|
|
1287
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/-/activation`;
|
|
1288
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1289
|
+
let baseOptions;
|
|
1290
|
+
if (configuration) {
|
|
1291
|
+
baseOptions = configuration.baseOptions;
|
|
1292
|
+
}
|
|
1293
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1294
|
+
const localVarHeaderParameter = {};
|
|
1295
|
+
const localVarQueryParameter = {};
|
|
1296
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1297
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1298
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1299
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1300
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1301
|
+
return {
|
|
1302
|
+
url: toPathString(localVarUrlObj),
|
|
1303
|
+
options: localVarRequestOptions
|
|
1304
|
+
};
|
|
1305
|
+
},
|
|
1306
|
+
fetchThemeConfig: async (name, options = {}) => {
|
|
1307
|
+
assertParamExists("fetchThemeConfig", "name", name);
|
|
1308
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1309
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1310
|
+
let baseOptions;
|
|
1311
|
+
if (configuration) {
|
|
1312
|
+
baseOptions = configuration.baseOptions;
|
|
1313
|
+
}
|
|
1314
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1315
|
+
const localVarHeaderParameter = {};
|
|
1316
|
+
const localVarQueryParameter = {};
|
|
1317
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1318
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1319
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1320
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1321
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1322
|
+
return {
|
|
1323
|
+
url: toPathString(localVarUrlObj),
|
|
1324
|
+
options: localVarRequestOptions
|
|
1325
|
+
};
|
|
1326
|
+
},
|
|
1327
|
+
fetchThemeSetting: async (name, options = {}) => {
|
|
1328
|
+
assertParamExists("fetchThemeSetting", "name", name);
|
|
1329
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/setting`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1330
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1331
|
+
let baseOptions;
|
|
1332
|
+
if (configuration) {
|
|
1333
|
+
baseOptions = configuration.baseOptions;
|
|
1334
|
+
}
|
|
1335
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1336
|
+
const localVarHeaderParameter = {};
|
|
1337
|
+
const localVarQueryParameter = {};
|
|
1338
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1339
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1340
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1341
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1342
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1343
|
+
return {
|
|
1344
|
+
url: toPathString(localVarUrlObj),
|
|
1345
|
+
options: localVarRequestOptions
|
|
1346
|
+
};
|
|
1347
|
+
},
|
|
1286
1348
|
installTheme: async (file, options = {}) => {
|
|
1287
1349
|
assertParamExists("installTheme", "file", file);
|
|
1288
1350
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/install`;
|
|
@@ -1388,6 +1450,27 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1388
1450
|
options: localVarRequestOptions
|
|
1389
1451
|
};
|
|
1390
1452
|
},
|
|
1453
|
+
updateThemeConfig: async (name, options = {}) => {
|
|
1454
|
+
assertParamExists("updateThemeConfig", "name", name);
|
|
1455
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1456
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1457
|
+
let baseOptions;
|
|
1458
|
+
if (configuration) {
|
|
1459
|
+
baseOptions = configuration.baseOptions;
|
|
1460
|
+
}
|
|
1461
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1462
|
+
const localVarHeaderParameter = {};
|
|
1463
|
+
const localVarQueryParameter = {};
|
|
1464
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1465
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1466
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1467
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1468
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1469
|
+
return {
|
|
1470
|
+
url: toPathString(localVarUrlObj),
|
|
1471
|
+
options: localVarRequestOptions
|
|
1472
|
+
};
|
|
1473
|
+
},
|
|
1391
1474
|
upgradeTheme: async (name, file, options = {}) => {
|
|
1392
1475
|
assertParamExists("upgradeTheme", "name", name);
|
|
1393
1476
|
assertParamExists("upgradeTheme", "file", file);
|
|
@@ -1421,6 +1504,18 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1421
1504
|
const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
1422
1505
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
|
1423
1506
|
return {
|
|
1507
|
+
async fetchActivatedTheme(options) {
|
|
1508
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchActivatedTheme(options);
|
|
1509
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1510
|
+
},
|
|
1511
|
+
async fetchThemeConfig(name, options) {
|
|
1512
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchThemeConfig(name, options);
|
|
1513
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1514
|
+
},
|
|
1515
|
+
async fetchThemeSetting(name, options) {
|
|
1516
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchThemeSetting(name, options);
|
|
1517
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1518
|
+
},
|
|
1424
1519
|
async installTheme(file, options) {
|
|
1425
1520
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1426
1521
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
@@ -1437,6 +1532,10 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1437
1532
|
const localVarAxiosArgs = await localVarAxiosParamCreator.resetThemeConfig(name, options);
|
|
1438
1533
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1439
1534
|
},
|
|
1535
|
+
async updateThemeConfig(name, options) {
|
|
1536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateThemeConfig(name, options);
|
|
1537
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1538
|
+
},
|
|
1440
1539
|
async upgradeTheme(name, file, options) {
|
|
1441
1540
|
const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeTheme(name, file, options);
|
|
1442
1541
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
@@ -1446,6 +1545,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1446
1545
|
const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePath, axios) {
|
|
1447
1546
|
const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration);
|
|
1448
1547
|
return {
|
|
1548
|
+
fetchActivatedTheme(options) {
|
|
1549
|
+
return localVarFp.fetchActivatedTheme(options).then((request) => request(axios, basePath));
|
|
1550
|
+
},
|
|
1551
|
+
fetchThemeConfig(name, options) {
|
|
1552
|
+
return localVarFp.fetchThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1553
|
+
},
|
|
1554
|
+
fetchThemeSetting(name, options) {
|
|
1555
|
+
return localVarFp.fetchThemeSetting(name, options).then((request) => request(axios, basePath));
|
|
1556
|
+
},
|
|
1449
1557
|
installTheme(file, options) {
|
|
1450
1558
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1451
1559
|
},
|
|
@@ -1458,12 +1566,24 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1458
1566
|
resetThemeConfig(name, options) {
|
|
1459
1567
|
return localVarFp.resetThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1460
1568
|
},
|
|
1569
|
+
updateThemeConfig(name, options) {
|
|
1570
|
+
return localVarFp.updateThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1571
|
+
},
|
|
1461
1572
|
upgradeTheme(name, file, options) {
|
|
1462
1573
|
return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
|
|
1463
1574
|
}
|
|
1464
1575
|
};
|
|
1465
1576
|
};
|
|
1466
1577
|
class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
1578
|
+
fetchActivatedTheme(options) {
|
|
1579
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchActivatedTheme(options).then((request) => request(this.axios, this.basePath));
|
|
1580
|
+
}
|
|
1581
|
+
fetchThemeConfig(requestParameters, options) {
|
|
1582
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1583
|
+
}
|
|
1584
|
+
fetchThemeSetting(requestParameters, options) {
|
|
1585
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1586
|
+
}
|
|
1467
1587
|
installTheme(requestParameters, options) {
|
|
1468
1588
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1469
1589
|
}
|
|
@@ -1476,6 +1596,9 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1476
1596
|
resetThemeConfig(requestParameters, options) {
|
|
1477
1597
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).resetThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1478
1598
|
}
|
|
1599
|
+
updateThemeConfig(requestParameters, options) {
|
|
1600
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).updateThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1601
|
+
}
|
|
1479
1602
|
upgradeTheme(requestParameters, options) {
|
|
1480
1603
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1481
1604
|
}
|
|
@@ -1778,12 +1901,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1778
1901
|
if (version !== void 0) {
|
|
1779
1902
|
localVarQueryParameter["version"] = version;
|
|
1780
1903
|
}
|
|
1781
|
-
if (kind !== void 0) {
|
|
1782
|
-
localVarQueryParameter["kind"] = kind;
|
|
1783
|
-
}
|
|
1784
1904
|
if (group !== void 0) {
|
|
1785
1905
|
localVarQueryParameter["group"] = group;
|
|
1786
1906
|
}
|
|
1907
|
+
if (kind !== void 0) {
|
|
1908
|
+
localVarQueryParameter["kind"] = kind;
|
|
1909
|
+
}
|
|
1787
1910
|
if (size !== void 0) {
|
|
1788
1911
|
localVarQueryParameter["size"] = size;
|
|
1789
1912
|
}
|
|
@@ -1884,12 +2007,12 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1884
2007
|
if (highlightPostTag !== void 0) {
|
|
1885
2008
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1886
2009
|
}
|
|
1887
|
-
if (limit !== void 0) {
|
|
1888
|
-
localVarQueryParameter["limit"] = limit;
|
|
1889
|
-
}
|
|
1890
2010
|
if (keyword !== void 0) {
|
|
1891
2011
|
localVarQueryParameter["keyword"] = keyword;
|
|
1892
2012
|
}
|
|
2013
|
+
if (limit !== void 0) {
|
|
2014
|
+
localVarQueryParameter["limit"] = limit;
|
|
2015
|
+
}
|
|
1893
2016
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1894
2017
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1895
2018
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|