@halo-dev/api-client 0.0.67 → 0.0.69
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 +248 -118
- package/dist/index.d.ts +379 -193
- package/dist/index.mjs +248 -118
- 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, ungrouped, uploadedBy,
|
|
80
|
+
searchAttachments: async (policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
81
81
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
82
82
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
83
83
|
let baseOptions;
|
|
@@ -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
|
+
}
|
|
101
104
|
if (ungrouped !== void 0) {
|
|
102
105
|
localVarQueryParameter["ungrouped"] = ungrouped;
|
|
103
106
|
}
|
|
104
107
|
if (uploadedBy !== void 0) {
|
|
105
108
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
106
109
|
}
|
|
107
|
-
if (group !== void 0) {
|
|
108
|
-
localVarQueryParameter["group"] = group;
|
|
109
|
-
}
|
|
110
110
|
if (size !== void 0) {
|
|
111
111
|
localVarQueryParameter["size"] = size;
|
|
112
112
|
}
|
|
113
|
+
if (page !== void 0) {
|
|
114
|
+
localVarQueryParameter["page"] = page;
|
|
115
|
+
}
|
|
113
116
|
if (labelSelector) {
|
|
114
117
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
115
118
|
}
|
|
116
119
|
if (fieldSelector) {
|
|
117
120
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
118
121
|
}
|
|
119
|
-
if (page !== void 0) {
|
|
120
|
-
localVarQueryParameter["page"] = page;
|
|
121
|
-
}
|
|
122
122
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123
123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
124
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -166,8 +166,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
166
166
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
167
167
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
168
168
|
return {
|
|
169
|
-
async searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
170
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
169
|
+
async searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
170
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
171
171
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
172
172
|
},
|
|
173
173
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -179,8 +179,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
179
179
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
180
180
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
181
181
|
return {
|
|
182
|
-
searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
183
|
-
return localVarFp.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
182
|
+
searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
183
|
+
return localVarFp.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
184
184
|
},
|
|
185
185
|
uploadAttachment(file, policyName, groupName, options) {
|
|
186
186
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -189,7 +189,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
189
189
|
};
|
|
190
190
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
191
191
|
searchAttachments(requestParameters = {}, options) {
|
|
192
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.
|
|
192
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.group, requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
193
193
|
}
|
|
194
194
|
uploadAttachment(requestParameters, options) {
|
|
195
195
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -245,7 +245,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
245
245
|
options: localVarRequestOptions
|
|
246
246
|
};
|
|
247
247
|
},
|
|
248
|
-
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
248
|
+
listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
249
249
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
250
250
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
251
251
|
let baseOptions;
|
|
@@ -260,6 +260,15 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
260
260
|
if (sort !== void 0) {
|
|
261
261
|
localVarQueryParameter["sort"] = sort;
|
|
262
262
|
}
|
|
263
|
+
if (keyword !== void 0) {
|
|
264
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
265
|
+
}
|
|
266
|
+
if (hidden !== void 0) {
|
|
267
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
268
|
+
}
|
|
269
|
+
if (top !== void 0) {
|
|
270
|
+
localVarQueryParameter["top"] = top;
|
|
271
|
+
}
|
|
263
272
|
if (sortOrder !== void 0) {
|
|
264
273
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
265
274
|
}
|
|
@@ -281,27 +290,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
281
290
|
if (subjectName !== void 0) {
|
|
282
291
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
283
292
|
}
|
|
284
|
-
if (keyword !== void 0) {
|
|
285
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
286
|
-
}
|
|
287
|
-
if (hidden !== void 0) {
|
|
288
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
289
|
-
}
|
|
290
|
-
if (top !== void 0) {
|
|
291
|
-
localVarQueryParameter["top"] = top;
|
|
292
|
-
}
|
|
293
293
|
if (size !== void 0) {
|
|
294
294
|
localVarQueryParameter["size"] = size;
|
|
295
295
|
}
|
|
296
|
+
if (page !== void 0) {
|
|
297
|
+
localVarQueryParameter["page"] = page;
|
|
298
|
+
}
|
|
296
299
|
if (labelSelector) {
|
|
297
300
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
298
301
|
}
|
|
299
302
|
if (fieldSelector) {
|
|
300
303
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
301
304
|
}
|
|
302
|
-
if (page !== void 0) {
|
|
303
|
-
localVarQueryParameter["page"] = page;
|
|
304
|
-
}
|
|
305
305
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
306
306
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
307
307
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -323,8 +323,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
323
323
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
324
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
325
325
|
},
|
|
326
|
-
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
327
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
326
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
328
328
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
329
329
|
}
|
|
330
330
|
};
|
|
@@ -338,8 +338,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
338
338
|
createReply(name, replyRequest, options) {
|
|
339
339
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
340
340
|
},
|
|
341
|
-
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
342
|
-
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
341
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
342
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
};
|
|
@@ -351,7 +351,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
351
351
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
352
352
|
}
|
|
353
353
|
listComments(requestParameters = {}, options) {
|
|
354
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
354
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
|
|
@@ -519,6 +519,48 @@ class ApiConsoleHaloRunV1alpha1IndicesApi extends BaseAPI {
|
|
|
519
519
|
|
|
520
520
|
const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configuration) {
|
|
521
521
|
return {
|
|
522
|
+
fetchPluginConfig: async (name, options = {}) => {
|
|
523
|
+
assertParamExists("fetchPluginConfig", "name", name);
|
|
524
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
525
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
526
|
+
let baseOptions;
|
|
527
|
+
if (configuration) {
|
|
528
|
+
baseOptions = configuration.baseOptions;
|
|
529
|
+
}
|
|
530
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
531
|
+
const localVarHeaderParameter = {};
|
|
532
|
+
const localVarQueryParameter = {};
|
|
533
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
534
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
535
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
536
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
537
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
538
|
+
return {
|
|
539
|
+
url: toPathString(localVarUrlObj),
|
|
540
|
+
options: localVarRequestOptions
|
|
541
|
+
};
|
|
542
|
+
},
|
|
543
|
+
fetchPluginSetting: async (name, options = {}) => {
|
|
544
|
+
assertParamExists("fetchPluginSetting", "name", name);
|
|
545
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/setting`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
546
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
547
|
+
let baseOptions;
|
|
548
|
+
if (configuration) {
|
|
549
|
+
baseOptions = configuration.baseOptions;
|
|
550
|
+
}
|
|
551
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
552
|
+
const localVarHeaderParameter = {};
|
|
553
|
+
const localVarQueryParameter = {};
|
|
554
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
555
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
556
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
557
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
558
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
559
|
+
return {
|
|
560
|
+
url: toPathString(localVarUrlObj),
|
|
561
|
+
options: localVarRequestOptions
|
|
562
|
+
};
|
|
563
|
+
},
|
|
522
564
|
installPlugin: async (file, options = {}) => {
|
|
523
565
|
assertParamExists("installPlugin", "file", file);
|
|
524
566
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/install`;
|
|
@@ -546,7 +588,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
546
588
|
options: localVarRequestOptions
|
|
547
589
|
};
|
|
548
590
|
},
|
|
549
|
-
listPlugins: async (sort,
|
|
591
|
+
listPlugins: async (sort, enabled, keyword, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
550
592
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
551
593
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
552
594
|
let baseOptions;
|
|
@@ -561,24 +603,24 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
561
603
|
if (sort) {
|
|
562
604
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
563
605
|
}
|
|
564
|
-
if (keyword !== void 0) {
|
|
565
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
566
|
-
}
|
|
567
606
|
if (enabled !== void 0) {
|
|
568
607
|
localVarQueryParameter["enabled"] = enabled;
|
|
569
608
|
}
|
|
609
|
+
if (keyword !== void 0) {
|
|
610
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
611
|
+
}
|
|
570
612
|
if (size !== void 0) {
|
|
571
613
|
localVarQueryParameter["size"] = size;
|
|
572
614
|
}
|
|
615
|
+
if (page !== void 0) {
|
|
616
|
+
localVarQueryParameter["page"] = page;
|
|
617
|
+
}
|
|
573
618
|
if (labelSelector) {
|
|
574
619
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
575
620
|
}
|
|
576
621
|
if (fieldSelector) {
|
|
577
622
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
578
623
|
}
|
|
579
|
-
if (page !== void 0) {
|
|
580
|
-
localVarQueryParameter["page"] = page;
|
|
581
|
-
}
|
|
582
624
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
583
625
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
584
626
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -608,6 +650,30 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
608
650
|
options: localVarRequestOptions
|
|
609
651
|
};
|
|
610
652
|
},
|
|
653
|
+
updatePluginConfig: async (name, configMap, options = {}) => {
|
|
654
|
+
assertParamExists("updatePluginConfig", "name", name);
|
|
655
|
+
assertParamExists("updatePluginConfig", "configMap", configMap);
|
|
656
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
657
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
658
|
+
let baseOptions;
|
|
659
|
+
if (configuration) {
|
|
660
|
+
baseOptions = configuration.baseOptions;
|
|
661
|
+
}
|
|
662
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
663
|
+
const localVarHeaderParameter = {};
|
|
664
|
+
const localVarQueryParameter = {};
|
|
665
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
666
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
667
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
668
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
669
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
670
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
671
|
+
localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration);
|
|
672
|
+
return {
|
|
673
|
+
url: toPathString(localVarUrlObj),
|
|
674
|
+
options: localVarRequestOptions
|
|
675
|
+
};
|
|
676
|
+
},
|
|
611
677
|
upgradePlugin: async (name, file, options = {}) => {
|
|
612
678
|
assertParamExists("upgradePlugin", "name", name);
|
|
613
679
|
assertParamExists("upgradePlugin", "file", file);
|
|
@@ -641,18 +707,30 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
641
707
|
const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
642
708
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator(configuration);
|
|
643
709
|
return {
|
|
710
|
+
async fetchPluginConfig(name, options) {
|
|
711
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchPluginConfig(name, options);
|
|
712
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
713
|
+
},
|
|
714
|
+
async fetchPluginSetting(name, options) {
|
|
715
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchPluginSetting(name, options);
|
|
716
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
717
|
+
},
|
|
644
718
|
async installPlugin(file, options) {
|
|
645
719
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
646
720
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
647
721
|
},
|
|
648
|
-
async listPlugins(sort,
|
|
649
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
722
|
+
async listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
723
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options);
|
|
650
724
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
651
725
|
},
|
|
652
726
|
async resetPluginConfig(name, options) {
|
|
653
727
|
const localVarAxiosArgs = await localVarAxiosParamCreator.resetPluginConfig(name, options);
|
|
654
728
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
655
729
|
},
|
|
730
|
+
async updatePluginConfig(name, configMap, options) {
|
|
731
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePluginConfig(name, configMap, options);
|
|
732
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
733
|
+
},
|
|
656
734
|
async upgradePlugin(name, file, options) {
|
|
657
735
|
const localVarAxiosArgs = await localVarAxiosParamCreator.upgradePlugin(name, file, options);
|
|
658
736
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
@@ -662,30 +740,48 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
662
740
|
const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePath, axios) {
|
|
663
741
|
const localVarFp = ApiConsoleHaloRunV1alpha1PluginApiFp(configuration);
|
|
664
742
|
return {
|
|
743
|
+
fetchPluginConfig(name, options) {
|
|
744
|
+
return localVarFp.fetchPluginConfig(name, options).then((request) => request(axios, basePath));
|
|
745
|
+
},
|
|
746
|
+
fetchPluginSetting(name, options) {
|
|
747
|
+
return localVarFp.fetchPluginSetting(name, options).then((request) => request(axios, basePath));
|
|
748
|
+
},
|
|
665
749
|
installPlugin(file, options) {
|
|
666
750
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
667
751
|
},
|
|
668
|
-
listPlugins(sort,
|
|
669
|
-
return localVarFp.listPlugins(sort,
|
|
752
|
+
listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
753
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
670
754
|
},
|
|
671
755
|
resetPluginConfig(name, options) {
|
|
672
756
|
return localVarFp.resetPluginConfig(name, options).then((request) => request(axios, basePath));
|
|
673
757
|
},
|
|
758
|
+
updatePluginConfig(name, configMap, options) {
|
|
759
|
+
return localVarFp.updatePluginConfig(name, configMap, options).then((request) => request(axios, basePath));
|
|
760
|
+
},
|
|
674
761
|
upgradePlugin(name, file, options) {
|
|
675
762
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
676
763
|
}
|
|
677
764
|
};
|
|
678
765
|
};
|
|
679
766
|
class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
767
|
+
fetchPluginConfig(requestParameters, options) {
|
|
768
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).fetchPluginConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
769
|
+
}
|
|
770
|
+
fetchPluginSetting(requestParameters, options) {
|
|
771
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).fetchPluginSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
772
|
+
}
|
|
680
773
|
installPlugin(requestParameters, options) {
|
|
681
774
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
682
775
|
}
|
|
683
776
|
listPlugins(requestParameters = {}, options) {
|
|
684
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
777
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
685
778
|
}
|
|
686
779
|
resetPluginConfig(requestParameters, options) {
|
|
687
780
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).resetPluginConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
688
781
|
}
|
|
782
|
+
updatePluginConfig(requestParameters, options) {
|
|
783
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).updatePluginConfig(requestParameters.name, requestParameters.configMap, options).then((request) => request(this.axios, this.basePath));
|
|
784
|
+
}
|
|
689
785
|
upgradePlugin(requestParameters, options) {
|
|
690
786
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
691
787
|
}
|
|
@@ -716,7 +812,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
716
812
|
options: localVarRequestOptions
|
|
717
813
|
};
|
|
718
814
|
},
|
|
719
|
-
listPosts: async (sort,
|
|
815
|
+
listPosts: async (sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
720
816
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
721
817
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
722
818
|
let baseOptions;
|
|
@@ -731,39 +827,39 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
731
827
|
if (sort !== void 0) {
|
|
732
828
|
localVarQueryParameter["sort"] = sort;
|
|
733
829
|
}
|
|
734
|
-
if (
|
|
735
|
-
localVarQueryParameter["
|
|
830
|
+
if (tag) {
|
|
831
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
832
|
+
}
|
|
833
|
+
if (keyword !== void 0) {
|
|
834
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
835
|
+
}
|
|
836
|
+
if (visible !== void 0) {
|
|
837
|
+
localVarQueryParameter["visible"] = visible;
|
|
736
838
|
}
|
|
737
839
|
if (contributor) {
|
|
738
840
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
739
841
|
}
|
|
842
|
+
if (sortOrder !== void 0) {
|
|
843
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
844
|
+
}
|
|
740
845
|
if (publishPhase !== void 0) {
|
|
741
846
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
742
847
|
}
|
|
743
848
|
if (category) {
|
|
744
849
|
localVarQueryParameter["category"] = Array.from(category);
|
|
745
850
|
}
|
|
746
|
-
if (visible !== void 0) {
|
|
747
|
-
localVarQueryParameter["visible"] = visible;
|
|
748
|
-
}
|
|
749
|
-
if (keyword !== void 0) {
|
|
750
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
751
|
-
}
|
|
752
|
-
if (tag) {
|
|
753
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
754
|
-
}
|
|
755
851
|
if (size !== void 0) {
|
|
756
852
|
localVarQueryParameter["size"] = size;
|
|
757
853
|
}
|
|
854
|
+
if (page !== void 0) {
|
|
855
|
+
localVarQueryParameter["page"] = page;
|
|
856
|
+
}
|
|
758
857
|
if (labelSelector) {
|
|
759
858
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
760
859
|
}
|
|
761
860
|
if (fieldSelector) {
|
|
762
861
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
763
862
|
}
|
|
764
|
-
if (page !== void 0) {
|
|
765
|
-
localVarQueryParameter["page"] = page;
|
|
766
|
-
}
|
|
767
863
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
768
864
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
769
865
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -895,8 +991,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
895
991
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
896
992
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
897
993
|
},
|
|
898
|
-
async listPosts(sort,
|
|
899
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
994
|
+
async listPosts(sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options) {
|
|
995
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options);
|
|
900
996
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
901
997
|
},
|
|
902
998
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -927,8 +1023,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
927
1023
|
draftPost(postRequest, options) {
|
|
928
1024
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
929
1025
|
},
|
|
930
|
-
listPosts(sort,
|
|
931
|
-
return localVarFp.listPosts(sort,
|
|
1026
|
+
listPosts(sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options) {
|
|
1027
|
+
return localVarFp.listPosts(sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
932
1028
|
},
|
|
933
1029
|
publishPost(name, headSnapshot, options) {
|
|
934
1030
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -952,7 +1048,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
952
1048
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
953
1049
|
}
|
|
954
1050
|
listPosts(requestParameters = {}, options) {
|
|
955
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
1051
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.tag, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
956
1052
|
}
|
|
957
1053
|
publishPost(requestParameters, options) {
|
|
958
1054
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -973,7 +1069,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
973
1069
|
|
|
974
1070
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
975
1071
|
return {
|
|
976
|
-
listReplies: async (commentName, size, labelSelector, fieldSelector,
|
|
1072
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
977
1073
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
978
1074
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
979
1075
|
let baseOptions;
|
|
@@ -991,15 +1087,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
991
1087
|
if (size !== void 0) {
|
|
992
1088
|
localVarQueryParameter["size"] = size;
|
|
993
1089
|
}
|
|
1090
|
+
if (page !== void 0) {
|
|
1091
|
+
localVarQueryParameter["page"] = page;
|
|
1092
|
+
}
|
|
994
1093
|
if (labelSelector) {
|
|
995
1094
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
996
1095
|
}
|
|
997
1096
|
if (fieldSelector) {
|
|
998
1097
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
999
1098
|
}
|
|
1000
|
-
if (page !== void 0) {
|
|
1001
|
-
localVarQueryParameter["page"] = page;
|
|
1002
|
-
}
|
|
1003
1099
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1004
1100
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1005
1101
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1013,8 +1109,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
1013
1109
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
1014
1110
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
1015
1111
|
return {
|
|
1016
|
-
async listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1017
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1112
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
1113
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
|
|
1018
1114
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1019
1115
|
}
|
|
1020
1116
|
};
|
|
@@ -1022,14 +1118,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
1022
1118
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
1023
1119
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
1024
1120
|
return {
|
|
1025
|
-
listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1026
|
-
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1121
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
1122
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1027
1123
|
}
|
|
1028
1124
|
};
|
|
1029
1125
|
};
|
|
1030
1126
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
1031
1127
|
listReplies(requestParameters = {}, options) {
|
|
1032
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
1128
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1033
1129
|
}
|
|
1034
1130
|
}
|
|
1035
1131
|
|
|
@@ -1058,7 +1154,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1058
1154
|
options: localVarRequestOptions
|
|
1059
1155
|
};
|
|
1060
1156
|
},
|
|
1061
|
-
listSinglePages: async (sort,
|
|
1157
|
+
listSinglePages: async (sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1062
1158
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1063
1159
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1064
1160
|
let baseOptions;
|
|
@@ -1073,33 +1169,33 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1073
1169
|
if (sort !== void 0) {
|
|
1074
1170
|
localVarQueryParameter["sort"] = sort;
|
|
1075
1171
|
}
|
|
1076
|
-
if (
|
|
1077
|
-
localVarQueryParameter["
|
|
1172
|
+
if (keyword !== void 0) {
|
|
1173
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1174
|
+
}
|
|
1175
|
+
if (visible !== void 0) {
|
|
1176
|
+
localVarQueryParameter["visible"] = visible;
|
|
1078
1177
|
}
|
|
1079
1178
|
if (contributor) {
|
|
1080
1179
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1081
1180
|
}
|
|
1181
|
+
if (sortOrder !== void 0) {
|
|
1182
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1183
|
+
}
|
|
1082
1184
|
if (publishPhase !== void 0) {
|
|
1083
1185
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1084
1186
|
}
|
|
1085
|
-
if (visible !== void 0) {
|
|
1086
|
-
localVarQueryParameter["visible"] = visible;
|
|
1087
|
-
}
|
|
1088
|
-
if (keyword !== void 0) {
|
|
1089
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1090
|
-
}
|
|
1091
1187
|
if (size !== void 0) {
|
|
1092
1188
|
localVarQueryParameter["size"] = size;
|
|
1093
1189
|
}
|
|
1190
|
+
if (page !== void 0) {
|
|
1191
|
+
localVarQueryParameter["page"] = page;
|
|
1192
|
+
}
|
|
1094
1193
|
if (labelSelector) {
|
|
1095
1194
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1096
1195
|
}
|
|
1097
1196
|
if (fieldSelector) {
|
|
1098
1197
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1099
1198
|
}
|
|
1100
|
-
if (page !== void 0) {
|
|
1101
|
-
localVarQueryParameter["page"] = page;
|
|
1102
|
-
}
|
|
1103
1199
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1104
1200
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1105
1201
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1186,8 +1282,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1186
1282
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1187
1283
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1188
1284
|
},
|
|
1189
|
-
async listSinglePages(sort,
|
|
1190
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1285
|
+
async listSinglePages(sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options) {
|
|
1286
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options);
|
|
1191
1287
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1192
1288
|
},
|
|
1193
1289
|
async publishSinglePage(name, options) {
|
|
@@ -1210,8 +1306,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1210
1306
|
draftSinglePage(singlePageRequest, options) {
|
|
1211
1307
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1212
1308
|
},
|
|
1213
|
-
listSinglePages(sort,
|
|
1214
|
-
return localVarFp.listSinglePages(sort,
|
|
1309
|
+
listSinglePages(sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options) {
|
|
1310
|
+
return localVarFp.listSinglePages(sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1215
1311
|
},
|
|
1216
1312
|
publishSinglePage(name, options) {
|
|
1217
1313
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1229,7 +1325,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1229
1325
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1230
1326
|
}
|
|
1231
1327
|
listSinglePages(requestParameters = {}, options) {
|
|
1232
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1328
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1233
1329
|
}
|
|
1234
1330
|
publishSinglePage(requestParameters, options) {
|
|
1235
1331
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1291,6 +1387,27 @@ class ApiConsoleHaloRunV1alpha1StatsApi extends BaseAPI {
|
|
|
1291
1387
|
|
|
1292
1388
|
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
1293
1389
|
return {
|
|
1390
|
+
activateTheme: async (name, options = {}) => {
|
|
1391
|
+
assertParamExists("activateTheme", "name", name);
|
|
1392
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/activation`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1393
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1394
|
+
let baseOptions;
|
|
1395
|
+
if (configuration) {
|
|
1396
|
+
baseOptions = configuration.baseOptions;
|
|
1397
|
+
}
|
|
1398
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1399
|
+
const localVarHeaderParameter = {};
|
|
1400
|
+
const localVarQueryParameter = {};
|
|
1401
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1402
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1403
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1404
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1405
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1406
|
+
return {
|
|
1407
|
+
url: toPathString(localVarUrlObj),
|
|
1408
|
+
options: localVarRequestOptions
|
|
1409
|
+
};
|
|
1410
|
+
},
|
|
1294
1411
|
fetchActivatedTheme: async (options = {}) => {
|
|
1295
1412
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/-/activation`;
|
|
1296
1413
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1380,7 +1497,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1380
1497
|
options: localVarRequestOptions
|
|
1381
1498
|
};
|
|
1382
1499
|
},
|
|
1383
|
-
listThemes: async (uninstalled, size, labelSelector, fieldSelector,
|
|
1500
|
+
listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1384
1501
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1385
1502
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1386
1503
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1399,15 +1516,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1399
1516
|
if (size !== void 0) {
|
|
1400
1517
|
localVarQueryParameter["size"] = size;
|
|
1401
1518
|
}
|
|
1519
|
+
if (page !== void 0) {
|
|
1520
|
+
localVarQueryParameter["page"] = page;
|
|
1521
|
+
}
|
|
1402
1522
|
if (labelSelector) {
|
|
1403
1523
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1404
1524
|
}
|
|
1405
1525
|
if (fieldSelector) {
|
|
1406
1526
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1407
1527
|
}
|
|
1408
|
-
if (page !== void 0) {
|
|
1409
|
-
localVarQueryParameter["page"] = page;
|
|
1410
|
-
}
|
|
1411
1528
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1412
1529
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1413
1530
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1458,8 +1575,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1458
1575
|
options: localVarRequestOptions
|
|
1459
1576
|
};
|
|
1460
1577
|
},
|
|
1461
|
-
updateThemeConfig: async (name, options = {}) => {
|
|
1578
|
+
updateThemeConfig: async (name, configMap, options = {}) => {
|
|
1462
1579
|
assertParamExists("updateThemeConfig", "name", name);
|
|
1580
|
+
assertParamExists("updateThemeConfig", "configMap", configMap);
|
|
1463
1581
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1464
1582
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1465
1583
|
let baseOptions;
|
|
@@ -1471,9 +1589,11 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1471
1589
|
const localVarQueryParameter = {};
|
|
1472
1590
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1473
1591
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1592
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1474
1593
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1475
1594
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1476
1595
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1596
|
+
localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration);
|
|
1477
1597
|
return {
|
|
1478
1598
|
url: toPathString(localVarUrlObj),
|
|
1479
1599
|
options: localVarRequestOptions
|
|
@@ -1512,6 +1632,10 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1512
1632
|
const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
1513
1633
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
|
1514
1634
|
return {
|
|
1635
|
+
async activateTheme(name, options) {
|
|
1636
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.activateTheme(name, options);
|
|
1637
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1638
|
+
},
|
|
1515
1639
|
async fetchActivatedTheme(options) {
|
|
1516
1640
|
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchActivatedTheme(options);
|
|
1517
1641
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
@@ -1528,8 +1652,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1528
1652
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1529
1653
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1530
1654
|
},
|
|
1531
|
-
async listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1532
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1655
|
+
async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1656
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
|
|
1533
1657
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1534
1658
|
},
|
|
1535
1659
|
async reload(name, options) {
|
|
@@ -1540,8 +1664,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1540
1664
|
const localVarAxiosArgs = await localVarAxiosParamCreator.resetThemeConfig(name, options);
|
|
1541
1665
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1542
1666
|
},
|
|
1543
|
-
async updateThemeConfig(name, options) {
|
|
1544
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateThemeConfig(name, options);
|
|
1667
|
+
async updateThemeConfig(name, configMap, options) {
|
|
1668
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateThemeConfig(name, configMap, options);
|
|
1545
1669
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1546
1670
|
},
|
|
1547
1671
|
async upgradeTheme(name, file, options) {
|
|
@@ -1553,6 +1677,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1553
1677
|
const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePath, axios) {
|
|
1554
1678
|
const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration);
|
|
1555
1679
|
return {
|
|
1680
|
+
activateTheme(name, options) {
|
|
1681
|
+
return localVarFp.activateTheme(name, options).then((request) => request(axios, basePath));
|
|
1682
|
+
},
|
|
1556
1683
|
fetchActivatedTheme(options) {
|
|
1557
1684
|
return localVarFp.fetchActivatedTheme(options).then((request) => request(axios, basePath));
|
|
1558
1685
|
},
|
|
@@ -1565,8 +1692,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1565
1692
|
installTheme(file, options) {
|
|
1566
1693
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1567
1694
|
},
|
|
1568
|
-
listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1569
|
-
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1695
|
+
listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1696
|
+
return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1570
1697
|
},
|
|
1571
1698
|
reload(name, options) {
|
|
1572
1699
|
return localVarFp.reload(name, options).then((request) => request(axios, basePath));
|
|
@@ -1574,8 +1701,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1574
1701
|
resetThemeConfig(name, options) {
|
|
1575
1702
|
return localVarFp.resetThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1576
1703
|
},
|
|
1577
|
-
updateThemeConfig(name, options) {
|
|
1578
|
-
return localVarFp.updateThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1704
|
+
updateThemeConfig(name, configMap, options) {
|
|
1705
|
+
return localVarFp.updateThemeConfig(name, configMap, options).then((request) => request(axios, basePath));
|
|
1579
1706
|
},
|
|
1580
1707
|
upgradeTheme(name, file, options) {
|
|
1581
1708
|
return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -1583,6 +1710,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1583
1710
|
};
|
|
1584
1711
|
};
|
|
1585
1712
|
class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
1713
|
+
activateTheme(requestParameters, options) {
|
|
1714
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).activateTheme(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1715
|
+
}
|
|
1586
1716
|
fetchActivatedTheme(options) {
|
|
1587
1717
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchActivatedTheme(options).then((request) => request(this.axios, this.basePath));
|
|
1588
1718
|
}
|
|
@@ -1596,7 +1726,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1596
1726
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1597
1727
|
}
|
|
1598
1728
|
listThemes(requestParameters, options) {
|
|
1599
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1729
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1600
1730
|
}
|
|
1601
1731
|
reload(requestParameters, options) {
|
|
1602
1732
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1605,7 +1735,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1605
1735
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).resetThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1606
1736
|
}
|
|
1607
1737
|
updateThemeConfig(requestParameters, options) {
|
|
1608
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).updateThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1738
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).updateThemeConfig(requestParameters.name, requestParameters.configMap, options).then((request) => request(this.axios, this.basePath));
|
|
1609
1739
|
}
|
|
1610
1740
|
upgradeTheme(requestParameters, options) {
|
|
1611
1741
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1909,12 +2039,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1909
2039
|
if (version !== void 0) {
|
|
1910
2040
|
localVarQueryParameter["version"] = version;
|
|
1911
2041
|
}
|
|
1912
|
-
if (group !== void 0) {
|
|
1913
|
-
localVarQueryParameter["group"] = group;
|
|
1914
|
-
}
|
|
1915
2042
|
if (kind !== void 0) {
|
|
1916
2043
|
localVarQueryParameter["kind"] = kind;
|
|
1917
2044
|
}
|
|
2045
|
+
if (group !== void 0) {
|
|
2046
|
+
localVarQueryParameter["group"] = group;
|
|
2047
|
+
}
|
|
1918
2048
|
if (size !== void 0) {
|
|
1919
2049
|
localVarQueryParameter["size"] = size;
|
|
1920
2050
|
}
|
|
@@ -1996,7 +2126,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1996
2126
|
|
|
1997
2127
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1998
2128
|
return {
|
|
1999
|
-
searchPost: async (keyword, highlightPreTag, highlightPostTag,
|
|
2129
|
+
searchPost: async (keyword, limit, highlightPreTag, highlightPostTag, options = {}) => {
|
|
2000
2130
|
assertParamExists("searchPost", "keyword", keyword);
|
|
2001
2131
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
2002
2132
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2009,18 +2139,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
2009
2139
|
const localVarQueryParameter = {};
|
|
2010
2140
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
2011
2141
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2142
|
+
if (limit !== void 0) {
|
|
2143
|
+
localVarQueryParameter["limit"] = limit;
|
|
2144
|
+
}
|
|
2145
|
+
if (keyword !== void 0) {
|
|
2146
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
2147
|
+
}
|
|
2012
2148
|
if (highlightPreTag !== void 0) {
|
|
2013
2149
|
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
2014
2150
|
}
|
|
2015
2151
|
if (highlightPostTag !== void 0) {
|
|
2016
2152
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
2017
2153
|
}
|
|
2018
|
-
if (keyword !== void 0) {
|
|
2019
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
2020
|
-
}
|
|
2021
|
-
if (limit !== void 0) {
|
|
2022
|
-
localVarQueryParameter["limit"] = limit;
|
|
2023
|
-
}
|
|
2024
2154
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2025
2155
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2026
2156
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2034,8 +2164,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
2034
2164
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
2035
2165
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
2036
2166
|
return {
|
|
2037
|
-
async searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
2038
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
2167
|
+
async searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
2168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options);
|
|
2039
2169
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2040
2170
|
}
|
|
2041
2171
|
};
|
|
@@ -2043,14 +2173,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
2043
2173
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
2044
2174
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
2045
2175
|
return {
|
|
2046
|
-
searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
2047
|
-
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
2176
|
+
searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
2177
|
+
return localVarFp.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options).then((request) => request(axios, basePath));
|
|
2048
2178
|
}
|
|
2049
2179
|
};
|
|
2050
2180
|
};
|
|
2051
2181
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
2052
2182
|
searchPost(requestParameters, options) {
|
|
2053
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
2183
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(this.axios, this.basePath));
|
|
2054
2184
|
}
|
|
2055
2185
|
}
|
|
2056
2186
|
|