@halo-dev/api-client 0.0.24 → 0.0.25
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 +63 -78
- package/dist/index.d.ts +144 -175
- package/dist/index.mjs +63 -78
- 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, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
119
|
+
listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, 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,6 +131,15 @@ 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
|
+
}
|
|
134
143
|
if (sortOrder !== void 0) {
|
|
135
144
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
136
145
|
}
|
|
@@ -152,27 +161,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
152
161
|
if (subjectName !== void 0) {
|
|
153
162
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
154
163
|
}
|
|
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
|
+
}
|
|
167
170
|
if (labelSelector) {
|
|
168
171
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
169
172
|
}
|
|
170
173
|
if (fieldSelector) {
|
|
171
174
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
172
175
|
}
|
|
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, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
198
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
197
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
198
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, 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, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
213
|
-
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
212
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
213
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, 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.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));
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
|
|
@@ -454,7 +454,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
454
454
|
options: localVarRequestOptions
|
|
455
455
|
};
|
|
456
456
|
},
|
|
457
|
-
listPosts: async (
|
|
457
|
+
listPosts: async (tags, contributors, categories, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
458
458
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
459
459
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
460
460
|
let baseOptions;
|
|
@@ -466,42 +466,27 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
466
466
|
const localVarQueryParameter = {};
|
|
467
467
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
468
468
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
469
|
-
if (
|
|
470
|
-
localVarQueryParameter["
|
|
469
|
+
if (tags) {
|
|
470
|
+
localVarQueryParameter["tags"] = Array.from(tags);
|
|
471
471
|
}
|
|
472
|
-
if (
|
|
473
|
-
localVarQueryParameter["
|
|
474
|
-
}
|
|
475
|
-
if (category) {
|
|
476
|
-
localVarQueryParameter["category"] = Array.from(category);
|
|
477
|
-
}
|
|
478
|
-
if (sortOrder !== void 0) {
|
|
479
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
480
|
-
}
|
|
481
|
-
if (contributor) {
|
|
482
|
-
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
483
|
-
}
|
|
484
|
-
if (keyword !== void 0) {
|
|
485
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
486
|
-
}
|
|
487
|
-
if (visible !== void 0) {
|
|
488
|
-
localVarQueryParameter["visible"] = visible;
|
|
472
|
+
if (contributors) {
|
|
473
|
+
localVarQueryParameter["contributors"] = Array.from(contributors);
|
|
489
474
|
}
|
|
490
|
-
if (
|
|
491
|
-
localVarQueryParameter["
|
|
475
|
+
if (categories) {
|
|
476
|
+
localVarQueryParameter["categories"] = Array.from(categories);
|
|
492
477
|
}
|
|
493
478
|
if (size !== void 0) {
|
|
494
479
|
localVarQueryParameter["size"] = size;
|
|
495
480
|
}
|
|
481
|
+
if (page !== void 0) {
|
|
482
|
+
localVarQueryParameter["page"] = page;
|
|
483
|
+
}
|
|
496
484
|
if (labelSelector) {
|
|
497
485
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
498
486
|
}
|
|
499
487
|
if (fieldSelector) {
|
|
500
488
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
501
489
|
}
|
|
502
|
-
if (page !== void 0) {
|
|
503
|
-
localVarQueryParameter["page"] = page;
|
|
504
|
-
}
|
|
505
490
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
506
491
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
507
492
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -564,8 +549,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
564
549
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
565
550
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
566
551
|
},
|
|
567
|
-
async listPosts(
|
|
568
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(
|
|
552
|
+
async listPosts(tags, contributors, categories, size, page, labelSelector, fieldSelector, options) {
|
|
553
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(tags, contributors, categories, size, page, labelSelector, fieldSelector, options);
|
|
569
554
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
570
555
|
},
|
|
571
556
|
async publishPost(name, options) {
|
|
@@ -584,8 +569,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
584
569
|
draftPost(postRequest, options) {
|
|
585
570
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
586
571
|
},
|
|
587
|
-
listPosts(
|
|
588
|
-
return localVarFp.listPosts(
|
|
572
|
+
listPosts(tags, contributors, categories, size, page, labelSelector, fieldSelector, options) {
|
|
573
|
+
return localVarFp.listPosts(tags, contributors, categories, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
589
574
|
},
|
|
590
575
|
publishPost(name, options) {
|
|
591
576
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -600,7 +585,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
600
585
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
601
586
|
}
|
|
602
587
|
listPosts(requestParameters = {}, options) {
|
|
603
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.
|
|
588
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.tags, requestParameters.contributors, requestParameters.categories, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
604
589
|
}
|
|
605
590
|
publishPost(requestParameters, options) {
|
|
606
591
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -612,7 +597,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
612
597
|
|
|
613
598
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
614
599
|
return {
|
|
615
|
-
listReplies: async (commentName, size, labelSelector, fieldSelector,
|
|
600
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
616
601
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
617
602
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
618
603
|
let baseOptions;
|
|
@@ -630,15 +615,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
630
615
|
if (size !== void 0) {
|
|
631
616
|
localVarQueryParameter["size"] = size;
|
|
632
617
|
}
|
|
618
|
+
if (page !== void 0) {
|
|
619
|
+
localVarQueryParameter["page"] = page;
|
|
620
|
+
}
|
|
633
621
|
if (labelSelector) {
|
|
634
622
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
635
623
|
}
|
|
636
624
|
if (fieldSelector) {
|
|
637
625
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
638
626
|
}
|
|
639
|
-
if (page !== void 0) {
|
|
640
|
-
localVarQueryParameter["page"] = page;
|
|
641
|
-
}
|
|
642
627
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
643
628
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
644
629
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -652,8 +637,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
652
637
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
653
638
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
654
639
|
return {
|
|
655
|
-
async listReplies(commentName, size, labelSelector, fieldSelector,
|
|
656
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
640
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
|
|
657
642
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
658
643
|
}
|
|
659
644
|
};
|
|
@@ -661,14 +646,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
661
646
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
662
647
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
663
648
|
return {
|
|
664
|
-
listReplies(commentName, size, labelSelector, fieldSelector,
|
|
665
|
-
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
649
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
650
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
666
651
|
}
|
|
667
652
|
};
|
|
668
653
|
};
|
|
669
654
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
670
655
|
listReplies(requestParameters = {}, options) {
|
|
671
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
656
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
672
657
|
}
|
|
673
658
|
}
|
|
674
659
|
|
|
@@ -697,7 +682,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
697
682
|
options: localVarRequestOptions
|
|
698
683
|
};
|
|
699
684
|
},
|
|
700
|
-
listSinglePages: async (contributors, size, labelSelector, fieldSelector,
|
|
685
|
+
listSinglePages: async (contributors, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
701
686
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
702
687
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
703
688
|
let baseOptions;
|
|
@@ -715,15 +700,15 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
715
700
|
if (size !== void 0) {
|
|
716
701
|
localVarQueryParameter["size"] = size;
|
|
717
702
|
}
|
|
703
|
+
if (page !== void 0) {
|
|
704
|
+
localVarQueryParameter["page"] = page;
|
|
705
|
+
}
|
|
718
706
|
if (labelSelector) {
|
|
719
707
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
720
708
|
}
|
|
721
709
|
if (fieldSelector) {
|
|
722
710
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
723
711
|
}
|
|
724
|
-
if (page !== void 0) {
|
|
725
|
-
localVarQueryParameter["page"] = page;
|
|
726
|
-
}
|
|
727
712
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
728
713
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
729
714
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -786,8 +771,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
786
771
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
787
772
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
788
773
|
},
|
|
789
|
-
async listSinglePages(contributors, size, labelSelector, fieldSelector,
|
|
790
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size, labelSelector, fieldSelector,
|
|
774
|
+
async listSinglePages(contributors, size, page, labelSelector, fieldSelector, options) {
|
|
775
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size, page, labelSelector, fieldSelector, options);
|
|
791
776
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
792
777
|
},
|
|
793
778
|
async publishSinglePage(name, options) {
|
|
@@ -806,8 +791,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
806
791
|
draftSinglePage(singlePageRequest, options) {
|
|
807
792
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
808
793
|
},
|
|
809
|
-
listSinglePages(contributors, size, labelSelector, fieldSelector,
|
|
810
|
-
return localVarFp.listSinglePages(contributors, size, labelSelector, fieldSelector,
|
|
794
|
+
listSinglePages(contributors, size, page, labelSelector, fieldSelector, options) {
|
|
795
|
+
return localVarFp.listSinglePages(contributors, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
811
796
|
},
|
|
812
797
|
publishSinglePage(name, options) {
|
|
813
798
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -822,7 +807,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
822
807
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
823
808
|
}
|
|
824
809
|
listSinglePages(requestParameters = {}, options) {
|
|
825
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.contributors, requestParameters.size, requestParameters.
|
|
810
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.contributors, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
826
811
|
}
|
|
827
812
|
publishSinglePage(requestParameters, options) {
|
|
828
813
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2804,7 +2789,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2804
2789
|
options: localVarRequestOptions
|
|
2805
2790
|
};
|
|
2806
2791
|
},
|
|
2807
|
-
searchAttachments: async (policy, displayName,
|
|
2792
|
+
searchAttachments: async (policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
2808
2793
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
2809
2794
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2810
2795
|
let baseOptions;
|
|
@@ -2822,24 +2807,24 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2822
2807
|
if (displayName !== void 0) {
|
|
2823
2808
|
localVarQueryParameter["displayName"] = displayName;
|
|
2824
2809
|
}
|
|
2825
|
-
if (uploadedBy !== void 0) {
|
|
2826
|
-
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
2827
|
-
}
|
|
2828
2810
|
if (group !== void 0) {
|
|
2829
2811
|
localVarQueryParameter["group"] = group;
|
|
2830
2812
|
}
|
|
2813
|
+
if (uploadedBy !== void 0) {
|
|
2814
|
+
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
2815
|
+
}
|
|
2831
2816
|
if (size !== void 0) {
|
|
2832
2817
|
localVarQueryParameter["size"] = size;
|
|
2833
2818
|
}
|
|
2819
|
+
if (page !== void 0) {
|
|
2820
|
+
localVarQueryParameter["page"] = page;
|
|
2821
|
+
}
|
|
2834
2822
|
if (labelSelector) {
|
|
2835
2823
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
2836
2824
|
}
|
|
2837
2825
|
if (fieldSelector) {
|
|
2838
2826
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
2839
2827
|
}
|
|
2840
|
-
if (page !== void 0) {
|
|
2841
|
-
localVarQueryParameter["page"] = page;
|
|
2842
|
-
}
|
|
2843
2828
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2844
2829
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2845
2830
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2926,8 +2911,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
2926
2911
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
2927
2912
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2928
2913
|
},
|
|
2929
|
-
async searchAttachments(policy, displayName,
|
|
2930
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName,
|
|
2914
|
+
async searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
2915
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
2931
2916
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2932
2917
|
},
|
|
2933
2918
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
@@ -2955,8 +2940,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
2955
2940
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
2956
2941
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2957
2942
|
},
|
|
2958
|
-
searchAttachments(policy, displayName,
|
|
2959
|
-
return localVarFp.searchAttachments(policy, displayName,
|
|
2943
|
+
searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
2944
|
+
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2960
2945
|
},
|
|
2961
2946
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
2962
2947
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
@@ -2980,7 +2965,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
2980
2965
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2981
2966
|
}
|
|
2982
2967
|
searchAttachments(requestParameters = {}, options) {
|
|
2983
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.
|
|
2968
|
+
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2984
2969
|
}
|
|
2985
2970
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
2986
2971
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|