@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.cjs
CHANGED
|
@@ -77,7 +77,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
77
77
|
|
|
78
78
|
const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
|
|
79
79
|
return {
|
|
80
|
-
searchAttachments: async (policy, sort, displayName,
|
|
80
|
+
searchAttachments: async (policy, sort, displayName, ungrouped, uploadedBy, group, size, 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,27 +98,27 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
98
98
|
if (displayName !== void 0) {
|
|
99
99
|
localVarQueryParameter["displayName"] = displayName;
|
|
100
100
|
}
|
|
101
|
-
if (group !== void 0) {
|
|
102
|
-
localVarQueryParameter["group"] = group;
|
|
103
|
-
}
|
|
104
101
|
if (ungrouped !== void 0) {
|
|
105
102
|
localVarQueryParameter["ungrouped"] = ungrouped;
|
|
106
103
|
}
|
|
107
104
|
if (uploadedBy !== void 0) {
|
|
108
105
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
109
106
|
}
|
|
107
|
+
if (group !== void 0) {
|
|
108
|
+
localVarQueryParameter["group"] = group;
|
|
109
|
+
}
|
|
110
110
|
if (size !== void 0) {
|
|
111
111
|
localVarQueryParameter["size"] = size;
|
|
112
112
|
}
|
|
113
|
-
if (page !== void 0) {
|
|
114
|
-
localVarQueryParameter["page"] = page;
|
|
115
|
-
}
|
|
116
113
|
if (labelSelector) {
|
|
117
114
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
118
115
|
}
|
|
119
116
|
if (fieldSelector) {
|
|
120
117
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
121
118
|
}
|
|
119
|
+
if (page !== void 0) {
|
|
120
|
+
localVarQueryParameter["page"] = page;
|
|
121
|
+
}
|
|
122
122
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123
123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
124
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -166,8 +166,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
166
166
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
167
167
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
168
168
|
return {
|
|
169
|
-
async searchAttachments(policy, sort, displayName,
|
|
170
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName,
|
|
169
|
+
async searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
170
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
|
|
171
171
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
172
172
|
},
|
|
173
173
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -179,8 +179,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
179
179
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
180
180
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
181
181
|
return {
|
|
182
|
-
searchAttachments(policy, sort, displayName,
|
|
183
|
-
return localVarFp.searchAttachments(policy, sort, displayName,
|
|
182
|
+
searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
183
|
+
return localVarFp.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
184
184
|
},
|
|
185
185
|
uploadAttachment(file, policyName, groupName, options) {
|
|
186
186
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -189,7 +189,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
189
189
|
};
|
|
190
190
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
191
191
|
searchAttachments(requestParameters = {}, options) {
|
|
192
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.
|
|
192
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.group, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
193
193
|
}
|
|
194
194
|
uploadAttachment(requestParameters, options) {
|
|
195
195
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -245,7 +245,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
245
245
|
options: localVarRequestOptions
|
|
246
246
|
};
|
|
247
247
|
},
|
|
248
|
-
listComments: async (sort,
|
|
248
|
+
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
249
249
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
250
250
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
251
251
|
let baseOptions;
|
|
@@ -260,15 +260,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
260
260
|
if (sort !== void 0) {
|
|
261
261
|
localVarQueryParameter["sort"] = sort;
|
|
262
262
|
}
|
|
263
|
-
if (keyword !== void 0) {
|
|
264
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
265
|
-
}
|
|
266
|
-
if (hidden !== void 0) {
|
|
267
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
268
|
-
}
|
|
269
|
-
if (top !== void 0) {
|
|
270
|
-
localVarQueryParameter["top"] = top;
|
|
271
|
-
}
|
|
272
263
|
if (sortOrder !== void 0) {
|
|
273
264
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
274
265
|
}
|
|
@@ -290,18 +281,27 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
290
281
|
if (subjectName !== void 0) {
|
|
291
282
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
292
283
|
}
|
|
284
|
+
if (keyword !== void 0) {
|
|
285
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
286
|
+
}
|
|
287
|
+
if (hidden !== void 0) {
|
|
288
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
289
|
+
}
|
|
290
|
+
if (top !== void 0) {
|
|
291
|
+
localVarQueryParameter["top"] = top;
|
|
292
|
+
}
|
|
293
293
|
if (size !== void 0) {
|
|
294
294
|
localVarQueryParameter["size"] = size;
|
|
295
295
|
}
|
|
296
|
-
if (page !== void 0) {
|
|
297
|
-
localVarQueryParameter["page"] = page;
|
|
298
|
-
}
|
|
299
296
|
if (labelSelector) {
|
|
300
297
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
301
298
|
}
|
|
302
299
|
if (fieldSelector) {
|
|
303
300
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
304
301
|
}
|
|
302
|
+
if (page !== void 0) {
|
|
303
|
+
localVarQueryParameter["page"] = page;
|
|
304
|
+
}
|
|
305
305
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
306
306
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
307
307
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -323,8 +323,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
323
323
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
324
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
325
325
|
},
|
|
326
|
-
async listComments(sort,
|
|
327
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort,
|
|
326
|
+
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
|
|
328
328
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
329
329
|
}
|
|
330
330
|
};
|
|
@@ -338,8 +338,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
338
338
|
createReply(name, replyRequest, options) {
|
|
339
339
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
340
340
|
},
|
|
341
|
-
listComments(sort,
|
|
342
|
-
return localVarFp.listComments(sort,
|
|
341
|
+
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
342
|
+
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
};
|
|
@@ -351,7 +351,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
351
351
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
352
352
|
}
|
|
353
353
|
listComments(requestParameters = {}, options) {
|
|
354
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
354
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.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));
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
|
|
@@ -546,7 +546,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
546
546
|
options: localVarRequestOptions
|
|
547
547
|
};
|
|
548
548
|
},
|
|
549
|
-
listPlugins: async (sort,
|
|
549
|
+
listPlugins: async (sort, enabled, keyword, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
550
550
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
551
551
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
552
552
|
let baseOptions;
|
|
@@ -561,24 +561,45 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
561
561
|
if (sort) {
|
|
562
562
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
563
563
|
}
|
|
564
|
-
if (keyword !== void 0) {
|
|
565
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
566
|
-
}
|
|
567
564
|
if (enabled !== void 0) {
|
|
568
565
|
localVarQueryParameter["enabled"] = enabled;
|
|
569
566
|
}
|
|
567
|
+
if (keyword !== void 0) {
|
|
568
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
569
|
+
}
|
|
570
570
|
if (size !== void 0) {
|
|
571
571
|
localVarQueryParameter["size"] = size;
|
|
572
572
|
}
|
|
573
|
-
if (page !== void 0) {
|
|
574
|
-
localVarQueryParameter["page"] = page;
|
|
575
|
-
}
|
|
576
573
|
if (labelSelector) {
|
|
577
574
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
578
575
|
}
|
|
579
576
|
if (fieldSelector) {
|
|
580
577
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
581
578
|
}
|
|
579
|
+
if (page !== void 0) {
|
|
580
|
+
localVarQueryParameter["page"] = page;
|
|
581
|
+
}
|
|
582
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
583
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
584
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
585
|
+
return {
|
|
586
|
+
url: toPathString(localVarUrlObj),
|
|
587
|
+
options: localVarRequestOptions
|
|
588
|
+
};
|
|
589
|
+
},
|
|
590
|
+
resetPluginConfig: async (name, options = {}) => {
|
|
591
|
+
assertParamExists("resetPluginConfig", "name", name);
|
|
592
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/reset-config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
593
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
594
|
+
let baseOptions;
|
|
595
|
+
if (configuration) {
|
|
596
|
+
baseOptions = configuration.baseOptions;
|
|
597
|
+
}
|
|
598
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
599
|
+
const localVarHeaderParameter = {};
|
|
600
|
+
const localVarQueryParameter = {};
|
|
601
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
602
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
582
603
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
583
604
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
584
605
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -624,8 +645,12 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
624
645
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
625
646
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
626
647
|
},
|
|
627
|
-
async listPlugins(sort,
|
|
628
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
648
|
+
async listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
649
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options);
|
|
650
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
651
|
+
},
|
|
652
|
+
async resetPluginConfig(name, options) {
|
|
653
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetPluginConfig(name, options);
|
|
629
654
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
630
655
|
},
|
|
631
656
|
async upgradePlugin(name, file, options) {
|
|
@@ -640,8 +665,11 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
640
665
|
installPlugin(file, options) {
|
|
641
666
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
642
667
|
},
|
|
643
|
-
listPlugins(sort,
|
|
644
|
-
return localVarFp.listPlugins(sort,
|
|
668
|
+
listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
669
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
670
|
+
},
|
|
671
|
+
resetPluginConfig(name, options) {
|
|
672
|
+
return localVarFp.resetPluginConfig(name, options).then((request) => request(axios, basePath));
|
|
645
673
|
},
|
|
646
674
|
upgradePlugin(name, file, options) {
|
|
647
675
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -653,7 +681,10 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
653
681
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
654
682
|
}
|
|
655
683
|
listPlugins(requestParameters = {}, options) {
|
|
656
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
684
|
+
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));
|
|
685
|
+
}
|
|
686
|
+
resetPluginConfig(requestParameters, options) {
|
|
687
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).resetPluginConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
657
688
|
}
|
|
658
689
|
upgradePlugin(requestParameters, options) {
|
|
659
690
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -685,7 +716,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
685
716
|
options: localVarRequestOptions
|
|
686
717
|
};
|
|
687
718
|
},
|
|
688
|
-
listPosts: async (sort,
|
|
719
|
+
listPosts: async (sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
689
720
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
690
721
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
691
722
|
let baseOptions;
|
|
@@ -700,39 +731,39 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
700
731
|
if (sort !== void 0) {
|
|
701
732
|
localVarQueryParameter["sort"] = sort;
|
|
702
733
|
}
|
|
703
|
-
if (
|
|
704
|
-
localVarQueryParameter["
|
|
734
|
+
if (contributor) {
|
|
735
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
705
736
|
}
|
|
706
|
-
if (
|
|
707
|
-
localVarQueryParameter["
|
|
737
|
+
if (publishPhase !== void 0) {
|
|
738
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
708
739
|
}
|
|
709
|
-
if (
|
|
710
|
-
localVarQueryParameter["
|
|
740
|
+
if (category) {
|
|
741
|
+
localVarQueryParameter["category"] = Array.from(category);
|
|
711
742
|
}
|
|
712
743
|
if (sortOrder !== void 0) {
|
|
713
744
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
714
745
|
}
|
|
715
|
-
if (
|
|
716
|
-
localVarQueryParameter["
|
|
746
|
+
if (tag) {
|
|
747
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
717
748
|
}
|
|
718
|
-
if (
|
|
719
|
-
localVarQueryParameter["
|
|
749
|
+
if (keyword !== void 0) {
|
|
750
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
720
751
|
}
|
|
721
|
-
if (
|
|
722
|
-
localVarQueryParameter["
|
|
752
|
+
if (visible !== void 0) {
|
|
753
|
+
localVarQueryParameter["visible"] = visible;
|
|
723
754
|
}
|
|
724
755
|
if (size !== void 0) {
|
|
725
756
|
localVarQueryParameter["size"] = size;
|
|
726
757
|
}
|
|
727
|
-
if (page !== void 0) {
|
|
728
|
-
localVarQueryParameter["page"] = page;
|
|
729
|
-
}
|
|
730
758
|
if (labelSelector) {
|
|
731
759
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
732
760
|
}
|
|
733
761
|
if (fieldSelector) {
|
|
734
762
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
735
763
|
}
|
|
764
|
+
if (page !== void 0) {
|
|
765
|
+
localVarQueryParameter["page"] = page;
|
|
766
|
+
}
|
|
736
767
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
737
768
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
738
769
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -864,8 +895,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
864
895
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
865
896
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
866
897
|
},
|
|
867
|
-
async listPosts(sort,
|
|
868
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
898
|
+
async listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
899
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
869
900
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
870
901
|
},
|
|
871
902
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -896,8 +927,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
896
927
|
draftPost(postRequest, options) {
|
|
897
928
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
898
929
|
},
|
|
899
|
-
listPosts(sort,
|
|
900
|
-
return localVarFp.listPosts(sort,
|
|
930
|
+
listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
931
|
+
return localVarFp.listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
901
932
|
},
|
|
902
933
|
publishPost(name, headSnapshot, options) {
|
|
903
934
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -921,7 +952,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
921
952
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
922
953
|
}
|
|
923
954
|
listPosts(requestParameters = {}, options) {
|
|
924
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
955
|
+
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));
|
|
925
956
|
}
|
|
926
957
|
publishPost(requestParameters, options) {
|
|
927
958
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -942,7 +973,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
942
973
|
|
|
943
974
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
944
975
|
return {
|
|
945
|
-
listReplies: async (commentName, size,
|
|
976
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
946
977
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
947
978
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
948
979
|
let baseOptions;
|
|
@@ -960,15 +991,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
960
991
|
if (size !== void 0) {
|
|
961
992
|
localVarQueryParameter["size"] = size;
|
|
962
993
|
}
|
|
963
|
-
if (page !== void 0) {
|
|
964
|
-
localVarQueryParameter["page"] = page;
|
|
965
|
-
}
|
|
966
994
|
if (labelSelector) {
|
|
967
995
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
968
996
|
}
|
|
969
997
|
if (fieldSelector) {
|
|
970
998
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
971
999
|
}
|
|
1000
|
+
if (page !== void 0) {
|
|
1001
|
+
localVarQueryParameter["page"] = page;
|
|
1002
|
+
}
|
|
972
1003
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
973
1004
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
974
1005
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -982,8 +1013,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
982
1013
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
983
1014
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
984
1015
|
return {
|
|
985
|
-
async listReplies(commentName, size,
|
|
986
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size,
|
|
1016
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
1017
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
987
1018
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
988
1019
|
}
|
|
989
1020
|
};
|
|
@@ -991,14 +1022,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
991
1022
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
992
1023
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
993
1024
|
return {
|
|
994
|
-
listReplies(commentName, size,
|
|
995
|
-
return localVarFp.listReplies(commentName, size,
|
|
1025
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
1026
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
996
1027
|
}
|
|
997
1028
|
};
|
|
998
1029
|
};
|
|
999
1030
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
1000
1031
|
listReplies(requestParameters = {}, options) {
|
|
1001
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
1032
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1002
1033
|
}
|
|
1003
1034
|
}
|
|
1004
1035
|
|
|
@@ -1027,7 +1058,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1027
1058
|
options: localVarRequestOptions
|
|
1028
1059
|
};
|
|
1029
1060
|
},
|
|
1030
|
-
listSinglePages: async (sort,
|
|
1061
|
+
listSinglePages: async (sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
1031
1062
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1032
1063
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1033
1064
|
let baseOptions;
|
|
@@ -1042,33 +1073,33 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1042
1073
|
if (sort !== void 0) {
|
|
1043
1074
|
localVarQueryParameter["sort"] = sort;
|
|
1044
1075
|
}
|
|
1045
|
-
if (
|
|
1046
|
-
localVarQueryParameter["
|
|
1076
|
+
if (contributor) {
|
|
1077
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1047
1078
|
}
|
|
1048
|
-
if (
|
|
1049
|
-
localVarQueryParameter["
|
|
1079
|
+
if (publishPhase !== void 0) {
|
|
1080
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1050
1081
|
}
|
|
1051
1082
|
if (sortOrder !== void 0) {
|
|
1052
1083
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1053
1084
|
}
|
|
1054
|
-
if (
|
|
1055
|
-
localVarQueryParameter["
|
|
1085
|
+
if (keyword !== void 0) {
|
|
1086
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1056
1087
|
}
|
|
1057
|
-
if (
|
|
1058
|
-
localVarQueryParameter["
|
|
1088
|
+
if (visible !== void 0) {
|
|
1089
|
+
localVarQueryParameter["visible"] = visible;
|
|
1059
1090
|
}
|
|
1060
1091
|
if (size !== void 0) {
|
|
1061
1092
|
localVarQueryParameter["size"] = size;
|
|
1062
1093
|
}
|
|
1063
|
-
if (page !== void 0) {
|
|
1064
|
-
localVarQueryParameter["page"] = page;
|
|
1065
|
-
}
|
|
1066
1094
|
if (labelSelector) {
|
|
1067
1095
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1068
1096
|
}
|
|
1069
1097
|
if (fieldSelector) {
|
|
1070
1098
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1071
1099
|
}
|
|
1100
|
+
if (page !== void 0) {
|
|
1101
|
+
localVarQueryParameter["page"] = page;
|
|
1102
|
+
}
|
|
1072
1103
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1073
1104
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1074
1105
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1155,8 +1186,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1155
1186
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1156
1187
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1157
1188
|
},
|
|
1158
|
-
async listSinglePages(sort,
|
|
1159
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1189
|
+
async listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
1190
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
1160
1191
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1161
1192
|
},
|
|
1162
1193
|
async publishSinglePage(name, options) {
|
|
@@ -1179,8 +1210,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1179
1210
|
draftSinglePage(singlePageRequest, options) {
|
|
1180
1211
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1181
1212
|
},
|
|
1182
|
-
listSinglePages(sort,
|
|
1183
|
-
return localVarFp.listSinglePages(sort,
|
|
1213
|
+
listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
1214
|
+
return localVarFp.listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1184
1215
|
},
|
|
1185
1216
|
publishSinglePage(name, options) {
|
|
1186
1217
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1198,7 +1229,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1198
1229
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1199
1230
|
}
|
|
1200
1231
|
listSinglePages(requestParameters = {}, options) {
|
|
1201
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1232
|
+
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));
|
|
1202
1233
|
}
|
|
1203
1234
|
publishSinglePage(requestParameters, options) {
|
|
1204
1235
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1287,7 +1318,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1287
1318
|
options: localVarRequestOptions
|
|
1288
1319
|
};
|
|
1289
1320
|
},
|
|
1290
|
-
listThemes: async (uninstalled, size,
|
|
1321
|
+
listThemes: async (uninstalled, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
1291
1322
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1292
1323
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1293
1324
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1306,15 +1337,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1306
1337
|
if (size !== void 0) {
|
|
1307
1338
|
localVarQueryParameter["size"] = size;
|
|
1308
1339
|
}
|
|
1309
|
-
if (page !== void 0) {
|
|
1310
|
-
localVarQueryParameter["page"] = page;
|
|
1311
|
-
}
|
|
1312
1340
|
if (labelSelector) {
|
|
1313
1341
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1314
1342
|
}
|
|
1315
1343
|
if (fieldSelector) {
|
|
1316
1344
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1317
1345
|
}
|
|
1346
|
+
if (page !== void 0) {
|
|
1347
|
+
localVarQueryParameter["page"] = page;
|
|
1348
|
+
}
|
|
1318
1349
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1319
1350
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1320
1351
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1344,6 +1375,27 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1344
1375
|
options: localVarRequestOptions
|
|
1345
1376
|
};
|
|
1346
1377
|
},
|
|
1378
|
+
resetThemeConfig: async (name, options = {}) => {
|
|
1379
|
+
assertParamExists("resetThemeConfig", "name", name);
|
|
1380
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reset-config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1381
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1382
|
+
let baseOptions;
|
|
1383
|
+
if (configuration) {
|
|
1384
|
+
baseOptions = configuration.baseOptions;
|
|
1385
|
+
}
|
|
1386
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1387
|
+
const localVarHeaderParameter = {};
|
|
1388
|
+
const localVarQueryParameter = {};
|
|
1389
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1390
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1391
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1392
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1393
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1394
|
+
return {
|
|
1395
|
+
url: toPathString(localVarUrlObj),
|
|
1396
|
+
options: localVarRequestOptions
|
|
1397
|
+
};
|
|
1398
|
+
},
|
|
1347
1399
|
upgradeTheme: async (name, file, options = {}) => {
|
|
1348
1400
|
assertParamExists("upgradeTheme", "name", name);
|
|
1349
1401
|
assertParamExists("upgradeTheme", "file", file);
|
|
@@ -1381,14 +1433,18 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1381
1433
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1382
1434
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1383
1435
|
},
|
|
1384
|
-
async listThemes(uninstalled, size,
|
|
1385
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size,
|
|
1436
|
+
async listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
|
|
1437
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options);
|
|
1386
1438
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1387
1439
|
},
|
|
1388
1440
|
async reload(name, options) {
|
|
1389
1441
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reload(name, options);
|
|
1390
1442
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1391
1443
|
},
|
|
1444
|
+
async resetThemeConfig(name, options) {
|
|
1445
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetThemeConfig(name, options);
|
|
1446
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1447
|
+
},
|
|
1392
1448
|
async upgradeTheme(name, file, options) {
|
|
1393
1449
|
const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeTheme(name, file, options);
|
|
1394
1450
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
@@ -1401,12 +1457,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1401
1457
|
installTheme(file, options) {
|
|
1402
1458
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1403
1459
|
},
|
|
1404
|
-
listThemes(uninstalled, size,
|
|
1405
|
-
return localVarFp.listThemes(uninstalled, size,
|
|
1460
|
+
listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
|
|
1461
|
+
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1406
1462
|
},
|
|
1407
1463
|
reload(name, options) {
|
|
1408
1464
|
return localVarFp.reload(name, options).then((request) => request(axios, basePath));
|
|
1409
1465
|
},
|
|
1466
|
+
resetThemeConfig(name, options) {
|
|
1467
|
+
return localVarFp.resetThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1468
|
+
},
|
|
1410
1469
|
upgradeTheme(name, file, options) {
|
|
1411
1470
|
return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
|
|
1412
1471
|
}
|
|
@@ -1417,11 +1476,14 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1417
1476
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1418
1477
|
}
|
|
1419
1478
|
listThemes(requestParameters, options) {
|
|
1420
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1479
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1421
1480
|
}
|
|
1422
1481
|
reload(requestParameters, options) {
|
|
1423
1482
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1424
1483
|
}
|
|
1484
|
+
resetThemeConfig(requestParameters, options) {
|
|
1485
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).resetThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1486
|
+
}
|
|
1425
1487
|
upgradeTheme(requestParameters, options) {
|
|
1426
1488
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1427
1489
|
}
|
|
@@ -1691,12 +1753,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1691
1753
|
if (version !== void 0) {
|
|
1692
1754
|
localVarQueryParameter["version"] = version;
|
|
1693
1755
|
}
|
|
1694
|
-
if (group !== void 0) {
|
|
1695
|
-
localVarQueryParameter["group"] = group;
|
|
1696
|
-
}
|
|
1697
1756
|
if (kind !== void 0) {
|
|
1698
1757
|
localVarQueryParameter["kind"] = kind;
|
|
1699
1758
|
}
|
|
1759
|
+
if (group !== void 0) {
|
|
1760
|
+
localVarQueryParameter["group"] = group;
|
|
1761
|
+
}
|
|
1700
1762
|
if (size !== void 0) {
|
|
1701
1763
|
localVarQueryParameter["size"] = size;
|
|
1702
1764
|
}
|
|
@@ -1778,7 +1840,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1778
1840
|
|
|
1779
1841
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1780
1842
|
return {
|
|
1781
|
-
searchPost: async (keyword,
|
|
1843
|
+
searchPost: async (keyword, highlightPreTag, highlightPostTag, limit, options = {}) => {
|
|
1782
1844
|
assertParamExists("searchPost", "keyword", keyword);
|
|
1783
1845
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
1784
1846
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1791,18 +1853,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1791
1853
|
const localVarQueryParameter = {};
|
|
1792
1854
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1793
1855
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1794
|
-
if (keyword !== void 0) {
|
|
1795
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1796
|
-
}
|
|
1797
|
-
if (limit !== void 0) {
|
|
1798
|
-
localVarQueryParameter["limit"] = limit;
|
|
1799
|
-
}
|
|
1800
1856
|
if (highlightPreTag !== void 0) {
|
|
1801
1857
|
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1802
1858
|
}
|
|
1803
1859
|
if (highlightPostTag !== void 0) {
|
|
1804
1860
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1805
1861
|
}
|
|
1862
|
+
if (limit !== void 0) {
|
|
1863
|
+
localVarQueryParameter["limit"] = limit;
|
|
1864
|
+
}
|
|
1865
|
+
if (keyword !== void 0) {
|
|
1866
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1867
|
+
}
|
|
1806
1868
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1807
1869
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1808
1870
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1816,8 +1878,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1816
1878
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
1817
1879
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
1818
1880
|
return {
|
|
1819
|
-
async searchPost(keyword,
|
|
1820
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword,
|
|
1881
|
+
async searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
|
|
1882
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options);
|
|
1821
1883
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1822
1884
|
}
|
|
1823
1885
|
};
|
|
@@ -1825,14 +1887,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
1825
1887
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
1826
1888
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
1827
1889
|
return {
|
|
1828
|
-
searchPost(keyword,
|
|
1829
|
-
return localVarFp.searchPost(keyword,
|
|
1890
|
+
searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
|
|
1891
|
+
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options).then((request) => request(axios, basePath));
|
|
1830
1892
|
}
|
|
1831
1893
|
};
|
|
1832
1894
|
};
|
|
1833
1895
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
1834
1896
|
searchPost(requestParameters, options) {
|
|
1835
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
1897
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.highlightPreTag, requestParameters.highlightPostTag, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
1836
1898
|
}
|
|
1837
1899
|
}
|
|
1838
1900
|
|