@halo-dev/api-client 0.0.46 → 0.0.48
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 +115 -47
- package/dist/index.d.ts +164 -92
- package/dist/index.mjs +115 -47
- 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, displayName,
|
|
80
|
+
searchAttachments: async (policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, 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;
|
|
@@ -95,12 +95,12 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
95
95
|
if (displayName !== void 0) {
|
|
96
96
|
localVarQueryParameter["displayName"] = displayName;
|
|
97
97
|
}
|
|
98
|
-
if (uploadedBy !== void 0) {
|
|
99
|
-
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
100
|
-
}
|
|
101
98
|
if (group !== void 0) {
|
|
102
99
|
localVarQueryParameter["group"] = group;
|
|
103
100
|
}
|
|
101
|
+
if (uploadedBy !== void 0) {
|
|
102
|
+
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
103
|
+
}
|
|
104
104
|
if (size !== void 0) {
|
|
105
105
|
localVarQueryParameter["size"] = size;
|
|
106
106
|
}
|
|
@@ -160,8 +160,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
160
160
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
161
161
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
162
162
|
return {
|
|
163
|
-
async searchAttachments(policy, displayName,
|
|
164
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName,
|
|
163
|
+
async searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
164
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options);
|
|
165
165
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
166
166
|
},
|
|
167
167
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -173,8 +173,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
173
173
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
174
174
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
175
175
|
return {
|
|
176
|
-
searchAttachments(policy, displayName,
|
|
177
|
-
return localVarFp.searchAttachments(policy, displayName,
|
|
176
|
+
searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
177
|
+
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
178
178
|
},
|
|
179
179
|
uploadAttachment(file, policyName, groupName, options) {
|
|
180
180
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -183,7 +183,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
183
183
|
};
|
|
184
184
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
185
185
|
searchAttachments(requestParameters = {}, options) {
|
|
186
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.
|
|
186
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
187
187
|
}
|
|
188
188
|
uploadAttachment(requestParameters, options) {
|
|
189
189
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -540,7 +540,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
540
540
|
options: localVarRequestOptions
|
|
541
541
|
};
|
|
542
542
|
},
|
|
543
|
-
listPlugins: async (sort,
|
|
543
|
+
listPlugins: async (sort, enabled, keyword, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
544
544
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
545
545
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
546
546
|
let baseOptions;
|
|
@@ -555,12 +555,12 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
555
555
|
if (sort) {
|
|
556
556
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
557
557
|
}
|
|
558
|
-
if (keyword !== void 0) {
|
|
559
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
560
|
-
}
|
|
561
558
|
if (enabled !== void 0) {
|
|
562
559
|
localVarQueryParameter["enabled"] = enabled;
|
|
563
560
|
}
|
|
561
|
+
if (keyword !== void 0) {
|
|
562
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
563
|
+
}
|
|
564
564
|
if (size !== void 0) {
|
|
565
565
|
localVarQueryParameter["size"] = size;
|
|
566
566
|
}
|
|
@@ -618,8 +618,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
618
618
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
619
619
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
620
620
|
},
|
|
621
|
-
async listPlugins(sort,
|
|
622
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
621
|
+
async listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
622
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options);
|
|
623
623
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
624
624
|
},
|
|
625
625
|
async upgradePlugin(name, file, options) {
|
|
@@ -634,8 +634,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
634
634
|
installPlugin(file, options) {
|
|
635
635
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
636
636
|
},
|
|
637
|
-
listPlugins(sort,
|
|
638
|
-
return localVarFp.listPlugins(sort,
|
|
637
|
+
listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
638
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
639
639
|
},
|
|
640
640
|
upgradePlugin(name, file, options) {
|
|
641
641
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -647,7 +647,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
647
647
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
648
648
|
}
|
|
649
649
|
listPlugins(requestParameters = {}, options) {
|
|
650
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
650
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
651
651
|
}
|
|
652
652
|
upgradePlugin(requestParameters, options) {
|
|
653
653
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -679,7 +679,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
679
679
|
options: localVarRequestOptions
|
|
680
680
|
};
|
|
681
681
|
},
|
|
682
|
-
listPosts: async (sort,
|
|
682
|
+
listPosts: async (sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
683
683
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
684
684
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
685
685
|
let baseOptions;
|
|
@@ -694,8 +694,8 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
694
694
|
if (sort !== void 0) {
|
|
695
695
|
localVarQueryParameter["sort"] = sort;
|
|
696
696
|
}
|
|
697
|
-
if (
|
|
698
|
-
localVarQueryParameter["
|
|
697
|
+
if (contributor) {
|
|
698
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
699
699
|
}
|
|
700
700
|
if (publishPhase !== void 0) {
|
|
701
701
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
@@ -703,8 +703,11 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
703
703
|
if (category) {
|
|
704
704
|
localVarQueryParameter["category"] = Array.from(category);
|
|
705
705
|
}
|
|
706
|
-
if (
|
|
707
|
-
localVarQueryParameter["
|
|
706
|
+
if (sortOrder !== void 0) {
|
|
707
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
708
|
+
}
|
|
709
|
+
if (tag) {
|
|
710
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
708
711
|
}
|
|
709
712
|
if (keyword !== void 0) {
|
|
710
713
|
localVarQueryParameter["keyword"] = keyword;
|
|
@@ -712,9 +715,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
712
715
|
if (visible !== void 0) {
|
|
713
716
|
localVarQueryParameter["visible"] = visible;
|
|
714
717
|
}
|
|
715
|
-
if (tag) {
|
|
716
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
717
|
-
}
|
|
718
718
|
if (size !== void 0) {
|
|
719
719
|
localVarQueryParameter["size"] = size;
|
|
720
720
|
}
|
|
@@ -824,6 +824,30 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
824
824
|
url: toPathString(localVarUrlObj),
|
|
825
825
|
options: localVarRequestOptions
|
|
826
826
|
};
|
|
827
|
+
},
|
|
828
|
+
updatePostContent: async (name, content, options = {}) => {
|
|
829
|
+
assertParamExists("updatePostContent", "name", name);
|
|
830
|
+
assertParamExists("updatePostContent", "content", content);
|
|
831
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
832
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
833
|
+
let baseOptions;
|
|
834
|
+
if (configuration) {
|
|
835
|
+
baseOptions = configuration.baseOptions;
|
|
836
|
+
}
|
|
837
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
838
|
+
const localVarHeaderParameter = {};
|
|
839
|
+
const localVarQueryParameter = {};
|
|
840
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
841
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
842
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
843
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
844
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
845
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
846
|
+
localVarRequestOptions.data = serializeDataIfNeeded(content, localVarRequestOptions, configuration);
|
|
847
|
+
return {
|
|
848
|
+
url: toPathString(localVarUrlObj),
|
|
849
|
+
options: localVarRequestOptions
|
|
850
|
+
};
|
|
827
851
|
}
|
|
828
852
|
};
|
|
829
853
|
};
|
|
@@ -834,8 +858,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
834
858
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
835
859
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
836
860
|
},
|
|
837
|
-
async listPosts(sort,
|
|
838
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
861
|
+
async listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
862
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
839
863
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
840
864
|
},
|
|
841
865
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -853,6 +877,10 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
853
877
|
async updateDraftPost(name, postRequest, options) {
|
|
854
878
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost(name, postRequest, options);
|
|
855
879
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
880
|
+
},
|
|
881
|
+
async updatePostContent(name, content, options) {
|
|
882
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePostContent(name, content, options);
|
|
883
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
856
884
|
}
|
|
857
885
|
};
|
|
858
886
|
};
|
|
@@ -862,8 +890,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
862
890
|
draftPost(postRequest, options) {
|
|
863
891
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
864
892
|
},
|
|
865
|
-
listPosts(sort,
|
|
866
|
-
return localVarFp.listPosts(sort,
|
|
893
|
+
listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
894
|
+
return localVarFp.listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
867
895
|
},
|
|
868
896
|
publishPost(name, headSnapshot, options) {
|
|
869
897
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -876,6 +904,9 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
876
904
|
},
|
|
877
905
|
updateDraftPost(name, postRequest, options) {
|
|
878
906
|
return localVarFp.updateDraftPost(name, postRequest, options).then((request) => request(axios, basePath));
|
|
907
|
+
},
|
|
908
|
+
updatePostContent(name, content, options) {
|
|
909
|
+
return localVarFp.updatePostContent(name, content, options).then((request) => request(axios, basePath));
|
|
879
910
|
}
|
|
880
911
|
};
|
|
881
912
|
};
|
|
@@ -884,7 +915,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
884
915
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
885
916
|
}
|
|
886
917
|
listPosts(requestParameters = {}, options) {
|
|
887
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
918
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.contributor, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.tag, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
888
919
|
}
|
|
889
920
|
publishPost(requestParameters, options) {
|
|
890
921
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -898,6 +929,9 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
898
929
|
updateDraftPost(requestParameters, options) {
|
|
899
930
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
900
931
|
}
|
|
932
|
+
updatePostContent(requestParameters, options) {
|
|
933
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updatePostContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
|
|
934
|
+
}
|
|
901
935
|
}
|
|
902
936
|
|
|
903
937
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
@@ -987,7 +1021,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
987
1021
|
options: localVarRequestOptions
|
|
988
1022
|
};
|
|
989
1023
|
},
|
|
990
|
-
listSinglePages: async (sort,
|
|
1024
|
+
listSinglePages: async (sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
991
1025
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
992
1026
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
993
1027
|
let baseOptions;
|
|
@@ -1002,14 +1036,14 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1002
1036
|
if (sort !== void 0) {
|
|
1003
1037
|
localVarQueryParameter["sort"] = sort;
|
|
1004
1038
|
}
|
|
1005
|
-
if (
|
|
1006
|
-
localVarQueryParameter["
|
|
1039
|
+
if (contributor) {
|
|
1040
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1007
1041
|
}
|
|
1008
1042
|
if (publishPhase !== void 0) {
|
|
1009
1043
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1010
1044
|
}
|
|
1011
|
-
if (
|
|
1012
|
-
localVarQueryParameter["
|
|
1045
|
+
if (sortOrder !== void 0) {
|
|
1046
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1013
1047
|
}
|
|
1014
1048
|
if (keyword !== void 0) {
|
|
1015
1049
|
localVarQueryParameter["keyword"] = keyword;
|
|
@@ -1081,6 +1115,30 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1081
1115
|
url: toPathString(localVarUrlObj),
|
|
1082
1116
|
options: localVarRequestOptions
|
|
1083
1117
|
};
|
|
1118
|
+
},
|
|
1119
|
+
updateSinglePageContent: async (name, content, options = {}) => {
|
|
1120
|
+
assertParamExists("updateSinglePageContent", "name", name);
|
|
1121
|
+
assertParamExists("updateSinglePageContent", "content", content);
|
|
1122
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1123
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1124
|
+
let baseOptions;
|
|
1125
|
+
if (configuration) {
|
|
1126
|
+
baseOptions = configuration.baseOptions;
|
|
1127
|
+
}
|
|
1128
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1129
|
+
const localVarHeaderParameter = {};
|
|
1130
|
+
const localVarQueryParameter = {};
|
|
1131
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1132
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1133
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1136
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1137
|
+
localVarRequestOptions.data = serializeDataIfNeeded(content, localVarRequestOptions, configuration);
|
|
1138
|
+
return {
|
|
1139
|
+
url: toPathString(localVarUrlObj),
|
|
1140
|
+
options: localVarRequestOptions
|
|
1141
|
+
};
|
|
1084
1142
|
}
|
|
1085
1143
|
};
|
|
1086
1144
|
};
|
|
@@ -1091,8 +1149,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1091
1149
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1092
1150
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1093
1151
|
},
|
|
1094
|
-
async listSinglePages(sort,
|
|
1095
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1152
|
+
async listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
1153
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
1096
1154
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1097
1155
|
},
|
|
1098
1156
|
async publishSinglePage(name, options) {
|
|
@@ -1102,6 +1160,10 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1102
1160
|
async updateDraftSinglePage(name, singlePageRequest, options) {
|
|
1103
1161
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftSinglePage(name, singlePageRequest, options);
|
|
1104
1162
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1163
|
+
},
|
|
1164
|
+
async updateSinglePageContent(name, content, options) {
|
|
1165
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSinglePageContent(name, content, options);
|
|
1166
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1105
1167
|
}
|
|
1106
1168
|
};
|
|
1107
1169
|
};
|
|
@@ -1111,14 +1173,17 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1111
1173
|
draftSinglePage(singlePageRequest, options) {
|
|
1112
1174
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1113
1175
|
},
|
|
1114
|
-
listSinglePages(sort,
|
|
1115
|
-
return localVarFp.listSinglePages(sort,
|
|
1176
|
+
listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
1177
|
+
return localVarFp.listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1116
1178
|
},
|
|
1117
1179
|
publishSinglePage(name, options) {
|
|
1118
1180
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
1119
1181
|
},
|
|
1120
1182
|
updateDraftSinglePage(name, singlePageRequest, options) {
|
|
1121
1183
|
return localVarFp.updateDraftSinglePage(name, singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1184
|
+
},
|
|
1185
|
+
updateSinglePageContent(name, content, options) {
|
|
1186
|
+
return localVarFp.updateSinglePageContent(name, content, options).then((request) => request(axios, basePath));
|
|
1122
1187
|
}
|
|
1123
1188
|
};
|
|
1124
1189
|
};
|
|
@@ -1127,7 +1192,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1127
1192
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1128
1193
|
}
|
|
1129
1194
|
listSinglePages(requestParameters = {}, options) {
|
|
1130
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1195
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.contributor, requestParameters.publishPhase, requestParameters.sortOrder, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1131
1196
|
}
|
|
1132
1197
|
publishSinglePage(requestParameters, options) {
|
|
1133
1198
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1135,6 +1200,9 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1135
1200
|
updateDraftSinglePage(requestParameters, options) {
|
|
1136
1201
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1137
1202
|
}
|
|
1203
|
+
updateSinglePageContent(requestParameters, options) {
|
|
1204
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateSinglePageContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
|
|
1205
|
+
}
|
|
1138
1206
|
}
|
|
1139
1207
|
|
|
1140
1208
|
const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function(configuration) {
|
|
@@ -1617,12 +1685,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1617
1685
|
if (version !== void 0) {
|
|
1618
1686
|
localVarQueryParameter["version"] = version;
|
|
1619
1687
|
}
|
|
1620
|
-
if (group !== void 0) {
|
|
1621
|
-
localVarQueryParameter["group"] = group;
|
|
1622
|
-
}
|
|
1623
1688
|
if (kind !== void 0) {
|
|
1624
1689
|
localVarQueryParameter["kind"] = kind;
|
|
1625
1690
|
}
|
|
1691
|
+
if (group !== void 0) {
|
|
1692
|
+
localVarQueryParameter["group"] = group;
|
|
1693
|
+
}
|
|
1626
1694
|
if (size !== void 0) {
|
|
1627
1695
|
localVarQueryParameter["size"] = size;
|
|
1628
1696
|
}
|
|
@@ -1723,12 +1791,12 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1723
1791
|
if (highlightPostTag !== void 0) {
|
|
1724
1792
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1725
1793
|
}
|
|
1726
|
-
if (keyword !== void 0) {
|
|
1727
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1728
|
-
}
|
|
1729
1794
|
if (limit !== void 0) {
|
|
1730
1795
|
localVarQueryParameter["limit"] = limit;
|
|
1731
1796
|
}
|
|
1797
|
+
if (keyword !== void 0) {
|
|
1798
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1799
|
+
}
|
|
1732
1800
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1733
1801
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1734
1802
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|