@halo-dev/api-client 0.0.60 → 0.0.62
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 +175 -113
- package/dist/index.d.ts +289 -199
- package/dist/index.mjs +175 -113
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -69,7 +69,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
69
69
|
|
|
70
70
|
const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
|
|
71
71
|
return {
|
|
72
|
-
searchAttachments: async (policy, sort, displayName,
|
|
72
|
+
searchAttachments: async (policy, sort, displayName, ungrouped, uploadedBy, group, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
73
73
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
74
74
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
75
75
|
let baseOptions;
|
|
@@ -90,27 +90,27 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
90
90
|
if (displayName !== void 0) {
|
|
91
91
|
localVarQueryParameter["displayName"] = displayName;
|
|
92
92
|
}
|
|
93
|
-
if (group !== void 0) {
|
|
94
|
-
localVarQueryParameter["group"] = group;
|
|
95
|
-
}
|
|
96
93
|
if (ungrouped !== void 0) {
|
|
97
94
|
localVarQueryParameter["ungrouped"] = ungrouped;
|
|
98
95
|
}
|
|
99
96
|
if (uploadedBy !== void 0) {
|
|
100
97
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
101
98
|
}
|
|
99
|
+
if (group !== void 0) {
|
|
100
|
+
localVarQueryParameter["group"] = group;
|
|
101
|
+
}
|
|
102
102
|
if (size !== void 0) {
|
|
103
103
|
localVarQueryParameter["size"] = size;
|
|
104
104
|
}
|
|
105
|
-
if (page !== void 0) {
|
|
106
|
-
localVarQueryParameter["page"] = page;
|
|
107
|
-
}
|
|
108
105
|
if (labelSelector) {
|
|
109
106
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
110
107
|
}
|
|
111
108
|
if (fieldSelector) {
|
|
112
109
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
113
110
|
}
|
|
111
|
+
if (page !== void 0) {
|
|
112
|
+
localVarQueryParameter["page"] = page;
|
|
113
|
+
}
|
|
114
114
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
115
115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
116
116
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -158,8 +158,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
158
158
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
159
159
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
160
160
|
return {
|
|
161
|
-
async searchAttachments(policy, sort, displayName,
|
|
162
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName,
|
|
161
|
+
async searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
|
|
163
163
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
164
|
},
|
|
165
165
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -171,8 +171,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
171
171
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
172
172
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
173
173
|
return {
|
|
174
|
-
searchAttachments(policy, sort, displayName,
|
|
175
|
-
return localVarFp.searchAttachments(policy, sort, displayName,
|
|
174
|
+
searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
175
|
+
return localVarFp.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
176
176
|
},
|
|
177
177
|
uploadAttachment(file, policyName, groupName, options) {
|
|
178
178
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -181,7 +181,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
181
181
|
};
|
|
182
182
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
183
183
|
searchAttachments(requestParameters = {}, options) {
|
|
184
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.
|
|
184
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.group, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
185
185
|
}
|
|
186
186
|
uploadAttachment(requestParameters, options) {
|
|
187
187
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -237,7 +237,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
237
237
|
options: localVarRequestOptions
|
|
238
238
|
};
|
|
239
239
|
},
|
|
240
|
-
listComments: async (sort,
|
|
240
|
+
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
241
241
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
242
242
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
243
243
|
let baseOptions;
|
|
@@ -252,15 +252,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
252
252
|
if (sort !== void 0) {
|
|
253
253
|
localVarQueryParameter["sort"] = sort;
|
|
254
254
|
}
|
|
255
|
-
if (keyword !== void 0) {
|
|
256
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
257
|
-
}
|
|
258
|
-
if (hidden !== void 0) {
|
|
259
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
260
|
-
}
|
|
261
|
-
if (top !== void 0) {
|
|
262
|
-
localVarQueryParameter["top"] = top;
|
|
263
|
-
}
|
|
264
255
|
if (sortOrder !== void 0) {
|
|
265
256
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
266
257
|
}
|
|
@@ -282,18 +273,27 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
282
273
|
if (subjectName !== void 0) {
|
|
283
274
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
284
275
|
}
|
|
276
|
+
if (keyword !== void 0) {
|
|
277
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
278
|
+
}
|
|
279
|
+
if (hidden !== void 0) {
|
|
280
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
281
|
+
}
|
|
282
|
+
if (top !== void 0) {
|
|
283
|
+
localVarQueryParameter["top"] = top;
|
|
284
|
+
}
|
|
285
285
|
if (size !== void 0) {
|
|
286
286
|
localVarQueryParameter["size"] = size;
|
|
287
287
|
}
|
|
288
|
-
if (page !== void 0) {
|
|
289
|
-
localVarQueryParameter["page"] = page;
|
|
290
|
-
}
|
|
291
288
|
if (labelSelector) {
|
|
292
289
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
293
290
|
}
|
|
294
291
|
if (fieldSelector) {
|
|
295
292
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
296
293
|
}
|
|
294
|
+
if (page !== void 0) {
|
|
295
|
+
localVarQueryParameter["page"] = page;
|
|
296
|
+
}
|
|
297
297
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
298
298
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
299
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -315,8 +315,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
315
315
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
316
316
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
317
317
|
},
|
|
318
|
-
async listComments(sort,
|
|
319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort,
|
|
318
|
+
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
|
|
320
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
321
|
}
|
|
322
322
|
};
|
|
@@ -330,8 +330,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
330
330
|
createReply(name, replyRequest, options) {
|
|
331
331
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
332
332
|
},
|
|
333
|
-
listComments(sort,
|
|
334
|
-
return localVarFp.listComments(sort,
|
|
333
|
+
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
334
|
+
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
};
|
|
@@ -343,7 +343,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
343
343
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
344
344
|
}
|
|
345
345
|
listComments(requestParameters = {}, options) {
|
|
346
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
346
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.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));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
|
|
@@ -538,7 +538,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
538
538
|
options: localVarRequestOptions
|
|
539
539
|
};
|
|
540
540
|
},
|
|
541
|
-
listPlugins: async (sort,
|
|
541
|
+
listPlugins: async (sort, enabled, keyword, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
542
542
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
543
543
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
544
544
|
let baseOptions;
|
|
@@ -553,24 +553,45 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
553
553
|
if (sort) {
|
|
554
554
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
555
555
|
}
|
|
556
|
-
if (keyword !== void 0) {
|
|
557
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
558
|
-
}
|
|
559
556
|
if (enabled !== void 0) {
|
|
560
557
|
localVarQueryParameter["enabled"] = enabled;
|
|
561
558
|
}
|
|
559
|
+
if (keyword !== void 0) {
|
|
560
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
561
|
+
}
|
|
562
562
|
if (size !== void 0) {
|
|
563
563
|
localVarQueryParameter["size"] = size;
|
|
564
564
|
}
|
|
565
|
-
if (page !== void 0) {
|
|
566
|
-
localVarQueryParameter["page"] = page;
|
|
567
|
-
}
|
|
568
565
|
if (labelSelector) {
|
|
569
566
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
570
567
|
}
|
|
571
568
|
if (fieldSelector) {
|
|
572
569
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
573
570
|
}
|
|
571
|
+
if (page !== void 0) {
|
|
572
|
+
localVarQueryParameter["page"] = page;
|
|
573
|
+
}
|
|
574
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
575
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
576
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
577
|
+
return {
|
|
578
|
+
url: toPathString(localVarUrlObj),
|
|
579
|
+
options: localVarRequestOptions
|
|
580
|
+
};
|
|
581
|
+
},
|
|
582
|
+
resetPluginConfig: async (name, options = {}) => {
|
|
583
|
+
assertParamExists("resetPluginConfig", "name", name);
|
|
584
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/reset-config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
585
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
586
|
+
let baseOptions;
|
|
587
|
+
if (configuration) {
|
|
588
|
+
baseOptions = configuration.baseOptions;
|
|
589
|
+
}
|
|
590
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
591
|
+
const localVarHeaderParameter = {};
|
|
592
|
+
const localVarQueryParameter = {};
|
|
593
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
594
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
574
595
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
575
596
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
576
597
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -616,8 +637,12 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
616
637
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
617
638
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
618
639
|
},
|
|
619
|
-
async listPlugins(sort,
|
|
620
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
640
|
+
async listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options);
|
|
642
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
643
|
+
},
|
|
644
|
+
async resetPluginConfig(name, options) {
|
|
645
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetPluginConfig(name, options);
|
|
621
646
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
622
647
|
},
|
|
623
648
|
async upgradePlugin(name, file, options) {
|
|
@@ -632,8 +657,11 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
632
657
|
installPlugin(file, options) {
|
|
633
658
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
634
659
|
},
|
|
635
|
-
listPlugins(sort,
|
|
636
|
-
return localVarFp.listPlugins(sort,
|
|
660
|
+
listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
661
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
662
|
+
},
|
|
663
|
+
resetPluginConfig(name, options) {
|
|
664
|
+
return localVarFp.resetPluginConfig(name, options).then((request) => request(axios, basePath));
|
|
637
665
|
},
|
|
638
666
|
upgradePlugin(name, file, options) {
|
|
639
667
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -645,7 +673,10 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
645
673
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
646
674
|
}
|
|
647
675
|
listPlugins(requestParameters = {}, options) {
|
|
648
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
676
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
677
|
+
}
|
|
678
|
+
resetPluginConfig(requestParameters, options) {
|
|
679
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).resetPluginConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
649
680
|
}
|
|
650
681
|
upgradePlugin(requestParameters, options) {
|
|
651
682
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -677,7 +708,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
677
708
|
options: localVarRequestOptions
|
|
678
709
|
};
|
|
679
710
|
},
|
|
680
|
-
listPosts: async (sort,
|
|
711
|
+
listPosts: async (sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
681
712
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
682
713
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
683
714
|
let baseOptions;
|
|
@@ -692,39 +723,39 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
692
723
|
if (sort !== void 0) {
|
|
693
724
|
localVarQueryParameter["sort"] = sort;
|
|
694
725
|
}
|
|
695
|
-
if (
|
|
696
|
-
localVarQueryParameter["
|
|
726
|
+
if (contributor) {
|
|
727
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
697
728
|
}
|
|
698
|
-
if (
|
|
699
|
-
localVarQueryParameter["
|
|
729
|
+
if (publishPhase !== void 0) {
|
|
730
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
700
731
|
}
|
|
701
|
-
if (
|
|
702
|
-
localVarQueryParameter["
|
|
732
|
+
if (category) {
|
|
733
|
+
localVarQueryParameter["category"] = Array.from(category);
|
|
703
734
|
}
|
|
704
735
|
if (sortOrder !== void 0) {
|
|
705
736
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
706
737
|
}
|
|
707
|
-
if (
|
|
708
|
-
localVarQueryParameter["
|
|
738
|
+
if (tag) {
|
|
739
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
709
740
|
}
|
|
710
|
-
if (
|
|
711
|
-
localVarQueryParameter["
|
|
741
|
+
if (keyword !== void 0) {
|
|
742
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
712
743
|
}
|
|
713
|
-
if (
|
|
714
|
-
localVarQueryParameter["
|
|
744
|
+
if (visible !== void 0) {
|
|
745
|
+
localVarQueryParameter["visible"] = visible;
|
|
715
746
|
}
|
|
716
747
|
if (size !== void 0) {
|
|
717
748
|
localVarQueryParameter["size"] = size;
|
|
718
749
|
}
|
|
719
|
-
if (page !== void 0) {
|
|
720
|
-
localVarQueryParameter["page"] = page;
|
|
721
|
-
}
|
|
722
750
|
if (labelSelector) {
|
|
723
751
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
724
752
|
}
|
|
725
753
|
if (fieldSelector) {
|
|
726
754
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
727
755
|
}
|
|
756
|
+
if (page !== void 0) {
|
|
757
|
+
localVarQueryParameter["page"] = page;
|
|
758
|
+
}
|
|
728
759
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
729
760
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
730
761
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -856,8 +887,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
856
887
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
857
888
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
858
889
|
},
|
|
859
|
-
async listPosts(sort,
|
|
860
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
890
|
+
async listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
891
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
861
892
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
862
893
|
},
|
|
863
894
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -888,8 +919,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
888
919
|
draftPost(postRequest, options) {
|
|
889
920
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
890
921
|
},
|
|
891
|
-
listPosts(sort,
|
|
892
|
-
return localVarFp.listPosts(sort,
|
|
922
|
+
listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
923
|
+
return localVarFp.listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
893
924
|
},
|
|
894
925
|
publishPost(name, headSnapshot, options) {
|
|
895
926
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -913,7 +944,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
913
944
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
914
945
|
}
|
|
915
946
|
listPosts(requestParameters = {}, options) {
|
|
916
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
947
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.contributor, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.tag, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
917
948
|
}
|
|
918
949
|
publishPost(requestParameters, options) {
|
|
919
950
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -934,7 +965,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
934
965
|
|
|
935
966
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
936
967
|
return {
|
|
937
|
-
listReplies: async (commentName, size,
|
|
968
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
938
969
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
939
970
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
940
971
|
let baseOptions;
|
|
@@ -952,15 +983,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
952
983
|
if (size !== void 0) {
|
|
953
984
|
localVarQueryParameter["size"] = size;
|
|
954
985
|
}
|
|
955
|
-
if (page !== void 0) {
|
|
956
|
-
localVarQueryParameter["page"] = page;
|
|
957
|
-
}
|
|
958
986
|
if (labelSelector) {
|
|
959
987
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
960
988
|
}
|
|
961
989
|
if (fieldSelector) {
|
|
962
990
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
963
991
|
}
|
|
992
|
+
if (page !== void 0) {
|
|
993
|
+
localVarQueryParameter["page"] = page;
|
|
994
|
+
}
|
|
964
995
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
965
996
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
966
997
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -974,8 +1005,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
974
1005
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
975
1006
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
976
1007
|
return {
|
|
977
|
-
async listReplies(commentName, size,
|
|
978
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size,
|
|
1008
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
1009
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
979
1010
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
980
1011
|
}
|
|
981
1012
|
};
|
|
@@ -983,14 +1014,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
983
1014
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
984
1015
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
985
1016
|
return {
|
|
986
|
-
listReplies(commentName, size,
|
|
987
|
-
return localVarFp.listReplies(commentName, size,
|
|
1017
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
1018
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
988
1019
|
}
|
|
989
1020
|
};
|
|
990
1021
|
};
|
|
991
1022
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
992
1023
|
listReplies(requestParameters = {}, options) {
|
|
993
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
1024
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
994
1025
|
}
|
|
995
1026
|
}
|
|
996
1027
|
|
|
@@ -1019,7 +1050,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1019
1050
|
options: localVarRequestOptions
|
|
1020
1051
|
};
|
|
1021
1052
|
},
|
|
1022
|
-
listSinglePages: async (sort,
|
|
1053
|
+
listSinglePages: async (sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
1023
1054
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1024
1055
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1025
1056
|
let baseOptions;
|
|
@@ -1034,33 +1065,33 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1034
1065
|
if (sort !== void 0) {
|
|
1035
1066
|
localVarQueryParameter["sort"] = sort;
|
|
1036
1067
|
}
|
|
1037
|
-
if (
|
|
1038
|
-
localVarQueryParameter["
|
|
1068
|
+
if (contributor) {
|
|
1069
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1039
1070
|
}
|
|
1040
|
-
if (
|
|
1041
|
-
localVarQueryParameter["
|
|
1071
|
+
if (publishPhase !== void 0) {
|
|
1072
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1042
1073
|
}
|
|
1043
1074
|
if (sortOrder !== void 0) {
|
|
1044
1075
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1045
1076
|
}
|
|
1046
|
-
if (
|
|
1047
|
-
localVarQueryParameter["
|
|
1077
|
+
if (keyword !== void 0) {
|
|
1078
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1048
1079
|
}
|
|
1049
|
-
if (
|
|
1050
|
-
localVarQueryParameter["
|
|
1080
|
+
if (visible !== void 0) {
|
|
1081
|
+
localVarQueryParameter["visible"] = visible;
|
|
1051
1082
|
}
|
|
1052
1083
|
if (size !== void 0) {
|
|
1053
1084
|
localVarQueryParameter["size"] = size;
|
|
1054
1085
|
}
|
|
1055
|
-
if (page !== void 0) {
|
|
1056
|
-
localVarQueryParameter["page"] = page;
|
|
1057
|
-
}
|
|
1058
1086
|
if (labelSelector) {
|
|
1059
1087
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1060
1088
|
}
|
|
1061
1089
|
if (fieldSelector) {
|
|
1062
1090
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1063
1091
|
}
|
|
1092
|
+
if (page !== void 0) {
|
|
1093
|
+
localVarQueryParameter["page"] = page;
|
|
1094
|
+
}
|
|
1064
1095
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1065
1096
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1066
1097
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1147,8 +1178,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1147
1178
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1148
1179
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1149
1180
|
},
|
|
1150
|
-
async listSinglePages(sort,
|
|
1151
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1181
|
+
async listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
1182
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
1152
1183
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1153
1184
|
},
|
|
1154
1185
|
async publishSinglePage(name, options) {
|
|
@@ -1171,8 +1202,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1171
1202
|
draftSinglePage(singlePageRequest, options) {
|
|
1172
1203
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1173
1204
|
},
|
|
1174
|
-
listSinglePages(sort,
|
|
1175
|
-
return localVarFp.listSinglePages(sort,
|
|
1205
|
+
listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
1206
|
+
return localVarFp.listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1176
1207
|
},
|
|
1177
1208
|
publishSinglePage(name, options) {
|
|
1178
1209
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1190,7 +1221,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1190
1221
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1191
1222
|
}
|
|
1192
1223
|
listSinglePages(requestParameters = {}, options) {
|
|
1193
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1224
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.contributor, requestParameters.publishPhase, requestParameters.sortOrder, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1194
1225
|
}
|
|
1195
1226
|
publishSinglePage(requestParameters, options) {
|
|
1196
1227
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1279,7 +1310,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1279
1310
|
options: localVarRequestOptions
|
|
1280
1311
|
};
|
|
1281
1312
|
},
|
|
1282
|
-
listThemes: async (uninstalled, size,
|
|
1313
|
+
listThemes: async (uninstalled, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
1283
1314
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1284
1315
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1285
1316
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1298,15 +1329,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1298
1329
|
if (size !== void 0) {
|
|
1299
1330
|
localVarQueryParameter["size"] = size;
|
|
1300
1331
|
}
|
|
1301
|
-
if (page !== void 0) {
|
|
1302
|
-
localVarQueryParameter["page"] = page;
|
|
1303
|
-
}
|
|
1304
1332
|
if (labelSelector) {
|
|
1305
1333
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1306
1334
|
}
|
|
1307
1335
|
if (fieldSelector) {
|
|
1308
1336
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1309
1337
|
}
|
|
1338
|
+
if (page !== void 0) {
|
|
1339
|
+
localVarQueryParameter["page"] = page;
|
|
1340
|
+
}
|
|
1310
1341
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1311
1342
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1312
1343
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1336,6 +1367,27 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1336
1367
|
options: localVarRequestOptions
|
|
1337
1368
|
};
|
|
1338
1369
|
},
|
|
1370
|
+
resetThemeConfig: async (name, options = {}) => {
|
|
1371
|
+
assertParamExists("resetThemeConfig", "name", name);
|
|
1372
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reset-config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1373
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1374
|
+
let baseOptions;
|
|
1375
|
+
if (configuration) {
|
|
1376
|
+
baseOptions = configuration.baseOptions;
|
|
1377
|
+
}
|
|
1378
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1379
|
+
const localVarHeaderParameter = {};
|
|
1380
|
+
const localVarQueryParameter = {};
|
|
1381
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1382
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1383
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1384
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1385
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1386
|
+
return {
|
|
1387
|
+
url: toPathString(localVarUrlObj),
|
|
1388
|
+
options: localVarRequestOptions
|
|
1389
|
+
};
|
|
1390
|
+
},
|
|
1339
1391
|
upgradeTheme: async (name, file, options = {}) => {
|
|
1340
1392
|
assertParamExists("upgradeTheme", "name", name);
|
|
1341
1393
|
assertParamExists("upgradeTheme", "file", file);
|
|
@@ -1373,14 +1425,18 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1373
1425
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1374
1426
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1375
1427
|
},
|
|
1376
|
-
async listThemes(uninstalled, size,
|
|
1377
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size,
|
|
1428
|
+
async listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
|
|
1429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options);
|
|
1378
1430
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1379
1431
|
},
|
|
1380
1432
|
async reload(name, options) {
|
|
1381
1433
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reload(name, options);
|
|
1382
1434
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1383
1435
|
},
|
|
1436
|
+
async resetThemeConfig(name, options) {
|
|
1437
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetThemeConfig(name, options);
|
|
1438
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1439
|
+
},
|
|
1384
1440
|
async upgradeTheme(name, file, options) {
|
|
1385
1441
|
const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeTheme(name, file, options);
|
|
1386
1442
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
@@ -1393,12 +1449,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1393
1449
|
installTheme(file, options) {
|
|
1394
1450
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1395
1451
|
},
|
|
1396
|
-
listThemes(uninstalled, size,
|
|
1397
|
-
return localVarFp.listThemes(uninstalled, size,
|
|
1452
|
+
listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
|
|
1453
|
+
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1398
1454
|
},
|
|
1399
1455
|
reload(name, options) {
|
|
1400
1456
|
return localVarFp.reload(name, options).then((request) => request(axios, basePath));
|
|
1401
1457
|
},
|
|
1458
|
+
resetThemeConfig(name, options) {
|
|
1459
|
+
return localVarFp.resetThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1460
|
+
},
|
|
1402
1461
|
upgradeTheme(name, file, options) {
|
|
1403
1462
|
return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
|
|
1404
1463
|
}
|
|
@@ -1409,11 +1468,14 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1409
1468
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1410
1469
|
}
|
|
1411
1470
|
listThemes(requestParameters, options) {
|
|
1412
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1471
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1413
1472
|
}
|
|
1414
1473
|
reload(requestParameters, options) {
|
|
1415
1474
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1416
1475
|
}
|
|
1476
|
+
resetThemeConfig(requestParameters, options) {
|
|
1477
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).resetThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1478
|
+
}
|
|
1417
1479
|
upgradeTheme(requestParameters, options) {
|
|
1418
1480
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1419
1481
|
}
|
|
@@ -1683,12 +1745,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1683
1745
|
if (version !== void 0) {
|
|
1684
1746
|
localVarQueryParameter["version"] = version;
|
|
1685
1747
|
}
|
|
1686
|
-
if (group !== void 0) {
|
|
1687
|
-
localVarQueryParameter["group"] = group;
|
|
1688
|
-
}
|
|
1689
1748
|
if (kind !== void 0) {
|
|
1690
1749
|
localVarQueryParameter["kind"] = kind;
|
|
1691
1750
|
}
|
|
1751
|
+
if (group !== void 0) {
|
|
1752
|
+
localVarQueryParameter["group"] = group;
|
|
1753
|
+
}
|
|
1692
1754
|
if (size !== void 0) {
|
|
1693
1755
|
localVarQueryParameter["size"] = size;
|
|
1694
1756
|
}
|
|
@@ -1770,7 +1832,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1770
1832
|
|
|
1771
1833
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1772
1834
|
return {
|
|
1773
|
-
searchPost: async (keyword,
|
|
1835
|
+
searchPost: async (keyword, highlightPreTag, highlightPostTag, limit, options = {}) => {
|
|
1774
1836
|
assertParamExists("searchPost", "keyword", keyword);
|
|
1775
1837
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
1776
1838
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1783,18 +1845,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1783
1845
|
const localVarQueryParameter = {};
|
|
1784
1846
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1785
1847
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1786
|
-
if (keyword !== void 0) {
|
|
1787
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1788
|
-
}
|
|
1789
|
-
if (limit !== void 0) {
|
|
1790
|
-
localVarQueryParameter["limit"] = limit;
|
|
1791
|
-
}
|
|
1792
1848
|
if (highlightPreTag !== void 0) {
|
|
1793
1849
|
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1794
1850
|
}
|
|
1795
1851
|
if (highlightPostTag !== void 0) {
|
|
1796
1852
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1797
1853
|
}
|
|
1854
|
+
if (limit !== void 0) {
|
|
1855
|
+
localVarQueryParameter["limit"] = limit;
|
|
1856
|
+
}
|
|
1857
|
+
if (keyword !== void 0) {
|
|
1858
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1859
|
+
}
|
|
1798
1860
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1799
1861
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1800
1862
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1808,8 +1870,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1808
1870
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
1809
1871
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
1810
1872
|
return {
|
|
1811
|
-
async searchPost(keyword,
|
|
1812
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword,
|
|
1873
|
+
async searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
|
|
1874
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options);
|
|
1813
1875
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1814
1876
|
}
|
|
1815
1877
|
};
|
|
@@ -1817,14 +1879,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
1817
1879
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
1818
1880
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
1819
1881
|
return {
|
|
1820
|
-
searchPost(keyword,
|
|
1821
|
-
return localVarFp.searchPost(keyword,
|
|
1882
|
+
searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
|
|
1883
|
+
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options).then((request) => request(axios, basePath));
|
|
1822
1884
|
}
|
|
1823
1885
|
};
|
|
1824
1886
|
};
|
|
1825
1887
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
1826
1888
|
searchPost(requestParameters, options) {
|
|
1827
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
1889
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.highlightPreTag, requestParameters.highlightPostTag, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
1828
1890
|
}
|
|
1829
1891
|
}
|
|
1830
1892
|
|