@halo-dev/api-client 0.0.52 → 0.0.53
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 +121 -121
- package/dist/index.d.ts +197 -197
- package/dist/index.mjs +121 -121
- 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, sort, displayName,
|
|
80
|
+
searchAttachments: async (policy, sort, displayName, ungrouped, uploadedBy, group, 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;
|
|
@@ -98,27 +98,27 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
98
98
|
if (displayName !== void 0) {
|
|
99
99
|
localVarQueryParameter["displayName"] = displayName;
|
|
100
100
|
}
|
|
101
|
-
if (group !== void 0) {
|
|
102
|
-
localVarQueryParameter["group"] = group;
|
|
103
|
-
}
|
|
104
101
|
if (ungrouped !== void 0) {
|
|
105
102
|
localVarQueryParameter["ungrouped"] = ungrouped;
|
|
106
103
|
}
|
|
107
104
|
if (uploadedBy !== void 0) {
|
|
108
105
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
109
106
|
}
|
|
107
|
+
if (group !== void 0) {
|
|
108
|
+
localVarQueryParameter["group"] = group;
|
|
109
|
+
}
|
|
110
110
|
if (size !== void 0) {
|
|
111
111
|
localVarQueryParameter["size"] = size;
|
|
112
112
|
}
|
|
113
|
+
if (page !== void 0) {
|
|
114
|
+
localVarQueryParameter["page"] = page;
|
|
115
|
+
}
|
|
113
116
|
if (labelSelector) {
|
|
114
117
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
115
118
|
}
|
|
116
119
|
if (fieldSelector) {
|
|
117
120
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
118
121
|
}
|
|
119
|
-
if (page !== void 0) {
|
|
120
|
-
localVarQueryParameter["page"] = page;
|
|
121
|
-
}
|
|
122
122
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123
123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
124
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -166,8 +166,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
166
166
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
167
167
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
168
168
|
return {
|
|
169
|
-
async searchAttachments(policy, sort, displayName,
|
|
170
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName,
|
|
169
|
+
async searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options) {
|
|
170
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options);
|
|
171
171
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
172
172
|
},
|
|
173
173
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -179,8 +179,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
179
179
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
180
180
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
181
181
|
return {
|
|
182
|
-
searchAttachments(policy, sort, displayName,
|
|
183
|
-
return localVarFp.searchAttachments(policy, sort, displayName,
|
|
182
|
+
searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options) {
|
|
183
|
+
return localVarFp.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
184
184
|
},
|
|
185
185
|
uploadAttachment(file, policyName, groupName, options) {
|
|
186
186
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -189,7 +189,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
189
189
|
};
|
|
190
190
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
191
191
|
searchAttachments(requestParameters = {}, options) {
|
|
192
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.
|
|
192
|
+
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));
|
|
193
193
|
}
|
|
194
194
|
uploadAttachment(requestParameters, options) {
|
|
195
195
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -245,7 +245,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
245
245
|
options: localVarRequestOptions
|
|
246
246
|
};
|
|
247
247
|
},
|
|
248
|
-
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
248
|
+
listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
249
249
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
250
250
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
251
251
|
let baseOptions;
|
|
@@ -260,6 +260,15 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
260
260
|
if (sort !== void 0) {
|
|
261
261
|
localVarQueryParameter["sort"] = sort;
|
|
262
262
|
}
|
|
263
|
+
if (keyword !== void 0) {
|
|
264
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
265
|
+
}
|
|
266
|
+
if (hidden !== void 0) {
|
|
267
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
268
|
+
}
|
|
269
|
+
if (top !== void 0) {
|
|
270
|
+
localVarQueryParameter["top"] = top;
|
|
271
|
+
}
|
|
263
272
|
if (sortOrder !== void 0) {
|
|
264
273
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
265
274
|
}
|
|
@@ -281,27 +290,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
281
290
|
if (subjectName !== void 0) {
|
|
282
291
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
283
292
|
}
|
|
284
|
-
if (keyword !== void 0) {
|
|
285
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
286
|
-
}
|
|
287
|
-
if (hidden !== void 0) {
|
|
288
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
289
|
-
}
|
|
290
|
-
if (top !== void 0) {
|
|
291
|
-
localVarQueryParameter["top"] = top;
|
|
292
|
-
}
|
|
293
293
|
if (size !== void 0) {
|
|
294
294
|
localVarQueryParameter["size"] = size;
|
|
295
295
|
}
|
|
296
|
+
if (page !== void 0) {
|
|
297
|
+
localVarQueryParameter["page"] = page;
|
|
298
|
+
}
|
|
296
299
|
if (labelSelector) {
|
|
297
300
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
298
301
|
}
|
|
299
302
|
if (fieldSelector) {
|
|
300
303
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
301
304
|
}
|
|
302
|
-
if (page !== void 0) {
|
|
303
|
-
localVarQueryParameter["page"] = page;
|
|
304
|
-
}
|
|
305
305
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
306
306
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
307
307
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -323,8 +323,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
323
323
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
324
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
325
325
|
},
|
|
326
|
-
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
327
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
326
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
328
328
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
329
329
|
}
|
|
330
330
|
};
|
|
@@ -338,8 +338,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
338
338
|
createReply(name, replyRequest, options) {
|
|
339
339
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
340
340
|
},
|
|
341
|
-
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
342
|
-
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
341
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
342
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
};
|
|
@@ -351,7 +351,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
351
351
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
352
352
|
}
|
|
353
353
|
listComments(requestParameters = {}, options) {
|
|
354
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
354
|
+
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));
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
|
|
@@ -546,7 +546,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
546
546
|
options: localVarRequestOptions
|
|
547
547
|
};
|
|
548
548
|
},
|
|
549
|
-
listPlugins: async (sort,
|
|
549
|
+
listPlugins: async (sort, enabled, keyword, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
550
550
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
551
551
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
552
552
|
let baseOptions;
|
|
@@ -561,24 +561,24 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
561
561
|
if (sort) {
|
|
562
562
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
563
563
|
}
|
|
564
|
-
if (keyword !== void 0) {
|
|
565
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
566
|
-
}
|
|
567
564
|
if (enabled !== void 0) {
|
|
568
565
|
localVarQueryParameter["enabled"] = enabled;
|
|
569
566
|
}
|
|
567
|
+
if (keyword !== void 0) {
|
|
568
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
569
|
+
}
|
|
570
570
|
if (size !== void 0) {
|
|
571
571
|
localVarQueryParameter["size"] = size;
|
|
572
572
|
}
|
|
573
|
+
if (page !== void 0) {
|
|
574
|
+
localVarQueryParameter["page"] = page;
|
|
575
|
+
}
|
|
573
576
|
if (labelSelector) {
|
|
574
577
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
575
578
|
}
|
|
576
579
|
if (fieldSelector) {
|
|
577
580
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
578
581
|
}
|
|
579
|
-
if (page !== void 0) {
|
|
580
|
-
localVarQueryParameter["page"] = page;
|
|
581
|
-
}
|
|
582
582
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
583
583
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
584
584
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -624,8 +624,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
624
624
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
625
625
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
626
626
|
},
|
|
627
|
-
async listPlugins(sort,
|
|
628
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
627
|
+
async listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options);
|
|
629
629
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
630
630
|
},
|
|
631
631
|
async upgradePlugin(name, file, options) {
|
|
@@ -640,8 +640,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
640
640
|
installPlugin(file, options) {
|
|
641
641
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
642
642
|
},
|
|
643
|
-
listPlugins(sort,
|
|
644
|
-
return localVarFp.listPlugins(sort,
|
|
643
|
+
listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
644
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
645
645
|
},
|
|
646
646
|
upgradePlugin(name, file, options) {
|
|
647
647
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -653,7 +653,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
653
653
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
654
654
|
}
|
|
655
655
|
listPlugins(requestParameters = {}, options) {
|
|
656
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
656
|
+
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));
|
|
657
657
|
}
|
|
658
658
|
upgradePlugin(requestParameters, options) {
|
|
659
659
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -685,7 +685,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
685
685
|
options: localVarRequestOptions
|
|
686
686
|
};
|
|
687
687
|
},
|
|
688
|
-
listPosts: async (sort,
|
|
688
|
+
listPosts: async (sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
689
689
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
690
690
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
691
691
|
let baseOptions;
|
|
@@ -700,39 +700,39 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
700
700
|
if (sort !== void 0) {
|
|
701
701
|
localVarQueryParameter["sort"] = sort;
|
|
702
702
|
}
|
|
703
|
-
if (
|
|
704
|
-
localVarQueryParameter["
|
|
703
|
+
if (tag) {
|
|
704
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
705
705
|
}
|
|
706
|
-
if (
|
|
707
|
-
localVarQueryParameter["
|
|
706
|
+
if (keyword !== void 0) {
|
|
707
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
708
708
|
}
|
|
709
|
-
if (
|
|
710
|
-
localVarQueryParameter["
|
|
709
|
+
if (visible !== void 0) {
|
|
710
|
+
localVarQueryParameter["visible"] = visible;
|
|
711
711
|
}
|
|
712
712
|
if (contributor) {
|
|
713
713
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
714
714
|
}
|
|
715
|
-
if (
|
|
716
|
-
localVarQueryParameter["
|
|
715
|
+
if (sortOrder !== void 0) {
|
|
716
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
717
717
|
}
|
|
718
|
-
if (
|
|
719
|
-
localVarQueryParameter["
|
|
718
|
+
if (publishPhase !== void 0) {
|
|
719
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
720
720
|
}
|
|
721
|
-
if (
|
|
722
|
-
localVarQueryParameter["
|
|
721
|
+
if (category) {
|
|
722
|
+
localVarQueryParameter["category"] = Array.from(category);
|
|
723
723
|
}
|
|
724
724
|
if (size !== void 0) {
|
|
725
725
|
localVarQueryParameter["size"] = size;
|
|
726
726
|
}
|
|
727
|
+
if (page !== void 0) {
|
|
728
|
+
localVarQueryParameter["page"] = page;
|
|
729
|
+
}
|
|
727
730
|
if (labelSelector) {
|
|
728
731
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
729
732
|
}
|
|
730
733
|
if (fieldSelector) {
|
|
731
734
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
732
735
|
}
|
|
733
|
-
if (page !== void 0) {
|
|
734
|
-
localVarQueryParameter["page"] = page;
|
|
735
|
-
}
|
|
736
736
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
737
737
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
738
738
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -864,8 +864,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
864
864
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
865
865
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
866
866
|
},
|
|
867
|
-
async listPosts(sort,
|
|
868
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
867
|
+
async listPosts(sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options) {
|
|
868
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options);
|
|
869
869
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
870
870
|
},
|
|
871
871
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -896,8 +896,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
896
896
|
draftPost(postRequest, options) {
|
|
897
897
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
898
898
|
},
|
|
899
|
-
listPosts(sort,
|
|
900
|
-
return localVarFp.listPosts(sort,
|
|
899
|
+
listPosts(sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options) {
|
|
900
|
+
return localVarFp.listPosts(sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
901
901
|
},
|
|
902
902
|
publishPost(name, headSnapshot, options) {
|
|
903
903
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -921,7 +921,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
921
921
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
922
922
|
}
|
|
923
923
|
listPosts(requestParameters = {}, options) {
|
|
924
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
924
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.tag, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
925
925
|
}
|
|
926
926
|
publishPost(requestParameters, options) {
|
|
927
927
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -942,7 +942,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
942
942
|
|
|
943
943
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
944
944
|
return {
|
|
945
|
-
listReplies: async (commentName, size, labelSelector, fieldSelector,
|
|
945
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
946
946
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
947
947
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
948
948
|
let baseOptions;
|
|
@@ -960,15 +960,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
960
960
|
if (size !== void 0) {
|
|
961
961
|
localVarQueryParameter["size"] = size;
|
|
962
962
|
}
|
|
963
|
+
if (page !== void 0) {
|
|
964
|
+
localVarQueryParameter["page"] = page;
|
|
965
|
+
}
|
|
963
966
|
if (labelSelector) {
|
|
964
967
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
965
968
|
}
|
|
966
969
|
if (fieldSelector) {
|
|
967
970
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
968
971
|
}
|
|
969
|
-
if (page !== void 0) {
|
|
970
|
-
localVarQueryParameter["page"] = page;
|
|
971
|
-
}
|
|
972
972
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
973
973
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
974
974
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -982,8 +982,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
982
982
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
983
983
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
984
984
|
return {
|
|
985
|
-
async listReplies(commentName, size, labelSelector, fieldSelector,
|
|
986
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
985
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
986
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
|
|
987
987
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
988
988
|
}
|
|
989
989
|
};
|
|
@@ -991,14 +991,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
991
991
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
992
992
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
993
993
|
return {
|
|
994
|
-
listReplies(commentName, size, labelSelector, fieldSelector,
|
|
995
|
-
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
994
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
995
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
996
996
|
}
|
|
997
997
|
};
|
|
998
998
|
};
|
|
999
999
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
1000
1000
|
listReplies(requestParameters = {}, options) {
|
|
1001
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
1001
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
@@ -1027,7 +1027,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1027
1027
|
options: localVarRequestOptions
|
|
1028
1028
|
};
|
|
1029
1029
|
},
|
|
1030
|
-
listSinglePages: async (sort,
|
|
1030
|
+
listSinglePages: async (sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1031
1031
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1032
1032
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1033
1033
|
let baseOptions;
|
|
@@ -1042,33 +1042,33 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1042
1042
|
if (sort !== void 0) {
|
|
1043
1043
|
localVarQueryParameter["sort"] = sort;
|
|
1044
1044
|
}
|
|
1045
|
-
if (
|
|
1046
|
-
localVarQueryParameter["
|
|
1045
|
+
if (keyword !== void 0) {
|
|
1046
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1047
1047
|
}
|
|
1048
|
-
if (
|
|
1049
|
-
localVarQueryParameter["
|
|
1048
|
+
if (visible !== void 0) {
|
|
1049
|
+
localVarQueryParameter["visible"] = visible;
|
|
1050
1050
|
}
|
|
1051
1051
|
if (contributor) {
|
|
1052
1052
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1053
1053
|
}
|
|
1054
|
-
if (
|
|
1055
|
-
localVarQueryParameter["
|
|
1054
|
+
if (sortOrder !== void 0) {
|
|
1055
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1056
1056
|
}
|
|
1057
|
-
if (
|
|
1058
|
-
localVarQueryParameter["
|
|
1057
|
+
if (publishPhase !== void 0) {
|
|
1058
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1059
1059
|
}
|
|
1060
1060
|
if (size !== void 0) {
|
|
1061
1061
|
localVarQueryParameter["size"] = size;
|
|
1062
1062
|
}
|
|
1063
|
+
if (page !== void 0) {
|
|
1064
|
+
localVarQueryParameter["page"] = page;
|
|
1065
|
+
}
|
|
1063
1066
|
if (labelSelector) {
|
|
1064
1067
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1065
1068
|
}
|
|
1066
1069
|
if (fieldSelector) {
|
|
1067
1070
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1068
1071
|
}
|
|
1069
|
-
if (page !== void 0) {
|
|
1070
|
-
localVarQueryParameter["page"] = page;
|
|
1071
|
-
}
|
|
1072
1072
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1073
1073
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1074
1074
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1155,8 +1155,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1155
1155
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1156
1156
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1157
1157
|
},
|
|
1158
|
-
async listSinglePages(sort,
|
|
1159
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1158
|
+
async listSinglePages(sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options) {
|
|
1159
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options);
|
|
1160
1160
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1161
1161
|
},
|
|
1162
1162
|
async publishSinglePage(name, options) {
|
|
@@ -1179,8 +1179,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1179
1179
|
draftSinglePage(singlePageRequest, options) {
|
|
1180
1180
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1181
1181
|
},
|
|
1182
|
-
listSinglePages(sort,
|
|
1183
|
-
return localVarFp.listSinglePages(sort,
|
|
1182
|
+
listSinglePages(sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options) {
|
|
1183
|
+
return localVarFp.listSinglePages(sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1184
1184
|
},
|
|
1185
1185
|
publishSinglePage(name, options) {
|
|
1186
1186
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1198,7 +1198,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1198
1198
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1199
1199
|
}
|
|
1200
1200
|
listSinglePages(requestParameters = {}, options) {
|
|
1201
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1201
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1202
1202
|
}
|
|
1203
1203
|
publishSinglePage(requestParameters, options) {
|
|
1204
1204
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1287,7 +1287,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1287
1287
|
options: localVarRequestOptions
|
|
1288
1288
|
};
|
|
1289
1289
|
},
|
|
1290
|
-
listThemes: async (uninstalled, size, labelSelector, fieldSelector,
|
|
1290
|
+
listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1291
1291
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1292
1292
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1293
1293
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1306,15 +1306,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1306
1306
|
if (size !== void 0) {
|
|
1307
1307
|
localVarQueryParameter["size"] = size;
|
|
1308
1308
|
}
|
|
1309
|
+
if (page !== void 0) {
|
|
1310
|
+
localVarQueryParameter["page"] = page;
|
|
1311
|
+
}
|
|
1309
1312
|
if (labelSelector) {
|
|
1310
1313
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1311
1314
|
}
|
|
1312
1315
|
if (fieldSelector) {
|
|
1313
1316
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1314
1317
|
}
|
|
1315
|
-
if (page !== void 0) {
|
|
1316
|
-
localVarQueryParameter["page"] = page;
|
|
1317
|
-
}
|
|
1318
1318
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1319
1319
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1320
1320
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1323,8 +1323,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1323
1323
|
options: localVarRequestOptions
|
|
1324
1324
|
};
|
|
1325
1325
|
},
|
|
1326
|
-
|
|
1327
|
-
assertParamExists("
|
|
1326
|
+
reload: async (name, options = {}) => {
|
|
1327
|
+
assertParamExists("reload", "name", name);
|
|
1328
1328
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1329
1329
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1330
1330
|
let baseOptions;
|
|
@@ -1381,12 +1381,12 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1381
1381
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1382
1382
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1383
1383
|
},
|
|
1384
|
-
async listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1385
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1384
|
+
async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1385
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
|
|
1386
1386
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1387
1387
|
},
|
|
1388
|
-
async
|
|
1389
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1388
|
+
async reload(name, options) {
|
|
1389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reload(name, options);
|
|
1390
1390
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1391
1391
|
},
|
|
1392
1392
|
async upgradeTheme(name, file, options) {
|
|
@@ -1401,11 +1401,11 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1401
1401
|
installTheme(file, options) {
|
|
1402
1402
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1403
1403
|
},
|
|
1404
|
-
listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1405
|
-
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1404
|
+
listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1405
|
+
return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1406
1406
|
},
|
|
1407
|
-
|
|
1408
|
-
return localVarFp.
|
|
1407
|
+
reload(name, options) {
|
|
1408
|
+
return localVarFp.reload(name, options).then((request) => request(axios, basePath));
|
|
1409
1409
|
},
|
|
1410
1410
|
upgradeTheme(name, file, options) {
|
|
1411
1411
|
return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -1417,10 +1417,10 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1417
1417
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1418
1418
|
}
|
|
1419
1419
|
listThemes(requestParameters, options) {
|
|
1420
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1420
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1421
1421
|
}
|
|
1422
|
-
|
|
1423
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).
|
|
1422
|
+
reload(requestParameters, options) {
|
|
1423
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1424
1424
|
}
|
|
1425
1425
|
upgradeTheme(requestParameters, options) {
|
|
1426
1426
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1691,12 +1691,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1691
1691
|
if (version !== void 0) {
|
|
1692
1692
|
localVarQueryParameter["version"] = version;
|
|
1693
1693
|
}
|
|
1694
|
-
if (group !== void 0) {
|
|
1695
|
-
localVarQueryParameter["group"] = group;
|
|
1696
|
-
}
|
|
1697
1694
|
if (kind !== void 0) {
|
|
1698
1695
|
localVarQueryParameter["kind"] = kind;
|
|
1699
1696
|
}
|
|
1697
|
+
if (group !== void 0) {
|
|
1698
|
+
localVarQueryParameter["group"] = group;
|
|
1699
|
+
}
|
|
1700
1700
|
if (size !== void 0) {
|
|
1701
1701
|
localVarQueryParameter["size"] = size;
|
|
1702
1702
|
}
|
|
@@ -1778,7 +1778,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1778
1778
|
|
|
1779
1779
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1780
1780
|
return {
|
|
1781
|
-
searchPost: async (keyword, highlightPreTag, highlightPostTag,
|
|
1781
|
+
searchPost: async (keyword, limit, highlightPreTag, highlightPostTag, options = {}) => {
|
|
1782
1782
|
assertParamExists("searchPost", "keyword", keyword);
|
|
1783
1783
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
1784
1784
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1791,18 +1791,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1791
1791
|
const localVarQueryParameter = {};
|
|
1792
1792
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1793
1793
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1794
|
+
if (limit !== void 0) {
|
|
1795
|
+
localVarQueryParameter["limit"] = limit;
|
|
1796
|
+
}
|
|
1797
|
+
if (keyword !== void 0) {
|
|
1798
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1799
|
+
}
|
|
1794
1800
|
if (highlightPreTag !== void 0) {
|
|
1795
1801
|
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1796
1802
|
}
|
|
1797
1803
|
if (highlightPostTag !== void 0) {
|
|
1798
1804
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1799
1805
|
}
|
|
1800
|
-
if (keyword !== void 0) {
|
|
1801
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1802
|
-
}
|
|
1803
|
-
if (limit !== void 0) {
|
|
1804
|
-
localVarQueryParameter["limit"] = limit;
|
|
1805
|
-
}
|
|
1806
1806
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1807
1807
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1808
1808
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1816,8 +1816,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1816
1816
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
1817
1817
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
1818
1818
|
return {
|
|
1819
|
-
async searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1820
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1819
|
+
async searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
1820
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options);
|
|
1821
1821
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1822
1822
|
}
|
|
1823
1823
|
};
|
|
@@ -1825,14 +1825,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
1825
1825
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
1826
1826
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
1827
1827
|
return {
|
|
1828
|
-
searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1829
|
-
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1828
|
+
searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
1829
|
+
return localVarFp.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options).then((request) => request(axios, basePath));
|
|
1830
1830
|
}
|
|
1831
1831
|
};
|
|
1832
1832
|
};
|
|
1833
1833
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
1834
1834
|
searchPost(requestParameters, options) {
|
|
1835
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
1835
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(this.axios, this.basePath));
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
1838
|
|