@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.mjs
CHANGED
|
@@ -69,7 +69,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
69
69
|
|
|
70
70
|
const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
|
|
71
71
|
return {
|
|
72
|
-
searchAttachments: async (policy, sort, displayName, ungrouped, uploadedBy,
|
|
72
|
+
searchAttachments: async (policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
73
73
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
74
74
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
75
75
|
let baseOptions;
|
|
@@ -90,27 +90,27 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
90
90
|
if (displayName !== void 0) {
|
|
91
91
|
localVarQueryParameter["displayName"] = displayName;
|
|
92
92
|
}
|
|
93
|
+
if (group !== void 0) {
|
|
94
|
+
localVarQueryParameter["group"] = group;
|
|
95
|
+
}
|
|
93
96
|
if (ungrouped !== void 0) {
|
|
94
97
|
localVarQueryParameter["ungrouped"] = ungrouped;
|
|
95
98
|
}
|
|
96
99
|
if (uploadedBy !== void 0) {
|
|
97
100
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
98
101
|
}
|
|
99
|
-
if (group !== void 0) {
|
|
100
|
-
localVarQueryParameter["group"] = group;
|
|
101
|
-
}
|
|
102
102
|
if (size !== void 0) {
|
|
103
103
|
localVarQueryParameter["size"] = size;
|
|
104
104
|
}
|
|
105
|
+
if (page !== void 0) {
|
|
106
|
+
localVarQueryParameter["page"] = page;
|
|
107
|
+
}
|
|
105
108
|
if (labelSelector) {
|
|
106
109
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
107
110
|
}
|
|
108
111
|
if (fieldSelector) {
|
|
109
112
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
110
113
|
}
|
|
111
|
-
if (page !== void 0) {
|
|
112
|
-
localVarQueryParameter["page"] = page;
|
|
113
|
-
}
|
|
114
114
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
115
115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
116
116
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -158,8 +158,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
158
158
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
159
159
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
160
160
|
return {
|
|
161
|
-
async searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
162
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
161
|
+
async searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
163
163
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
164
|
},
|
|
165
165
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -171,8 +171,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
171
171
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
172
172
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
173
173
|
return {
|
|
174
|
-
searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
175
|
-
return localVarFp.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
174
|
+
searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
175
|
+
return localVarFp.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
176
176
|
},
|
|
177
177
|
uploadAttachment(file, policyName, groupName, options) {
|
|
178
178
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -181,7 +181,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
181
181
|
};
|
|
182
182
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
183
183
|
searchAttachments(requestParameters = {}, options) {
|
|
184
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.
|
|
184
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.group, requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
185
185
|
}
|
|
186
186
|
uploadAttachment(requestParameters, options) {
|
|
187
187
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -237,7 +237,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
237
237
|
options: localVarRequestOptions
|
|
238
238
|
};
|
|
239
239
|
},
|
|
240
|
-
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
240
|
+
listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
241
241
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
242
242
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
243
243
|
let baseOptions;
|
|
@@ -252,6 +252,15 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
252
252
|
if (sort !== void 0) {
|
|
253
253
|
localVarQueryParameter["sort"] = sort;
|
|
254
254
|
}
|
|
255
|
+
if (keyword !== void 0) {
|
|
256
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
257
|
+
}
|
|
258
|
+
if (hidden !== void 0) {
|
|
259
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
260
|
+
}
|
|
261
|
+
if (top !== void 0) {
|
|
262
|
+
localVarQueryParameter["top"] = top;
|
|
263
|
+
}
|
|
255
264
|
if (sortOrder !== void 0) {
|
|
256
265
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
257
266
|
}
|
|
@@ -273,27 +282,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
273
282
|
if (subjectName !== void 0) {
|
|
274
283
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
275
284
|
}
|
|
276
|
-
if (keyword !== void 0) {
|
|
277
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
278
|
-
}
|
|
279
|
-
if (hidden !== void 0) {
|
|
280
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
281
|
-
}
|
|
282
|
-
if (top !== void 0) {
|
|
283
|
-
localVarQueryParameter["top"] = top;
|
|
284
|
-
}
|
|
285
285
|
if (size !== void 0) {
|
|
286
286
|
localVarQueryParameter["size"] = size;
|
|
287
287
|
}
|
|
288
|
+
if (page !== void 0) {
|
|
289
|
+
localVarQueryParameter["page"] = page;
|
|
290
|
+
}
|
|
288
291
|
if (labelSelector) {
|
|
289
292
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
290
293
|
}
|
|
291
294
|
if (fieldSelector) {
|
|
292
295
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
293
296
|
}
|
|
294
|
-
if (page !== void 0) {
|
|
295
|
-
localVarQueryParameter["page"] = page;
|
|
296
|
-
}
|
|
297
297
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
298
298
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
299
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -315,8 +315,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
315
315
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
316
316
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
317
317
|
},
|
|
318
|
-
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
318
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
320
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
321
|
}
|
|
322
322
|
};
|
|
@@ -330,8 +330,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
330
330
|
createReply(name, replyRequest, options) {
|
|
331
331
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
332
332
|
},
|
|
333
|
-
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
334
|
-
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
333
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
334
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
};
|
|
@@ -343,7 +343,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
343
343
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
344
344
|
}
|
|
345
345
|
listComments(requestParameters = {}, options) {
|
|
346
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
346
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.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));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
|
|
@@ -511,6 +511,48 @@ class ApiConsoleHaloRunV1alpha1IndicesApi extends BaseAPI {
|
|
|
511
511
|
|
|
512
512
|
const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configuration) {
|
|
513
513
|
return {
|
|
514
|
+
fetchPluginConfig: async (name, options = {}) => {
|
|
515
|
+
assertParamExists("fetchPluginConfig", "name", name);
|
|
516
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
517
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
518
|
+
let baseOptions;
|
|
519
|
+
if (configuration) {
|
|
520
|
+
baseOptions = configuration.baseOptions;
|
|
521
|
+
}
|
|
522
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
523
|
+
const localVarHeaderParameter = {};
|
|
524
|
+
const localVarQueryParameter = {};
|
|
525
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
526
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
527
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
528
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
529
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
530
|
+
return {
|
|
531
|
+
url: toPathString(localVarUrlObj),
|
|
532
|
+
options: localVarRequestOptions
|
|
533
|
+
};
|
|
534
|
+
},
|
|
535
|
+
fetchPluginSetting: async (name, options = {}) => {
|
|
536
|
+
assertParamExists("fetchPluginSetting", "name", name);
|
|
537
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/setting`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
538
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
539
|
+
let baseOptions;
|
|
540
|
+
if (configuration) {
|
|
541
|
+
baseOptions = configuration.baseOptions;
|
|
542
|
+
}
|
|
543
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
544
|
+
const localVarHeaderParameter = {};
|
|
545
|
+
const localVarQueryParameter = {};
|
|
546
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
547
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
548
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
549
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
550
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
551
|
+
return {
|
|
552
|
+
url: toPathString(localVarUrlObj),
|
|
553
|
+
options: localVarRequestOptions
|
|
554
|
+
};
|
|
555
|
+
},
|
|
514
556
|
installPlugin: async (file, options = {}) => {
|
|
515
557
|
assertParamExists("installPlugin", "file", file);
|
|
516
558
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/install`;
|
|
@@ -538,7 +580,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
538
580
|
options: localVarRequestOptions
|
|
539
581
|
};
|
|
540
582
|
},
|
|
541
|
-
listPlugins: async (sort,
|
|
583
|
+
listPlugins: async (sort, enabled, keyword, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
542
584
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
543
585
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
544
586
|
let baseOptions;
|
|
@@ -553,24 +595,24 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
553
595
|
if (sort) {
|
|
554
596
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
555
597
|
}
|
|
556
|
-
if (keyword !== void 0) {
|
|
557
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
558
|
-
}
|
|
559
598
|
if (enabled !== void 0) {
|
|
560
599
|
localVarQueryParameter["enabled"] = enabled;
|
|
561
600
|
}
|
|
601
|
+
if (keyword !== void 0) {
|
|
602
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
603
|
+
}
|
|
562
604
|
if (size !== void 0) {
|
|
563
605
|
localVarQueryParameter["size"] = size;
|
|
564
606
|
}
|
|
607
|
+
if (page !== void 0) {
|
|
608
|
+
localVarQueryParameter["page"] = page;
|
|
609
|
+
}
|
|
565
610
|
if (labelSelector) {
|
|
566
611
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
567
612
|
}
|
|
568
613
|
if (fieldSelector) {
|
|
569
614
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
570
615
|
}
|
|
571
|
-
if (page !== void 0) {
|
|
572
|
-
localVarQueryParameter["page"] = page;
|
|
573
|
-
}
|
|
574
616
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
575
617
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
576
618
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -600,6 +642,30 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
600
642
|
options: localVarRequestOptions
|
|
601
643
|
};
|
|
602
644
|
},
|
|
645
|
+
updatePluginConfig: async (name, configMap, options = {}) => {
|
|
646
|
+
assertParamExists("updatePluginConfig", "name", name);
|
|
647
|
+
assertParamExists("updatePluginConfig", "configMap", configMap);
|
|
648
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
649
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
650
|
+
let baseOptions;
|
|
651
|
+
if (configuration) {
|
|
652
|
+
baseOptions = configuration.baseOptions;
|
|
653
|
+
}
|
|
654
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
655
|
+
const localVarHeaderParameter = {};
|
|
656
|
+
const localVarQueryParameter = {};
|
|
657
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
658
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
659
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
660
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
661
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
662
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
663
|
+
localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration);
|
|
664
|
+
return {
|
|
665
|
+
url: toPathString(localVarUrlObj),
|
|
666
|
+
options: localVarRequestOptions
|
|
667
|
+
};
|
|
668
|
+
},
|
|
603
669
|
upgradePlugin: async (name, file, options = {}) => {
|
|
604
670
|
assertParamExists("upgradePlugin", "name", name);
|
|
605
671
|
assertParamExists("upgradePlugin", "file", file);
|
|
@@ -633,18 +699,30 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
633
699
|
const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
634
700
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator(configuration);
|
|
635
701
|
return {
|
|
702
|
+
async fetchPluginConfig(name, options) {
|
|
703
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchPluginConfig(name, options);
|
|
704
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
705
|
+
},
|
|
706
|
+
async fetchPluginSetting(name, options) {
|
|
707
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchPluginSetting(name, options);
|
|
708
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
709
|
+
},
|
|
636
710
|
async installPlugin(file, options) {
|
|
637
711
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
638
712
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
639
713
|
},
|
|
640
|
-
async listPlugins(sort,
|
|
641
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort,
|
|
714
|
+
async listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
715
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options);
|
|
642
716
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
643
717
|
},
|
|
644
718
|
async resetPluginConfig(name, options) {
|
|
645
719
|
const localVarAxiosArgs = await localVarAxiosParamCreator.resetPluginConfig(name, options);
|
|
646
720
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
647
721
|
},
|
|
722
|
+
async updatePluginConfig(name, configMap, options) {
|
|
723
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePluginConfig(name, configMap, options);
|
|
724
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
725
|
+
},
|
|
648
726
|
async upgradePlugin(name, file, options) {
|
|
649
727
|
const localVarAxiosArgs = await localVarAxiosParamCreator.upgradePlugin(name, file, options);
|
|
650
728
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
@@ -654,30 +732,48 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
654
732
|
const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePath, axios) {
|
|
655
733
|
const localVarFp = ApiConsoleHaloRunV1alpha1PluginApiFp(configuration);
|
|
656
734
|
return {
|
|
735
|
+
fetchPluginConfig(name, options) {
|
|
736
|
+
return localVarFp.fetchPluginConfig(name, options).then((request) => request(axios, basePath));
|
|
737
|
+
},
|
|
738
|
+
fetchPluginSetting(name, options) {
|
|
739
|
+
return localVarFp.fetchPluginSetting(name, options).then((request) => request(axios, basePath));
|
|
740
|
+
},
|
|
657
741
|
installPlugin(file, options) {
|
|
658
742
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
659
743
|
},
|
|
660
|
-
listPlugins(sort,
|
|
661
|
-
return localVarFp.listPlugins(sort,
|
|
744
|
+
listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
745
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
662
746
|
},
|
|
663
747
|
resetPluginConfig(name, options) {
|
|
664
748
|
return localVarFp.resetPluginConfig(name, options).then((request) => request(axios, basePath));
|
|
665
749
|
},
|
|
750
|
+
updatePluginConfig(name, configMap, options) {
|
|
751
|
+
return localVarFp.updatePluginConfig(name, configMap, options).then((request) => request(axios, basePath));
|
|
752
|
+
},
|
|
666
753
|
upgradePlugin(name, file, options) {
|
|
667
754
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
668
755
|
}
|
|
669
756
|
};
|
|
670
757
|
};
|
|
671
758
|
class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
759
|
+
fetchPluginConfig(requestParameters, options) {
|
|
760
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).fetchPluginConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
761
|
+
}
|
|
762
|
+
fetchPluginSetting(requestParameters, options) {
|
|
763
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).fetchPluginSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
764
|
+
}
|
|
672
765
|
installPlugin(requestParameters, options) {
|
|
673
766
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
674
767
|
}
|
|
675
768
|
listPlugins(requestParameters = {}, options) {
|
|
676
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.
|
|
769
|
+
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));
|
|
677
770
|
}
|
|
678
771
|
resetPluginConfig(requestParameters, options) {
|
|
679
772
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).resetPluginConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
680
773
|
}
|
|
774
|
+
updatePluginConfig(requestParameters, options) {
|
|
775
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).updatePluginConfig(requestParameters.name, requestParameters.configMap, options).then((request) => request(this.axios, this.basePath));
|
|
776
|
+
}
|
|
681
777
|
upgradePlugin(requestParameters, options) {
|
|
682
778
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
683
779
|
}
|
|
@@ -708,7 +804,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
708
804
|
options: localVarRequestOptions
|
|
709
805
|
};
|
|
710
806
|
},
|
|
711
|
-
listPosts: async (sort,
|
|
807
|
+
listPosts: async (sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
712
808
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
713
809
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
714
810
|
let baseOptions;
|
|
@@ -723,39 +819,39 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
723
819
|
if (sort !== void 0) {
|
|
724
820
|
localVarQueryParameter["sort"] = sort;
|
|
725
821
|
}
|
|
726
|
-
if (
|
|
727
|
-
localVarQueryParameter["
|
|
822
|
+
if (tag) {
|
|
823
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
824
|
+
}
|
|
825
|
+
if (keyword !== void 0) {
|
|
826
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
827
|
+
}
|
|
828
|
+
if (visible !== void 0) {
|
|
829
|
+
localVarQueryParameter["visible"] = visible;
|
|
728
830
|
}
|
|
729
831
|
if (contributor) {
|
|
730
832
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
731
833
|
}
|
|
834
|
+
if (sortOrder !== void 0) {
|
|
835
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
836
|
+
}
|
|
732
837
|
if (publishPhase !== void 0) {
|
|
733
838
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
734
839
|
}
|
|
735
840
|
if (category) {
|
|
736
841
|
localVarQueryParameter["category"] = Array.from(category);
|
|
737
842
|
}
|
|
738
|
-
if (visible !== void 0) {
|
|
739
|
-
localVarQueryParameter["visible"] = visible;
|
|
740
|
-
}
|
|
741
|
-
if (keyword !== void 0) {
|
|
742
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
743
|
-
}
|
|
744
|
-
if (tag) {
|
|
745
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
746
|
-
}
|
|
747
843
|
if (size !== void 0) {
|
|
748
844
|
localVarQueryParameter["size"] = size;
|
|
749
845
|
}
|
|
846
|
+
if (page !== void 0) {
|
|
847
|
+
localVarQueryParameter["page"] = page;
|
|
848
|
+
}
|
|
750
849
|
if (labelSelector) {
|
|
751
850
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
752
851
|
}
|
|
753
852
|
if (fieldSelector) {
|
|
754
853
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
755
854
|
}
|
|
756
|
-
if (page !== void 0) {
|
|
757
|
-
localVarQueryParameter["page"] = page;
|
|
758
|
-
}
|
|
759
855
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
760
856
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
761
857
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -887,8 +983,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
887
983
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
888
984
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
889
985
|
},
|
|
890
|
-
async listPosts(sort,
|
|
891
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
986
|
+
async listPosts(sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options) {
|
|
987
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options);
|
|
892
988
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
893
989
|
},
|
|
894
990
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -919,8 +1015,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
919
1015
|
draftPost(postRequest, options) {
|
|
920
1016
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
921
1017
|
},
|
|
922
|
-
listPosts(sort,
|
|
923
|
-
return localVarFp.listPosts(sort,
|
|
1018
|
+
listPosts(sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options) {
|
|
1019
|
+
return localVarFp.listPosts(sort, tag, keyword, visible, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
924
1020
|
},
|
|
925
1021
|
publishPost(name, headSnapshot, options) {
|
|
926
1022
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -944,7 +1040,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
944
1040
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
945
1041
|
}
|
|
946
1042
|
listPosts(requestParameters = {}, options) {
|
|
947
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
1043
|
+
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));
|
|
948
1044
|
}
|
|
949
1045
|
publishPost(requestParameters, options) {
|
|
950
1046
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -965,7 +1061,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
965
1061
|
|
|
966
1062
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
967
1063
|
return {
|
|
968
|
-
listReplies: async (commentName, size, labelSelector, fieldSelector,
|
|
1064
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
969
1065
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
970
1066
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
971
1067
|
let baseOptions;
|
|
@@ -983,15 +1079,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
983
1079
|
if (size !== void 0) {
|
|
984
1080
|
localVarQueryParameter["size"] = size;
|
|
985
1081
|
}
|
|
1082
|
+
if (page !== void 0) {
|
|
1083
|
+
localVarQueryParameter["page"] = page;
|
|
1084
|
+
}
|
|
986
1085
|
if (labelSelector) {
|
|
987
1086
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
988
1087
|
}
|
|
989
1088
|
if (fieldSelector) {
|
|
990
1089
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
991
1090
|
}
|
|
992
|
-
if (page !== void 0) {
|
|
993
|
-
localVarQueryParameter["page"] = page;
|
|
994
|
-
}
|
|
995
1091
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
996
1092
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
997
1093
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1005,8 +1101,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
1005
1101
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
1006
1102
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
1007
1103
|
return {
|
|
1008
|
-
async listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1009
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1104
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
1105
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
|
|
1010
1106
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1011
1107
|
}
|
|
1012
1108
|
};
|
|
@@ -1014,14 +1110,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
1014
1110
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
1015
1111
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
1016
1112
|
return {
|
|
1017
|
-
listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1018
|
-
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1113
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
1114
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1019
1115
|
}
|
|
1020
1116
|
};
|
|
1021
1117
|
};
|
|
1022
1118
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
1023
1119
|
listReplies(requestParameters = {}, options) {
|
|
1024
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
1120
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1025
1121
|
}
|
|
1026
1122
|
}
|
|
1027
1123
|
|
|
@@ -1050,7 +1146,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1050
1146
|
options: localVarRequestOptions
|
|
1051
1147
|
};
|
|
1052
1148
|
},
|
|
1053
|
-
listSinglePages: async (sort,
|
|
1149
|
+
listSinglePages: async (sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1054
1150
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1055
1151
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1056
1152
|
let baseOptions;
|
|
@@ -1065,33 +1161,33 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1065
1161
|
if (sort !== void 0) {
|
|
1066
1162
|
localVarQueryParameter["sort"] = sort;
|
|
1067
1163
|
}
|
|
1068
|
-
if (
|
|
1069
|
-
localVarQueryParameter["
|
|
1164
|
+
if (keyword !== void 0) {
|
|
1165
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1166
|
+
}
|
|
1167
|
+
if (visible !== void 0) {
|
|
1168
|
+
localVarQueryParameter["visible"] = visible;
|
|
1070
1169
|
}
|
|
1071
1170
|
if (contributor) {
|
|
1072
1171
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1073
1172
|
}
|
|
1173
|
+
if (sortOrder !== void 0) {
|
|
1174
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1175
|
+
}
|
|
1074
1176
|
if (publishPhase !== void 0) {
|
|
1075
1177
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1076
1178
|
}
|
|
1077
|
-
if (visible !== void 0) {
|
|
1078
|
-
localVarQueryParameter["visible"] = visible;
|
|
1079
|
-
}
|
|
1080
|
-
if (keyword !== void 0) {
|
|
1081
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1082
|
-
}
|
|
1083
1179
|
if (size !== void 0) {
|
|
1084
1180
|
localVarQueryParameter["size"] = size;
|
|
1085
1181
|
}
|
|
1182
|
+
if (page !== void 0) {
|
|
1183
|
+
localVarQueryParameter["page"] = page;
|
|
1184
|
+
}
|
|
1086
1185
|
if (labelSelector) {
|
|
1087
1186
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1088
1187
|
}
|
|
1089
1188
|
if (fieldSelector) {
|
|
1090
1189
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1091
1190
|
}
|
|
1092
|
-
if (page !== void 0) {
|
|
1093
|
-
localVarQueryParameter["page"] = page;
|
|
1094
|
-
}
|
|
1095
1191
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1096
1192
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1097
1193
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1178,8 +1274,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1178
1274
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1179
1275
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1180
1276
|
},
|
|
1181
|
-
async listSinglePages(sort,
|
|
1182
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1277
|
+
async listSinglePages(sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options) {
|
|
1278
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options);
|
|
1183
1279
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1184
1280
|
},
|
|
1185
1281
|
async publishSinglePage(name, options) {
|
|
@@ -1202,8 +1298,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1202
1298
|
draftSinglePage(singlePageRequest, options) {
|
|
1203
1299
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1204
1300
|
},
|
|
1205
|
-
listSinglePages(sort,
|
|
1206
|
-
return localVarFp.listSinglePages(sort,
|
|
1301
|
+
listSinglePages(sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options) {
|
|
1302
|
+
return localVarFp.listSinglePages(sort, keyword, visible, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1207
1303
|
},
|
|
1208
1304
|
publishSinglePage(name, options) {
|
|
1209
1305
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1221,7 +1317,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1221
1317
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1222
1318
|
}
|
|
1223
1319
|
listSinglePages(requestParameters = {}, options) {
|
|
1224
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1320
|
+
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));
|
|
1225
1321
|
}
|
|
1226
1322
|
publishSinglePage(requestParameters, options) {
|
|
1227
1323
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1283,6 +1379,27 @@ class ApiConsoleHaloRunV1alpha1StatsApi extends BaseAPI {
|
|
|
1283
1379
|
|
|
1284
1380
|
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
1285
1381
|
return {
|
|
1382
|
+
activateTheme: async (name, options = {}) => {
|
|
1383
|
+
assertParamExists("activateTheme", "name", name);
|
|
1384
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/activation`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1385
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1386
|
+
let baseOptions;
|
|
1387
|
+
if (configuration) {
|
|
1388
|
+
baseOptions = configuration.baseOptions;
|
|
1389
|
+
}
|
|
1390
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1391
|
+
const localVarHeaderParameter = {};
|
|
1392
|
+
const localVarQueryParameter = {};
|
|
1393
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1394
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1395
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1396
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1397
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1398
|
+
return {
|
|
1399
|
+
url: toPathString(localVarUrlObj),
|
|
1400
|
+
options: localVarRequestOptions
|
|
1401
|
+
};
|
|
1402
|
+
},
|
|
1286
1403
|
fetchActivatedTheme: async (options = {}) => {
|
|
1287
1404
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/-/activation`;
|
|
1288
1405
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1372,7 +1489,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1372
1489
|
options: localVarRequestOptions
|
|
1373
1490
|
};
|
|
1374
1491
|
},
|
|
1375
|
-
listThemes: async (uninstalled, size, labelSelector, fieldSelector,
|
|
1492
|
+
listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1376
1493
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1377
1494
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1378
1495
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1391,15 +1508,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1391
1508
|
if (size !== void 0) {
|
|
1392
1509
|
localVarQueryParameter["size"] = size;
|
|
1393
1510
|
}
|
|
1511
|
+
if (page !== void 0) {
|
|
1512
|
+
localVarQueryParameter["page"] = page;
|
|
1513
|
+
}
|
|
1394
1514
|
if (labelSelector) {
|
|
1395
1515
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1396
1516
|
}
|
|
1397
1517
|
if (fieldSelector) {
|
|
1398
1518
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1399
1519
|
}
|
|
1400
|
-
if (page !== void 0) {
|
|
1401
|
-
localVarQueryParameter["page"] = page;
|
|
1402
|
-
}
|
|
1403
1520
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1404
1521
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1405
1522
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1450,8 +1567,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1450
1567
|
options: localVarRequestOptions
|
|
1451
1568
|
};
|
|
1452
1569
|
},
|
|
1453
|
-
updateThemeConfig: async (name, options = {}) => {
|
|
1570
|
+
updateThemeConfig: async (name, configMap, options = {}) => {
|
|
1454
1571
|
assertParamExists("updateThemeConfig", "name", name);
|
|
1572
|
+
assertParamExists("updateThemeConfig", "configMap", configMap);
|
|
1455
1573
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1456
1574
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1457
1575
|
let baseOptions;
|
|
@@ -1463,9 +1581,11 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1463
1581
|
const localVarQueryParameter = {};
|
|
1464
1582
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1465
1583
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1584
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1466
1585
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1467
1586
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1468
1587
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1588
|
+
localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration);
|
|
1469
1589
|
return {
|
|
1470
1590
|
url: toPathString(localVarUrlObj),
|
|
1471
1591
|
options: localVarRequestOptions
|
|
@@ -1504,6 +1624,10 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1504
1624
|
const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
1505
1625
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
|
1506
1626
|
return {
|
|
1627
|
+
async activateTheme(name, options) {
|
|
1628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.activateTheme(name, options);
|
|
1629
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1630
|
+
},
|
|
1507
1631
|
async fetchActivatedTheme(options) {
|
|
1508
1632
|
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchActivatedTheme(options);
|
|
1509
1633
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
@@ -1520,8 +1644,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1520
1644
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1521
1645
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1522
1646
|
},
|
|
1523
|
-
async listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1524
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1647
|
+
async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1648
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
|
|
1525
1649
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1526
1650
|
},
|
|
1527
1651
|
async reload(name, options) {
|
|
@@ -1532,8 +1656,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1532
1656
|
const localVarAxiosArgs = await localVarAxiosParamCreator.resetThemeConfig(name, options);
|
|
1533
1657
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1534
1658
|
},
|
|
1535
|
-
async updateThemeConfig(name, options) {
|
|
1536
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateThemeConfig(name, options);
|
|
1659
|
+
async updateThemeConfig(name, configMap, options) {
|
|
1660
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateThemeConfig(name, configMap, options);
|
|
1537
1661
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1538
1662
|
},
|
|
1539
1663
|
async upgradeTheme(name, file, options) {
|
|
@@ -1545,6 +1669,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1545
1669
|
const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePath, axios) {
|
|
1546
1670
|
const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration);
|
|
1547
1671
|
return {
|
|
1672
|
+
activateTheme(name, options) {
|
|
1673
|
+
return localVarFp.activateTheme(name, options).then((request) => request(axios, basePath));
|
|
1674
|
+
},
|
|
1548
1675
|
fetchActivatedTheme(options) {
|
|
1549
1676
|
return localVarFp.fetchActivatedTheme(options).then((request) => request(axios, basePath));
|
|
1550
1677
|
},
|
|
@@ -1557,8 +1684,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1557
1684
|
installTheme(file, options) {
|
|
1558
1685
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1559
1686
|
},
|
|
1560
|
-
listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1561
|
-
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1687
|
+
listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1688
|
+
return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1562
1689
|
},
|
|
1563
1690
|
reload(name, options) {
|
|
1564
1691
|
return localVarFp.reload(name, options).then((request) => request(axios, basePath));
|
|
@@ -1566,8 +1693,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1566
1693
|
resetThemeConfig(name, options) {
|
|
1567
1694
|
return localVarFp.resetThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1568
1695
|
},
|
|
1569
|
-
updateThemeConfig(name, options) {
|
|
1570
|
-
return localVarFp.updateThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1696
|
+
updateThemeConfig(name, configMap, options) {
|
|
1697
|
+
return localVarFp.updateThemeConfig(name, configMap, options).then((request) => request(axios, basePath));
|
|
1571
1698
|
},
|
|
1572
1699
|
upgradeTheme(name, file, options) {
|
|
1573
1700
|
return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -1575,6 +1702,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1575
1702
|
};
|
|
1576
1703
|
};
|
|
1577
1704
|
class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
1705
|
+
activateTheme(requestParameters, options) {
|
|
1706
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).activateTheme(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1707
|
+
}
|
|
1578
1708
|
fetchActivatedTheme(options) {
|
|
1579
1709
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchActivatedTheme(options).then((request) => request(this.axios, this.basePath));
|
|
1580
1710
|
}
|
|
@@ -1588,7 +1718,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1588
1718
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1589
1719
|
}
|
|
1590
1720
|
listThemes(requestParameters, options) {
|
|
1591
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1721
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1592
1722
|
}
|
|
1593
1723
|
reload(requestParameters, options) {
|
|
1594
1724
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1597,7 +1727,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1597
1727
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).resetThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1598
1728
|
}
|
|
1599
1729
|
updateThemeConfig(requestParameters, options) {
|
|
1600
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).updateThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1730
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).updateThemeConfig(requestParameters.name, requestParameters.configMap, options).then((request) => request(this.axios, this.basePath));
|
|
1601
1731
|
}
|
|
1602
1732
|
upgradeTheme(requestParameters, options) {
|
|
1603
1733
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1901,12 +2031,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1901
2031
|
if (version !== void 0) {
|
|
1902
2032
|
localVarQueryParameter["version"] = version;
|
|
1903
2033
|
}
|
|
1904
|
-
if (group !== void 0) {
|
|
1905
|
-
localVarQueryParameter["group"] = group;
|
|
1906
|
-
}
|
|
1907
2034
|
if (kind !== void 0) {
|
|
1908
2035
|
localVarQueryParameter["kind"] = kind;
|
|
1909
2036
|
}
|
|
2037
|
+
if (group !== void 0) {
|
|
2038
|
+
localVarQueryParameter["group"] = group;
|
|
2039
|
+
}
|
|
1910
2040
|
if (size !== void 0) {
|
|
1911
2041
|
localVarQueryParameter["size"] = size;
|
|
1912
2042
|
}
|
|
@@ -1988,7 +2118,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1988
2118
|
|
|
1989
2119
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1990
2120
|
return {
|
|
1991
|
-
searchPost: async (keyword, highlightPreTag, highlightPostTag,
|
|
2121
|
+
searchPost: async (keyword, limit, highlightPreTag, highlightPostTag, options = {}) => {
|
|
1992
2122
|
assertParamExists("searchPost", "keyword", keyword);
|
|
1993
2123
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
1994
2124
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2001,18 +2131,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
2001
2131
|
const localVarQueryParameter = {};
|
|
2002
2132
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
2003
2133
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2134
|
+
if (limit !== void 0) {
|
|
2135
|
+
localVarQueryParameter["limit"] = limit;
|
|
2136
|
+
}
|
|
2137
|
+
if (keyword !== void 0) {
|
|
2138
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
2139
|
+
}
|
|
2004
2140
|
if (highlightPreTag !== void 0) {
|
|
2005
2141
|
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
2006
2142
|
}
|
|
2007
2143
|
if (highlightPostTag !== void 0) {
|
|
2008
2144
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
2009
2145
|
}
|
|
2010
|
-
if (keyword !== void 0) {
|
|
2011
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
2012
|
-
}
|
|
2013
|
-
if (limit !== void 0) {
|
|
2014
|
-
localVarQueryParameter["limit"] = limit;
|
|
2015
|
-
}
|
|
2016
2146
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2017
2147
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2018
2148
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2026,8 +2156,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
2026
2156
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
2027
2157
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
2028
2158
|
return {
|
|
2029
|
-
async searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
2030
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
2159
|
+
async searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
2160
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options);
|
|
2031
2161
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2032
2162
|
}
|
|
2033
2163
|
};
|
|
@@ -2035,14 +2165,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
2035
2165
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
2036
2166
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
2037
2167
|
return {
|
|
2038
|
-
searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
2039
|
-
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
2168
|
+
searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
2169
|
+
return localVarFp.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options).then((request) => request(axios, basePath));
|
|
2040
2170
|
}
|
|
2041
2171
|
};
|
|
2042
2172
|
};
|
|
2043
2173
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
2044
2174
|
searchPost(requestParameters, options) {
|
|
2045
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
2175
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(this.axios, this.basePath));
|
|
2046
2176
|
}
|
|
2047
2177
|
}
|
|
2048
2178
|
|