@halo-dev/api-client 0.0.54 → 0.0.55
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 +116 -116
- package/dist/index.d.ts +191 -191
- package/dist/index.mjs +116 -116
- 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, sort, displayName,
|
|
72
|
+
searchAttachments: async (policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
73
73
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
74
74
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
75
75
|
let baseOptions;
|
|
@@ -90,27 +90,27 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
90
90
|
if (displayName !== void 0) {
|
|
91
91
|
localVarQueryParameter["displayName"] = displayName;
|
|
92
92
|
}
|
|
93
|
-
if (group !== void 0) {
|
|
94
|
-
localVarQueryParameter["group"] = group;
|
|
95
|
-
}
|
|
96
93
|
if (ungrouped !== void 0) {
|
|
97
94
|
localVarQueryParameter["ungrouped"] = ungrouped;
|
|
98
95
|
}
|
|
99
96
|
if (uploadedBy !== void 0) {
|
|
100
97
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
101
98
|
}
|
|
99
|
+
if (group !== void 0) {
|
|
100
|
+
localVarQueryParameter["group"] = group;
|
|
101
|
+
}
|
|
102
102
|
if (size !== void 0) {
|
|
103
103
|
localVarQueryParameter["size"] = size;
|
|
104
104
|
}
|
|
105
|
+
if (page !== void 0) {
|
|
106
|
+
localVarQueryParameter["page"] = page;
|
|
107
|
+
}
|
|
105
108
|
if (labelSelector) {
|
|
106
109
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
107
110
|
}
|
|
108
111
|
if (fieldSelector) {
|
|
109
112
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
110
113
|
}
|
|
111
|
-
if (page !== void 0) {
|
|
112
|
-
localVarQueryParameter["page"] = page;
|
|
113
|
-
}
|
|
114
114
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
115
115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
116
116
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -158,8 +158,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
158
158
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
159
159
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
160
160
|
return {
|
|
161
|
-
async searchAttachments(policy, sort, displayName,
|
|
162
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName,
|
|
161
|
+
async searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options) {
|
|
162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options);
|
|
163
163
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
164
|
},
|
|
165
165
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -171,8 +171,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
171
171
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
172
172
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
173
173
|
return {
|
|
174
|
-
searchAttachments(policy, sort, displayName,
|
|
175
|
-
return localVarFp.searchAttachments(policy, sort, displayName,
|
|
174
|
+
searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options) {
|
|
175
|
+
return localVarFp.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
176
176
|
},
|
|
177
177
|
uploadAttachment(file, policyName, groupName, options) {
|
|
178
178
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -181,7 +181,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
181
181
|
};
|
|
182
182
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
183
183
|
searchAttachments(requestParameters = {}, options) {
|
|
184
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.
|
|
184
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.group, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
185
185
|
}
|
|
186
186
|
uploadAttachment(requestParameters, options) {
|
|
187
187
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -237,7 +237,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
237
237
|
options: localVarRequestOptions
|
|
238
238
|
};
|
|
239
239
|
},
|
|
240
|
-
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
240
|
+
listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
241
241
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
242
242
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
243
243
|
let baseOptions;
|
|
@@ -252,6 +252,15 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
252
252
|
if (sort !== void 0) {
|
|
253
253
|
localVarQueryParameter["sort"] = sort;
|
|
254
254
|
}
|
|
255
|
+
if (keyword !== void 0) {
|
|
256
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
257
|
+
}
|
|
258
|
+
if (hidden !== void 0) {
|
|
259
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
260
|
+
}
|
|
261
|
+
if (top !== void 0) {
|
|
262
|
+
localVarQueryParameter["top"] = top;
|
|
263
|
+
}
|
|
255
264
|
if (sortOrder !== void 0) {
|
|
256
265
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
257
266
|
}
|
|
@@ -273,27 +282,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
273
282
|
if (subjectName !== void 0) {
|
|
274
283
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
275
284
|
}
|
|
276
|
-
if (keyword !== void 0) {
|
|
277
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
278
|
-
}
|
|
279
|
-
if (hidden !== void 0) {
|
|
280
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
281
|
-
}
|
|
282
|
-
if (top !== void 0) {
|
|
283
|
-
localVarQueryParameter["top"] = top;
|
|
284
|
-
}
|
|
285
285
|
if (size !== void 0) {
|
|
286
286
|
localVarQueryParameter["size"] = size;
|
|
287
287
|
}
|
|
288
|
+
if (page !== void 0) {
|
|
289
|
+
localVarQueryParameter["page"] = page;
|
|
290
|
+
}
|
|
288
291
|
if (labelSelector) {
|
|
289
292
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
290
293
|
}
|
|
291
294
|
if (fieldSelector) {
|
|
292
295
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
293
296
|
}
|
|
294
|
-
if (page !== void 0) {
|
|
295
|
-
localVarQueryParameter["page"] = page;
|
|
296
|
-
}
|
|
297
297
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
298
298
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
299
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -315,8 +315,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
315
315
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
316
316
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
317
317
|
},
|
|
318
|
-
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
318
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
320
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
321
|
}
|
|
322
322
|
};
|
|
@@ -330,8 +330,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
330
330
|
createReply(name, replyRequest, options) {
|
|
331
331
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
332
332
|
},
|
|
333
|
-
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
334
|
-
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
333
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
334
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
};
|
|
@@ -343,7 +343,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
343
343
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
344
344
|
}
|
|
345
345
|
listComments(requestParameters = {}, options) {
|
|
346
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
346
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
|
|
@@ -538,7 +538,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
538
538
|
options: localVarRequestOptions
|
|
539
539
|
};
|
|
540
540
|
},
|
|
541
|
-
listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
541
|
+
listPlugins: async (sort, keyword, enabled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
542
542
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
543
543
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
544
544
|
let baseOptions;
|
|
@@ -562,15 +562,15 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
562
562
|
if (size !== void 0) {
|
|
563
563
|
localVarQueryParameter["size"] = size;
|
|
564
564
|
}
|
|
565
|
+
if (page !== void 0) {
|
|
566
|
+
localVarQueryParameter["page"] = page;
|
|
567
|
+
}
|
|
565
568
|
if (labelSelector) {
|
|
566
569
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
567
570
|
}
|
|
568
571
|
if (fieldSelector) {
|
|
569
572
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
570
573
|
}
|
|
571
|
-
if (page !== void 0) {
|
|
572
|
-
localVarQueryParameter["page"] = page;
|
|
573
|
-
}
|
|
574
574
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
575
575
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
576
576
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -616,8 +616,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
616
616
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
617
617
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
618
618
|
},
|
|
619
|
-
async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
620
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
619
|
+
async listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
|
|
620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options);
|
|
621
621
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
622
622
|
},
|
|
623
623
|
async upgradePlugin(name, file, options) {
|
|
@@ -632,8 +632,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
632
632
|
installPlugin(file, options) {
|
|
633
633
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
634
634
|
},
|
|
635
|
-
listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
636
|
-
return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector,
|
|
635
|
+
listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
|
|
636
|
+
return localVarFp.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
637
637
|
},
|
|
638
638
|
upgradePlugin(name, file, options) {
|
|
639
639
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -645,7 +645,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
645
645
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
646
646
|
}
|
|
647
647
|
listPlugins(requestParameters = {}, options) {
|
|
648
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.keyword, requestParameters.enabled, requestParameters.size, requestParameters.
|
|
648
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.keyword, requestParameters.enabled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
649
649
|
}
|
|
650
650
|
upgradePlugin(requestParameters, options) {
|
|
651
651
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -677,7 +677,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
677
677
|
options: localVarRequestOptions
|
|
678
678
|
};
|
|
679
679
|
},
|
|
680
|
-
listPosts: async (sort,
|
|
680
|
+
listPosts: async (sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
681
681
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
682
682
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
683
683
|
let baseOptions;
|
|
@@ -692,18 +692,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
692
692
|
if (sort !== void 0) {
|
|
693
693
|
localVarQueryParameter["sort"] = sort;
|
|
694
694
|
}
|
|
695
|
-
if (publishPhase !== void 0) {
|
|
696
|
-
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
697
|
-
}
|
|
698
|
-
if (category) {
|
|
699
|
-
localVarQueryParameter["category"] = Array.from(category);
|
|
700
|
-
}
|
|
701
|
-
if (sortOrder !== void 0) {
|
|
702
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
703
|
-
}
|
|
704
|
-
if (contributor) {
|
|
705
|
-
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
706
|
-
}
|
|
707
695
|
if (keyword !== void 0) {
|
|
708
696
|
localVarQueryParameter["keyword"] = keyword;
|
|
709
697
|
}
|
|
@@ -713,18 +701,30 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
713
701
|
if (tag) {
|
|
714
702
|
localVarQueryParameter["tag"] = Array.from(tag);
|
|
715
703
|
}
|
|
704
|
+
if (sortOrder !== void 0) {
|
|
705
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
706
|
+
}
|
|
707
|
+
if (publishPhase !== void 0) {
|
|
708
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
709
|
+
}
|
|
710
|
+
if (category) {
|
|
711
|
+
localVarQueryParameter["category"] = Array.from(category);
|
|
712
|
+
}
|
|
713
|
+
if (contributor) {
|
|
714
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
715
|
+
}
|
|
716
716
|
if (size !== void 0) {
|
|
717
717
|
localVarQueryParameter["size"] = size;
|
|
718
718
|
}
|
|
719
|
+
if (page !== void 0) {
|
|
720
|
+
localVarQueryParameter["page"] = page;
|
|
721
|
+
}
|
|
719
722
|
if (labelSelector) {
|
|
720
723
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
721
724
|
}
|
|
722
725
|
if (fieldSelector) {
|
|
723
726
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
724
727
|
}
|
|
725
|
-
if (page !== void 0) {
|
|
726
|
-
localVarQueryParameter["page"] = page;
|
|
727
|
-
}
|
|
728
728
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
729
729
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
730
730
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -856,8 +856,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
856
856
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
857
857
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
858
858
|
},
|
|
859
|
-
async listPosts(sort,
|
|
860
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
859
|
+
async listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
860
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options);
|
|
861
861
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
862
862
|
},
|
|
863
863
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -888,8 +888,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
888
888
|
draftPost(postRequest, options) {
|
|
889
889
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
890
890
|
},
|
|
891
|
-
listPosts(sort,
|
|
892
|
-
return localVarFp.listPosts(sort,
|
|
891
|
+
listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
892
|
+
return localVarFp.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
893
893
|
},
|
|
894
894
|
publishPost(name, headSnapshot, options) {
|
|
895
895
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -913,7 +913,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
913
913
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
914
914
|
}
|
|
915
915
|
listPosts(requestParameters = {}, options) {
|
|
916
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
916
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
917
917
|
}
|
|
918
918
|
publishPost(requestParameters, options) {
|
|
919
919
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -934,7 +934,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
934
934
|
|
|
935
935
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
936
936
|
return {
|
|
937
|
-
listReplies: async (commentName, size, labelSelector, fieldSelector,
|
|
937
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
938
938
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
939
939
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
940
940
|
let baseOptions;
|
|
@@ -952,15 +952,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
952
952
|
if (size !== void 0) {
|
|
953
953
|
localVarQueryParameter["size"] = size;
|
|
954
954
|
}
|
|
955
|
+
if (page !== void 0) {
|
|
956
|
+
localVarQueryParameter["page"] = page;
|
|
957
|
+
}
|
|
955
958
|
if (labelSelector) {
|
|
956
959
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
957
960
|
}
|
|
958
961
|
if (fieldSelector) {
|
|
959
962
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
960
963
|
}
|
|
961
|
-
if (page !== void 0) {
|
|
962
|
-
localVarQueryParameter["page"] = page;
|
|
963
|
-
}
|
|
964
964
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
965
965
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
966
966
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -974,8 +974,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
974
974
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
975
975
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
976
976
|
return {
|
|
977
|
-
async listReplies(commentName, size, labelSelector, fieldSelector,
|
|
978
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
977
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
978
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
|
|
979
979
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
980
980
|
}
|
|
981
981
|
};
|
|
@@ -983,14 +983,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
983
983
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
984
984
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
985
985
|
return {
|
|
986
|
-
listReplies(commentName, size, labelSelector, fieldSelector,
|
|
987
|
-
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
986
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
987
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
988
988
|
}
|
|
989
989
|
};
|
|
990
990
|
};
|
|
991
991
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
992
992
|
listReplies(requestParameters = {}, options) {
|
|
993
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
993
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
996
|
|
|
@@ -1019,7 +1019,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1019
1019
|
options: localVarRequestOptions
|
|
1020
1020
|
};
|
|
1021
1021
|
},
|
|
1022
|
-
listSinglePages: async (sort,
|
|
1022
|
+
listSinglePages: async (sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1023
1023
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1024
1024
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1025
1025
|
let baseOptions;
|
|
@@ -1034,33 +1034,33 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1034
1034
|
if (sort !== void 0) {
|
|
1035
1035
|
localVarQueryParameter["sort"] = sort;
|
|
1036
1036
|
}
|
|
1037
|
-
if (
|
|
1038
|
-
localVarQueryParameter["
|
|
1037
|
+
if (keyword !== void 0) {
|
|
1038
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1039
|
+
}
|
|
1040
|
+
if (visible !== void 0) {
|
|
1041
|
+
localVarQueryParameter["visible"] = visible;
|
|
1039
1042
|
}
|
|
1040
1043
|
if (sortOrder !== void 0) {
|
|
1041
1044
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1042
1045
|
}
|
|
1046
|
+
if (publishPhase !== void 0) {
|
|
1047
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1048
|
+
}
|
|
1043
1049
|
if (contributor) {
|
|
1044
1050
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1045
1051
|
}
|
|
1046
|
-
if (keyword !== void 0) {
|
|
1047
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1048
|
-
}
|
|
1049
|
-
if (visible !== void 0) {
|
|
1050
|
-
localVarQueryParameter["visible"] = visible;
|
|
1051
|
-
}
|
|
1052
1052
|
if (size !== void 0) {
|
|
1053
1053
|
localVarQueryParameter["size"] = size;
|
|
1054
1054
|
}
|
|
1055
|
+
if (page !== void 0) {
|
|
1056
|
+
localVarQueryParameter["page"] = page;
|
|
1057
|
+
}
|
|
1055
1058
|
if (labelSelector) {
|
|
1056
1059
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1057
1060
|
}
|
|
1058
1061
|
if (fieldSelector) {
|
|
1059
1062
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1060
1063
|
}
|
|
1061
|
-
if (page !== void 0) {
|
|
1062
|
-
localVarQueryParameter["page"] = page;
|
|
1063
|
-
}
|
|
1064
1064
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1065
1065
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1066
1066
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1147,8 +1147,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1147
1147
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1148
1148
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1149
1149
|
},
|
|
1150
|
-
async listSinglePages(sort,
|
|
1151
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1150
|
+
async listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
1151
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options);
|
|
1152
1152
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1153
1153
|
},
|
|
1154
1154
|
async publishSinglePage(name, options) {
|
|
@@ -1171,8 +1171,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1171
1171
|
draftSinglePage(singlePageRequest, options) {
|
|
1172
1172
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1173
1173
|
},
|
|
1174
|
-
listSinglePages(sort,
|
|
1175
|
-
return localVarFp.listSinglePages(sort,
|
|
1174
|
+
listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
1175
|
+
return localVarFp.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1176
1176
|
},
|
|
1177
1177
|
publishSinglePage(name, options) {
|
|
1178
1178
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1190,7 +1190,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1190
1190
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1191
1191
|
}
|
|
1192
1192
|
listSinglePages(requestParameters = {}, options) {
|
|
1193
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1193
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.contributor, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1194
1194
|
}
|
|
1195
1195
|
publishSinglePage(requestParameters, options) {
|
|
1196
1196
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1279,7 +1279,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1279
1279
|
options: localVarRequestOptions
|
|
1280
1280
|
};
|
|
1281
1281
|
},
|
|
1282
|
-
listThemes: async (uninstalled, size, labelSelector, fieldSelector,
|
|
1282
|
+
listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1283
1283
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1284
1284
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1285
1285
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1298,15 +1298,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1298
1298
|
if (size !== void 0) {
|
|
1299
1299
|
localVarQueryParameter["size"] = size;
|
|
1300
1300
|
}
|
|
1301
|
+
if (page !== void 0) {
|
|
1302
|
+
localVarQueryParameter["page"] = page;
|
|
1303
|
+
}
|
|
1301
1304
|
if (labelSelector) {
|
|
1302
1305
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1303
1306
|
}
|
|
1304
1307
|
if (fieldSelector) {
|
|
1305
1308
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1306
1309
|
}
|
|
1307
|
-
if (page !== void 0) {
|
|
1308
|
-
localVarQueryParameter["page"] = page;
|
|
1309
|
-
}
|
|
1310
1310
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1311
1311
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1312
1312
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1315,9 +1315,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1315
1315
|
options: localVarRequestOptions
|
|
1316
1316
|
};
|
|
1317
1317
|
},
|
|
1318
|
-
|
|
1319
|
-
assertParamExists("
|
|
1320
|
-
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload
|
|
1318
|
+
reload: async (name, options = {}) => {
|
|
1319
|
+
assertParamExists("reload", "name", name);
|
|
1320
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1321
1321
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1322
1322
|
let baseOptions;
|
|
1323
1323
|
if (configuration) {
|
|
@@ -1373,12 +1373,12 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1373
1373
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1374
1374
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1375
1375
|
},
|
|
1376
|
-
async listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1377
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1376
|
+
async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1377
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
|
|
1378
1378
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1379
1379
|
},
|
|
1380
|
-
async
|
|
1381
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1380
|
+
async reload(name, options) {
|
|
1381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reload(name, options);
|
|
1382
1382
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1383
1383
|
},
|
|
1384
1384
|
async upgradeTheme(name, file, options) {
|
|
@@ -1393,11 +1393,11 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1393
1393
|
installTheme(file, options) {
|
|
1394
1394
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1395
1395
|
},
|
|
1396
|
-
listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1397
|
-
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1396
|
+
listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1397
|
+
return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1398
1398
|
},
|
|
1399
|
-
|
|
1400
|
-
return localVarFp.
|
|
1399
|
+
reload(name, options) {
|
|
1400
|
+
return localVarFp.reload(name, options).then((request) => request(axios, basePath));
|
|
1401
1401
|
},
|
|
1402
1402
|
upgradeTheme(name, file, options) {
|
|
1403
1403
|
return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -1409,10 +1409,10 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1409
1409
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1410
1410
|
}
|
|
1411
1411
|
listThemes(requestParameters, options) {
|
|
1412
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1412
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1413
1413
|
}
|
|
1414
|
-
|
|
1415
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).
|
|
1414
|
+
reload(requestParameters, options) {
|
|
1415
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1416
1416
|
}
|
|
1417
1417
|
upgradeTheme(requestParameters, options) {
|
|
1418
1418
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1770,7 +1770,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1770
1770
|
|
|
1771
1771
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1772
1772
|
return {
|
|
1773
|
-
searchPost: async (keyword, highlightPreTag, highlightPostTag,
|
|
1773
|
+
searchPost: async (keyword, limit, highlightPreTag, highlightPostTag, options = {}) => {
|
|
1774
1774
|
assertParamExists("searchPost", "keyword", keyword);
|
|
1775
1775
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
1776
1776
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1783,18 +1783,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1783
1783
|
const localVarQueryParameter = {};
|
|
1784
1784
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1785
1785
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1786
|
-
if (highlightPreTag !== void 0) {
|
|
1787
|
-
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1788
|
-
}
|
|
1789
|
-
if (highlightPostTag !== void 0) {
|
|
1790
|
-
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1791
|
-
}
|
|
1792
1786
|
if (keyword !== void 0) {
|
|
1793
1787
|
localVarQueryParameter["keyword"] = keyword;
|
|
1794
1788
|
}
|
|
1795
1789
|
if (limit !== void 0) {
|
|
1796
1790
|
localVarQueryParameter["limit"] = limit;
|
|
1797
1791
|
}
|
|
1792
|
+
if (highlightPreTag !== void 0) {
|
|
1793
|
+
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1794
|
+
}
|
|
1795
|
+
if (highlightPostTag !== void 0) {
|
|
1796
|
+
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1797
|
+
}
|
|
1798
1798
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1799
1799
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1800
1800
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1808,8 +1808,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1808
1808
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
1809
1809
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
1810
1810
|
return {
|
|
1811
|
-
async searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1812
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1811
|
+
async searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
1812
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options);
|
|
1813
1813
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1814
1814
|
}
|
|
1815
1815
|
};
|
|
@@ -1817,14 +1817,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
1817
1817
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
1818
1818
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
1819
1819
|
return {
|
|
1820
|
-
searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1821
|
-
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1820
|
+
searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
1821
|
+
return localVarFp.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options).then((request) => request(axios, basePath));
|
|
1822
1822
|
}
|
|
1823
1823
|
};
|
|
1824
1824
|
};
|
|
1825
1825
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
1826
1826
|
searchPost(requestParameters, options) {
|
|
1827
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
1827
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(this.axios, this.basePath));
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
1830
|
|