@halo-dev/api-client 0.0.46 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +116 -113
- package/dist/index.d.ts +201 -192
- package/dist/index.mjs +116 -113
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -77,7 +77,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
77
77
|
|
|
78
78
|
const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
|
|
79
79
|
return {
|
|
80
|
-
searchAttachments: async (policy,
|
|
80
|
+
searchAttachments: async (policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
81
81
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
82
82
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
83
83
|
let baseOptions;
|
|
@@ -92,27 +92,30 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
92
92
|
if (policy !== void 0) {
|
|
93
93
|
localVarQueryParameter["policy"] = policy;
|
|
94
94
|
}
|
|
95
|
+
if (sort) {
|
|
96
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
97
|
+
}
|
|
95
98
|
if (displayName !== void 0) {
|
|
96
99
|
localVarQueryParameter["displayName"] = displayName;
|
|
97
100
|
}
|
|
98
|
-
if (uploadedBy !== void 0) {
|
|
99
|
-
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
100
|
-
}
|
|
101
101
|
if (group !== void 0) {
|
|
102
102
|
localVarQueryParameter["group"] = group;
|
|
103
103
|
}
|
|
104
|
+
if (uploadedBy !== void 0) {
|
|
105
|
+
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
106
|
+
}
|
|
104
107
|
if (size !== void 0) {
|
|
105
108
|
localVarQueryParameter["size"] = size;
|
|
106
109
|
}
|
|
110
|
+
if (page !== void 0) {
|
|
111
|
+
localVarQueryParameter["page"] = page;
|
|
112
|
+
}
|
|
107
113
|
if (labelSelector) {
|
|
108
114
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
109
115
|
}
|
|
110
116
|
if (fieldSelector) {
|
|
111
117
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
112
118
|
}
|
|
113
|
-
if (page !== void 0) {
|
|
114
|
-
localVarQueryParameter["page"] = page;
|
|
115
|
-
}
|
|
116
119
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
117
120
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
118
121
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -160,8 +163,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
160
163
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
161
164
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
162
165
|
return {
|
|
163
|
-
async searchAttachments(policy,
|
|
164
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy,
|
|
166
|
+
async searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
167
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
165
168
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
166
169
|
},
|
|
167
170
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -173,8 +176,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
173
176
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
174
177
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
175
178
|
return {
|
|
176
|
-
searchAttachments(policy,
|
|
177
|
-
return localVarFp.searchAttachments(policy,
|
|
179
|
+
searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
180
|
+
return localVarFp.searchAttachments(policy, sort, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
178
181
|
},
|
|
179
182
|
uploadAttachment(file, policyName, groupName, options) {
|
|
180
183
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -183,7 +186,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
183
186
|
};
|
|
184
187
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
185
188
|
searchAttachments(requestParameters = {}, options) {
|
|
186
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.
|
|
189
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
187
190
|
}
|
|
188
191
|
uploadAttachment(requestParameters, options) {
|
|
189
192
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -239,7 +242,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
239
242
|
options: localVarRequestOptions
|
|
240
243
|
};
|
|
241
244
|
},
|
|
242
|
-
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
245
|
+
listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
243
246
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
244
247
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
245
248
|
let baseOptions;
|
|
@@ -254,6 +257,15 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
254
257
|
if (sort !== void 0) {
|
|
255
258
|
localVarQueryParameter["sort"] = sort;
|
|
256
259
|
}
|
|
260
|
+
if (keyword !== void 0) {
|
|
261
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
262
|
+
}
|
|
263
|
+
if (hidden !== void 0) {
|
|
264
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
265
|
+
}
|
|
266
|
+
if (top !== void 0) {
|
|
267
|
+
localVarQueryParameter["top"] = top;
|
|
268
|
+
}
|
|
257
269
|
if (sortOrder !== void 0) {
|
|
258
270
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
259
271
|
}
|
|
@@ -275,27 +287,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
275
287
|
if (subjectName !== void 0) {
|
|
276
288
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
277
289
|
}
|
|
278
|
-
if (keyword !== void 0) {
|
|
279
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
280
|
-
}
|
|
281
|
-
if (hidden !== void 0) {
|
|
282
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
283
|
-
}
|
|
284
|
-
if (top !== void 0) {
|
|
285
|
-
localVarQueryParameter["top"] = top;
|
|
286
|
-
}
|
|
287
290
|
if (size !== void 0) {
|
|
288
291
|
localVarQueryParameter["size"] = size;
|
|
289
292
|
}
|
|
293
|
+
if (page !== void 0) {
|
|
294
|
+
localVarQueryParameter["page"] = page;
|
|
295
|
+
}
|
|
290
296
|
if (labelSelector) {
|
|
291
297
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
292
298
|
}
|
|
293
299
|
if (fieldSelector) {
|
|
294
300
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
295
301
|
}
|
|
296
|
-
if (page !== void 0) {
|
|
297
|
-
localVarQueryParameter["page"] = page;
|
|
298
|
-
}
|
|
299
302
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
300
303
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
301
304
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -317,8 +320,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
317
320
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
318
321
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
319
322
|
},
|
|
320
|
-
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
321
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
323
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
324
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
322
325
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
323
326
|
}
|
|
324
327
|
};
|
|
@@ -332,8 +335,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
332
335
|
createReply(name, replyRequest, options) {
|
|
333
336
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
334
337
|
},
|
|
335
|
-
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
336
|
-
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
338
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
339
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
337
340
|
}
|
|
338
341
|
};
|
|
339
342
|
};
|
|
@@ -345,7 +348,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
345
348
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
346
349
|
}
|
|
347
350
|
listComments(requestParameters = {}, options) {
|
|
348
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
351
|
+
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));
|
|
349
352
|
}
|
|
350
353
|
}
|
|
351
354
|
|
|
@@ -540,7 +543,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
540
543
|
options: localVarRequestOptions
|
|
541
544
|
};
|
|
542
545
|
},
|
|
543
|
-
listPlugins: async (sort,
|
|
546
|
+
listPlugins: async (sort, enabled, keyword, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
544
547
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
545
548
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
546
549
|
let baseOptions;
|
|
@@ -555,24 +558,24 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
555
558
|
if (sort) {
|
|
556
559
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
557
560
|
}
|
|
558
|
-
if (keyword !== void 0) {
|
|
559
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
560
|
-
}
|
|
561
561
|
if (enabled !== void 0) {
|
|
562
562
|
localVarQueryParameter["enabled"] = enabled;
|
|
563
563
|
}
|
|
564
|
+
if (keyword !== void 0) {
|
|
565
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
566
|
+
}
|
|
564
567
|
if (size !== void 0) {
|
|
565
568
|
localVarQueryParameter["size"] = size;
|
|
566
569
|
}
|
|
570
|
+
if (page !== void 0) {
|
|
571
|
+
localVarQueryParameter["page"] = page;
|
|
572
|
+
}
|
|
567
573
|
if (labelSelector) {
|
|
568
574
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
569
575
|
}
|
|
570
576
|
if (fieldSelector) {
|
|
571
577
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
572
578
|
}
|
|
573
|
-
if (page !== void 0) {
|
|
574
|
-
localVarQueryParameter["page"] = page;
|
|
575
|
-
}
|
|
576
579
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
577
580
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
578
581
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -618,8 +621,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
618
621
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
619
622
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
620
623
|
},
|
|
621
|
-
async listPlugins(sort,
|
|
622
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
624
|
+
async listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
625
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options);
|
|
623
626
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
624
627
|
},
|
|
625
628
|
async upgradePlugin(name, file, options) {
|
|
@@ -634,8 +637,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
634
637
|
installPlugin(file, options) {
|
|
635
638
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
636
639
|
},
|
|
637
|
-
listPlugins(sort,
|
|
638
|
-
return localVarFp.listPlugins(sort,
|
|
640
|
+
listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
641
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
639
642
|
},
|
|
640
643
|
upgradePlugin(name, file, options) {
|
|
641
644
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -647,7 +650,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
647
650
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
648
651
|
}
|
|
649
652
|
listPlugins(requestParameters = {}, options) {
|
|
650
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
653
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
651
654
|
}
|
|
652
655
|
upgradePlugin(requestParameters, options) {
|
|
653
656
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -679,7 +682,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
679
682
|
options: localVarRequestOptions
|
|
680
683
|
};
|
|
681
684
|
},
|
|
682
|
-
listPosts: async (sort,
|
|
685
|
+
listPosts: async (sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
683
686
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
684
687
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
685
688
|
let baseOptions;
|
|
@@ -694,39 +697,39 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
694
697
|
if (sort !== void 0) {
|
|
695
698
|
localVarQueryParameter["sort"] = sort;
|
|
696
699
|
}
|
|
697
|
-
if (
|
|
698
|
-
localVarQueryParameter["
|
|
700
|
+
if (tag) {
|
|
701
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
699
702
|
}
|
|
700
|
-
if (
|
|
701
|
-
localVarQueryParameter["
|
|
703
|
+
if (keyword !== void 0) {
|
|
704
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
702
705
|
}
|
|
703
|
-
if (
|
|
704
|
-
localVarQueryParameter["
|
|
706
|
+
if (visible !== void 0) {
|
|
707
|
+
localVarQueryParameter["visible"] = visible;
|
|
705
708
|
}
|
|
706
709
|
if (contributor) {
|
|
707
710
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
708
711
|
}
|
|
709
|
-
if (
|
|
710
|
-
localVarQueryParameter["
|
|
712
|
+
if (publishPhase !== void 0) {
|
|
713
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
711
714
|
}
|
|
712
|
-
if (
|
|
713
|
-
localVarQueryParameter["
|
|
715
|
+
if (category) {
|
|
716
|
+
localVarQueryParameter["category"] = Array.from(category);
|
|
714
717
|
}
|
|
715
|
-
if (
|
|
716
|
-
localVarQueryParameter["
|
|
718
|
+
if (sortOrder !== void 0) {
|
|
719
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
717
720
|
}
|
|
718
721
|
if (size !== void 0) {
|
|
719
722
|
localVarQueryParameter["size"] = size;
|
|
720
723
|
}
|
|
724
|
+
if (page !== void 0) {
|
|
725
|
+
localVarQueryParameter["page"] = page;
|
|
726
|
+
}
|
|
721
727
|
if (labelSelector) {
|
|
722
728
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
723
729
|
}
|
|
724
730
|
if (fieldSelector) {
|
|
725
731
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
726
732
|
}
|
|
727
|
-
if (page !== void 0) {
|
|
728
|
-
localVarQueryParameter["page"] = page;
|
|
729
|
-
}
|
|
730
733
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
731
734
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
732
735
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -834,8 +837,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
834
837
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
835
838
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
836
839
|
},
|
|
837
|
-
async listPosts(sort,
|
|
838
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
840
|
+
async listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
841
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options);
|
|
839
842
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
840
843
|
},
|
|
841
844
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -862,8 +865,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
862
865
|
draftPost(postRequest, options) {
|
|
863
866
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
864
867
|
},
|
|
865
|
-
listPosts(sort,
|
|
866
|
-
return localVarFp.listPosts(sort,
|
|
868
|
+
listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
869
|
+
return localVarFp.listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
867
870
|
},
|
|
868
871
|
publishPost(name, headSnapshot, options) {
|
|
869
872
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -884,7 +887,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
884
887
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
885
888
|
}
|
|
886
889
|
listPosts(requestParameters = {}, options) {
|
|
887
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
890
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.tag, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
888
891
|
}
|
|
889
892
|
publishPost(requestParameters, options) {
|
|
890
893
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -902,7 +905,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
902
905
|
|
|
903
906
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
904
907
|
return {
|
|
905
|
-
listReplies: async (commentName, size, labelSelector, fieldSelector,
|
|
908
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
906
909
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
907
910
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
908
911
|
let baseOptions;
|
|
@@ -920,15 +923,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
920
923
|
if (size !== void 0) {
|
|
921
924
|
localVarQueryParameter["size"] = size;
|
|
922
925
|
}
|
|
926
|
+
if (page !== void 0) {
|
|
927
|
+
localVarQueryParameter["page"] = page;
|
|
928
|
+
}
|
|
923
929
|
if (labelSelector) {
|
|
924
930
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
925
931
|
}
|
|
926
932
|
if (fieldSelector) {
|
|
927
933
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
928
934
|
}
|
|
929
|
-
if (page !== void 0) {
|
|
930
|
-
localVarQueryParameter["page"] = page;
|
|
931
|
-
}
|
|
932
935
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
933
936
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
934
937
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -942,8 +945,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
942
945
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
943
946
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
944
947
|
return {
|
|
945
|
-
async listReplies(commentName, size, labelSelector, fieldSelector,
|
|
946
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
948
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
949
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
|
|
947
950
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
948
951
|
}
|
|
949
952
|
};
|
|
@@ -951,14 +954,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
951
954
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
952
955
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
953
956
|
return {
|
|
954
|
-
listReplies(commentName, size, labelSelector, fieldSelector,
|
|
955
|
-
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
957
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
958
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
956
959
|
}
|
|
957
960
|
};
|
|
958
961
|
};
|
|
959
962
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
960
963
|
listReplies(requestParameters = {}, options) {
|
|
961
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
964
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
962
965
|
}
|
|
963
966
|
}
|
|
964
967
|
|
|
@@ -987,7 +990,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
987
990
|
options: localVarRequestOptions
|
|
988
991
|
};
|
|
989
992
|
},
|
|
990
|
-
listSinglePages: async (sort,
|
|
993
|
+
listSinglePages: async (sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
991
994
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
992
995
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
993
996
|
let baseOptions;
|
|
@@ -1002,33 +1005,33 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1002
1005
|
if (sort !== void 0) {
|
|
1003
1006
|
localVarQueryParameter["sort"] = sort;
|
|
1004
1007
|
}
|
|
1005
|
-
if (
|
|
1006
|
-
localVarQueryParameter["
|
|
1008
|
+
if (keyword !== void 0) {
|
|
1009
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1007
1010
|
}
|
|
1008
|
-
if (
|
|
1009
|
-
localVarQueryParameter["
|
|
1011
|
+
if (visible !== void 0) {
|
|
1012
|
+
localVarQueryParameter["visible"] = visible;
|
|
1010
1013
|
}
|
|
1011
1014
|
if (contributor) {
|
|
1012
1015
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1013
1016
|
}
|
|
1014
|
-
if (
|
|
1015
|
-
localVarQueryParameter["
|
|
1017
|
+
if (publishPhase !== void 0) {
|
|
1018
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1016
1019
|
}
|
|
1017
|
-
if (
|
|
1018
|
-
localVarQueryParameter["
|
|
1020
|
+
if (sortOrder !== void 0) {
|
|
1021
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1019
1022
|
}
|
|
1020
1023
|
if (size !== void 0) {
|
|
1021
1024
|
localVarQueryParameter["size"] = size;
|
|
1022
1025
|
}
|
|
1026
|
+
if (page !== void 0) {
|
|
1027
|
+
localVarQueryParameter["page"] = page;
|
|
1028
|
+
}
|
|
1023
1029
|
if (labelSelector) {
|
|
1024
1030
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1025
1031
|
}
|
|
1026
1032
|
if (fieldSelector) {
|
|
1027
1033
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1028
1034
|
}
|
|
1029
|
-
if (page !== void 0) {
|
|
1030
|
-
localVarQueryParameter["page"] = page;
|
|
1031
|
-
}
|
|
1032
1035
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1033
1036
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1034
1037
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1091,8 +1094,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1091
1094
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1092
1095
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1093
1096
|
},
|
|
1094
|
-
async listSinglePages(sort,
|
|
1095
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1097
|
+
async listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
1098
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options);
|
|
1096
1099
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1097
1100
|
},
|
|
1098
1101
|
async publishSinglePage(name, options) {
|
|
@@ -1111,8 +1114,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1111
1114
|
draftSinglePage(singlePageRequest, options) {
|
|
1112
1115
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1113
1116
|
},
|
|
1114
|
-
listSinglePages(sort,
|
|
1115
|
-
return localVarFp.listSinglePages(sort,
|
|
1117
|
+
listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
1118
|
+
return localVarFp.listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1116
1119
|
},
|
|
1117
1120
|
publishSinglePage(name, options) {
|
|
1118
1121
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1127,7 +1130,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1127
1130
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1128
1131
|
}
|
|
1129
1132
|
listSinglePages(requestParameters = {}, options) {
|
|
1130
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1133
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.publishPhase, requestParameters.sortOrder, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1131
1134
|
}
|
|
1132
1135
|
publishSinglePage(requestParameters, options) {
|
|
1133
1136
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1213,7 +1216,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1213
1216
|
options: localVarRequestOptions
|
|
1214
1217
|
};
|
|
1215
1218
|
},
|
|
1216
|
-
listThemes: async (uninstalled, size, labelSelector, fieldSelector,
|
|
1219
|
+
listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1217
1220
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1218
1221
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1219
1222
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1232,15 +1235,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1232
1235
|
if (size !== void 0) {
|
|
1233
1236
|
localVarQueryParameter["size"] = size;
|
|
1234
1237
|
}
|
|
1238
|
+
if (page !== void 0) {
|
|
1239
|
+
localVarQueryParameter["page"] = page;
|
|
1240
|
+
}
|
|
1235
1241
|
if (labelSelector) {
|
|
1236
1242
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1237
1243
|
}
|
|
1238
1244
|
if (fieldSelector) {
|
|
1239
1245
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1240
1246
|
}
|
|
1241
|
-
if (page !== void 0) {
|
|
1242
|
-
localVarQueryParameter["page"] = page;
|
|
1243
|
-
}
|
|
1244
1247
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1245
1248
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1246
1249
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1307,8 +1310,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1307
1310
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1308
1311
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1309
1312
|
},
|
|
1310
|
-
async listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1311
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1313
|
+
async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1314
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
|
|
1312
1315
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1313
1316
|
},
|
|
1314
1317
|
async reloadThemeSetting(name, options) {
|
|
@@ -1327,8 +1330,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1327
1330
|
installTheme(file, options) {
|
|
1328
1331
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1329
1332
|
},
|
|
1330
|
-
listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1331
|
-
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1333
|
+
listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1334
|
+
return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1332
1335
|
},
|
|
1333
1336
|
reloadThemeSetting(name, options) {
|
|
1334
1337
|
return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
|
|
@@ -1343,7 +1346,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1343
1346
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1344
1347
|
}
|
|
1345
1348
|
listThemes(requestParameters, options) {
|
|
1346
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1349
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1347
1350
|
}
|
|
1348
1351
|
reloadThemeSetting(requestParameters, options) {
|
|
1349
1352
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1617,12 +1620,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1617
1620
|
if (version !== void 0) {
|
|
1618
1621
|
localVarQueryParameter["version"] = version;
|
|
1619
1622
|
}
|
|
1620
|
-
if (group !== void 0) {
|
|
1621
|
-
localVarQueryParameter["group"] = group;
|
|
1622
|
-
}
|
|
1623
1623
|
if (kind !== void 0) {
|
|
1624
1624
|
localVarQueryParameter["kind"] = kind;
|
|
1625
1625
|
}
|
|
1626
|
+
if (group !== void 0) {
|
|
1627
|
+
localVarQueryParameter["group"] = group;
|
|
1628
|
+
}
|
|
1626
1629
|
if (size !== void 0) {
|
|
1627
1630
|
localVarQueryParameter["size"] = size;
|
|
1628
1631
|
}
|
|
@@ -1704,7 +1707,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1704
1707
|
|
|
1705
1708
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1706
1709
|
return {
|
|
1707
|
-
searchPost: async (keyword, highlightPreTag, highlightPostTag,
|
|
1710
|
+
searchPost: async (keyword, limit, highlightPreTag, highlightPostTag, options = {}) => {
|
|
1708
1711
|
assertParamExists("searchPost", "keyword", keyword);
|
|
1709
1712
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
1710
1713
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1717,18 +1720,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1717
1720
|
const localVarQueryParameter = {};
|
|
1718
1721
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1719
1722
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1723
|
+
if (limit !== void 0) {
|
|
1724
|
+
localVarQueryParameter["limit"] = limit;
|
|
1725
|
+
}
|
|
1726
|
+
if (keyword !== void 0) {
|
|
1727
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1728
|
+
}
|
|
1720
1729
|
if (highlightPreTag !== void 0) {
|
|
1721
1730
|
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1722
1731
|
}
|
|
1723
1732
|
if (highlightPostTag !== void 0) {
|
|
1724
1733
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1725
1734
|
}
|
|
1726
|
-
if (keyword !== void 0) {
|
|
1727
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1728
|
-
}
|
|
1729
|
-
if (limit !== void 0) {
|
|
1730
|
-
localVarQueryParameter["limit"] = limit;
|
|
1731
|
-
}
|
|
1732
1735
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1733
1736
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1734
1737
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1742,8 +1745,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1742
1745
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
1743
1746
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
1744
1747
|
return {
|
|
1745
|
-
async searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1746
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1748
|
+
async searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
1749
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options);
|
|
1747
1750
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1748
1751
|
}
|
|
1749
1752
|
};
|
|
@@ -1751,14 +1754,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
1751
1754
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
1752
1755
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
1753
1756
|
return {
|
|
1754
|
-
searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1755
|
-
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1757
|
+
searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
1758
|
+
return localVarFp.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options).then((request) => request(axios, basePath));
|
|
1756
1759
|
}
|
|
1757
1760
|
};
|
|
1758
1761
|
};
|
|
1759
1762
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
1760
1763
|
searchPost(requestParameters, options) {
|
|
1761
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
1764
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(this.axios, this.basePath));
|
|
1762
1765
|
}
|
|
1763
1766
|
}
|
|
1764
1767
|
|