@halo-dev/api-client 0.0.47 → 0.0.50
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 +181 -113
- package/dist/index.d.ts +292 -220
- package/dist/index.mjs +181 -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, sort, displayName,
|
|
80
|
+
searchAttachments: async (policy, sort, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, 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,24 +98,24 @@ 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 (uploadedBy !== void 0) {
|
|
105
102
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
106
103
|
}
|
|
104
|
+
if (group !== void 0) {
|
|
105
|
+
localVarQueryParameter["group"] = group;
|
|
106
|
+
}
|
|
107
107
|
if (size !== void 0) {
|
|
108
108
|
localVarQueryParameter["size"] = size;
|
|
109
109
|
}
|
|
110
|
-
if (page !== void 0) {
|
|
111
|
-
localVarQueryParameter["page"] = page;
|
|
112
|
-
}
|
|
113
110
|
if (labelSelector) {
|
|
114
111
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
115
112
|
}
|
|
116
113
|
if (fieldSelector) {
|
|
117
114
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
118
115
|
}
|
|
116
|
+
if (page !== void 0) {
|
|
117
|
+
localVarQueryParameter["page"] = page;
|
|
118
|
+
}
|
|
119
119
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
120
120
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
121
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -163,8 +163,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
163
163
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
164
164
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
165
165
|
return {
|
|
166
|
-
async searchAttachments(policy, sort, displayName,
|
|
167
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName,
|
|
166
|
+
async searchAttachments(policy, sort, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
167
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
|
|
168
168
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
169
169
|
},
|
|
170
170
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -176,8 +176,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
176
176
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
177
177
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
178
178
|
return {
|
|
179
|
-
searchAttachments(policy, sort, displayName,
|
|
180
|
-
return localVarFp.searchAttachments(policy, sort, displayName,
|
|
179
|
+
searchAttachments(policy, sort, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
180
|
+
return localVarFp.searchAttachments(policy, sort, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
181
181
|
},
|
|
182
182
|
uploadAttachment(file, policyName, groupName, options) {
|
|
183
183
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -186,7 +186,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
186
186
|
};
|
|
187
187
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
188
188
|
searchAttachments(requestParameters = {}, options) {
|
|
189
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.
|
|
189
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.uploadedBy, requestParameters.group, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
190
190
|
}
|
|
191
191
|
uploadAttachment(requestParameters, options) {
|
|
192
192
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -242,7 +242,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
242
242
|
options: localVarRequestOptions
|
|
243
243
|
};
|
|
244
244
|
},
|
|
245
|
-
listComments: async (sort,
|
|
245
|
+
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
246
246
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
247
247
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
248
248
|
let baseOptions;
|
|
@@ -257,15 +257,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
257
257
|
if (sort !== void 0) {
|
|
258
258
|
localVarQueryParameter["sort"] = sort;
|
|
259
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
|
-
}
|
|
269
260
|
if (sortOrder !== void 0) {
|
|
270
261
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
271
262
|
}
|
|
@@ -287,18 +278,27 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
287
278
|
if (subjectName !== void 0) {
|
|
288
279
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
289
280
|
}
|
|
281
|
+
if (keyword !== void 0) {
|
|
282
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
283
|
+
}
|
|
284
|
+
if (hidden !== void 0) {
|
|
285
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
286
|
+
}
|
|
287
|
+
if (top !== void 0) {
|
|
288
|
+
localVarQueryParameter["top"] = top;
|
|
289
|
+
}
|
|
290
290
|
if (size !== void 0) {
|
|
291
291
|
localVarQueryParameter["size"] = size;
|
|
292
292
|
}
|
|
293
|
-
if (page !== void 0) {
|
|
294
|
-
localVarQueryParameter["page"] = page;
|
|
295
|
-
}
|
|
296
293
|
if (labelSelector) {
|
|
297
294
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
298
295
|
}
|
|
299
296
|
if (fieldSelector) {
|
|
300
297
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
301
298
|
}
|
|
299
|
+
if (page !== void 0) {
|
|
300
|
+
localVarQueryParameter["page"] = page;
|
|
301
|
+
}
|
|
302
302
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
303
303
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
304
304
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -320,8 +320,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
320
320
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
321
321
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
322
322
|
},
|
|
323
|
-
async listComments(sort,
|
|
324
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort,
|
|
323
|
+
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
324
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
|
|
325
325
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
326
326
|
}
|
|
327
327
|
};
|
|
@@ -335,8 +335,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
335
335
|
createReply(name, replyRequest, options) {
|
|
336
336
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
337
337
|
},
|
|
338
|
-
listComments(sort,
|
|
339
|
-
return localVarFp.listComments(sort,
|
|
338
|
+
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
339
|
+
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
342
|
};
|
|
@@ -348,7 +348,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
348
348
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
349
349
|
}
|
|
350
350
|
listComments(requestParameters = {}, options) {
|
|
351
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
351
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
|
|
@@ -543,7 +543,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
543
543
|
options: localVarRequestOptions
|
|
544
544
|
};
|
|
545
545
|
},
|
|
546
|
-
listPlugins: async (sort,
|
|
546
|
+
listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
547
547
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
548
548
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
549
549
|
let baseOptions;
|
|
@@ -558,24 +558,24 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
558
558
|
if (sort) {
|
|
559
559
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
560
560
|
}
|
|
561
|
-
if (enabled !== void 0) {
|
|
562
|
-
localVarQueryParameter["enabled"] = enabled;
|
|
563
|
-
}
|
|
564
561
|
if (keyword !== void 0) {
|
|
565
562
|
localVarQueryParameter["keyword"] = keyword;
|
|
566
563
|
}
|
|
564
|
+
if (enabled !== void 0) {
|
|
565
|
+
localVarQueryParameter["enabled"] = enabled;
|
|
566
|
+
}
|
|
567
567
|
if (size !== void 0) {
|
|
568
568
|
localVarQueryParameter["size"] = size;
|
|
569
569
|
}
|
|
570
|
-
if (page !== void 0) {
|
|
571
|
-
localVarQueryParameter["page"] = page;
|
|
572
|
-
}
|
|
573
570
|
if (labelSelector) {
|
|
574
571
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
575
572
|
}
|
|
576
573
|
if (fieldSelector) {
|
|
577
574
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
578
575
|
}
|
|
576
|
+
if (page !== void 0) {
|
|
577
|
+
localVarQueryParameter["page"] = page;
|
|
578
|
+
}
|
|
579
579
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
580
580
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
581
581
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -621,8 +621,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
621
621
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
622
622
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
623
623
|
},
|
|
624
|
-
async listPlugins(sort,
|
|
625
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
624
|
+
async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
|
|
625
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options);
|
|
626
626
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
627
627
|
},
|
|
628
628
|
async upgradePlugin(name, file, options) {
|
|
@@ -637,8 +637,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
637
637
|
installPlugin(file, options) {
|
|
638
638
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
639
639
|
},
|
|
640
|
-
listPlugins(sort,
|
|
641
|
-
return localVarFp.listPlugins(sort,
|
|
640
|
+
listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
|
|
641
|
+
return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
642
642
|
},
|
|
643
643
|
upgradePlugin(name, file, options) {
|
|
644
644
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -650,7 +650,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
650
650
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
651
651
|
}
|
|
652
652
|
listPlugins(requestParameters = {}, options) {
|
|
653
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
653
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.keyword, requestParameters.enabled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
654
654
|
}
|
|
655
655
|
upgradePlugin(requestParameters, options) {
|
|
656
656
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -682,7 +682,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
682
682
|
options: localVarRequestOptions
|
|
683
683
|
};
|
|
684
684
|
},
|
|
685
|
-
listPosts: async (sort,
|
|
685
|
+
listPosts: async (sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
686
686
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
687
687
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
688
688
|
let baseOptions;
|
|
@@ -697,18 +697,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
697
697
|
if (sort !== void 0) {
|
|
698
698
|
localVarQueryParameter["sort"] = sort;
|
|
699
699
|
}
|
|
700
|
-
if (tag) {
|
|
701
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
702
|
-
}
|
|
703
|
-
if (keyword !== void 0) {
|
|
704
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
705
|
-
}
|
|
706
|
-
if (visible !== void 0) {
|
|
707
|
-
localVarQueryParameter["visible"] = visible;
|
|
708
|
-
}
|
|
709
|
-
if (contributor) {
|
|
710
|
-
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
711
|
-
}
|
|
712
700
|
if (publishPhase !== void 0) {
|
|
713
701
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
714
702
|
}
|
|
@@ -718,18 +706,30 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
718
706
|
if (sortOrder !== void 0) {
|
|
719
707
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
720
708
|
}
|
|
709
|
+
if (contributor) {
|
|
710
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
711
|
+
}
|
|
712
|
+
if (keyword !== void 0) {
|
|
713
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
714
|
+
}
|
|
715
|
+
if (visible !== void 0) {
|
|
716
|
+
localVarQueryParameter["visible"] = visible;
|
|
717
|
+
}
|
|
718
|
+
if (tag) {
|
|
719
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
720
|
+
}
|
|
721
721
|
if (size !== void 0) {
|
|
722
722
|
localVarQueryParameter["size"] = size;
|
|
723
723
|
}
|
|
724
|
-
if (page !== void 0) {
|
|
725
|
-
localVarQueryParameter["page"] = page;
|
|
726
|
-
}
|
|
727
724
|
if (labelSelector) {
|
|
728
725
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
729
726
|
}
|
|
730
727
|
if (fieldSelector) {
|
|
731
728
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
732
729
|
}
|
|
730
|
+
if (page !== void 0) {
|
|
731
|
+
localVarQueryParameter["page"] = page;
|
|
732
|
+
}
|
|
733
733
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
734
734
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
735
735
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -827,6 +827,30 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
827
827
|
url: toPathString(localVarUrlObj),
|
|
828
828
|
options: localVarRequestOptions
|
|
829
829
|
};
|
|
830
|
+
},
|
|
831
|
+
updatePostContent: async (name, content, options = {}) => {
|
|
832
|
+
assertParamExists("updatePostContent", "name", name);
|
|
833
|
+
assertParamExists("updatePostContent", "content", content);
|
|
834
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
835
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
836
|
+
let baseOptions;
|
|
837
|
+
if (configuration) {
|
|
838
|
+
baseOptions = configuration.baseOptions;
|
|
839
|
+
}
|
|
840
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
841
|
+
const localVarHeaderParameter = {};
|
|
842
|
+
const localVarQueryParameter = {};
|
|
843
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
844
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
845
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
846
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
847
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
848
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
849
|
+
localVarRequestOptions.data = serializeDataIfNeeded(content, localVarRequestOptions, configuration);
|
|
850
|
+
return {
|
|
851
|
+
url: toPathString(localVarUrlObj),
|
|
852
|
+
options: localVarRequestOptions
|
|
853
|
+
};
|
|
830
854
|
}
|
|
831
855
|
};
|
|
832
856
|
};
|
|
@@ -837,8 +861,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
837
861
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
838
862
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
839
863
|
},
|
|
840
|
-
async listPosts(sort,
|
|
841
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
864
|
+
async listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
865
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
|
|
842
866
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
843
867
|
},
|
|
844
868
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -856,6 +880,10 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
856
880
|
async updateDraftPost(name, postRequest, options) {
|
|
857
881
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost(name, postRequest, options);
|
|
858
882
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
883
|
+
},
|
|
884
|
+
async updatePostContent(name, content, options) {
|
|
885
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePostContent(name, content, options);
|
|
886
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
859
887
|
}
|
|
860
888
|
};
|
|
861
889
|
};
|
|
@@ -865,8 +893,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
865
893
|
draftPost(postRequest, options) {
|
|
866
894
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
867
895
|
},
|
|
868
|
-
listPosts(sort,
|
|
869
|
-
return localVarFp.listPosts(sort,
|
|
896
|
+
listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
897
|
+
return localVarFp.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
870
898
|
},
|
|
871
899
|
publishPost(name, headSnapshot, options) {
|
|
872
900
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -879,6 +907,9 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
879
907
|
},
|
|
880
908
|
updateDraftPost(name, postRequest, options) {
|
|
881
909
|
return localVarFp.updateDraftPost(name, postRequest, options).then((request) => request(axios, basePath));
|
|
910
|
+
},
|
|
911
|
+
updatePostContent(name, content, options) {
|
|
912
|
+
return localVarFp.updatePostContent(name, content, options).then((request) => request(axios, basePath));
|
|
882
913
|
}
|
|
883
914
|
};
|
|
884
915
|
};
|
|
@@ -887,7 +918,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
887
918
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
888
919
|
}
|
|
889
920
|
listPosts(requestParameters = {}, options) {
|
|
890
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
921
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
891
922
|
}
|
|
892
923
|
publishPost(requestParameters, options) {
|
|
893
924
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -901,11 +932,14 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
901
932
|
updateDraftPost(requestParameters, options) {
|
|
902
933
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
903
934
|
}
|
|
935
|
+
updatePostContent(requestParameters, options) {
|
|
936
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updatePostContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
|
|
937
|
+
}
|
|
904
938
|
}
|
|
905
939
|
|
|
906
940
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
907
941
|
return {
|
|
908
|
-
listReplies: async (commentName, size,
|
|
942
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
909
943
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
910
944
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
911
945
|
let baseOptions;
|
|
@@ -923,15 +957,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
923
957
|
if (size !== void 0) {
|
|
924
958
|
localVarQueryParameter["size"] = size;
|
|
925
959
|
}
|
|
926
|
-
if (page !== void 0) {
|
|
927
|
-
localVarQueryParameter["page"] = page;
|
|
928
|
-
}
|
|
929
960
|
if (labelSelector) {
|
|
930
961
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
931
962
|
}
|
|
932
963
|
if (fieldSelector) {
|
|
933
964
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
934
965
|
}
|
|
966
|
+
if (page !== void 0) {
|
|
967
|
+
localVarQueryParameter["page"] = page;
|
|
968
|
+
}
|
|
935
969
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
936
970
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
937
971
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -945,8 +979,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
945
979
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
946
980
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
947
981
|
return {
|
|
948
|
-
async listReplies(commentName, size,
|
|
949
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size,
|
|
982
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
983
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
950
984
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
951
985
|
}
|
|
952
986
|
};
|
|
@@ -954,14 +988,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
954
988
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
955
989
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
956
990
|
return {
|
|
957
|
-
listReplies(commentName, size,
|
|
958
|
-
return localVarFp.listReplies(commentName, size,
|
|
991
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
992
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
959
993
|
}
|
|
960
994
|
};
|
|
961
995
|
};
|
|
962
996
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
963
997
|
listReplies(requestParameters = {}, options) {
|
|
964
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
998
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
965
999
|
}
|
|
966
1000
|
}
|
|
967
1001
|
|
|
@@ -990,7 +1024,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
990
1024
|
options: localVarRequestOptions
|
|
991
1025
|
};
|
|
992
1026
|
},
|
|
993
|
-
listSinglePages: async (sort,
|
|
1027
|
+
listSinglePages: async (sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
994
1028
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
995
1029
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
996
1030
|
let baseOptions;
|
|
@@ -1005,33 +1039,33 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1005
1039
|
if (sort !== void 0) {
|
|
1006
1040
|
localVarQueryParameter["sort"] = sort;
|
|
1007
1041
|
}
|
|
1008
|
-
if (
|
|
1009
|
-
localVarQueryParameter["
|
|
1042
|
+
if (publishPhase !== void 0) {
|
|
1043
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1010
1044
|
}
|
|
1011
|
-
if (
|
|
1012
|
-
localVarQueryParameter["
|
|
1045
|
+
if (sortOrder !== void 0) {
|
|
1046
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1013
1047
|
}
|
|
1014
1048
|
if (contributor) {
|
|
1015
1049
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1016
1050
|
}
|
|
1017
|
-
if (
|
|
1018
|
-
localVarQueryParameter["
|
|
1051
|
+
if (keyword !== void 0) {
|
|
1052
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1019
1053
|
}
|
|
1020
|
-
if (
|
|
1021
|
-
localVarQueryParameter["
|
|
1054
|
+
if (visible !== void 0) {
|
|
1055
|
+
localVarQueryParameter["visible"] = visible;
|
|
1022
1056
|
}
|
|
1023
1057
|
if (size !== void 0) {
|
|
1024
1058
|
localVarQueryParameter["size"] = size;
|
|
1025
1059
|
}
|
|
1026
|
-
if (page !== void 0) {
|
|
1027
|
-
localVarQueryParameter["page"] = page;
|
|
1028
|
-
}
|
|
1029
1060
|
if (labelSelector) {
|
|
1030
1061
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1031
1062
|
}
|
|
1032
1063
|
if (fieldSelector) {
|
|
1033
1064
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1034
1065
|
}
|
|
1066
|
+
if (page !== void 0) {
|
|
1067
|
+
localVarQueryParameter["page"] = page;
|
|
1068
|
+
}
|
|
1035
1069
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1036
1070
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1037
1071
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1084,6 +1118,30 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1084
1118
|
url: toPathString(localVarUrlObj),
|
|
1085
1119
|
options: localVarRequestOptions
|
|
1086
1120
|
};
|
|
1121
|
+
},
|
|
1122
|
+
updateSinglePageContent: async (name, content, options = {}) => {
|
|
1123
|
+
assertParamExists("updateSinglePageContent", "name", name);
|
|
1124
|
+
assertParamExists("updateSinglePageContent", "content", content);
|
|
1125
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1126
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1127
|
+
let baseOptions;
|
|
1128
|
+
if (configuration) {
|
|
1129
|
+
baseOptions = configuration.baseOptions;
|
|
1130
|
+
}
|
|
1131
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1132
|
+
const localVarHeaderParameter = {};
|
|
1133
|
+
const localVarQueryParameter = {};
|
|
1134
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1135
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1136
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1137
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1138
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1139
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1140
|
+
localVarRequestOptions.data = serializeDataIfNeeded(content, localVarRequestOptions, configuration);
|
|
1141
|
+
return {
|
|
1142
|
+
url: toPathString(localVarUrlObj),
|
|
1143
|
+
options: localVarRequestOptions
|
|
1144
|
+
};
|
|
1087
1145
|
}
|
|
1088
1146
|
};
|
|
1089
1147
|
};
|
|
@@ -1094,8 +1152,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1094
1152
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1095
1153
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1096
1154
|
},
|
|
1097
|
-
async listSinglePages(sort,
|
|
1098
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1155
|
+
async listSinglePages(sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
1156
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
1099
1157
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1100
1158
|
},
|
|
1101
1159
|
async publishSinglePage(name, options) {
|
|
@@ -1105,6 +1163,10 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1105
1163
|
async updateDraftSinglePage(name, singlePageRequest, options) {
|
|
1106
1164
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftSinglePage(name, singlePageRequest, options);
|
|
1107
1165
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1166
|
+
},
|
|
1167
|
+
async updateSinglePageContent(name, content, options) {
|
|
1168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSinglePageContent(name, content, options);
|
|
1169
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1108
1170
|
}
|
|
1109
1171
|
};
|
|
1110
1172
|
};
|
|
@@ -1114,14 +1176,17 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1114
1176
|
draftSinglePage(singlePageRequest, options) {
|
|
1115
1177
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1116
1178
|
},
|
|
1117
|
-
listSinglePages(sort,
|
|
1118
|
-
return localVarFp.listSinglePages(sort,
|
|
1179
|
+
listSinglePages(sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
1180
|
+
return localVarFp.listSinglePages(sort, publishPhase, sortOrder, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1119
1181
|
},
|
|
1120
1182
|
publishSinglePage(name, options) {
|
|
1121
1183
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
1122
1184
|
},
|
|
1123
1185
|
updateDraftSinglePage(name, singlePageRequest, options) {
|
|
1124
1186
|
return localVarFp.updateDraftSinglePage(name, singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1187
|
+
},
|
|
1188
|
+
updateSinglePageContent(name, content, options) {
|
|
1189
|
+
return localVarFp.updateSinglePageContent(name, content, options).then((request) => request(axios, basePath));
|
|
1125
1190
|
}
|
|
1126
1191
|
};
|
|
1127
1192
|
};
|
|
@@ -1130,7 +1195,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1130
1195
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1131
1196
|
}
|
|
1132
1197
|
listSinglePages(requestParameters = {}, options) {
|
|
1133
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1198
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.publishPhase, requestParameters.sortOrder, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1134
1199
|
}
|
|
1135
1200
|
publishSinglePage(requestParameters, options) {
|
|
1136
1201
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1138,6 +1203,9 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1138
1203
|
updateDraftSinglePage(requestParameters, options) {
|
|
1139
1204
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1140
1205
|
}
|
|
1206
|
+
updateSinglePageContent(requestParameters, options) {
|
|
1207
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateSinglePageContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
|
|
1208
|
+
}
|
|
1141
1209
|
}
|
|
1142
1210
|
|
|
1143
1211
|
const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function(configuration) {
|
|
@@ -1216,7 +1284,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1216
1284
|
options: localVarRequestOptions
|
|
1217
1285
|
};
|
|
1218
1286
|
},
|
|
1219
|
-
listThemes: async (uninstalled, size,
|
|
1287
|
+
listThemes: async (uninstalled, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
1220
1288
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1221
1289
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1222
1290
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1235,15 +1303,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1235
1303
|
if (size !== void 0) {
|
|
1236
1304
|
localVarQueryParameter["size"] = size;
|
|
1237
1305
|
}
|
|
1238
|
-
if (page !== void 0) {
|
|
1239
|
-
localVarQueryParameter["page"] = page;
|
|
1240
|
-
}
|
|
1241
1306
|
if (labelSelector) {
|
|
1242
1307
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1243
1308
|
}
|
|
1244
1309
|
if (fieldSelector) {
|
|
1245
1310
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1246
1311
|
}
|
|
1312
|
+
if (page !== void 0) {
|
|
1313
|
+
localVarQueryParameter["page"] = page;
|
|
1314
|
+
}
|
|
1247
1315
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1248
1316
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1249
1317
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1310,8 +1378,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1310
1378
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1311
1379
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1312
1380
|
},
|
|
1313
|
-
async listThemes(uninstalled, size,
|
|
1314
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size,
|
|
1381
|
+
async listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
|
|
1382
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options);
|
|
1315
1383
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1316
1384
|
},
|
|
1317
1385
|
async reloadThemeSetting(name, options) {
|
|
@@ -1330,8 +1398,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1330
1398
|
installTheme(file, options) {
|
|
1331
1399
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1332
1400
|
},
|
|
1333
|
-
listThemes(uninstalled, size,
|
|
1334
|
-
return localVarFp.listThemes(uninstalled, size,
|
|
1401
|
+
listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
|
|
1402
|
+
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1335
1403
|
},
|
|
1336
1404
|
reloadThemeSetting(name, options) {
|
|
1337
1405
|
return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
|
|
@@ -1346,7 +1414,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1346
1414
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1347
1415
|
}
|
|
1348
1416
|
listThemes(requestParameters, options) {
|
|
1349
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1417
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1350
1418
|
}
|
|
1351
1419
|
reloadThemeSetting(requestParameters, options) {
|
|
1352
1420
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1620,12 +1688,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1620
1688
|
if (version !== void 0) {
|
|
1621
1689
|
localVarQueryParameter["version"] = version;
|
|
1622
1690
|
}
|
|
1623
|
-
if (kind !== void 0) {
|
|
1624
|
-
localVarQueryParameter["kind"] = kind;
|
|
1625
|
-
}
|
|
1626
1691
|
if (group !== void 0) {
|
|
1627
1692
|
localVarQueryParameter["group"] = group;
|
|
1628
1693
|
}
|
|
1694
|
+
if (kind !== void 0) {
|
|
1695
|
+
localVarQueryParameter["kind"] = kind;
|
|
1696
|
+
}
|
|
1629
1697
|
if (size !== void 0) {
|
|
1630
1698
|
localVarQueryParameter["size"] = size;
|
|
1631
1699
|
}
|
|
@@ -1707,7 +1775,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1707
1775
|
|
|
1708
1776
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1709
1777
|
return {
|
|
1710
|
-
searchPost: async (keyword,
|
|
1778
|
+
searchPost: async (keyword, highlightPreTag, highlightPostTag, limit, options = {}) => {
|
|
1711
1779
|
assertParamExists("searchPost", "keyword", keyword);
|
|
1712
1780
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
1713
1781
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1720,18 +1788,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1720
1788
|
const localVarQueryParameter = {};
|
|
1721
1789
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1722
1790
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1723
|
-
if (limit !== void 0) {
|
|
1724
|
-
localVarQueryParameter["limit"] = limit;
|
|
1725
|
-
}
|
|
1726
|
-
if (keyword !== void 0) {
|
|
1727
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1728
|
-
}
|
|
1729
1791
|
if (highlightPreTag !== void 0) {
|
|
1730
1792
|
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1731
1793
|
}
|
|
1732
1794
|
if (highlightPostTag !== void 0) {
|
|
1733
1795
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1734
1796
|
}
|
|
1797
|
+
if (keyword !== void 0) {
|
|
1798
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1799
|
+
}
|
|
1800
|
+
if (limit !== void 0) {
|
|
1801
|
+
localVarQueryParameter["limit"] = limit;
|
|
1802
|
+
}
|
|
1735
1803
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1736
1804
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1737
1805
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1745,8 +1813,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1745
1813
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
1746
1814
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
1747
1815
|
return {
|
|
1748
|
-
async searchPost(keyword,
|
|
1749
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword,
|
|
1816
|
+
async searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
|
|
1817
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options);
|
|
1750
1818
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1751
1819
|
}
|
|
1752
1820
|
};
|
|
@@ -1754,14 +1822,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
1754
1822
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
1755
1823
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
1756
1824
|
return {
|
|
1757
|
-
searchPost(keyword,
|
|
1758
|
-
return localVarFp.searchPost(keyword,
|
|
1825
|
+
searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
|
|
1826
|
+
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options).then((request) => request(axios, basePath));
|
|
1759
1827
|
}
|
|
1760
1828
|
};
|
|
1761
1829
|
};
|
|
1762
1830
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
1763
1831
|
searchPost(requestParameters, options) {
|
|
1764
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
1832
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.highlightPreTag, requestParameters.highlightPostTag, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
1765
1833
|
}
|
|
1766
1834
|
}
|
|
1767
1835
|
|