@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.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, displayName,
|
|
72
|
+
searchAttachments: async (policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, 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;
|
|
@@ -87,12 +87,12 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
87
87
|
if (displayName !== void 0) {
|
|
88
88
|
localVarQueryParameter["displayName"] = displayName;
|
|
89
89
|
}
|
|
90
|
-
if (uploadedBy !== void 0) {
|
|
91
|
-
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
92
|
-
}
|
|
93
90
|
if (group !== void 0) {
|
|
94
91
|
localVarQueryParameter["group"] = group;
|
|
95
92
|
}
|
|
93
|
+
if (uploadedBy !== void 0) {
|
|
94
|
+
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
95
|
+
}
|
|
96
96
|
if (size !== void 0) {
|
|
97
97
|
localVarQueryParameter["size"] = size;
|
|
98
98
|
}
|
|
@@ -152,8 +152,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
152
152
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
153
153
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
154
154
|
return {
|
|
155
|
-
async searchAttachments(policy, displayName,
|
|
156
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName,
|
|
155
|
+
async searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
156
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options);
|
|
157
157
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
158
158
|
},
|
|
159
159
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -165,8 +165,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
165
165
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
166
166
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
167
167
|
return {
|
|
168
|
-
searchAttachments(policy, displayName,
|
|
169
|
-
return localVarFp.searchAttachments(policy, displayName,
|
|
168
|
+
searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
169
|
+
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
170
170
|
},
|
|
171
171
|
uploadAttachment(file, policyName, groupName, options) {
|
|
172
172
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -175,7 +175,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
175
175
|
};
|
|
176
176
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
177
177
|
searchAttachments(requestParameters = {}, options) {
|
|
178
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.
|
|
178
|
+
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));
|
|
179
179
|
}
|
|
180
180
|
uploadAttachment(requestParameters, options) {
|
|
181
181
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -532,7 +532,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
532
532
|
options: localVarRequestOptions
|
|
533
533
|
};
|
|
534
534
|
},
|
|
535
|
-
listPlugins: async (sort,
|
|
535
|
+
listPlugins: async (sort, enabled, keyword, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
536
536
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
537
537
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
538
538
|
let baseOptions;
|
|
@@ -547,12 +547,12 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
547
547
|
if (sort) {
|
|
548
548
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
549
549
|
}
|
|
550
|
-
if (keyword !== void 0) {
|
|
551
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
552
|
-
}
|
|
553
550
|
if (enabled !== void 0) {
|
|
554
551
|
localVarQueryParameter["enabled"] = enabled;
|
|
555
552
|
}
|
|
553
|
+
if (keyword !== void 0) {
|
|
554
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
555
|
+
}
|
|
556
556
|
if (size !== void 0) {
|
|
557
557
|
localVarQueryParameter["size"] = size;
|
|
558
558
|
}
|
|
@@ -610,8 +610,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
610
610
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
611
611
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
612
612
|
},
|
|
613
|
-
async listPlugins(sort,
|
|
614
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
613
|
+
async listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
614
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options);
|
|
615
615
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
616
616
|
},
|
|
617
617
|
async upgradePlugin(name, file, options) {
|
|
@@ -626,8 +626,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
626
626
|
installPlugin(file, options) {
|
|
627
627
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
628
628
|
},
|
|
629
|
-
listPlugins(sort,
|
|
630
|
-
return localVarFp.listPlugins(sort,
|
|
629
|
+
listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
630
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
631
631
|
},
|
|
632
632
|
upgradePlugin(name, file, options) {
|
|
633
633
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -639,7 +639,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
639
639
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
640
640
|
}
|
|
641
641
|
listPlugins(requestParameters = {}, options) {
|
|
642
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
642
|
+
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));
|
|
643
643
|
}
|
|
644
644
|
upgradePlugin(requestParameters, options) {
|
|
645
645
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -671,7 +671,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
671
671
|
options: localVarRequestOptions
|
|
672
672
|
};
|
|
673
673
|
},
|
|
674
|
-
listPosts: async (sort,
|
|
674
|
+
listPosts: async (sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
675
675
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
676
676
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
677
677
|
let baseOptions;
|
|
@@ -686,8 +686,8 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
686
686
|
if (sort !== void 0) {
|
|
687
687
|
localVarQueryParameter["sort"] = sort;
|
|
688
688
|
}
|
|
689
|
-
if (
|
|
690
|
-
localVarQueryParameter["
|
|
689
|
+
if (contributor) {
|
|
690
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
691
691
|
}
|
|
692
692
|
if (publishPhase !== void 0) {
|
|
693
693
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
@@ -695,8 +695,11 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
695
695
|
if (category) {
|
|
696
696
|
localVarQueryParameter["category"] = Array.from(category);
|
|
697
697
|
}
|
|
698
|
-
if (
|
|
699
|
-
localVarQueryParameter["
|
|
698
|
+
if (sortOrder !== void 0) {
|
|
699
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
700
|
+
}
|
|
701
|
+
if (tag) {
|
|
702
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
700
703
|
}
|
|
701
704
|
if (keyword !== void 0) {
|
|
702
705
|
localVarQueryParameter["keyword"] = keyword;
|
|
@@ -704,9 +707,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
704
707
|
if (visible !== void 0) {
|
|
705
708
|
localVarQueryParameter["visible"] = visible;
|
|
706
709
|
}
|
|
707
|
-
if (tag) {
|
|
708
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
709
|
-
}
|
|
710
710
|
if (size !== void 0) {
|
|
711
711
|
localVarQueryParameter["size"] = size;
|
|
712
712
|
}
|
|
@@ -816,6 +816,30 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
816
816
|
url: toPathString(localVarUrlObj),
|
|
817
817
|
options: localVarRequestOptions
|
|
818
818
|
};
|
|
819
|
+
},
|
|
820
|
+
updatePostContent: async (name, content, options = {}) => {
|
|
821
|
+
assertParamExists("updatePostContent", "name", name);
|
|
822
|
+
assertParamExists("updatePostContent", "content", content);
|
|
823
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
824
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
825
|
+
let baseOptions;
|
|
826
|
+
if (configuration) {
|
|
827
|
+
baseOptions = configuration.baseOptions;
|
|
828
|
+
}
|
|
829
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
830
|
+
const localVarHeaderParameter = {};
|
|
831
|
+
const localVarQueryParameter = {};
|
|
832
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
833
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
834
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
835
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
836
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
837
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
838
|
+
localVarRequestOptions.data = serializeDataIfNeeded(content, localVarRequestOptions, configuration);
|
|
839
|
+
return {
|
|
840
|
+
url: toPathString(localVarUrlObj),
|
|
841
|
+
options: localVarRequestOptions
|
|
842
|
+
};
|
|
819
843
|
}
|
|
820
844
|
};
|
|
821
845
|
};
|
|
@@ -826,8 +850,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
826
850
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
827
851
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
828
852
|
},
|
|
829
|
-
async listPosts(sort,
|
|
830
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
853
|
+
async listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
854
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
831
855
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
832
856
|
},
|
|
833
857
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -845,6 +869,10 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
845
869
|
async updateDraftPost(name, postRequest, options) {
|
|
846
870
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost(name, postRequest, options);
|
|
847
871
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
872
|
+
},
|
|
873
|
+
async updatePostContent(name, content, options) {
|
|
874
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePostContent(name, content, options);
|
|
875
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
848
876
|
}
|
|
849
877
|
};
|
|
850
878
|
};
|
|
@@ -854,8 +882,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
854
882
|
draftPost(postRequest, options) {
|
|
855
883
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
856
884
|
},
|
|
857
|
-
listPosts(sort,
|
|
858
|
-
return localVarFp.listPosts(sort,
|
|
885
|
+
listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
886
|
+
return localVarFp.listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
859
887
|
},
|
|
860
888
|
publishPost(name, headSnapshot, options) {
|
|
861
889
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -868,6 +896,9 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
868
896
|
},
|
|
869
897
|
updateDraftPost(name, postRequest, options) {
|
|
870
898
|
return localVarFp.updateDraftPost(name, postRequest, options).then((request) => request(axios, basePath));
|
|
899
|
+
},
|
|
900
|
+
updatePostContent(name, content, options) {
|
|
901
|
+
return localVarFp.updatePostContent(name, content, options).then((request) => request(axios, basePath));
|
|
871
902
|
}
|
|
872
903
|
};
|
|
873
904
|
};
|
|
@@ -876,7 +907,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
876
907
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
877
908
|
}
|
|
878
909
|
listPosts(requestParameters = {}, options) {
|
|
879
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
910
|
+
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));
|
|
880
911
|
}
|
|
881
912
|
publishPost(requestParameters, options) {
|
|
882
913
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -890,6 +921,9 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
890
921
|
updateDraftPost(requestParameters, options) {
|
|
891
922
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
892
923
|
}
|
|
924
|
+
updatePostContent(requestParameters, options) {
|
|
925
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updatePostContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
|
|
926
|
+
}
|
|
893
927
|
}
|
|
894
928
|
|
|
895
929
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
@@ -979,7 +1013,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
979
1013
|
options: localVarRequestOptions
|
|
980
1014
|
};
|
|
981
1015
|
},
|
|
982
|
-
listSinglePages: async (sort,
|
|
1016
|
+
listSinglePages: async (sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
983
1017
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
984
1018
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
985
1019
|
let baseOptions;
|
|
@@ -994,14 +1028,14 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
994
1028
|
if (sort !== void 0) {
|
|
995
1029
|
localVarQueryParameter["sort"] = sort;
|
|
996
1030
|
}
|
|
997
|
-
if (
|
|
998
|
-
localVarQueryParameter["
|
|
1031
|
+
if (contributor) {
|
|
1032
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
999
1033
|
}
|
|
1000
1034
|
if (publishPhase !== void 0) {
|
|
1001
1035
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1002
1036
|
}
|
|
1003
|
-
if (
|
|
1004
|
-
localVarQueryParameter["
|
|
1037
|
+
if (sortOrder !== void 0) {
|
|
1038
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1005
1039
|
}
|
|
1006
1040
|
if (keyword !== void 0) {
|
|
1007
1041
|
localVarQueryParameter["keyword"] = keyword;
|
|
@@ -1073,6 +1107,30 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1073
1107
|
url: toPathString(localVarUrlObj),
|
|
1074
1108
|
options: localVarRequestOptions
|
|
1075
1109
|
};
|
|
1110
|
+
},
|
|
1111
|
+
updateSinglePageContent: async (name, content, options = {}) => {
|
|
1112
|
+
assertParamExists("updateSinglePageContent", "name", name);
|
|
1113
|
+
assertParamExists("updateSinglePageContent", "content", content);
|
|
1114
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1115
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1116
|
+
let baseOptions;
|
|
1117
|
+
if (configuration) {
|
|
1118
|
+
baseOptions = configuration.baseOptions;
|
|
1119
|
+
}
|
|
1120
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1121
|
+
const localVarHeaderParameter = {};
|
|
1122
|
+
const localVarQueryParameter = {};
|
|
1123
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1124
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1125
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1126
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1128
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1129
|
+
localVarRequestOptions.data = serializeDataIfNeeded(content, localVarRequestOptions, configuration);
|
|
1130
|
+
return {
|
|
1131
|
+
url: toPathString(localVarUrlObj),
|
|
1132
|
+
options: localVarRequestOptions
|
|
1133
|
+
};
|
|
1076
1134
|
}
|
|
1077
1135
|
};
|
|
1078
1136
|
};
|
|
@@ -1083,8 +1141,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1083
1141
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1084
1142
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1085
1143
|
},
|
|
1086
|
-
async listSinglePages(sort,
|
|
1087
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1144
|
+
async listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
1145
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
1088
1146
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1089
1147
|
},
|
|
1090
1148
|
async publishSinglePage(name, options) {
|
|
@@ -1094,6 +1152,10 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1094
1152
|
async updateDraftSinglePage(name, singlePageRequest, options) {
|
|
1095
1153
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftSinglePage(name, singlePageRequest, options);
|
|
1096
1154
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1155
|
+
},
|
|
1156
|
+
async updateSinglePageContent(name, content, options) {
|
|
1157
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSinglePageContent(name, content, options);
|
|
1158
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1097
1159
|
}
|
|
1098
1160
|
};
|
|
1099
1161
|
};
|
|
@@ -1103,14 +1165,17 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1103
1165
|
draftSinglePage(singlePageRequest, options) {
|
|
1104
1166
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1105
1167
|
},
|
|
1106
|
-
listSinglePages(sort,
|
|
1107
|
-
return localVarFp.listSinglePages(sort,
|
|
1168
|
+
listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
1169
|
+
return localVarFp.listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1108
1170
|
},
|
|
1109
1171
|
publishSinglePage(name, options) {
|
|
1110
1172
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
1111
1173
|
},
|
|
1112
1174
|
updateDraftSinglePage(name, singlePageRequest, options) {
|
|
1113
1175
|
return localVarFp.updateDraftSinglePage(name, singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1176
|
+
},
|
|
1177
|
+
updateSinglePageContent(name, content, options) {
|
|
1178
|
+
return localVarFp.updateSinglePageContent(name, content, options).then((request) => request(axios, basePath));
|
|
1114
1179
|
}
|
|
1115
1180
|
};
|
|
1116
1181
|
};
|
|
@@ -1119,7 +1184,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1119
1184
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1120
1185
|
}
|
|
1121
1186
|
listSinglePages(requestParameters = {}, options) {
|
|
1122
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1187
|
+
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));
|
|
1123
1188
|
}
|
|
1124
1189
|
publishSinglePage(requestParameters, options) {
|
|
1125
1190
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1127,6 +1192,9 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1127
1192
|
updateDraftSinglePage(requestParameters, options) {
|
|
1128
1193
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1129
1194
|
}
|
|
1195
|
+
updateSinglePageContent(requestParameters, options) {
|
|
1196
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateSinglePageContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
|
|
1197
|
+
}
|
|
1130
1198
|
}
|
|
1131
1199
|
|
|
1132
1200
|
const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function(configuration) {
|
|
@@ -1609,12 +1677,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1609
1677
|
if (version !== void 0) {
|
|
1610
1678
|
localVarQueryParameter["version"] = version;
|
|
1611
1679
|
}
|
|
1612
|
-
if (group !== void 0) {
|
|
1613
|
-
localVarQueryParameter["group"] = group;
|
|
1614
|
-
}
|
|
1615
1680
|
if (kind !== void 0) {
|
|
1616
1681
|
localVarQueryParameter["kind"] = kind;
|
|
1617
1682
|
}
|
|
1683
|
+
if (group !== void 0) {
|
|
1684
|
+
localVarQueryParameter["group"] = group;
|
|
1685
|
+
}
|
|
1618
1686
|
if (size !== void 0) {
|
|
1619
1687
|
localVarQueryParameter["size"] = size;
|
|
1620
1688
|
}
|
|
@@ -1715,12 +1783,12 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1715
1783
|
if (highlightPostTag !== void 0) {
|
|
1716
1784
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1717
1785
|
}
|
|
1718
|
-
if (keyword !== void 0) {
|
|
1719
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1720
|
-
}
|
|
1721
1786
|
if (limit !== void 0) {
|
|
1722
1787
|
localVarQueryParameter["limit"] = limit;
|
|
1723
1788
|
}
|
|
1789
|
+
if (keyword !== void 0) {
|
|
1790
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1791
|
+
}
|
|
1724
1792
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1725
1793
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1726
1794
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|