@halo-dev/api-client 0.0.45 → 0.0.47
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 +59 -53
- package/dist/index.d.ts +84 -66
- package/dist/index.mjs +59 -53
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -77,7 +77,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
77
77
|
|
|
78
78
|
const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
|
|
79
79
|
return {
|
|
80
|
-
searchAttachments: async (policy,
|
|
80
|
+
searchAttachments: async (policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
81
81
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
82
82
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
83
83
|
let baseOptions;
|
|
@@ -92,15 +92,18 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
92
92
|
if (policy !== void 0) {
|
|
93
93
|
localVarQueryParameter["policy"] = policy;
|
|
94
94
|
}
|
|
95
|
+
if (sort) {
|
|
96
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
97
|
+
}
|
|
95
98
|
if (displayName !== void 0) {
|
|
96
99
|
localVarQueryParameter["displayName"] = displayName;
|
|
97
100
|
}
|
|
98
|
-
if (uploadedBy !== void 0) {
|
|
99
|
-
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
100
|
-
}
|
|
101
101
|
if (group !== void 0) {
|
|
102
102
|
localVarQueryParameter["group"] = group;
|
|
103
103
|
}
|
|
104
|
+
if (uploadedBy !== void 0) {
|
|
105
|
+
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
106
|
+
}
|
|
104
107
|
if (size !== void 0) {
|
|
105
108
|
localVarQueryParameter["size"] = size;
|
|
106
109
|
}
|
|
@@ -160,8 +163,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
160
163
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
161
164
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
162
165
|
return {
|
|
163
|
-
async searchAttachments(policy,
|
|
164
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy,
|
|
166
|
+
async searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
167
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
165
168
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
166
169
|
},
|
|
167
170
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -173,8 +176,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
173
176
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
174
177
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
175
178
|
return {
|
|
176
|
-
searchAttachments(policy,
|
|
177
|
-
return localVarFp.searchAttachments(policy,
|
|
179
|
+
searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
180
|
+
return localVarFp.searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
178
181
|
},
|
|
179
182
|
uploadAttachment(file, policyName, groupName, options) {
|
|
180
183
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -183,7 +186,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
183
186
|
};
|
|
184
187
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
185
188
|
searchAttachments(requestParameters = {}, options) {
|
|
186
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.
|
|
189
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
187
190
|
}
|
|
188
191
|
uploadAttachment(requestParameters, options) {
|
|
189
192
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -540,7 +543,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
540
543
|
options: localVarRequestOptions
|
|
541
544
|
};
|
|
542
545
|
},
|
|
543
|
-
listPlugins: async (sort,
|
|
546
|
+
listPlugins: async (sort, enabled, keyword, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
544
547
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
545
548
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
546
549
|
let baseOptions;
|
|
@@ -555,12 +558,12 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
555
558
|
if (sort) {
|
|
556
559
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
557
560
|
}
|
|
558
|
-
if (keyword !== void 0) {
|
|
559
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
560
|
-
}
|
|
561
561
|
if (enabled !== void 0) {
|
|
562
562
|
localVarQueryParameter["enabled"] = enabled;
|
|
563
563
|
}
|
|
564
|
+
if (keyword !== void 0) {
|
|
565
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
566
|
+
}
|
|
564
567
|
if (size !== void 0) {
|
|
565
568
|
localVarQueryParameter["size"] = size;
|
|
566
569
|
}
|
|
@@ -618,8 +621,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
618
621
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
619
622
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
620
623
|
},
|
|
621
|
-
async listPlugins(sort,
|
|
622
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
624
|
+
async listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
625
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options);
|
|
623
626
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
624
627
|
},
|
|
625
628
|
async upgradePlugin(name, file, options) {
|
|
@@ -634,8 +637,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
634
637
|
installPlugin(file, options) {
|
|
635
638
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
636
639
|
},
|
|
637
|
-
listPlugins(sort,
|
|
638
|
-
return localVarFp.listPlugins(sort,
|
|
640
|
+
listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
641
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
639
642
|
},
|
|
640
643
|
upgradePlugin(name, file, options) {
|
|
641
644
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -647,7 +650,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
647
650
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
648
651
|
}
|
|
649
652
|
listPlugins(requestParameters = {}, options) {
|
|
650
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
653
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
651
654
|
}
|
|
652
655
|
upgradePlugin(requestParameters, options) {
|
|
653
656
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -679,7 +682,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
679
682
|
options: localVarRequestOptions
|
|
680
683
|
};
|
|
681
684
|
},
|
|
682
|
-
listPosts: async (sort, keyword, visible,
|
|
685
|
+
listPosts: async (sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
683
686
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
684
687
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
685
688
|
let baseOptions;
|
|
@@ -694,17 +697,17 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
694
697
|
if (sort !== void 0) {
|
|
695
698
|
localVarQueryParameter["sort"] = sort;
|
|
696
699
|
}
|
|
700
|
+
if (tag) {
|
|
701
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
702
|
+
}
|
|
697
703
|
if (keyword !== void 0) {
|
|
698
704
|
localVarQueryParameter["keyword"] = keyword;
|
|
699
705
|
}
|
|
700
706
|
if (visible !== void 0) {
|
|
701
707
|
localVarQueryParameter["visible"] = visible;
|
|
702
708
|
}
|
|
703
|
-
if (
|
|
704
|
-
localVarQueryParameter["
|
|
705
|
-
}
|
|
706
|
-
if (sortOrder !== void 0) {
|
|
707
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
709
|
+
if (contributor) {
|
|
710
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
708
711
|
}
|
|
709
712
|
if (publishPhase !== void 0) {
|
|
710
713
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
@@ -712,8 +715,8 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
712
715
|
if (category) {
|
|
713
716
|
localVarQueryParameter["category"] = Array.from(category);
|
|
714
717
|
}
|
|
715
|
-
if (
|
|
716
|
-
localVarQueryParameter["
|
|
718
|
+
if (sortOrder !== void 0) {
|
|
719
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
717
720
|
}
|
|
718
721
|
if (size !== void 0) {
|
|
719
722
|
localVarQueryParameter["size"] = size;
|
|
@@ -735,7 +738,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
735
738
|
options: localVarRequestOptions
|
|
736
739
|
};
|
|
737
740
|
},
|
|
738
|
-
publishPost: async (name, options = {}) => {
|
|
741
|
+
publishPost: async (name, headSnapshot, options = {}) => {
|
|
739
742
|
assertParamExists("publishPost", "name", name);
|
|
740
743
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
741
744
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -748,6 +751,9 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
748
751
|
const localVarQueryParameter = {};
|
|
749
752
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
750
753
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
754
|
+
if (headSnapshot !== void 0) {
|
|
755
|
+
localVarQueryParameter["headSnapshot"] = headSnapshot;
|
|
756
|
+
}
|
|
751
757
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
752
758
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
753
759
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -831,12 +837,12 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
831
837
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
832
838
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
833
839
|
},
|
|
834
|
-
async listPosts(sort, keyword, visible,
|
|
835
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, keyword, visible,
|
|
840
|
+
async listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
841
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options);
|
|
836
842
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
837
843
|
},
|
|
838
|
-
async publishPost(name, options) {
|
|
839
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost(name, options);
|
|
844
|
+
async publishPost(name, headSnapshot, options) {
|
|
845
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost(name, headSnapshot, options);
|
|
840
846
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
841
847
|
},
|
|
842
848
|
async recyclePost(name, options) {
|
|
@@ -859,11 +865,11 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
859
865
|
draftPost(postRequest, options) {
|
|
860
866
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
861
867
|
},
|
|
862
|
-
listPosts(sort, keyword, visible,
|
|
863
|
-
return localVarFp.listPosts(sort, keyword, visible,
|
|
868
|
+
listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
869
|
+
return localVarFp.listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
864
870
|
},
|
|
865
|
-
publishPost(name, options) {
|
|
866
|
-
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
871
|
+
publishPost(name, headSnapshot, options) {
|
|
872
|
+
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
867
873
|
},
|
|
868
874
|
recyclePost(name, options) {
|
|
869
875
|
return localVarFp.recyclePost(name, options).then((request) => request(axios, basePath));
|
|
@@ -881,10 +887,10 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
881
887
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
882
888
|
}
|
|
883
889
|
listPosts(requestParameters = {}, options) {
|
|
884
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
890
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.tag, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
885
891
|
}
|
|
886
892
|
publishPost(requestParameters, options) {
|
|
887
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
893
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
888
894
|
}
|
|
889
895
|
recyclePost(requestParameters, options) {
|
|
890
896
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).recyclePost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -984,7 +990,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
984
990
|
options: localVarRequestOptions
|
|
985
991
|
};
|
|
986
992
|
},
|
|
987
|
-
listSinglePages: async (sort, keyword, visible,
|
|
993
|
+
listSinglePages: async (sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
988
994
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
989
995
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
990
996
|
let baseOptions;
|
|
@@ -1005,14 +1011,14 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1005
1011
|
if (visible !== void 0) {
|
|
1006
1012
|
localVarQueryParameter["visible"] = visible;
|
|
1007
1013
|
}
|
|
1008
|
-
if (
|
|
1009
|
-
localVarQueryParameter["
|
|
1014
|
+
if (contributor) {
|
|
1015
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1010
1016
|
}
|
|
1011
1017
|
if (publishPhase !== void 0) {
|
|
1012
1018
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1013
1019
|
}
|
|
1014
|
-
if (
|
|
1015
|
-
localVarQueryParameter["
|
|
1020
|
+
if (sortOrder !== void 0) {
|
|
1021
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1016
1022
|
}
|
|
1017
1023
|
if (size !== void 0) {
|
|
1018
1024
|
localVarQueryParameter["size"] = size;
|
|
@@ -1088,8 +1094,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1088
1094
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1089
1095
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1090
1096
|
},
|
|
1091
|
-
async listSinglePages(sort, keyword, visible,
|
|
1092
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible,
|
|
1097
|
+
async listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
1098
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options);
|
|
1093
1099
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1094
1100
|
},
|
|
1095
1101
|
async publishSinglePage(name, options) {
|
|
@@ -1108,8 +1114,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1108
1114
|
draftSinglePage(singlePageRequest, options) {
|
|
1109
1115
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1110
1116
|
},
|
|
1111
|
-
listSinglePages(sort, keyword, visible,
|
|
1112
|
-
return localVarFp.listSinglePages(sort, keyword, visible,
|
|
1117
|
+
listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
1118
|
+
return localVarFp.listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1113
1119
|
},
|
|
1114
1120
|
publishSinglePage(name, options) {
|
|
1115
1121
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1124,7 +1130,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1124
1130
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1125
1131
|
}
|
|
1126
1132
|
listSinglePages(requestParameters = {}, options) {
|
|
1127
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.
|
|
1133
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.publishPhase, requestParameters.sortOrder, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1128
1134
|
}
|
|
1129
1135
|
publishSinglePage(requestParameters, options) {
|
|
1130
1136
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1614,12 +1620,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1614
1620
|
if (version !== void 0) {
|
|
1615
1621
|
localVarQueryParameter["version"] = version;
|
|
1616
1622
|
}
|
|
1617
|
-
if (group !== void 0) {
|
|
1618
|
-
localVarQueryParameter["group"] = group;
|
|
1619
|
-
}
|
|
1620
1623
|
if (kind !== void 0) {
|
|
1621
1624
|
localVarQueryParameter["kind"] = kind;
|
|
1622
1625
|
}
|
|
1626
|
+
if (group !== void 0) {
|
|
1627
|
+
localVarQueryParameter["group"] = group;
|
|
1628
|
+
}
|
|
1623
1629
|
if (size !== void 0) {
|
|
1624
1630
|
localVarQueryParameter["size"] = size;
|
|
1625
1631
|
}
|
|
@@ -1714,12 +1720,12 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1714
1720
|
const localVarQueryParameter = {};
|
|
1715
1721
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1716
1722
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1717
|
-
if (keyword !== void 0) {
|
|
1718
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1719
|
-
}
|
|
1720
1723
|
if (limit !== void 0) {
|
|
1721
1724
|
localVarQueryParameter["limit"] = limit;
|
|
1722
1725
|
}
|
|
1726
|
+
if (keyword !== void 0) {
|
|
1727
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1728
|
+
}
|
|
1723
1729
|
if (highlightPreTag !== void 0) {
|
|
1724
1730
|
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1725
1731
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2023,16 +2023,16 @@ interface Extension {
|
|
|
2023
2023
|
kind: string;
|
|
2024
2024
|
/**
|
|
2025
2025
|
*
|
|
2026
|
-
* @type {
|
|
2026
|
+
* @type {Metadata}
|
|
2027
2027
|
* @memberof Extension
|
|
2028
2028
|
*/
|
|
2029
|
-
|
|
2029
|
+
metadata: Metadata;
|
|
2030
2030
|
/**
|
|
2031
2031
|
*
|
|
2032
|
-
* @type {
|
|
2032
|
+
* @type {string}
|
|
2033
2033
|
* @memberof Extension
|
|
2034
2034
|
*/
|
|
2035
|
-
|
|
2035
|
+
apiVersion: string;
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
2038
2038
|
/**
|
|
@@ -7028,9 +7028,10 @@ declare const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator: (configur
|
|
|
7028
7028
|
/**
|
|
7029
7029
|
*
|
|
7030
7030
|
* @param {string} [policy] Name of policy
|
|
7031
|
+
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size
|
|
7031
7032
|
* @param {string} [displayName] Display name of attachment
|
|
7032
|
-
* @param {string} [uploadedBy] Name of user who uploaded the attachment
|
|
7033
7033
|
* @param {string} [group] Name of group
|
|
7034
|
+
* @param {string} [uploadedBy] Name of user who uploaded the attachment
|
|
7034
7035
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
7035
7036
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
7036
7037
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -7038,7 +7039,7 @@ declare const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator: (configur
|
|
|
7038
7039
|
* @param {*} [options] Override http request option.
|
|
7039
7040
|
* @throws {RequiredError}
|
|
7040
7041
|
*/
|
|
7041
|
-
searchAttachments: (policy?: string, displayName?: string,
|
|
7042
|
+
searchAttachments: (policy?: string, sort?: Array<string>, displayName?: string, group?: string, uploadedBy?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7042
7043
|
/**
|
|
7043
7044
|
*
|
|
7044
7045
|
* @param {any} file
|
|
@@ -7057,9 +7058,10 @@ declare const ApiConsoleHaloRunV1alpha1AttachmentApiFp: (configuration?: Configu
|
|
|
7057
7058
|
/**
|
|
7058
7059
|
*
|
|
7059
7060
|
* @param {string} [policy] Name of policy
|
|
7061
|
+
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size
|
|
7060
7062
|
* @param {string} [displayName] Display name of attachment
|
|
7061
|
-
* @param {string} [uploadedBy] Name of user who uploaded the attachment
|
|
7062
7063
|
* @param {string} [group] Name of group
|
|
7064
|
+
* @param {string} [uploadedBy] Name of user who uploaded the attachment
|
|
7063
7065
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
7064
7066
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
7065
7067
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -7067,7 +7069,7 @@ declare const ApiConsoleHaloRunV1alpha1AttachmentApiFp: (configuration?: Configu
|
|
|
7067
7069
|
* @param {*} [options] Override http request option.
|
|
7068
7070
|
* @throws {RequiredError}
|
|
7069
7071
|
*/
|
|
7070
|
-
searchAttachments(policy?: string, displayName?: string,
|
|
7072
|
+
searchAttachments(policy?: string, sort?: Array<string>, displayName?: string, group?: string, uploadedBy?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AttachmentList>>;
|
|
7071
7073
|
/**
|
|
7072
7074
|
*
|
|
7073
7075
|
* @param {any} file
|
|
@@ -7086,9 +7088,10 @@ declare const ApiConsoleHaloRunV1alpha1AttachmentApiFactory: (configuration?: Co
|
|
|
7086
7088
|
/**
|
|
7087
7089
|
*
|
|
7088
7090
|
* @param {string} [policy] Name of policy
|
|
7091
|
+
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size
|
|
7089
7092
|
* @param {string} [displayName] Display name of attachment
|
|
7090
|
-
* @param {string} [uploadedBy] Name of user who uploaded the attachment
|
|
7091
7093
|
* @param {string} [group] Name of group
|
|
7094
|
+
* @param {string} [uploadedBy] Name of user who uploaded the attachment
|
|
7092
7095
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
7093
7096
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
7094
7097
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -7096,7 +7099,7 @@ declare const ApiConsoleHaloRunV1alpha1AttachmentApiFactory: (configuration?: Co
|
|
|
7096
7099
|
* @param {*} [options] Override http request option.
|
|
7097
7100
|
* @throws {RequiredError}
|
|
7098
7101
|
*/
|
|
7099
|
-
searchAttachments(policy?: string, displayName?: string,
|
|
7102
|
+
searchAttachments(policy?: string, sort?: Array<string>, displayName?: string, group?: string, uploadedBy?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: any): AxiosPromise<AttachmentList>;
|
|
7100
7103
|
/**
|
|
7101
7104
|
*
|
|
7102
7105
|
* @param {any} file
|
|
@@ -7119,6 +7122,12 @@ interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest {
|
|
|
7119
7122
|
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
|
7120
7123
|
*/
|
|
7121
7124
|
readonly policy?: string;
|
|
7125
|
+
/**
|
|
7126
|
+
* Sort property and direction of the list result. Supported fields: creationTimestamp, size
|
|
7127
|
+
* @type {Array<string>}
|
|
7128
|
+
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
|
7129
|
+
*/
|
|
7130
|
+
readonly sort?: Array<string>;
|
|
7122
7131
|
/**
|
|
7123
7132
|
* Display name of attachment
|
|
7124
7133
|
* @type {string}
|
|
@@ -7126,17 +7135,17 @@ interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest {
|
|
|
7126
7135
|
*/
|
|
7127
7136
|
readonly displayName?: string;
|
|
7128
7137
|
/**
|
|
7129
|
-
* Name of
|
|
7138
|
+
* Name of group
|
|
7130
7139
|
* @type {string}
|
|
7131
7140
|
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
|
7132
7141
|
*/
|
|
7133
|
-
readonly
|
|
7142
|
+
readonly group?: string;
|
|
7134
7143
|
/**
|
|
7135
|
-
* Name of
|
|
7144
|
+
* Name of user who uploaded the attachment
|
|
7136
7145
|
* @type {string}
|
|
7137
7146
|
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
|
|
7138
7147
|
*/
|
|
7139
|
-
readonly
|
|
7148
|
+
readonly uploadedBy?: string;
|
|
7140
7149
|
/**
|
|
7141
7150
|
* Size of one page. Zero indicates no limit.
|
|
7142
7151
|
* @type {number}
|
|
@@ -7729,8 +7738,8 @@ declare const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator: (configuratio
|
|
|
7729
7738
|
/**
|
|
7730
7739
|
* List plugins using query criteria and sort params
|
|
7731
7740
|
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
|
|
7732
|
-
* @param {string} [keyword] Keyword of plugin name or description
|
|
7733
7741
|
* @param {boolean} [enabled] Whether the plugin is enabled
|
|
7742
|
+
* @param {string} [keyword] Keyword of plugin name or description
|
|
7734
7743
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
7735
7744
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
7736
7745
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -7738,7 +7747,7 @@ declare const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator: (configuratio
|
|
|
7738
7747
|
* @param {*} [options] Override http request option.
|
|
7739
7748
|
* @throws {RequiredError}
|
|
7740
7749
|
*/
|
|
7741
|
-
listPlugins: (sort?: Array<string>,
|
|
7750
|
+
listPlugins: (sort?: Array<string>, enabled?: boolean, keyword?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7742
7751
|
/**
|
|
7743
7752
|
* Upgrade a plugin by uploading a Jar file
|
|
7744
7753
|
* @param {string} name
|
|
@@ -7763,8 +7772,8 @@ declare const ApiConsoleHaloRunV1alpha1PluginApiFp: (configuration?: Configurati
|
|
|
7763
7772
|
/**
|
|
7764
7773
|
* List plugins using query criteria and sort params
|
|
7765
7774
|
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
|
|
7766
|
-
* @param {string} [keyword] Keyword of plugin name or description
|
|
7767
7775
|
* @param {boolean} [enabled] Whether the plugin is enabled
|
|
7776
|
+
* @param {string} [keyword] Keyword of plugin name or description
|
|
7768
7777
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
7769
7778
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
7770
7779
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -7772,7 +7781,7 @@ declare const ApiConsoleHaloRunV1alpha1PluginApiFp: (configuration?: Configurati
|
|
|
7772
7781
|
* @param {*} [options] Override http request option.
|
|
7773
7782
|
* @throws {RequiredError}
|
|
7774
7783
|
*/
|
|
7775
|
-
listPlugins(sort?: Array<string>,
|
|
7784
|
+
listPlugins(sort?: Array<string>, enabled?: boolean, keyword?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PluginList>>;
|
|
7776
7785
|
/**
|
|
7777
7786
|
* Upgrade a plugin by uploading a Jar file
|
|
7778
7787
|
* @param {string} name
|
|
@@ -7797,8 +7806,8 @@ declare const ApiConsoleHaloRunV1alpha1PluginApiFactory: (configuration?: Config
|
|
|
7797
7806
|
/**
|
|
7798
7807
|
* List plugins using query criteria and sort params
|
|
7799
7808
|
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
|
|
7800
|
-
* @param {string} [keyword] Keyword of plugin name or description
|
|
7801
7809
|
* @param {boolean} [enabled] Whether the plugin is enabled
|
|
7810
|
+
* @param {string} [keyword] Keyword of plugin name or description
|
|
7802
7811
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
7803
7812
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
7804
7813
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -7806,7 +7815,7 @@ declare const ApiConsoleHaloRunV1alpha1PluginApiFactory: (configuration?: Config
|
|
|
7806
7815
|
* @param {*} [options] Override http request option.
|
|
7807
7816
|
* @throws {RequiredError}
|
|
7808
7817
|
*/
|
|
7809
|
-
listPlugins(sort?: Array<string>,
|
|
7818
|
+
listPlugins(sort?: Array<string>, enabled?: boolean, keyword?: string, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: any): AxiosPromise<PluginList>;
|
|
7810
7819
|
/**
|
|
7811
7820
|
* Upgrade a plugin by uploading a Jar file
|
|
7812
7821
|
* @param {string} name
|
|
@@ -7841,18 +7850,18 @@ interface ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest {
|
|
|
7841
7850
|
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
|
|
7842
7851
|
*/
|
|
7843
7852
|
readonly sort?: Array<string>;
|
|
7844
|
-
/**
|
|
7845
|
-
* Keyword of plugin name or description
|
|
7846
|
-
* @type {string}
|
|
7847
|
-
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
|
|
7848
|
-
*/
|
|
7849
|
-
readonly keyword?: string;
|
|
7850
7853
|
/**
|
|
7851
7854
|
* Whether the plugin is enabled
|
|
7852
7855
|
* @type {boolean}
|
|
7853
7856
|
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
|
|
7854
7857
|
*/
|
|
7855
7858
|
readonly enabled?: boolean;
|
|
7859
|
+
/**
|
|
7860
|
+
* Keyword of plugin name or description
|
|
7861
|
+
* @type {string}
|
|
7862
|
+
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
|
|
7863
|
+
*/
|
|
7864
|
+
readonly keyword?: string;
|
|
7856
7865
|
/**
|
|
7857
7866
|
* Size of one page. Zero indicates no limit.
|
|
7858
7867
|
* @type {number}
|
|
@@ -7945,13 +7954,13 @@ declare const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator: (configuration?
|
|
|
7945
7954
|
/**
|
|
7946
7955
|
* List posts.
|
|
7947
7956
|
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] Post collation.
|
|
7957
|
+
* @param {Array<string>} [tag]
|
|
7948
7958
|
* @param {string} [keyword] Posts filtered by keyword.
|
|
7949
7959
|
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
7950
|
-
* @param {Array<string>} [
|
|
7951
|
-
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
7960
|
+
* @param {Array<string>} [contributor]
|
|
7952
7961
|
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
7953
7962
|
* @param {Array<string>} [category]
|
|
7954
|
-
* @param {
|
|
7963
|
+
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
7955
7964
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
7956
7965
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
7957
7966
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -7959,14 +7968,15 @@ declare const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator: (configuration?
|
|
|
7959
7968
|
* @param {*} [options] Override http request option.
|
|
7960
7969
|
* @throws {RequiredError}
|
|
7961
7970
|
*/
|
|
7962
|
-
listPosts: (sort?: 'PUBLISH_TIME' | 'CREATE_TIME', keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE',
|
|
7971
|
+
listPosts: (sort?: 'PUBLISH_TIME' | 'CREATE_TIME', tag?: Array<string>, keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', contributor?: Array<string>, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', category?: Array<string>, sortOrder?: boolean, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7963
7972
|
/**
|
|
7964
7973
|
* Publish a post.
|
|
7965
7974
|
* @param {string} name
|
|
7975
|
+
* @param {string} [headSnapshot] Head snapshot name of content.
|
|
7966
7976
|
* @param {*} [options] Override http request option.
|
|
7967
7977
|
* @throws {RequiredError}
|
|
7968
7978
|
*/
|
|
7969
|
-
publishPost: (name: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7979
|
+
publishPost: (name: string, headSnapshot?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7970
7980
|
/**
|
|
7971
7981
|
* Recycle a post.
|
|
7972
7982
|
* @param {string} name
|
|
@@ -8005,13 +8015,13 @@ declare const ApiConsoleHaloRunV1alpha1PostApiFp: (configuration?: Configuration
|
|
|
8005
8015
|
/**
|
|
8006
8016
|
* List posts.
|
|
8007
8017
|
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] Post collation.
|
|
8018
|
+
* @param {Array<string>} [tag]
|
|
8008
8019
|
* @param {string} [keyword] Posts filtered by keyword.
|
|
8009
8020
|
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
8010
|
-
* @param {Array<string>} [
|
|
8011
|
-
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8021
|
+
* @param {Array<string>} [contributor]
|
|
8012
8022
|
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8013
8023
|
* @param {Array<string>} [category]
|
|
8014
|
-
* @param {
|
|
8024
|
+
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8015
8025
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
8016
8026
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
8017
8027
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -8019,14 +8029,15 @@ declare const ApiConsoleHaloRunV1alpha1PostApiFp: (configuration?: Configuration
|
|
|
8019
8029
|
* @param {*} [options] Override http request option.
|
|
8020
8030
|
* @throws {RequiredError}
|
|
8021
8031
|
*/
|
|
8022
|
-
listPosts(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE',
|
|
8032
|
+
listPosts(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', tag?: Array<string>, keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', contributor?: Array<string>, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', category?: Array<string>, sortOrder?: boolean, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedPostList>>;
|
|
8023
8033
|
/**
|
|
8024
8034
|
* Publish a post.
|
|
8025
8035
|
* @param {string} name
|
|
8036
|
+
* @param {string} [headSnapshot] Head snapshot name of content.
|
|
8026
8037
|
* @param {*} [options] Override http request option.
|
|
8027
8038
|
* @throws {RequiredError}
|
|
8028
8039
|
*/
|
|
8029
|
-
publishPost(name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>>;
|
|
8040
|
+
publishPost(name: string, headSnapshot?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>>;
|
|
8030
8041
|
/**
|
|
8031
8042
|
* Recycle a post.
|
|
8032
8043
|
* @param {string} name
|
|
@@ -8065,13 +8076,13 @@ declare const ApiConsoleHaloRunV1alpha1PostApiFactory: (configuration?: Configur
|
|
|
8065
8076
|
/**
|
|
8066
8077
|
* List posts.
|
|
8067
8078
|
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] Post collation.
|
|
8079
|
+
* @param {Array<string>} [tag]
|
|
8068
8080
|
* @param {string} [keyword] Posts filtered by keyword.
|
|
8069
8081
|
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
8070
|
-
* @param {Array<string>} [
|
|
8071
|
-
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8082
|
+
* @param {Array<string>} [contributor]
|
|
8072
8083
|
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8073
8084
|
* @param {Array<string>} [category]
|
|
8074
|
-
* @param {
|
|
8085
|
+
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8075
8086
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
8076
8087
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
8077
8088
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -8079,14 +8090,15 @@ declare const ApiConsoleHaloRunV1alpha1PostApiFactory: (configuration?: Configur
|
|
|
8079
8090
|
* @param {*} [options] Override http request option.
|
|
8080
8091
|
* @throws {RequiredError}
|
|
8081
8092
|
*/
|
|
8082
|
-
listPosts(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE',
|
|
8093
|
+
listPosts(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', tag?: Array<string>, keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', contributor?: Array<string>, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', category?: Array<string>, sortOrder?: boolean, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: any): AxiosPromise<ListedPostList>;
|
|
8083
8094
|
/**
|
|
8084
8095
|
* Publish a post.
|
|
8085
8096
|
* @param {string} name
|
|
8097
|
+
* @param {string} [headSnapshot] Head snapshot name of content.
|
|
8086
8098
|
* @param {*} [options] Override http request option.
|
|
8087
8099
|
* @throws {RequiredError}
|
|
8088
8100
|
*/
|
|
8089
|
-
publishPost(name: string, options?: any): AxiosPromise<Post>;
|
|
8101
|
+
publishPost(name: string, headSnapshot?: string, options?: any): AxiosPromise<Post>;
|
|
8090
8102
|
/**
|
|
8091
8103
|
* Recycle a post.
|
|
8092
8104
|
* @param {string} name
|
|
@@ -8135,6 +8147,12 @@ interface ApiConsoleHaloRunV1alpha1PostApiListPostsRequest {
|
|
|
8135
8147
|
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
8136
8148
|
*/
|
|
8137
8149
|
readonly sort?: 'PUBLISH_TIME' | 'CREATE_TIME';
|
|
8150
|
+
/**
|
|
8151
|
+
*
|
|
8152
|
+
* @type {Array<string>}
|
|
8153
|
+
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
8154
|
+
*/
|
|
8155
|
+
readonly tag?: Array<string>;
|
|
8138
8156
|
/**
|
|
8139
8157
|
* Posts filtered by keyword.
|
|
8140
8158
|
* @type {string}
|
|
@@ -8152,13 +8170,7 @@ interface ApiConsoleHaloRunV1alpha1PostApiListPostsRequest {
|
|
|
8152
8170
|
* @type {Array<string>}
|
|
8153
8171
|
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
8154
8172
|
*/
|
|
8155
|
-
readonly
|
|
8156
|
-
/**
|
|
8157
|
-
* ascending order If it is true; otherwise, it is in descending order.
|
|
8158
|
-
* @type {boolean}
|
|
8159
|
-
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
8160
|
-
*/
|
|
8161
|
-
readonly sortOrder?: boolean;
|
|
8173
|
+
readonly contributor?: Array<string>;
|
|
8162
8174
|
/**
|
|
8163
8175
|
*
|
|
8164
8176
|
* @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'}
|
|
@@ -8172,11 +8184,11 @@ interface ApiConsoleHaloRunV1alpha1PostApiListPostsRequest {
|
|
|
8172
8184
|
*/
|
|
8173
8185
|
readonly category?: Array<string>;
|
|
8174
8186
|
/**
|
|
8175
|
-
*
|
|
8176
|
-
* @type {
|
|
8187
|
+
* ascending order If it is true; otherwise, it is in descending order.
|
|
8188
|
+
* @type {boolean}
|
|
8177
8189
|
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
8178
8190
|
*/
|
|
8179
|
-
readonly
|
|
8191
|
+
readonly sortOrder?: boolean;
|
|
8180
8192
|
/**
|
|
8181
8193
|
* Size of one page. Zero indicates no limit.
|
|
8182
8194
|
* @type {number}
|
|
@@ -8214,6 +8226,12 @@ interface ApiConsoleHaloRunV1alpha1PostApiPublishPostRequest {
|
|
|
8214
8226
|
* @memberof ApiConsoleHaloRunV1alpha1PostApiPublishPost
|
|
8215
8227
|
*/
|
|
8216
8228
|
readonly name: string;
|
|
8229
|
+
/**
|
|
8230
|
+
* Head snapshot name of content.
|
|
8231
|
+
* @type {string}
|
|
8232
|
+
* @memberof ApiConsoleHaloRunV1alpha1PostApiPublishPost
|
|
8233
|
+
*/
|
|
8234
|
+
readonly headSnapshot?: string;
|
|
8217
8235
|
}
|
|
8218
8236
|
/**
|
|
8219
8237
|
* Request parameters for recyclePost operation in ApiConsoleHaloRunV1alpha1PostApi.
|
|
@@ -8439,9 +8457,9 @@ declare const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator: (configur
|
|
|
8439
8457
|
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] SinglePage collation.
|
|
8440
8458
|
* @param {string} [keyword] SinglePages filtered by keyword.
|
|
8441
8459
|
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
8442
|
-
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8443
|
-
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8444
8460
|
* @param {Array<string>} [contributor]
|
|
8461
|
+
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8462
|
+
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8445
8463
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
8446
8464
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
8447
8465
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -8449,7 +8467,7 @@ declare const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator: (configur
|
|
|
8449
8467
|
* @param {*} [options] Override http request option.
|
|
8450
8468
|
* @throws {RequiredError}
|
|
8451
8469
|
*/
|
|
8452
|
-
listSinglePages: (sort?: 'PUBLISH_TIME' | 'CREATE_TIME', keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE',
|
|
8470
|
+
listSinglePages: (sort?: 'PUBLISH_TIME' | 'CREATE_TIME', keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', contributor?: Array<string>, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', sortOrder?: boolean, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8453
8471
|
/**
|
|
8454
8472
|
* Publish a single page.
|
|
8455
8473
|
* @param {string} name
|
|
@@ -8483,9 +8501,9 @@ declare const ApiConsoleHaloRunV1alpha1SinglePageApiFp: (configuration?: Configu
|
|
|
8483
8501
|
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] SinglePage collation.
|
|
8484
8502
|
* @param {string} [keyword] SinglePages filtered by keyword.
|
|
8485
8503
|
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
8486
|
-
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8487
|
-
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8488
8504
|
* @param {Array<string>} [contributor]
|
|
8505
|
+
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8506
|
+
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8489
8507
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
8490
8508
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
8491
8509
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -8493,7 +8511,7 @@ declare const ApiConsoleHaloRunV1alpha1SinglePageApiFp: (configuration?: Configu
|
|
|
8493
8511
|
* @param {*} [options] Override http request option.
|
|
8494
8512
|
* @throws {RequiredError}
|
|
8495
8513
|
*/
|
|
8496
|
-
listSinglePages(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE',
|
|
8514
|
+
listSinglePages(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', contributor?: Array<string>, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', sortOrder?: boolean, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedSinglePageList>>;
|
|
8497
8515
|
/**
|
|
8498
8516
|
* Publish a single page.
|
|
8499
8517
|
* @param {string} name
|
|
@@ -8527,9 +8545,9 @@ declare const ApiConsoleHaloRunV1alpha1SinglePageApiFactory: (configuration?: Co
|
|
|
8527
8545
|
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] SinglePage collation.
|
|
8528
8546
|
* @param {string} [keyword] SinglePages filtered by keyword.
|
|
8529
8547
|
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
8530
|
-
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8531
|
-
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8532
8548
|
* @param {Array<string>} [contributor]
|
|
8549
|
+
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8550
|
+
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8533
8551
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
8534
8552
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
8535
8553
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -8537,7 +8555,7 @@ declare const ApiConsoleHaloRunV1alpha1SinglePageApiFactory: (configuration?: Co
|
|
|
8537
8555
|
* @param {*} [options] Override http request option.
|
|
8538
8556
|
* @throws {RequiredError}
|
|
8539
8557
|
*/
|
|
8540
|
-
listSinglePages(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE',
|
|
8558
|
+
listSinglePages(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', contributor?: Array<string>, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', sortOrder?: boolean, size?: number, page?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, options?: any): AxiosPromise<ListedSinglePageList>;
|
|
8541
8559
|
/**
|
|
8542
8560
|
* Publish a single page.
|
|
8543
8561
|
* @param {string} name
|
|
@@ -8592,11 +8610,11 @@ interface ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest {
|
|
|
8592
8610
|
*/
|
|
8593
8611
|
readonly visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE';
|
|
8594
8612
|
/**
|
|
8595
|
-
*
|
|
8596
|
-
* @type {
|
|
8613
|
+
*
|
|
8614
|
+
* @type {Array<string>}
|
|
8597
8615
|
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
|
|
8598
8616
|
*/
|
|
8599
|
-
readonly
|
|
8617
|
+
readonly contributor?: Array<string>;
|
|
8600
8618
|
/**
|
|
8601
8619
|
*
|
|
8602
8620
|
* @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'}
|
|
@@ -8604,11 +8622,11 @@ interface ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest {
|
|
|
8604
8622
|
*/
|
|
8605
8623
|
readonly publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED';
|
|
8606
8624
|
/**
|
|
8607
|
-
*
|
|
8608
|
-
* @type {
|
|
8625
|
+
* ascending order If it is true; otherwise, it is in descending order.
|
|
8626
|
+
* @type {boolean}
|
|
8609
8627
|
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
|
|
8610
8628
|
*/
|
|
8611
|
-
readonly
|
|
8629
|
+
readonly sortOrder?: boolean;
|
|
8612
8630
|
/**
|
|
8613
8631
|
* Size of one page. Zero indicates no limit.
|
|
8614
8632
|
* @type {number}
|
package/dist/index.mjs
CHANGED
|
@@ -69,7 +69,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
69
69
|
|
|
70
70
|
const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
|
|
71
71
|
return {
|
|
72
|
-
searchAttachments: async (policy,
|
|
72
|
+
searchAttachments: async (policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
73
73
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
74
74
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
75
75
|
let baseOptions;
|
|
@@ -84,15 +84,18 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
84
84
|
if (policy !== void 0) {
|
|
85
85
|
localVarQueryParameter["policy"] = policy;
|
|
86
86
|
}
|
|
87
|
+
if (sort) {
|
|
88
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
89
|
+
}
|
|
87
90
|
if (displayName !== void 0) {
|
|
88
91
|
localVarQueryParameter["displayName"] = displayName;
|
|
89
92
|
}
|
|
90
|
-
if (uploadedBy !== void 0) {
|
|
91
|
-
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
92
|
-
}
|
|
93
93
|
if (group !== void 0) {
|
|
94
94
|
localVarQueryParameter["group"] = group;
|
|
95
95
|
}
|
|
96
|
+
if (uploadedBy !== void 0) {
|
|
97
|
+
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
98
|
+
}
|
|
96
99
|
if (size !== void 0) {
|
|
97
100
|
localVarQueryParameter["size"] = size;
|
|
98
101
|
}
|
|
@@ -152,8 +155,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
152
155
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
153
156
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
154
157
|
return {
|
|
155
|
-
async searchAttachments(policy,
|
|
156
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy,
|
|
158
|
+
async searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
159
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
157
160
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
158
161
|
},
|
|
159
162
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -165,8 +168,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
165
168
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
166
169
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
167
170
|
return {
|
|
168
|
-
searchAttachments(policy,
|
|
169
|
-
return localVarFp.searchAttachments(policy,
|
|
171
|
+
searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
172
|
+
return localVarFp.searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
170
173
|
},
|
|
171
174
|
uploadAttachment(file, policyName, groupName, options) {
|
|
172
175
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -175,7 +178,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
175
178
|
};
|
|
176
179
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
177
180
|
searchAttachments(requestParameters = {}, options) {
|
|
178
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.
|
|
181
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
179
182
|
}
|
|
180
183
|
uploadAttachment(requestParameters, options) {
|
|
181
184
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -532,7 +535,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
532
535
|
options: localVarRequestOptions
|
|
533
536
|
};
|
|
534
537
|
},
|
|
535
|
-
listPlugins: async (sort,
|
|
538
|
+
listPlugins: async (sort, enabled, keyword, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
536
539
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
537
540
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
538
541
|
let baseOptions;
|
|
@@ -547,12 +550,12 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
547
550
|
if (sort) {
|
|
548
551
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
549
552
|
}
|
|
550
|
-
if (keyword !== void 0) {
|
|
551
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
552
|
-
}
|
|
553
553
|
if (enabled !== void 0) {
|
|
554
554
|
localVarQueryParameter["enabled"] = enabled;
|
|
555
555
|
}
|
|
556
|
+
if (keyword !== void 0) {
|
|
557
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
558
|
+
}
|
|
556
559
|
if (size !== void 0) {
|
|
557
560
|
localVarQueryParameter["size"] = size;
|
|
558
561
|
}
|
|
@@ -610,8 +613,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
610
613
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
611
614
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
612
615
|
},
|
|
613
|
-
async listPlugins(sort,
|
|
614
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
616
|
+
async listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
617
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options);
|
|
615
618
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
616
619
|
},
|
|
617
620
|
async upgradePlugin(name, file, options) {
|
|
@@ -626,8 +629,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
626
629
|
installPlugin(file, options) {
|
|
627
630
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
628
631
|
},
|
|
629
|
-
listPlugins(sort,
|
|
630
|
-
return localVarFp.listPlugins(sort,
|
|
632
|
+
listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
633
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
631
634
|
},
|
|
632
635
|
upgradePlugin(name, file, options) {
|
|
633
636
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -639,7 +642,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
639
642
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
640
643
|
}
|
|
641
644
|
listPlugins(requestParameters = {}, options) {
|
|
642
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
645
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
643
646
|
}
|
|
644
647
|
upgradePlugin(requestParameters, options) {
|
|
645
648
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -671,7 +674,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
671
674
|
options: localVarRequestOptions
|
|
672
675
|
};
|
|
673
676
|
},
|
|
674
|
-
listPosts: async (sort, keyword, visible,
|
|
677
|
+
listPosts: async (sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
675
678
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
676
679
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
677
680
|
let baseOptions;
|
|
@@ -686,17 +689,17 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
686
689
|
if (sort !== void 0) {
|
|
687
690
|
localVarQueryParameter["sort"] = sort;
|
|
688
691
|
}
|
|
692
|
+
if (tag) {
|
|
693
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
694
|
+
}
|
|
689
695
|
if (keyword !== void 0) {
|
|
690
696
|
localVarQueryParameter["keyword"] = keyword;
|
|
691
697
|
}
|
|
692
698
|
if (visible !== void 0) {
|
|
693
699
|
localVarQueryParameter["visible"] = visible;
|
|
694
700
|
}
|
|
695
|
-
if (
|
|
696
|
-
localVarQueryParameter["
|
|
697
|
-
}
|
|
698
|
-
if (sortOrder !== void 0) {
|
|
699
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
701
|
+
if (contributor) {
|
|
702
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
700
703
|
}
|
|
701
704
|
if (publishPhase !== void 0) {
|
|
702
705
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
@@ -704,8 +707,8 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
704
707
|
if (category) {
|
|
705
708
|
localVarQueryParameter["category"] = Array.from(category);
|
|
706
709
|
}
|
|
707
|
-
if (
|
|
708
|
-
localVarQueryParameter["
|
|
710
|
+
if (sortOrder !== void 0) {
|
|
711
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
709
712
|
}
|
|
710
713
|
if (size !== void 0) {
|
|
711
714
|
localVarQueryParameter["size"] = size;
|
|
@@ -727,7 +730,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
727
730
|
options: localVarRequestOptions
|
|
728
731
|
};
|
|
729
732
|
},
|
|
730
|
-
publishPost: async (name, options = {}) => {
|
|
733
|
+
publishPost: async (name, headSnapshot, options = {}) => {
|
|
731
734
|
assertParamExists("publishPost", "name", name);
|
|
732
735
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
733
736
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -740,6 +743,9 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
740
743
|
const localVarQueryParameter = {};
|
|
741
744
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
742
745
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
746
|
+
if (headSnapshot !== void 0) {
|
|
747
|
+
localVarQueryParameter["headSnapshot"] = headSnapshot;
|
|
748
|
+
}
|
|
743
749
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
744
750
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
745
751
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -823,12 +829,12 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
823
829
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
824
830
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
825
831
|
},
|
|
826
|
-
async listPosts(sort, keyword, visible,
|
|
827
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, keyword, visible,
|
|
832
|
+
async listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
833
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options);
|
|
828
834
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
829
835
|
},
|
|
830
|
-
async publishPost(name, options) {
|
|
831
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost(name, options);
|
|
836
|
+
async publishPost(name, headSnapshot, options) {
|
|
837
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost(name, headSnapshot, options);
|
|
832
838
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
833
839
|
},
|
|
834
840
|
async recyclePost(name, options) {
|
|
@@ -851,11 +857,11 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
851
857
|
draftPost(postRequest, options) {
|
|
852
858
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
853
859
|
},
|
|
854
|
-
listPosts(sort, keyword, visible,
|
|
855
|
-
return localVarFp.listPosts(sort, keyword, visible,
|
|
860
|
+
listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
861
|
+
return localVarFp.listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
856
862
|
},
|
|
857
|
-
publishPost(name, options) {
|
|
858
|
-
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
863
|
+
publishPost(name, headSnapshot, options) {
|
|
864
|
+
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
859
865
|
},
|
|
860
866
|
recyclePost(name, options) {
|
|
861
867
|
return localVarFp.recyclePost(name, options).then((request) => request(axios, basePath));
|
|
@@ -873,10 +879,10 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
873
879
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
874
880
|
}
|
|
875
881
|
listPosts(requestParameters = {}, options) {
|
|
876
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
882
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.tag, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
877
883
|
}
|
|
878
884
|
publishPost(requestParameters, options) {
|
|
879
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
885
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
880
886
|
}
|
|
881
887
|
recyclePost(requestParameters, options) {
|
|
882
888
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).recyclePost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -976,7 +982,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
976
982
|
options: localVarRequestOptions
|
|
977
983
|
};
|
|
978
984
|
},
|
|
979
|
-
listSinglePages: async (sort, keyword, visible,
|
|
985
|
+
listSinglePages: async (sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
980
986
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
981
987
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
982
988
|
let baseOptions;
|
|
@@ -997,14 +1003,14 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
997
1003
|
if (visible !== void 0) {
|
|
998
1004
|
localVarQueryParameter["visible"] = visible;
|
|
999
1005
|
}
|
|
1000
|
-
if (
|
|
1001
|
-
localVarQueryParameter["
|
|
1006
|
+
if (contributor) {
|
|
1007
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1002
1008
|
}
|
|
1003
1009
|
if (publishPhase !== void 0) {
|
|
1004
1010
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1005
1011
|
}
|
|
1006
|
-
if (
|
|
1007
|
-
localVarQueryParameter["
|
|
1012
|
+
if (sortOrder !== void 0) {
|
|
1013
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1008
1014
|
}
|
|
1009
1015
|
if (size !== void 0) {
|
|
1010
1016
|
localVarQueryParameter["size"] = size;
|
|
@@ -1080,8 +1086,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1080
1086
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1081
1087
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1082
1088
|
},
|
|
1083
|
-
async listSinglePages(sort, keyword, visible,
|
|
1084
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible,
|
|
1089
|
+
async listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
1090
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options);
|
|
1085
1091
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1086
1092
|
},
|
|
1087
1093
|
async publishSinglePage(name, options) {
|
|
@@ -1100,8 +1106,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1100
1106
|
draftSinglePage(singlePageRequest, options) {
|
|
1101
1107
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1102
1108
|
},
|
|
1103
|
-
listSinglePages(sort, keyword, visible,
|
|
1104
|
-
return localVarFp.listSinglePages(sort, keyword, visible,
|
|
1109
|
+
listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
1110
|
+
return localVarFp.listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1105
1111
|
},
|
|
1106
1112
|
publishSinglePage(name, options) {
|
|
1107
1113
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1116,7 +1122,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1116
1122
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1117
1123
|
}
|
|
1118
1124
|
listSinglePages(requestParameters = {}, options) {
|
|
1119
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.
|
|
1125
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.publishPhase, requestParameters.sortOrder, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1120
1126
|
}
|
|
1121
1127
|
publishSinglePage(requestParameters, options) {
|
|
1122
1128
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1606,12 +1612,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1606
1612
|
if (version !== void 0) {
|
|
1607
1613
|
localVarQueryParameter["version"] = version;
|
|
1608
1614
|
}
|
|
1609
|
-
if (group !== void 0) {
|
|
1610
|
-
localVarQueryParameter["group"] = group;
|
|
1611
|
-
}
|
|
1612
1615
|
if (kind !== void 0) {
|
|
1613
1616
|
localVarQueryParameter["kind"] = kind;
|
|
1614
1617
|
}
|
|
1618
|
+
if (group !== void 0) {
|
|
1619
|
+
localVarQueryParameter["group"] = group;
|
|
1620
|
+
}
|
|
1615
1621
|
if (size !== void 0) {
|
|
1616
1622
|
localVarQueryParameter["size"] = size;
|
|
1617
1623
|
}
|
|
@@ -1706,12 +1712,12 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1706
1712
|
const localVarQueryParameter = {};
|
|
1707
1713
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1708
1714
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1709
|
-
if (keyword !== void 0) {
|
|
1710
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1711
|
-
}
|
|
1712
1715
|
if (limit !== void 0) {
|
|
1713
1716
|
localVarQueryParameter["limit"] = limit;
|
|
1714
1717
|
}
|
|
1718
|
+
if (keyword !== void 0) {
|
|
1719
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1720
|
+
}
|
|
1715
1721
|
if (highlightPreTag !== void 0) {
|
|
1716
1722
|
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1717
1723
|
}
|