@halo-dev/api-client 0.0.47 → 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 +167 -102
- package/dist/index.d.ts +273 -210
- package/dist/index.mjs +167 -102
- 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,
|
|
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;
|
|
@@ -84,9 +84,6 @@ 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
|
-
}
|
|
90
87
|
if (displayName !== void 0) {
|
|
91
88
|
localVarQueryParameter["displayName"] = displayName;
|
|
92
89
|
}
|
|
@@ -99,15 +96,15 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
99
96
|
if (size !== void 0) {
|
|
100
97
|
localVarQueryParameter["size"] = size;
|
|
101
98
|
}
|
|
102
|
-
if (page !== void 0) {
|
|
103
|
-
localVarQueryParameter["page"] = page;
|
|
104
|
-
}
|
|
105
99
|
if (labelSelector) {
|
|
106
100
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
107
101
|
}
|
|
108
102
|
if (fieldSelector) {
|
|
109
103
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
110
104
|
}
|
|
105
|
+
if (page !== void 0) {
|
|
106
|
+
localVarQueryParameter["page"] = page;
|
|
107
|
+
}
|
|
111
108
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
112
109
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
113
110
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -155,8 +152,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
155
152
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
156
153
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
157
154
|
return {
|
|
158
|
-
async searchAttachments(policy,
|
|
159
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy,
|
|
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);
|
|
160
157
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
161
158
|
},
|
|
162
159
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -168,8 +165,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
168
165
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
169
166
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
170
167
|
return {
|
|
171
|
-
searchAttachments(policy,
|
|
172
|
-
return localVarFp.searchAttachments(policy,
|
|
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));
|
|
173
170
|
},
|
|
174
171
|
uploadAttachment(file, policyName, groupName, options) {
|
|
175
172
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -178,7 +175,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
178
175
|
};
|
|
179
176
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
180
177
|
searchAttachments(requestParameters = {}, options) {
|
|
181
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, 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));
|
|
182
179
|
}
|
|
183
180
|
uploadAttachment(requestParameters, options) {
|
|
184
181
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -234,7 +231,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
234
231
|
options: localVarRequestOptions
|
|
235
232
|
};
|
|
236
233
|
},
|
|
237
|
-
listComments: async (sort,
|
|
234
|
+
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
238
235
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
239
236
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
240
237
|
let baseOptions;
|
|
@@ -249,15 +246,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
249
246
|
if (sort !== void 0) {
|
|
250
247
|
localVarQueryParameter["sort"] = sort;
|
|
251
248
|
}
|
|
252
|
-
if (keyword !== void 0) {
|
|
253
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
254
|
-
}
|
|
255
|
-
if (hidden !== void 0) {
|
|
256
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
257
|
-
}
|
|
258
|
-
if (top !== void 0) {
|
|
259
|
-
localVarQueryParameter["top"] = top;
|
|
260
|
-
}
|
|
261
249
|
if (sortOrder !== void 0) {
|
|
262
250
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
263
251
|
}
|
|
@@ -279,18 +267,27 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
279
267
|
if (subjectName !== void 0) {
|
|
280
268
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
281
269
|
}
|
|
270
|
+
if (keyword !== void 0) {
|
|
271
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
272
|
+
}
|
|
273
|
+
if (hidden !== void 0) {
|
|
274
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
275
|
+
}
|
|
276
|
+
if (top !== void 0) {
|
|
277
|
+
localVarQueryParameter["top"] = top;
|
|
278
|
+
}
|
|
282
279
|
if (size !== void 0) {
|
|
283
280
|
localVarQueryParameter["size"] = size;
|
|
284
281
|
}
|
|
285
|
-
if (page !== void 0) {
|
|
286
|
-
localVarQueryParameter["page"] = page;
|
|
287
|
-
}
|
|
288
282
|
if (labelSelector) {
|
|
289
283
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
290
284
|
}
|
|
291
285
|
if (fieldSelector) {
|
|
292
286
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
293
287
|
}
|
|
288
|
+
if (page !== void 0) {
|
|
289
|
+
localVarQueryParameter["page"] = page;
|
|
290
|
+
}
|
|
294
291
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
295
292
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
293
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -312,8 +309,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
312
309
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
313
310
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
314
311
|
},
|
|
315
|
-
async listComments(sort,
|
|
316
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort,
|
|
312
|
+
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
313
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
|
|
317
314
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
318
315
|
}
|
|
319
316
|
};
|
|
@@ -327,8 +324,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
327
324
|
createReply(name, replyRequest, options) {
|
|
328
325
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
329
326
|
},
|
|
330
|
-
listComments(sort,
|
|
331
|
-
return localVarFp.listComments(sort,
|
|
327
|
+
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
328
|
+
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
332
329
|
}
|
|
333
330
|
};
|
|
334
331
|
};
|
|
@@ -340,7 +337,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
340
337
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
341
338
|
}
|
|
342
339
|
listComments(requestParameters = {}, options) {
|
|
343
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
340
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
344
341
|
}
|
|
345
342
|
}
|
|
346
343
|
|
|
@@ -535,7 +532,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
535
532
|
options: localVarRequestOptions
|
|
536
533
|
};
|
|
537
534
|
},
|
|
538
|
-
listPlugins: async (sort, enabled, keyword, size,
|
|
535
|
+
listPlugins: async (sort, enabled, keyword, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
539
536
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
540
537
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
541
538
|
let baseOptions;
|
|
@@ -559,15 +556,15 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
559
556
|
if (size !== void 0) {
|
|
560
557
|
localVarQueryParameter["size"] = size;
|
|
561
558
|
}
|
|
562
|
-
if (page !== void 0) {
|
|
563
|
-
localVarQueryParameter["page"] = page;
|
|
564
|
-
}
|
|
565
559
|
if (labelSelector) {
|
|
566
560
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
567
561
|
}
|
|
568
562
|
if (fieldSelector) {
|
|
569
563
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
570
564
|
}
|
|
565
|
+
if (page !== void 0) {
|
|
566
|
+
localVarQueryParameter["page"] = page;
|
|
567
|
+
}
|
|
571
568
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
572
569
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
573
570
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -613,8 +610,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
613
610
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
614
611
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
615
612
|
},
|
|
616
|
-
async listPlugins(sort, enabled, keyword, size,
|
|
617
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size,
|
|
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);
|
|
618
615
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
619
616
|
},
|
|
620
617
|
async upgradePlugin(name, file, options) {
|
|
@@ -629,8 +626,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
629
626
|
installPlugin(file, options) {
|
|
630
627
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
631
628
|
},
|
|
632
|
-
listPlugins(sort, enabled, keyword, size,
|
|
633
|
-
return localVarFp.listPlugins(sort, enabled, keyword, size,
|
|
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));
|
|
634
631
|
},
|
|
635
632
|
upgradePlugin(name, file, options) {
|
|
636
633
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -642,7 +639,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
642
639
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
643
640
|
}
|
|
644
641
|
listPlugins(requestParameters = {}, options) {
|
|
645
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, 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));
|
|
646
643
|
}
|
|
647
644
|
upgradePlugin(requestParameters, options) {
|
|
648
645
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -674,7 +671,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
674
671
|
options: localVarRequestOptions
|
|
675
672
|
};
|
|
676
673
|
},
|
|
677
|
-
listPosts: async (sort,
|
|
674
|
+
listPosts: async (sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
678
675
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
679
676
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
680
677
|
let baseOptions;
|
|
@@ -689,15 +686,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
689
686
|
if (sort !== void 0) {
|
|
690
687
|
localVarQueryParameter["sort"] = sort;
|
|
691
688
|
}
|
|
692
|
-
if (tag) {
|
|
693
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
694
|
-
}
|
|
695
|
-
if (keyword !== void 0) {
|
|
696
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
697
|
-
}
|
|
698
|
-
if (visible !== void 0) {
|
|
699
|
-
localVarQueryParameter["visible"] = visible;
|
|
700
|
-
}
|
|
701
689
|
if (contributor) {
|
|
702
690
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
703
691
|
}
|
|
@@ -710,18 +698,27 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
710
698
|
if (sortOrder !== void 0) {
|
|
711
699
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
712
700
|
}
|
|
701
|
+
if (tag) {
|
|
702
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
703
|
+
}
|
|
704
|
+
if (keyword !== void 0) {
|
|
705
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
706
|
+
}
|
|
707
|
+
if (visible !== void 0) {
|
|
708
|
+
localVarQueryParameter["visible"] = visible;
|
|
709
|
+
}
|
|
713
710
|
if (size !== void 0) {
|
|
714
711
|
localVarQueryParameter["size"] = size;
|
|
715
712
|
}
|
|
716
|
-
if (page !== void 0) {
|
|
717
|
-
localVarQueryParameter["page"] = page;
|
|
718
|
-
}
|
|
719
713
|
if (labelSelector) {
|
|
720
714
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
721
715
|
}
|
|
722
716
|
if (fieldSelector) {
|
|
723
717
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
724
718
|
}
|
|
719
|
+
if (page !== void 0) {
|
|
720
|
+
localVarQueryParameter["page"] = page;
|
|
721
|
+
}
|
|
725
722
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
726
723
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
727
724
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -819,6 +816,30 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
819
816
|
url: toPathString(localVarUrlObj),
|
|
820
817
|
options: localVarRequestOptions
|
|
821
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
|
+
};
|
|
822
843
|
}
|
|
823
844
|
};
|
|
824
845
|
};
|
|
@@ -829,8 +850,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
829
850
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
830
851
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
831
852
|
},
|
|
832
|
-
async listPosts(sort,
|
|
833
|
-
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);
|
|
834
855
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
835
856
|
},
|
|
836
857
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -848,6 +869,10 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
848
869
|
async updateDraftPost(name, postRequest, options) {
|
|
849
870
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost(name, postRequest, options);
|
|
850
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);
|
|
851
876
|
}
|
|
852
877
|
};
|
|
853
878
|
};
|
|
@@ -857,8 +882,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
857
882
|
draftPost(postRequest, options) {
|
|
858
883
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
859
884
|
},
|
|
860
|
-
listPosts(sort,
|
|
861
|
-
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));
|
|
862
887
|
},
|
|
863
888
|
publishPost(name, headSnapshot, options) {
|
|
864
889
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -871,6 +896,9 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
871
896
|
},
|
|
872
897
|
updateDraftPost(name, postRequest, options) {
|
|
873
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));
|
|
874
902
|
}
|
|
875
903
|
};
|
|
876
904
|
};
|
|
@@ -879,7 +907,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
879
907
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
880
908
|
}
|
|
881
909
|
listPosts(requestParameters = {}, options) {
|
|
882
|
-
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));
|
|
883
911
|
}
|
|
884
912
|
publishPost(requestParameters, options) {
|
|
885
913
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -893,11 +921,14 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
893
921
|
updateDraftPost(requestParameters, options) {
|
|
894
922
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
895
923
|
}
|
|
924
|
+
updatePostContent(requestParameters, options) {
|
|
925
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updatePostContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
|
|
926
|
+
}
|
|
896
927
|
}
|
|
897
928
|
|
|
898
929
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
899
930
|
return {
|
|
900
|
-
listReplies: async (commentName, size,
|
|
931
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
901
932
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
902
933
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
903
934
|
let baseOptions;
|
|
@@ -915,15 +946,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
915
946
|
if (size !== void 0) {
|
|
916
947
|
localVarQueryParameter["size"] = size;
|
|
917
948
|
}
|
|
918
|
-
if (page !== void 0) {
|
|
919
|
-
localVarQueryParameter["page"] = page;
|
|
920
|
-
}
|
|
921
949
|
if (labelSelector) {
|
|
922
950
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
923
951
|
}
|
|
924
952
|
if (fieldSelector) {
|
|
925
953
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
926
954
|
}
|
|
955
|
+
if (page !== void 0) {
|
|
956
|
+
localVarQueryParameter["page"] = page;
|
|
957
|
+
}
|
|
927
958
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
928
959
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
929
960
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -937,8 +968,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
937
968
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
938
969
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
939
970
|
return {
|
|
940
|
-
async listReplies(commentName, size,
|
|
941
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size,
|
|
971
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
972
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
942
973
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
943
974
|
}
|
|
944
975
|
};
|
|
@@ -946,14 +977,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
946
977
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
947
978
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
948
979
|
return {
|
|
949
|
-
listReplies(commentName, size,
|
|
950
|
-
return localVarFp.listReplies(commentName, size,
|
|
980
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
981
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
951
982
|
}
|
|
952
983
|
};
|
|
953
984
|
};
|
|
954
985
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
955
986
|
listReplies(requestParameters = {}, options) {
|
|
956
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
987
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
957
988
|
}
|
|
958
989
|
}
|
|
959
990
|
|
|
@@ -982,7 +1013,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
982
1013
|
options: localVarRequestOptions
|
|
983
1014
|
};
|
|
984
1015
|
},
|
|
985
|
-
listSinglePages: async (sort,
|
|
1016
|
+
listSinglePages: async (sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
986
1017
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
987
1018
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
988
1019
|
let baseOptions;
|
|
@@ -997,12 +1028,6 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
997
1028
|
if (sort !== void 0) {
|
|
998
1029
|
localVarQueryParameter["sort"] = sort;
|
|
999
1030
|
}
|
|
1000
|
-
if (keyword !== void 0) {
|
|
1001
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1002
|
-
}
|
|
1003
|
-
if (visible !== void 0) {
|
|
1004
|
-
localVarQueryParameter["visible"] = visible;
|
|
1005
|
-
}
|
|
1006
1031
|
if (contributor) {
|
|
1007
1032
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1008
1033
|
}
|
|
@@ -1012,18 +1037,24 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1012
1037
|
if (sortOrder !== void 0) {
|
|
1013
1038
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1014
1039
|
}
|
|
1040
|
+
if (keyword !== void 0) {
|
|
1041
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1042
|
+
}
|
|
1043
|
+
if (visible !== void 0) {
|
|
1044
|
+
localVarQueryParameter["visible"] = visible;
|
|
1045
|
+
}
|
|
1015
1046
|
if (size !== void 0) {
|
|
1016
1047
|
localVarQueryParameter["size"] = size;
|
|
1017
1048
|
}
|
|
1018
|
-
if (page !== void 0) {
|
|
1019
|
-
localVarQueryParameter["page"] = page;
|
|
1020
|
-
}
|
|
1021
1049
|
if (labelSelector) {
|
|
1022
1050
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1023
1051
|
}
|
|
1024
1052
|
if (fieldSelector) {
|
|
1025
1053
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1026
1054
|
}
|
|
1055
|
+
if (page !== void 0) {
|
|
1056
|
+
localVarQueryParameter["page"] = page;
|
|
1057
|
+
}
|
|
1027
1058
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1028
1059
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1029
1060
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1076,6 +1107,30 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1076
1107
|
url: toPathString(localVarUrlObj),
|
|
1077
1108
|
options: localVarRequestOptions
|
|
1078
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
|
+
};
|
|
1079
1134
|
}
|
|
1080
1135
|
};
|
|
1081
1136
|
};
|
|
@@ -1086,8 +1141,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1086
1141
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1087
1142
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1088
1143
|
},
|
|
1089
|
-
async listSinglePages(sort,
|
|
1090
|
-
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);
|
|
1091
1146
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1092
1147
|
},
|
|
1093
1148
|
async publishSinglePage(name, options) {
|
|
@@ -1097,6 +1152,10 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1097
1152
|
async updateDraftSinglePage(name, singlePageRequest, options) {
|
|
1098
1153
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftSinglePage(name, singlePageRequest, options);
|
|
1099
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);
|
|
1100
1159
|
}
|
|
1101
1160
|
};
|
|
1102
1161
|
};
|
|
@@ -1106,14 +1165,17 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1106
1165
|
draftSinglePage(singlePageRequest, options) {
|
|
1107
1166
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1108
1167
|
},
|
|
1109
|
-
listSinglePages(sort,
|
|
1110
|
-
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));
|
|
1111
1170
|
},
|
|
1112
1171
|
publishSinglePage(name, options) {
|
|
1113
1172
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
1114
1173
|
},
|
|
1115
1174
|
updateDraftSinglePage(name, singlePageRequest, options) {
|
|
1116
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));
|
|
1117
1179
|
}
|
|
1118
1180
|
};
|
|
1119
1181
|
};
|
|
@@ -1122,7 +1184,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1122
1184
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1123
1185
|
}
|
|
1124
1186
|
listSinglePages(requestParameters = {}, options) {
|
|
1125
|
-
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));
|
|
1126
1188
|
}
|
|
1127
1189
|
publishSinglePage(requestParameters, options) {
|
|
1128
1190
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1130,6 +1192,9 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1130
1192
|
updateDraftSinglePage(requestParameters, options) {
|
|
1131
1193
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1132
1194
|
}
|
|
1195
|
+
updateSinglePageContent(requestParameters, options) {
|
|
1196
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateSinglePageContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
|
|
1197
|
+
}
|
|
1133
1198
|
}
|
|
1134
1199
|
|
|
1135
1200
|
const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function(configuration) {
|
|
@@ -1208,7 +1273,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1208
1273
|
options: localVarRequestOptions
|
|
1209
1274
|
};
|
|
1210
1275
|
},
|
|
1211
|
-
listThemes: async (uninstalled, size,
|
|
1276
|
+
listThemes: async (uninstalled, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
1212
1277
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1213
1278
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1214
1279
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1227,15 +1292,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1227
1292
|
if (size !== void 0) {
|
|
1228
1293
|
localVarQueryParameter["size"] = size;
|
|
1229
1294
|
}
|
|
1230
|
-
if (page !== void 0) {
|
|
1231
|
-
localVarQueryParameter["page"] = page;
|
|
1232
|
-
}
|
|
1233
1295
|
if (labelSelector) {
|
|
1234
1296
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1235
1297
|
}
|
|
1236
1298
|
if (fieldSelector) {
|
|
1237
1299
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1238
1300
|
}
|
|
1301
|
+
if (page !== void 0) {
|
|
1302
|
+
localVarQueryParameter["page"] = page;
|
|
1303
|
+
}
|
|
1239
1304
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1240
1305
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1241
1306
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1302,8 +1367,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1302
1367
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1303
1368
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1304
1369
|
},
|
|
1305
|
-
async listThemes(uninstalled, size,
|
|
1306
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size,
|
|
1370
|
+
async listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
|
|
1371
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options);
|
|
1307
1372
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1308
1373
|
},
|
|
1309
1374
|
async reloadThemeSetting(name, options) {
|
|
@@ -1322,8 +1387,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1322
1387
|
installTheme(file, options) {
|
|
1323
1388
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1324
1389
|
},
|
|
1325
|
-
listThemes(uninstalled, size,
|
|
1326
|
-
return localVarFp.listThemes(uninstalled, size,
|
|
1390
|
+
listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
|
|
1391
|
+
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1327
1392
|
},
|
|
1328
1393
|
reloadThemeSetting(name, options) {
|
|
1329
1394
|
return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
|
|
@@ -1338,7 +1403,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1338
1403
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1339
1404
|
}
|
|
1340
1405
|
listThemes(requestParameters, options) {
|
|
1341
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1406
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1342
1407
|
}
|
|
1343
1408
|
reloadThemeSetting(requestParameters, options) {
|
|
1344
1409
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1699,7 +1764,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1699
1764
|
|
|
1700
1765
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1701
1766
|
return {
|
|
1702
|
-
searchPost: async (keyword,
|
|
1767
|
+
searchPost: async (keyword, highlightPreTag, highlightPostTag, limit, options = {}) => {
|
|
1703
1768
|
assertParamExists("searchPost", "keyword", keyword);
|
|
1704
1769
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
1705
1770
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1712,18 +1777,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1712
1777
|
const localVarQueryParameter = {};
|
|
1713
1778
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1714
1779
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1715
|
-
if (limit !== void 0) {
|
|
1716
|
-
localVarQueryParameter["limit"] = limit;
|
|
1717
|
-
}
|
|
1718
|
-
if (keyword !== void 0) {
|
|
1719
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1720
|
-
}
|
|
1721
1780
|
if (highlightPreTag !== void 0) {
|
|
1722
1781
|
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1723
1782
|
}
|
|
1724
1783
|
if (highlightPostTag !== void 0) {
|
|
1725
1784
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1726
1785
|
}
|
|
1786
|
+
if (limit !== void 0) {
|
|
1787
|
+
localVarQueryParameter["limit"] = limit;
|
|
1788
|
+
}
|
|
1789
|
+
if (keyword !== void 0) {
|
|
1790
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1791
|
+
}
|
|
1727
1792
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1728
1793
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1729
1794
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1737,8 +1802,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1737
1802
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
1738
1803
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
1739
1804
|
return {
|
|
1740
|
-
async searchPost(keyword,
|
|
1741
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword,
|
|
1805
|
+
async searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
|
|
1806
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options);
|
|
1742
1807
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1743
1808
|
}
|
|
1744
1809
|
};
|
|
@@ -1746,14 +1811,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
1746
1811
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
1747
1812
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
1748
1813
|
return {
|
|
1749
|
-
searchPost(keyword,
|
|
1750
|
-
return localVarFp.searchPost(keyword,
|
|
1814
|
+
searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
|
|
1815
|
+
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options).then((request) => request(axios, basePath));
|
|
1751
1816
|
}
|
|
1752
1817
|
};
|
|
1753
1818
|
};
|
|
1754
1819
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
1755
1820
|
searchPost(requestParameters, options) {
|
|
1756
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
1821
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.highlightPreTag, requestParameters.highlightPostTag, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
1757
1822
|
}
|
|
1758
1823
|
}
|
|
1759
1824
|
|