@halo-dev/api-client 0.0.32 → 0.0.34
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 +137 -71
- package/dist/index.d.ts +301 -129
- package/dist/index.mjs +137 -71
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -124,7 +124,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
124
124
|
options: localVarRequestOptions
|
|
125
125
|
};
|
|
126
126
|
},
|
|
127
|
-
listComments: async (sort,
|
|
127
|
+
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
128
128
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
129
129
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
130
130
|
let baseOptions;
|
|
@@ -139,15 +139,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
139
139
|
if (sort !== void 0) {
|
|
140
140
|
localVarQueryParameter["sort"] = sort;
|
|
141
141
|
}
|
|
142
|
-
if (keyword !== void 0) {
|
|
143
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
144
|
-
}
|
|
145
|
-
if (hidden !== void 0) {
|
|
146
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
147
|
-
}
|
|
148
|
-
if (top !== void 0) {
|
|
149
|
-
localVarQueryParameter["top"] = top;
|
|
150
|
-
}
|
|
151
142
|
if (sortOrder !== void 0) {
|
|
152
143
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
153
144
|
}
|
|
@@ -169,18 +160,27 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
169
160
|
if (subjectName !== void 0) {
|
|
170
161
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
171
162
|
}
|
|
163
|
+
if (keyword !== void 0) {
|
|
164
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
165
|
+
}
|
|
166
|
+
if (hidden !== void 0) {
|
|
167
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
168
|
+
}
|
|
169
|
+
if (top !== void 0) {
|
|
170
|
+
localVarQueryParameter["top"] = top;
|
|
171
|
+
}
|
|
172
172
|
if (size !== void 0) {
|
|
173
173
|
localVarQueryParameter["size"] = size;
|
|
174
174
|
}
|
|
175
|
-
if (page !== void 0) {
|
|
176
|
-
localVarQueryParameter["page"] = page;
|
|
177
|
-
}
|
|
178
175
|
if (labelSelector) {
|
|
179
176
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
180
177
|
}
|
|
181
178
|
if (fieldSelector) {
|
|
182
179
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
183
180
|
}
|
|
181
|
+
if (page !== void 0) {
|
|
182
|
+
localVarQueryParameter["page"] = page;
|
|
183
|
+
}
|
|
184
184
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
185
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
186
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -202,8 +202,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
202
202
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
203
203
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
204
204
|
},
|
|
205
|
-
async listComments(sort,
|
|
206
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort,
|
|
205
|
+
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
206
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
|
|
207
207
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
208
208
|
}
|
|
209
209
|
};
|
|
@@ -217,8 +217,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
217
217
|
createReply(name, replyRequest, options) {
|
|
218
218
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
219
219
|
},
|
|
220
|
-
listComments(sort,
|
|
221
|
-
return localVarFp.listComments(sort,
|
|
220
|
+
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
221
|
+
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
};
|
|
@@ -230,7 +230,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
230
230
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
231
231
|
}
|
|
232
232
|
listComments(requestParameters = {}, options) {
|
|
233
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
233
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
|
|
@@ -411,6 +411,47 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
411
411
|
url: toPathString(localVarUrlObj),
|
|
412
412
|
options: localVarRequestOptions
|
|
413
413
|
};
|
|
414
|
+
},
|
|
415
|
+
listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
416
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
417
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
418
|
+
let baseOptions;
|
|
419
|
+
if (configuration) {
|
|
420
|
+
baseOptions = configuration.baseOptions;
|
|
421
|
+
}
|
|
422
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
423
|
+
const localVarHeaderParameter = {};
|
|
424
|
+
const localVarQueryParameter = {};
|
|
425
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
426
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
427
|
+
if (sort) {
|
|
428
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
429
|
+
}
|
|
430
|
+
if (keyword !== void 0) {
|
|
431
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
432
|
+
}
|
|
433
|
+
if (enabled !== void 0) {
|
|
434
|
+
localVarQueryParameter["enabled"] = enabled;
|
|
435
|
+
}
|
|
436
|
+
if (size !== void 0) {
|
|
437
|
+
localVarQueryParameter["size"] = size;
|
|
438
|
+
}
|
|
439
|
+
if (labelSelector) {
|
|
440
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
441
|
+
}
|
|
442
|
+
if (fieldSelector) {
|
|
443
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
444
|
+
}
|
|
445
|
+
if (page !== void 0) {
|
|
446
|
+
localVarQueryParameter["page"] = page;
|
|
447
|
+
}
|
|
448
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
449
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
451
|
+
return {
|
|
452
|
+
url: toPathString(localVarUrlObj),
|
|
453
|
+
options: localVarRequestOptions
|
|
454
|
+
};
|
|
414
455
|
}
|
|
415
456
|
};
|
|
416
457
|
};
|
|
@@ -420,6 +461,10 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
420
461
|
async installPlugin(file, options) {
|
|
421
462
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
422
463
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
464
|
+
},
|
|
465
|
+
async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
|
|
466
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options);
|
|
467
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
423
468
|
}
|
|
424
469
|
};
|
|
425
470
|
};
|
|
@@ -428,6 +473,9 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
428
473
|
return {
|
|
429
474
|
installPlugin(file, options) {
|
|
430
475
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
476
|
+
},
|
|
477
|
+
listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
|
|
478
|
+
return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
431
479
|
}
|
|
432
480
|
};
|
|
433
481
|
};
|
|
@@ -435,6 +483,9 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
435
483
|
installPlugin(requestParameters, options) {
|
|
436
484
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
437
485
|
}
|
|
486
|
+
listPlugins(requestParameters = {}, options) {
|
|
487
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.keyword, requestParameters.enabled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
488
|
+
}
|
|
438
489
|
}
|
|
439
490
|
|
|
440
491
|
const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
@@ -462,7 +513,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
462
513
|
options: localVarRequestOptions
|
|
463
514
|
};
|
|
464
515
|
},
|
|
465
|
-
listPosts: async (sort,
|
|
516
|
+
listPosts: async (sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
466
517
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
467
518
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
468
519
|
let baseOptions;
|
|
@@ -477,39 +528,39 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
477
528
|
if (sort !== void 0) {
|
|
478
529
|
localVarQueryParameter["sort"] = sort;
|
|
479
530
|
}
|
|
480
|
-
if (
|
|
481
|
-
localVarQueryParameter["
|
|
531
|
+
if (sortOrder !== void 0) {
|
|
532
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
482
533
|
}
|
|
483
|
-
if (
|
|
484
|
-
localVarQueryParameter["
|
|
534
|
+
if (publishPhase !== void 0) {
|
|
535
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
485
536
|
}
|
|
486
|
-
if (
|
|
487
|
-
localVarQueryParameter["
|
|
537
|
+
if (category) {
|
|
538
|
+
localVarQueryParameter["category"] = Array.from(category);
|
|
488
539
|
}
|
|
489
540
|
if (contributor) {
|
|
490
541
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
491
542
|
}
|
|
492
|
-
if (
|
|
493
|
-
localVarQueryParameter["
|
|
543
|
+
if (keyword !== void 0) {
|
|
544
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
494
545
|
}
|
|
495
|
-
if (
|
|
496
|
-
localVarQueryParameter["
|
|
546
|
+
if (visible !== void 0) {
|
|
547
|
+
localVarQueryParameter["visible"] = visible;
|
|
497
548
|
}
|
|
498
|
-
if (
|
|
499
|
-
localVarQueryParameter["
|
|
549
|
+
if (tag) {
|
|
550
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
500
551
|
}
|
|
501
552
|
if (size !== void 0) {
|
|
502
553
|
localVarQueryParameter["size"] = size;
|
|
503
554
|
}
|
|
504
|
-
if (page !== void 0) {
|
|
505
|
-
localVarQueryParameter["page"] = page;
|
|
506
|
-
}
|
|
507
555
|
if (labelSelector) {
|
|
508
556
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
509
557
|
}
|
|
510
558
|
if (fieldSelector) {
|
|
511
559
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
512
560
|
}
|
|
561
|
+
if (page !== void 0) {
|
|
562
|
+
localVarQueryParameter["page"] = page;
|
|
563
|
+
}
|
|
513
564
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
514
565
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
515
566
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -572,8 +623,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
572
623
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
573
624
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
574
625
|
},
|
|
575
|
-
async listPosts(sort,
|
|
576
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
626
|
+
async listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
627
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
|
|
577
628
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
578
629
|
},
|
|
579
630
|
async publishPost(name, options) {
|
|
@@ -592,8 +643,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
592
643
|
draftPost(postRequest, options) {
|
|
593
644
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
594
645
|
},
|
|
595
|
-
listPosts(sort,
|
|
596
|
-
return localVarFp.listPosts(sort,
|
|
646
|
+
listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
647
|
+
return localVarFp.listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
597
648
|
},
|
|
598
649
|
publishPost(name, options) {
|
|
599
650
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -608,7 +659,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
608
659
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
609
660
|
}
|
|
610
661
|
listPosts(requestParameters = {}, options) {
|
|
611
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
662
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
612
663
|
}
|
|
613
664
|
publishPost(requestParameters, options) {
|
|
614
665
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -620,7 +671,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
620
671
|
|
|
621
672
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
622
673
|
return {
|
|
623
|
-
listReplies: async (commentName, size,
|
|
674
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
624
675
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
625
676
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
626
677
|
let baseOptions;
|
|
@@ -638,15 +689,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
638
689
|
if (size !== void 0) {
|
|
639
690
|
localVarQueryParameter["size"] = size;
|
|
640
691
|
}
|
|
641
|
-
if (page !== void 0) {
|
|
642
|
-
localVarQueryParameter["page"] = page;
|
|
643
|
-
}
|
|
644
692
|
if (labelSelector) {
|
|
645
693
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
646
694
|
}
|
|
647
695
|
if (fieldSelector) {
|
|
648
696
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
649
697
|
}
|
|
698
|
+
if (page !== void 0) {
|
|
699
|
+
localVarQueryParameter["page"] = page;
|
|
700
|
+
}
|
|
650
701
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
651
702
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
652
703
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -660,8 +711,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
660
711
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
661
712
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
662
713
|
return {
|
|
663
|
-
async listReplies(commentName, size,
|
|
664
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size,
|
|
714
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
715
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
665
716
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
666
717
|
}
|
|
667
718
|
};
|
|
@@ -669,14 +720,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
669
720
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
670
721
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
671
722
|
return {
|
|
672
|
-
listReplies(commentName, size,
|
|
673
|
-
return localVarFp.listReplies(commentName, size,
|
|
723
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
724
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
674
725
|
}
|
|
675
726
|
};
|
|
676
727
|
};
|
|
677
728
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
678
729
|
listReplies(requestParameters = {}, options) {
|
|
679
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
730
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
680
731
|
}
|
|
681
732
|
}
|
|
682
733
|
|
|
@@ -705,7 +756,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
705
756
|
options: localVarRequestOptions
|
|
706
757
|
};
|
|
707
758
|
},
|
|
708
|
-
listSinglePages: async (
|
|
759
|
+
listSinglePages: async (sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
709
760
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
710
761
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
711
762
|
let baseOptions;
|
|
@@ -717,21 +768,36 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
717
768
|
const localVarQueryParameter = {};
|
|
718
769
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
719
770
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
720
|
-
if (
|
|
721
|
-
localVarQueryParameter["
|
|
771
|
+
if (sort !== void 0) {
|
|
772
|
+
localVarQueryParameter["sort"] = sort;
|
|
773
|
+
}
|
|
774
|
+
if (sortOrder !== void 0) {
|
|
775
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
776
|
+
}
|
|
777
|
+
if (publishPhase !== void 0) {
|
|
778
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
779
|
+
}
|
|
780
|
+
if (contributor) {
|
|
781
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
782
|
+
}
|
|
783
|
+
if (keyword !== void 0) {
|
|
784
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
785
|
+
}
|
|
786
|
+
if (visible !== void 0) {
|
|
787
|
+
localVarQueryParameter["visible"] = visible;
|
|
722
788
|
}
|
|
723
789
|
if (size !== void 0) {
|
|
724
790
|
localVarQueryParameter["size"] = size;
|
|
725
791
|
}
|
|
726
|
-
if (page !== void 0) {
|
|
727
|
-
localVarQueryParameter["page"] = page;
|
|
728
|
-
}
|
|
729
792
|
if (labelSelector) {
|
|
730
793
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
731
794
|
}
|
|
732
795
|
if (fieldSelector) {
|
|
733
796
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
734
797
|
}
|
|
798
|
+
if (page !== void 0) {
|
|
799
|
+
localVarQueryParameter["page"] = page;
|
|
800
|
+
}
|
|
735
801
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
736
802
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
737
803
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -794,8 +860,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
794
860
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
795
861
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
796
862
|
},
|
|
797
|
-
async listSinglePages(
|
|
798
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(
|
|
863
|
+
async listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
864
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
799
865
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
800
866
|
},
|
|
801
867
|
async publishSinglePage(name, options) {
|
|
@@ -814,8 +880,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
814
880
|
draftSinglePage(singlePageRequest, options) {
|
|
815
881
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
816
882
|
},
|
|
817
|
-
listSinglePages(
|
|
818
|
-
return localVarFp.listSinglePages(
|
|
883
|
+
listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
884
|
+
return localVarFp.listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
819
885
|
},
|
|
820
886
|
publishSinglePage(name, options) {
|
|
821
887
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -830,7 +896,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
830
896
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
831
897
|
}
|
|
832
898
|
listSinglePages(requestParameters = {}, options) {
|
|
833
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.
|
|
899
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
834
900
|
}
|
|
835
901
|
publishSinglePage(requestParameters, options) {
|
|
836
902
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1189,12 +1255,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1189
1255
|
if (version !== void 0) {
|
|
1190
1256
|
localVarQueryParameter["version"] = version;
|
|
1191
1257
|
}
|
|
1192
|
-
if (kind !== void 0) {
|
|
1193
|
-
localVarQueryParameter["kind"] = kind;
|
|
1194
|
-
}
|
|
1195
1258
|
if (group !== void 0) {
|
|
1196
1259
|
localVarQueryParameter["group"] = group;
|
|
1197
1260
|
}
|
|
1261
|
+
if (kind !== void 0) {
|
|
1262
|
+
localVarQueryParameter["kind"] = kind;
|
|
1263
|
+
}
|
|
1198
1264
|
if (size !== void 0) {
|
|
1199
1265
|
localVarQueryParameter["size"] = size;
|
|
1200
1266
|
}
|
|
@@ -3418,7 +3484,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
3418
3484
|
options: localVarRequestOptions
|
|
3419
3485
|
};
|
|
3420
3486
|
},
|
|
3421
|
-
searchAttachments: async (policy, displayName, group, uploadedBy, size,
|
|
3487
|
+
searchAttachments: async (policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
3422
3488
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
3423
3489
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3424
3490
|
let baseOptions;
|
|
@@ -3445,15 +3511,15 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
3445
3511
|
if (size !== void 0) {
|
|
3446
3512
|
localVarQueryParameter["size"] = size;
|
|
3447
3513
|
}
|
|
3448
|
-
if (page !== void 0) {
|
|
3449
|
-
localVarQueryParameter["page"] = page;
|
|
3450
|
-
}
|
|
3451
3514
|
if (labelSelector) {
|
|
3452
3515
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
3453
3516
|
}
|
|
3454
3517
|
if (fieldSelector) {
|
|
3455
3518
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
3456
3519
|
}
|
|
3520
|
+
if (page !== void 0) {
|
|
3521
|
+
localVarQueryParameter["page"] = page;
|
|
3522
|
+
}
|
|
3457
3523
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3458
3524
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3459
3525
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3540,8 +3606,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
3540
3606
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
3541
3607
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3542
3608
|
},
|
|
3543
|
-
async searchAttachments(policy, displayName, group, uploadedBy, size,
|
|
3544
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size,
|
|
3609
|
+
async searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
3610
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options);
|
|
3545
3611
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3546
3612
|
},
|
|
3547
3613
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
@@ -3569,8 +3635,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
3569
3635
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
3570
3636
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
3571
3637
|
},
|
|
3572
|
-
searchAttachments(policy, displayName, group, uploadedBy, size,
|
|
3573
|
-
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size,
|
|
3638
|
+
searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
3639
|
+
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
3574
3640
|
},
|
|
3575
3641
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
3576
3642
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
@@ -3594,7 +3660,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
3594
3660
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
3595
3661
|
}
|
|
3596
3662
|
searchAttachments(requestParameters = {}, options) {
|
|
3597
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.
|
|
3663
|
+
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
3598
3664
|
}
|
|
3599
3665
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
3600
3666
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|