@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.mjs
CHANGED
|
@@ -116,7 +116,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
116
116
|
options: localVarRequestOptions
|
|
117
117
|
};
|
|
118
118
|
},
|
|
119
|
-
listComments: async (sort,
|
|
119
|
+
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
120
120
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
121
121
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
122
122
|
let baseOptions;
|
|
@@ -131,15 +131,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
131
131
|
if (sort !== void 0) {
|
|
132
132
|
localVarQueryParameter["sort"] = sort;
|
|
133
133
|
}
|
|
134
|
-
if (keyword !== void 0) {
|
|
135
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
136
|
-
}
|
|
137
|
-
if (hidden !== void 0) {
|
|
138
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
139
|
-
}
|
|
140
|
-
if (top !== void 0) {
|
|
141
|
-
localVarQueryParameter["top"] = top;
|
|
142
|
-
}
|
|
143
134
|
if (sortOrder !== void 0) {
|
|
144
135
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
145
136
|
}
|
|
@@ -161,18 +152,27 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
161
152
|
if (subjectName !== void 0) {
|
|
162
153
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
163
154
|
}
|
|
155
|
+
if (keyword !== void 0) {
|
|
156
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
157
|
+
}
|
|
158
|
+
if (hidden !== void 0) {
|
|
159
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
160
|
+
}
|
|
161
|
+
if (top !== void 0) {
|
|
162
|
+
localVarQueryParameter["top"] = top;
|
|
163
|
+
}
|
|
164
164
|
if (size !== void 0) {
|
|
165
165
|
localVarQueryParameter["size"] = size;
|
|
166
166
|
}
|
|
167
|
-
if (page !== void 0) {
|
|
168
|
-
localVarQueryParameter["page"] = page;
|
|
169
|
-
}
|
|
170
167
|
if (labelSelector) {
|
|
171
168
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
172
169
|
}
|
|
173
170
|
if (fieldSelector) {
|
|
174
171
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
175
172
|
}
|
|
173
|
+
if (page !== void 0) {
|
|
174
|
+
localVarQueryParameter["page"] = page;
|
|
175
|
+
}
|
|
176
176
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
177
177
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
178
178
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -194,8 +194,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
194
194
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
195
195
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
196
196
|
},
|
|
197
|
-
async listComments(sort,
|
|
198
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort,
|
|
197
|
+
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
198
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
|
|
199
199
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
200
200
|
}
|
|
201
201
|
};
|
|
@@ -209,8 +209,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
209
209
|
createReply(name, replyRequest, options) {
|
|
210
210
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
211
211
|
},
|
|
212
|
-
listComments(sort,
|
|
213
|
-
return localVarFp.listComments(sort,
|
|
212
|
+
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
213
|
+
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
};
|
|
@@ -222,7 +222,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
222
222
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
223
223
|
}
|
|
224
224
|
listComments(requestParameters = {}, options) {
|
|
225
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
225
|
+
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));
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
|
|
@@ -403,6 +403,47 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
403
403
|
url: toPathString(localVarUrlObj),
|
|
404
404
|
options: localVarRequestOptions
|
|
405
405
|
};
|
|
406
|
+
},
|
|
407
|
+
listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
408
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
409
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
410
|
+
let baseOptions;
|
|
411
|
+
if (configuration) {
|
|
412
|
+
baseOptions = configuration.baseOptions;
|
|
413
|
+
}
|
|
414
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
415
|
+
const localVarHeaderParameter = {};
|
|
416
|
+
const localVarQueryParameter = {};
|
|
417
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
418
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
419
|
+
if (sort) {
|
|
420
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
421
|
+
}
|
|
422
|
+
if (keyword !== void 0) {
|
|
423
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
424
|
+
}
|
|
425
|
+
if (enabled !== void 0) {
|
|
426
|
+
localVarQueryParameter["enabled"] = enabled;
|
|
427
|
+
}
|
|
428
|
+
if (size !== void 0) {
|
|
429
|
+
localVarQueryParameter["size"] = size;
|
|
430
|
+
}
|
|
431
|
+
if (labelSelector) {
|
|
432
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
433
|
+
}
|
|
434
|
+
if (fieldSelector) {
|
|
435
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
436
|
+
}
|
|
437
|
+
if (page !== void 0) {
|
|
438
|
+
localVarQueryParameter["page"] = page;
|
|
439
|
+
}
|
|
440
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
441
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
442
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
443
|
+
return {
|
|
444
|
+
url: toPathString(localVarUrlObj),
|
|
445
|
+
options: localVarRequestOptions
|
|
446
|
+
};
|
|
406
447
|
}
|
|
407
448
|
};
|
|
408
449
|
};
|
|
@@ -412,6 +453,10 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
412
453
|
async installPlugin(file, options) {
|
|
413
454
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
414
455
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
456
|
+
},
|
|
457
|
+
async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
|
|
458
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options);
|
|
459
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
415
460
|
}
|
|
416
461
|
};
|
|
417
462
|
};
|
|
@@ -420,6 +465,9 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
420
465
|
return {
|
|
421
466
|
installPlugin(file, options) {
|
|
422
467
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
468
|
+
},
|
|
469
|
+
listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
|
|
470
|
+
return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
423
471
|
}
|
|
424
472
|
};
|
|
425
473
|
};
|
|
@@ -427,6 +475,9 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
427
475
|
installPlugin(requestParameters, options) {
|
|
428
476
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
429
477
|
}
|
|
478
|
+
listPlugins(requestParameters = {}, options) {
|
|
479
|
+
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));
|
|
480
|
+
}
|
|
430
481
|
}
|
|
431
482
|
|
|
432
483
|
const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
@@ -454,7 +505,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
454
505
|
options: localVarRequestOptions
|
|
455
506
|
};
|
|
456
507
|
},
|
|
457
|
-
listPosts: async (sort,
|
|
508
|
+
listPosts: async (sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
458
509
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
459
510
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
460
511
|
let baseOptions;
|
|
@@ -469,39 +520,39 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
469
520
|
if (sort !== void 0) {
|
|
470
521
|
localVarQueryParameter["sort"] = sort;
|
|
471
522
|
}
|
|
472
|
-
if (
|
|
473
|
-
localVarQueryParameter["
|
|
523
|
+
if (sortOrder !== void 0) {
|
|
524
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
474
525
|
}
|
|
475
|
-
if (
|
|
476
|
-
localVarQueryParameter["
|
|
526
|
+
if (publishPhase !== void 0) {
|
|
527
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
477
528
|
}
|
|
478
|
-
if (
|
|
479
|
-
localVarQueryParameter["
|
|
529
|
+
if (category) {
|
|
530
|
+
localVarQueryParameter["category"] = Array.from(category);
|
|
480
531
|
}
|
|
481
532
|
if (contributor) {
|
|
482
533
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
483
534
|
}
|
|
484
|
-
if (
|
|
485
|
-
localVarQueryParameter["
|
|
535
|
+
if (keyword !== void 0) {
|
|
536
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
486
537
|
}
|
|
487
|
-
if (
|
|
488
|
-
localVarQueryParameter["
|
|
538
|
+
if (visible !== void 0) {
|
|
539
|
+
localVarQueryParameter["visible"] = visible;
|
|
489
540
|
}
|
|
490
|
-
if (
|
|
491
|
-
localVarQueryParameter["
|
|
541
|
+
if (tag) {
|
|
542
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
492
543
|
}
|
|
493
544
|
if (size !== void 0) {
|
|
494
545
|
localVarQueryParameter["size"] = size;
|
|
495
546
|
}
|
|
496
|
-
if (page !== void 0) {
|
|
497
|
-
localVarQueryParameter["page"] = page;
|
|
498
|
-
}
|
|
499
547
|
if (labelSelector) {
|
|
500
548
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
501
549
|
}
|
|
502
550
|
if (fieldSelector) {
|
|
503
551
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
504
552
|
}
|
|
553
|
+
if (page !== void 0) {
|
|
554
|
+
localVarQueryParameter["page"] = page;
|
|
555
|
+
}
|
|
505
556
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
506
557
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
507
558
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -564,8 +615,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
564
615
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
565
616
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
566
617
|
},
|
|
567
|
-
async listPosts(sort,
|
|
568
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
618
|
+
async listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
619
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
|
|
569
620
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
570
621
|
},
|
|
571
622
|
async publishPost(name, options) {
|
|
@@ -584,8 +635,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
584
635
|
draftPost(postRequest, options) {
|
|
585
636
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
586
637
|
},
|
|
587
|
-
listPosts(sort,
|
|
588
|
-
return localVarFp.listPosts(sort,
|
|
638
|
+
listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
639
|
+
return localVarFp.listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
589
640
|
},
|
|
590
641
|
publishPost(name, options) {
|
|
591
642
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -600,7 +651,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
600
651
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
601
652
|
}
|
|
602
653
|
listPosts(requestParameters = {}, options) {
|
|
603
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
654
|
+
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));
|
|
604
655
|
}
|
|
605
656
|
publishPost(requestParameters, options) {
|
|
606
657
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -612,7 +663,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
612
663
|
|
|
613
664
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
614
665
|
return {
|
|
615
|
-
listReplies: async (commentName, size,
|
|
666
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
616
667
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
617
668
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
618
669
|
let baseOptions;
|
|
@@ -630,15 +681,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
630
681
|
if (size !== void 0) {
|
|
631
682
|
localVarQueryParameter["size"] = size;
|
|
632
683
|
}
|
|
633
|
-
if (page !== void 0) {
|
|
634
|
-
localVarQueryParameter["page"] = page;
|
|
635
|
-
}
|
|
636
684
|
if (labelSelector) {
|
|
637
685
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
638
686
|
}
|
|
639
687
|
if (fieldSelector) {
|
|
640
688
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
641
689
|
}
|
|
690
|
+
if (page !== void 0) {
|
|
691
|
+
localVarQueryParameter["page"] = page;
|
|
692
|
+
}
|
|
642
693
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
643
694
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
644
695
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -652,8 +703,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
652
703
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
653
704
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
654
705
|
return {
|
|
655
|
-
async listReplies(commentName, size,
|
|
656
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size,
|
|
706
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
707
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
657
708
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
658
709
|
}
|
|
659
710
|
};
|
|
@@ -661,14 +712,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
661
712
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
662
713
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
663
714
|
return {
|
|
664
|
-
listReplies(commentName, size,
|
|
665
|
-
return localVarFp.listReplies(commentName, size,
|
|
715
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
716
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
666
717
|
}
|
|
667
718
|
};
|
|
668
719
|
};
|
|
669
720
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
670
721
|
listReplies(requestParameters = {}, options) {
|
|
671
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
722
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
672
723
|
}
|
|
673
724
|
}
|
|
674
725
|
|
|
@@ -697,7 +748,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
697
748
|
options: localVarRequestOptions
|
|
698
749
|
};
|
|
699
750
|
},
|
|
700
|
-
listSinglePages: async (
|
|
751
|
+
listSinglePages: async (sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
701
752
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
702
753
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
703
754
|
let baseOptions;
|
|
@@ -709,21 +760,36 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
709
760
|
const localVarQueryParameter = {};
|
|
710
761
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
711
762
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
712
|
-
if (
|
|
713
|
-
localVarQueryParameter["
|
|
763
|
+
if (sort !== void 0) {
|
|
764
|
+
localVarQueryParameter["sort"] = sort;
|
|
765
|
+
}
|
|
766
|
+
if (sortOrder !== void 0) {
|
|
767
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
768
|
+
}
|
|
769
|
+
if (publishPhase !== void 0) {
|
|
770
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
771
|
+
}
|
|
772
|
+
if (contributor) {
|
|
773
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
774
|
+
}
|
|
775
|
+
if (keyword !== void 0) {
|
|
776
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
777
|
+
}
|
|
778
|
+
if (visible !== void 0) {
|
|
779
|
+
localVarQueryParameter["visible"] = visible;
|
|
714
780
|
}
|
|
715
781
|
if (size !== void 0) {
|
|
716
782
|
localVarQueryParameter["size"] = size;
|
|
717
783
|
}
|
|
718
|
-
if (page !== void 0) {
|
|
719
|
-
localVarQueryParameter["page"] = page;
|
|
720
|
-
}
|
|
721
784
|
if (labelSelector) {
|
|
722
785
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
723
786
|
}
|
|
724
787
|
if (fieldSelector) {
|
|
725
788
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
726
789
|
}
|
|
790
|
+
if (page !== void 0) {
|
|
791
|
+
localVarQueryParameter["page"] = page;
|
|
792
|
+
}
|
|
727
793
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
728
794
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
729
795
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -786,8 +852,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
786
852
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
787
853
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
788
854
|
},
|
|
789
|
-
async listSinglePages(
|
|
790
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(
|
|
855
|
+
async listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
856
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
791
857
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
792
858
|
},
|
|
793
859
|
async publishSinglePage(name, options) {
|
|
@@ -806,8 +872,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
806
872
|
draftSinglePage(singlePageRequest, options) {
|
|
807
873
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
808
874
|
},
|
|
809
|
-
listSinglePages(
|
|
810
|
-
return localVarFp.listSinglePages(
|
|
875
|
+
listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
876
|
+
return localVarFp.listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
811
877
|
},
|
|
812
878
|
publishSinglePage(name, options) {
|
|
813
879
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -822,7 +888,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
822
888
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
823
889
|
}
|
|
824
890
|
listSinglePages(requestParameters = {}, options) {
|
|
825
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.
|
|
891
|
+
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));
|
|
826
892
|
}
|
|
827
893
|
publishSinglePage(requestParameters, options) {
|
|
828
894
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1181,12 +1247,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1181
1247
|
if (version !== void 0) {
|
|
1182
1248
|
localVarQueryParameter["version"] = version;
|
|
1183
1249
|
}
|
|
1184
|
-
if (kind !== void 0) {
|
|
1185
|
-
localVarQueryParameter["kind"] = kind;
|
|
1186
|
-
}
|
|
1187
1250
|
if (group !== void 0) {
|
|
1188
1251
|
localVarQueryParameter["group"] = group;
|
|
1189
1252
|
}
|
|
1253
|
+
if (kind !== void 0) {
|
|
1254
|
+
localVarQueryParameter["kind"] = kind;
|
|
1255
|
+
}
|
|
1190
1256
|
if (size !== void 0) {
|
|
1191
1257
|
localVarQueryParameter["size"] = size;
|
|
1192
1258
|
}
|
|
@@ -3410,7 +3476,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
3410
3476
|
options: localVarRequestOptions
|
|
3411
3477
|
};
|
|
3412
3478
|
},
|
|
3413
|
-
searchAttachments: async (policy, displayName, group, uploadedBy, size,
|
|
3479
|
+
searchAttachments: async (policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
3414
3480
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
3415
3481
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3416
3482
|
let baseOptions;
|
|
@@ -3437,15 +3503,15 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
3437
3503
|
if (size !== void 0) {
|
|
3438
3504
|
localVarQueryParameter["size"] = size;
|
|
3439
3505
|
}
|
|
3440
|
-
if (page !== void 0) {
|
|
3441
|
-
localVarQueryParameter["page"] = page;
|
|
3442
|
-
}
|
|
3443
3506
|
if (labelSelector) {
|
|
3444
3507
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
3445
3508
|
}
|
|
3446
3509
|
if (fieldSelector) {
|
|
3447
3510
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
3448
3511
|
}
|
|
3512
|
+
if (page !== void 0) {
|
|
3513
|
+
localVarQueryParameter["page"] = page;
|
|
3514
|
+
}
|
|
3449
3515
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3450
3516
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3451
3517
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3532,8 +3598,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
3532
3598
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
3533
3599
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3534
3600
|
},
|
|
3535
|
-
async searchAttachments(policy, displayName, group, uploadedBy, size,
|
|
3536
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size,
|
|
3601
|
+
async searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
3602
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options);
|
|
3537
3603
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3538
3604
|
},
|
|
3539
3605
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
@@ -3561,8 +3627,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
3561
3627
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
3562
3628
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
3563
3629
|
},
|
|
3564
|
-
searchAttachments(policy, displayName, group, uploadedBy, size,
|
|
3565
|
-
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size,
|
|
3630
|
+
searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
3631
|
+
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
3566
3632
|
},
|
|
3567
3633
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
3568
3634
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
@@ -3586,7 +3652,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
3586
3652
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
3587
3653
|
}
|
|
3588
3654
|
searchAttachments(requestParameters = {}, options) {
|
|
3589
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.
|
|
3655
|
+
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));
|
|
3590
3656
|
}
|
|
3591
3657
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
3592
3658
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|