@halo-dev/api-client 0.0.33 → 0.0.35
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 +369 -23
- package/dist/index.d.ts +804 -56
- package/dist/index.mjs +358 -24
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -411,6 +411,47 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
411
411
|
url: toPathString(localVarUrlObj),
|
|
412
412
|
options: localVarRequestOptions
|
|
413
413
|
};
|
|
414
|
+
},
|
|
415
|
+
listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
416
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
417
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
418
|
+
let baseOptions;
|
|
419
|
+
if (configuration) {
|
|
420
|
+
baseOptions = configuration.baseOptions;
|
|
421
|
+
}
|
|
422
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
423
|
+
const localVarHeaderParameter = {};
|
|
424
|
+
const localVarQueryParameter = {};
|
|
425
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
426
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
427
|
+
if (sort) {
|
|
428
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
429
|
+
}
|
|
430
|
+
if (keyword !== void 0) {
|
|
431
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
432
|
+
}
|
|
433
|
+
if (enabled !== void 0) {
|
|
434
|
+
localVarQueryParameter["enabled"] = enabled;
|
|
435
|
+
}
|
|
436
|
+
if (size !== void 0) {
|
|
437
|
+
localVarQueryParameter["size"] = size;
|
|
438
|
+
}
|
|
439
|
+
if (labelSelector) {
|
|
440
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
441
|
+
}
|
|
442
|
+
if (fieldSelector) {
|
|
443
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
444
|
+
}
|
|
445
|
+
if (page !== void 0) {
|
|
446
|
+
localVarQueryParameter["page"] = page;
|
|
447
|
+
}
|
|
448
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
449
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
451
|
+
return {
|
|
452
|
+
url: toPathString(localVarUrlObj),
|
|
453
|
+
options: localVarRequestOptions
|
|
454
|
+
};
|
|
414
455
|
}
|
|
415
456
|
};
|
|
416
457
|
};
|
|
@@ -420,6 +461,10 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
420
461
|
async installPlugin(file, options) {
|
|
421
462
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
422
463
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
464
|
+
},
|
|
465
|
+
async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
|
|
466
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options);
|
|
467
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
423
468
|
}
|
|
424
469
|
};
|
|
425
470
|
};
|
|
@@ -428,6 +473,9 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
428
473
|
return {
|
|
429
474
|
installPlugin(file, options) {
|
|
430
475
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
476
|
+
},
|
|
477
|
+
listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
|
|
478
|
+
return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
431
479
|
}
|
|
432
480
|
};
|
|
433
481
|
};
|
|
@@ -435,6 +483,9 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
435
483
|
installPlugin(requestParameters, options) {
|
|
436
484
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
437
485
|
}
|
|
486
|
+
listPlugins(requestParameters = {}, options) {
|
|
487
|
+
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));
|
|
488
|
+
}
|
|
438
489
|
}
|
|
439
490
|
|
|
440
491
|
const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
@@ -462,7 +513,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
462
513
|
options: localVarRequestOptions
|
|
463
514
|
};
|
|
464
515
|
},
|
|
465
|
-
listPosts: async (sort,
|
|
516
|
+
listPosts: async (sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
466
517
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
467
518
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
468
519
|
let baseOptions;
|
|
@@ -477,9 +528,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
477
528
|
if (sort !== void 0) {
|
|
478
529
|
localVarQueryParameter["sort"] = sort;
|
|
479
530
|
}
|
|
480
|
-
if (contributor) {
|
|
481
|
-
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
482
|
-
}
|
|
483
531
|
if (sortOrder !== void 0) {
|
|
484
532
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
485
533
|
}
|
|
@@ -489,8 +537,8 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
489
537
|
if (category) {
|
|
490
538
|
localVarQueryParameter["category"] = Array.from(category);
|
|
491
539
|
}
|
|
492
|
-
if (
|
|
493
|
-
localVarQueryParameter["
|
|
540
|
+
if (contributor) {
|
|
541
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
494
542
|
}
|
|
495
543
|
if (keyword !== void 0) {
|
|
496
544
|
localVarQueryParameter["keyword"] = keyword;
|
|
@@ -498,6 +546,9 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
498
546
|
if (visible !== void 0) {
|
|
499
547
|
localVarQueryParameter["visible"] = visible;
|
|
500
548
|
}
|
|
549
|
+
if (tag) {
|
|
550
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
551
|
+
}
|
|
501
552
|
if (size !== void 0) {
|
|
502
553
|
localVarQueryParameter["size"] = size;
|
|
503
554
|
}
|
|
@@ -572,8 +623,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
572
623
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
573
624
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
574
625
|
},
|
|
575
|
-
async listPosts(sort,
|
|
576
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
626
|
+
async listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
627
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
|
|
577
628
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
578
629
|
},
|
|
579
630
|
async publishPost(name, options) {
|
|
@@ -592,8 +643,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
592
643
|
draftPost(postRequest, options) {
|
|
593
644
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
594
645
|
},
|
|
595
|
-
listPosts(sort,
|
|
596
|
-
return localVarFp.listPosts(sort,
|
|
646
|
+
listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
647
|
+
return localVarFp.listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
597
648
|
},
|
|
598
649
|
publishPost(name, options) {
|
|
599
650
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -608,7 +659,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
608
659
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
609
660
|
}
|
|
610
661
|
listPosts(requestParameters = {}, options) {
|
|
611
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
662
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
612
663
|
}
|
|
613
664
|
publishPost(requestParameters, options) {
|
|
614
665
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -705,7 +756,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
705
756
|
options: localVarRequestOptions
|
|
706
757
|
};
|
|
707
758
|
},
|
|
708
|
-
listSinglePages: async (sort,
|
|
759
|
+
listSinglePages: async (sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
709
760
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
710
761
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
711
762
|
let baseOptions;
|
|
@@ -720,15 +771,15 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
720
771
|
if (sort !== void 0) {
|
|
721
772
|
localVarQueryParameter["sort"] = sort;
|
|
722
773
|
}
|
|
723
|
-
if (contributor) {
|
|
724
|
-
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
725
|
-
}
|
|
726
774
|
if (sortOrder !== void 0) {
|
|
727
775
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
728
776
|
}
|
|
729
777
|
if (publishPhase !== void 0) {
|
|
730
778
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
731
779
|
}
|
|
780
|
+
if (contributor) {
|
|
781
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
782
|
+
}
|
|
732
783
|
if (keyword !== void 0) {
|
|
733
784
|
localVarQueryParameter["keyword"] = keyword;
|
|
734
785
|
}
|
|
@@ -809,8 +860,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
809
860
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
810
861
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
811
862
|
},
|
|
812
|
-
async listSinglePages(sort,
|
|
813
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
863
|
+
async listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
864
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
814
865
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
815
866
|
},
|
|
816
867
|
async publishSinglePage(name, options) {
|
|
@@ -829,8 +880,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
829
880
|
draftSinglePage(singlePageRequest, options) {
|
|
830
881
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
831
882
|
},
|
|
832
|
-
listSinglePages(sort,
|
|
833
|
-
return localVarFp.listSinglePages(sort,
|
|
883
|
+
listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
884
|
+
return localVarFp.listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
834
885
|
},
|
|
835
886
|
publishSinglePage(name, options) {
|
|
836
887
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -845,7 +896,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
845
896
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
846
897
|
}
|
|
847
898
|
listSinglePages(requestParameters = {}, options) {
|
|
848
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
899
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
849
900
|
}
|
|
850
901
|
publishSinglePage(requestParameters, options) {
|
|
851
902
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -855,6 +906,53 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
855
906
|
}
|
|
856
907
|
}
|
|
857
908
|
|
|
909
|
+
const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function(configuration) {
|
|
910
|
+
return {
|
|
911
|
+
getStats: async (options = {}) => {
|
|
912
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/stats`;
|
|
913
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
914
|
+
let baseOptions;
|
|
915
|
+
if (configuration) {
|
|
916
|
+
baseOptions = configuration.baseOptions;
|
|
917
|
+
}
|
|
918
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
919
|
+
const localVarHeaderParameter = {};
|
|
920
|
+
const localVarQueryParameter = {};
|
|
921
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
922
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
923
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
924
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
925
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
926
|
+
return {
|
|
927
|
+
url: toPathString(localVarUrlObj),
|
|
928
|
+
options: localVarRequestOptions
|
|
929
|
+
};
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
const ApiConsoleHaloRunV1alpha1StatsApiFp = function(configuration) {
|
|
934
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator(configuration);
|
|
935
|
+
return {
|
|
936
|
+
async getStats(options) {
|
|
937
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
|
|
938
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
939
|
+
}
|
|
940
|
+
};
|
|
941
|
+
};
|
|
942
|
+
const ApiConsoleHaloRunV1alpha1StatsApiFactory = function(configuration, basePath, axios) {
|
|
943
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1StatsApiFp(configuration);
|
|
944
|
+
return {
|
|
945
|
+
getStats(options) {
|
|
946
|
+
return localVarFp.getStats(options).then((request) => request(axios, basePath));
|
|
947
|
+
}
|
|
948
|
+
};
|
|
949
|
+
};
|
|
950
|
+
class ApiConsoleHaloRunV1alpha1StatsApi extends BaseAPI {
|
|
951
|
+
getStats(options) {
|
|
952
|
+
return ApiConsoleHaloRunV1alpha1StatsApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
|
|
858
956
|
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
859
957
|
return {
|
|
860
958
|
installTheme: async (file, options = {}) => {
|
|
@@ -1204,12 +1302,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1204
1302
|
if (version !== void 0) {
|
|
1205
1303
|
localVarQueryParameter["version"] = version;
|
|
1206
1304
|
}
|
|
1207
|
-
if (kind !== void 0) {
|
|
1208
|
-
localVarQueryParameter["kind"] = kind;
|
|
1209
|
-
}
|
|
1210
1305
|
if (group !== void 0) {
|
|
1211
1306
|
localVarQueryParameter["group"] = group;
|
|
1212
1307
|
}
|
|
1308
|
+
if (kind !== void 0) {
|
|
1309
|
+
localVarQueryParameter["kind"] = kind;
|
|
1310
|
+
}
|
|
1213
1311
|
if (size !== void 0) {
|
|
1214
1312
|
localVarQueryParameter["size"] = size;
|
|
1215
1313
|
}
|
|
@@ -1289,6 +1387,56 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1289
1387
|
}
|
|
1290
1388
|
}
|
|
1291
1389
|
|
|
1390
|
+
const ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = function(configuration) {
|
|
1391
|
+
return {
|
|
1392
|
+
count: async (counterRequest, options = {}) => {
|
|
1393
|
+
assertParamExists("count", "counterRequest", counterRequest);
|
|
1394
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/counter`;
|
|
1395
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1396
|
+
let baseOptions;
|
|
1397
|
+
if (configuration) {
|
|
1398
|
+
baseOptions = configuration.baseOptions;
|
|
1399
|
+
}
|
|
1400
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1401
|
+
const localVarHeaderParameter = {};
|
|
1402
|
+
const localVarQueryParameter = {};
|
|
1403
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1404
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1405
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1406
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1407
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1408
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1409
|
+
localVarRequestOptions.data = serializeDataIfNeeded(counterRequest, localVarRequestOptions, configuration);
|
|
1410
|
+
return {
|
|
1411
|
+
url: toPathString(localVarUrlObj),
|
|
1412
|
+
options: localVarRequestOptions
|
|
1413
|
+
};
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1416
|
+
};
|
|
1417
|
+
const ApiHaloRunV1alpha1TrackerApiFp = function(configuration) {
|
|
1418
|
+
const localVarAxiosParamCreator = ApiHaloRunV1alpha1TrackerApiAxiosParamCreator(configuration);
|
|
1419
|
+
return {
|
|
1420
|
+
async count(counterRequest, options) {
|
|
1421
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.count(counterRequest, options);
|
|
1422
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
};
|
|
1426
|
+
const ApiHaloRunV1alpha1TrackerApiFactory = function(configuration, basePath, axios) {
|
|
1427
|
+
const localVarFp = ApiHaloRunV1alpha1TrackerApiFp(configuration);
|
|
1428
|
+
return {
|
|
1429
|
+
count(counterRequest, options) {
|
|
1430
|
+
return localVarFp.count(counterRequest, options).then((request) => request(axios, basePath));
|
|
1431
|
+
}
|
|
1432
|
+
};
|
|
1433
|
+
};
|
|
1434
|
+
class ApiHaloRunV1alpha1TrackerApi extends BaseAPI {
|
|
1435
|
+
count(requestParameters, options) {
|
|
1436
|
+
return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).count(requestParameters.counterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1292
1440
|
const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function(configuration) {
|
|
1293
1441
|
return {
|
|
1294
1442
|
createcontentHaloRunV1alpha1Category: async (category, options = {}) => {
|
|
@@ -2963,6 +3111,192 @@ class CoreHaloRunV1alpha1LinkGroupApi extends BaseAPI {
|
|
|
2963
3111
|
}
|
|
2964
3112
|
}
|
|
2965
3113
|
|
|
3114
|
+
const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function(configuration) {
|
|
3115
|
+
return {
|
|
3116
|
+
createmetricsHaloRunV1alpha1Counter: async (counter, options = {}) => {
|
|
3117
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`;
|
|
3118
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3119
|
+
let baseOptions;
|
|
3120
|
+
if (configuration) {
|
|
3121
|
+
baseOptions = configuration.baseOptions;
|
|
3122
|
+
}
|
|
3123
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3124
|
+
const localVarHeaderParameter = {};
|
|
3125
|
+
const localVarQueryParameter = {};
|
|
3126
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
3127
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3128
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3129
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3131
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3132
|
+
localVarRequestOptions.data = serializeDataIfNeeded(counter, localVarRequestOptions, configuration);
|
|
3133
|
+
return {
|
|
3134
|
+
url: toPathString(localVarUrlObj),
|
|
3135
|
+
options: localVarRequestOptions
|
|
3136
|
+
};
|
|
3137
|
+
},
|
|
3138
|
+
deletemetricsHaloRunV1alpha1Counter: async (name, options = {}) => {
|
|
3139
|
+
assertParamExists("deletemetricsHaloRunV1alpha1Counter", "name", name);
|
|
3140
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3141
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3142
|
+
let baseOptions;
|
|
3143
|
+
if (configuration) {
|
|
3144
|
+
baseOptions = configuration.baseOptions;
|
|
3145
|
+
}
|
|
3146
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
3147
|
+
const localVarHeaderParameter = {};
|
|
3148
|
+
const localVarQueryParameter = {};
|
|
3149
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
3150
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3151
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3153
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3154
|
+
return {
|
|
3155
|
+
url: toPathString(localVarUrlObj),
|
|
3156
|
+
options: localVarRequestOptions
|
|
3157
|
+
};
|
|
3158
|
+
},
|
|
3159
|
+
getmetricsHaloRunV1alpha1Counter: async (name, options = {}) => {
|
|
3160
|
+
assertParamExists("getmetricsHaloRunV1alpha1Counter", "name", name);
|
|
3161
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3162
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3163
|
+
let baseOptions;
|
|
3164
|
+
if (configuration) {
|
|
3165
|
+
baseOptions = configuration.baseOptions;
|
|
3166
|
+
}
|
|
3167
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3168
|
+
const localVarHeaderParameter = {};
|
|
3169
|
+
const localVarQueryParameter = {};
|
|
3170
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
3171
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3172
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3173
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3174
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3175
|
+
return {
|
|
3176
|
+
url: toPathString(localVarUrlObj),
|
|
3177
|
+
options: localVarRequestOptions
|
|
3178
|
+
};
|
|
3179
|
+
},
|
|
3180
|
+
listmetricsHaloRunV1alpha1Counter: async (page, size, labelSelector, fieldSelector, options = {}) => {
|
|
3181
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`;
|
|
3182
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3183
|
+
let baseOptions;
|
|
3184
|
+
if (configuration) {
|
|
3185
|
+
baseOptions = configuration.baseOptions;
|
|
3186
|
+
}
|
|
3187
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3188
|
+
const localVarHeaderParameter = {};
|
|
3189
|
+
const localVarQueryParameter = {};
|
|
3190
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
3191
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3192
|
+
if (page !== void 0) {
|
|
3193
|
+
localVarQueryParameter["page"] = page;
|
|
3194
|
+
}
|
|
3195
|
+
if (size !== void 0) {
|
|
3196
|
+
localVarQueryParameter["size"] = size;
|
|
3197
|
+
}
|
|
3198
|
+
if (labelSelector) {
|
|
3199
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
3200
|
+
}
|
|
3201
|
+
if (fieldSelector) {
|
|
3202
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
3203
|
+
}
|
|
3204
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3205
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3206
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3207
|
+
return {
|
|
3208
|
+
url: toPathString(localVarUrlObj),
|
|
3209
|
+
options: localVarRequestOptions
|
|
3210
|
+
};
|
|
3211
|
+
},
|
|
3212
|
+
updatemetricsHaloRunV1alpha1Counter: async (name, counter, options = {}) => {
|
|
3213
|
+
assertParamExists("updatemetricsHaloRunV1alpha1Counter", "name", name);
|
|
3214
|
+
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3215
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3216
|
+
let baseOptions;
|
|
3217
|
+
if (configuration) {
|
|
3218
|
+
baseOptions = configuration.baseOptions;
|
|
3219
|
+
}
|
|
3220
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
3221
|
+
const localVarHeaderParameter = {};
|
|
3222
|
+
const localVarQueryParameter = {};
|
|
3223
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
3224
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3225
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3226
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3227
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3228
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3229
|
+
localVarRequestOptions.data = serializeDataIfNeeded(counter, localVarRequestOptions, configuration);
|
|
3230
|
+
return {
|
|
3231
|
+
url: toPathString(localVarUrlObj),
|
|
3232
|
+
options: localVarRequestOptions
|
|
3233
|
+
};
|
|
3234
|
+
}
|
|
3235
|
+
};
|
|
3236
|
+
};
|
|
3237
|
+
const MetricsHaloRunV1alpha1CounterApiFp = function(configuration) {
|
|
3238
|
+
const localVarAxiosParamCreator = MetricsHaloRunV1alpha1CounterApiAxiosParamCreator(configuration);
|
|
3239
|
+
return {
|
|
3240
|
+
async createmetricsHaloRunV1alpha1Counter(counter, options) {
|
|
3241
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createmetricsHaloRunV1alpha1Counter(counter, options);
|
|
3242
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3243
|
+
},
|
|
3244
|
+
async deletemetricsHaloRunV1alpha1Counter(name, options) {
|
|
3245
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletemetricsHaloRunV1alpha1Counter(name, options);
|
|
3246
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3247
|
+
},
|
|
3248
|
+
async getmetricsHaloRunV1alpha1Counter(name, options) {
|
|
3249
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getmetricsHaloRunV1alpha1Counter(name, options);
|
|
3250
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3251
|
+
},
|
|
3252
|
+
async listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options) {
|
|
3253
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options);
|
|
3254
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3255
|
+
},
|
|
3256
|
+
async updatemetricsHaloRunV1alpha1Counter(name, counter, options) {
|
|
3257
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatemetricsHaloRunV1alpha1Counter(name, counter, options);
|
|
3258
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3259
|
+
}
|
|
3260
|
+
};
|
|
3261
|
+
};
|
|
3262
|
+
const MetricsHaloRunV1alpha1CounterApiFactory = function(configuration, basePath, axios) {
|
|
3263
|
+
const localVarFp = MetricsHaloRunV1alpha1CounterApiFp(configuration);
|
|
3264
|
+
return {
|
|
3265
|
+
createmetricsHaloRunV1alpha1Counter(counter, options) {
|
|
3266
|
+
return localVarFp.createmetricsHaloRunV1alpha1Counter(counter, options).then((request) => request(axios, basePath));
|
|
3267
|
+
},
|
|
3268
|
+
deletemetricsHaloRunV1alpha1Counter(name, options) {
|
|
3269
|
+
return localVarFp.deletemetricsHaloRunV1alpha1Counter(name, options).then((request) => request(axios, basePath));
|
|
3270
|
+
},
|
|
3271
|
+
getmetricsHaloRunV1alpha1Counter(name, options) {
|
|
3272
|
+
return localVarFp.getmetricsHaloRunV1alpha1Counter(name, options).then((request) => request(axios, basePath));
|
|
3273
|
+
},
|
|
3274
|
+
listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options) {
|
|
3275
|
+
return localVarFp.listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
3276
|
+
},
|
|
3277
|
+
updatemetricsHaloRunV1alpha1Counter(name, counter, options) {
|
|
3278
|
+
return localVarFp.updatemetricsHaloRunV1alpha1Counter(name, counter, options).then((request) => request(axios, basePath));
|
|
3279
|
+
}
|
|
3280
|
+
};
|
|
3281
|
+
};
|
|
3282
|
+
class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
|
|
3283
|
+
createmetricsHaloRunV1alpha1Counter(requestParameters = {}, options) {
|
|
3284
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).createmetricsHaloRunV1alpha1Counter(requestParameters.counter, options).then((request) => request(this.axios, this.basePath));
|
|
3285
|
+
}
|
|
3286
|
+
deletemetricsHaloRunV1alpha1Counter(requestParameters, options) {
|
|
3287
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).deletemetricsHaloRunV1alpha1Counter(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
3288
|
+
}
|
|
3289
|
+
getmetricsHaloRunV1alpha1Counter(requestParameters, options) {
|
|
3290
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).getmetricsHaloRunV1alpha1Counter(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
3291
|
+
}
|
|
3292
|
+
listmetricsHaloRunV1alpha1Counter(requestParameters = {}, options) {
|
|
3293
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).listmetricsHaloRunV1alpha1Counter(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
3294
|
+
}
|
|
3295
|
+
updatemetricsHaloRunV1alpha1Counter(requestParameters, options) {
|
|
3296
|
+
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).updatemetricsHaloRunV1alpha1Counter(requestParameters.name, requestParameters.counter, options).then((request) => request(this.axios, this.basePath));
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
|
|
2966
3300
|
const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function(configuration) {
|
|
2967
3301
|
return {
|
|
2968
3302
|
createpluginHaloRunV1alpha1Plugin: async (plugin, options = {}) => {
|
|
@@ -5918,6 +6252,10 @@ exports.ApiConsoleHaloRunV1alpha1SinglePageApi = ApiConsoleHaloRunV1alpha1Single
|
|
|
5918
6252
|
exports.ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator;
|
|
5919
6253
|
exports.ApiConsoleHaloRunV1alpha1SinglePageApiFactory = ApiConsoleHaloRunV1alpha1SinglePageApiFactory;
|
|
5920
6254
|
exports.ApiConsoleHaloRunV1alpha1SinglePageApiFp = ApiConsoleHaloRunV1alpha1SinglePageApiFp;
|
|
6255
|
+
exports.ApiConsoleHaloRunV1alpha1StatsApi = ApiConsoleHaloRunV1alpha1StatsApi;
|
|
6256
|
+
exports.ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator;
|
|
6257
|
+
exports.ApiConsoleHaloRunV1alpha1StatsApiFactory = ApiConsoleHaloRunV1alpha1StatsApiFactory;
|
|
6258
|
+
exports.ApiConsoleHaloRunV1alpha1StatsApiFp = ApiConsoleHaloRunV1alpha1StatsApiFp;
|
|
5921
6259
|
exports.ApiConsoleHaloRunV1alpha1ThemeApi = ApiConsoleHaloRunV1alpha1ThemeApi;
|
|
5922
6260
|
exports.ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator;
|
|
5923
6261
|
exports.ApiConsoleHaloRunV1alpha1ThemeApiFactory = ApiConsoleHaloRunV1alpha1ThemeApiFactory;
|
|
@@ -5930,6 +6268,10 @@ exports.ApiHaloRunV1alpha1CommentApi = ApiHaloRunV1alpha1CommentApi;
|
|
|
5930
6268
|
exports.ApiHaloRunV1alpha1CommentApiAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator;
|
|
5931
6269
|
exports.ApiHaloRunV1alpha1CommentApiFactory = ApiHaloRunV1alpha1CommentApiFactory;
|
|
5932
6270
|
exports.ApiHaloRunV1alpha1CommentApiFp = ApiHaloRunV1alpha1CommentApiFp;
|
|
6271
|
+
exports.ApiHaloRunV1alpha1TrackerApi = ApiHaloRunV1alpha1TrackerApi;
|
|
6272
|
+
exports.ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = ApiHaloRunV1alpha1TrackerApiAxiosParamCreator;
|
|
6273
|
+
exports.ApiHaloRunV1alpha1TrackerApiFactory = ApiHaloRunV1alpha1TrackerApiFactory;
|
|
6274
|
+
exports.ApiHaloRunV1alpha1TrackerApiFp = ApiHaloRunV1alpha1TrackerApiFp;
|
|
5933
6275
|
exports.ConditionStatusEnum = ConditionStatusEnum;
|
|
5934
6276
|
exports.Configuration = Configuration;
|
|
5935
6277
|
exports.ContentHaloRunV1alpha1CategoryApi = ContentHaloRunV1alpha1CategoryApi;
|
|
@@ -5968,6 +6310,10 @@ exports.CoreHaloRunV1alpha1LinkGroupApi = CoreHaloRunV1alpha1LinkGroupApi;
|
|
|
5968
6310
|
exports.CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator;
|
|
5969
6311
|
exports.CoreHaloRunV1alpha1LinkGroupApiFactory = CoreHaloRunV1alpha1LinkGroupApiFactory;
|
|
5970
6312
|
exports.CoreHaloRunV1alpha1LinkGroupApiFp = CoreHaloRunV1alpha1LinkGroupApiFp;
|
|
6313
|
+
exports.MetricsHaloRunV1alpha1CounterApi = MetricsHaloRunV1alpha1CounterApi;
|
|
6314
|
+
exports.MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = MetricsHaloRunV1alpha1CounterApiAxiosParamCreator;
|
|
6315
|
+
exports.MetricsHaloRunV1alpha1CounterApiFactory = MetricsHaloRunV1alpha1CounterApiFactory;
|
|
6316
|
+
exports.MetricsHaloRunV1alpha1CounterApiFp = MetricsHaloRunV1alpha1CounterApiFp;
|
|
5971
6317
|
exports.PluginHaloRunV1alpha1PluginApi = PluginHaloRunV1alpha1PluginApi;
|
|
5972
6318
|
exports.PluginHaloRunV1alpha1PluginApiAxiosParamCreator = PluginHaloRunV1alpha1PluginApiAxiosParamCreator;
|
|
5973
6319
|
exports.PluginHaloRunV1alpha1PluginApiFactory = PluginHaloRunV1alpha1PluginApiFactory;
|