@halo-dev/api-client 0.0.31 → 0.0.33
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 +84 -76
- package/dist/index.d.ts +183 -171
- package/dist/index.mjs +85 -76
- 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
|
|
|
@@ -462,7 +462,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
462
462
|
options: localVarRequestOptions
|
|
463
463
|
};
|
|
464
464
|
},
|
|
465
|
-
listPosts: async (sort,
|
|
465
|
+
listPosts: async (sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
466
466
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
467
467
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
468
468
|
let baseOptions;
|
|
@@ -477,14 +477,8 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
477
477
|
if (sort !== void 0) {
|
|
478
478
|
localVarQueryParameter["sort"] = sort;
|
|
479
479
|
}
|
|
480
|
-
if (
|
|
481
|
-
localVarQueryParameter["
|
|
482
|
-
}
|
|
483
|
-
if (visible !== void 0) {
|
|
484
|
-
localVarQueryParameter["visible"] = visible;
|
|
485
|
-
}
|
|
486
|
-
if (tag) {
|
|
487
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
480
|
+
if (contributor) {
|
|
481
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
488
482
|
}
|
|
489
483
|
if (sortOrder !== void 0) {
|
|
490
484
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
@@ -495,21 +489,27 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
495
489
|
if (category) {
|
|
496
490
|
localVarQueryParameter["category"] = Array.from(category);
|
|
497
491
|
}
|
|
498
|
-
if (
|
|
499
|
-
localVarQueryParameter["
|
|
492
|
+
if (tag) {
|
|
493
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
494
|
+
}
|
|
495
|
+
if (keyword !== void 0) {
|
|
496
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
497
|
+
}
|
|
498
|
+
if (visible !== void 0) {
|
|
499
|
+
localVarQueryParameter["visible"] = visible;
|
|
500
500
|
}
|
|
501
501
|
if (size !== void 0) {
|
|
502
502
|
localVarQueryParameter["size"] = size;
|
|
503
503
|
}
|
|
504
|
-
if (page !== void 0) {
|
|
505
|
-
localVarQueryParameter["page"] = page;
|
|
506
|
-
}
|
|
507
504
|
if (labelSelector) {
|
|
508
505
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
509
506
|
}
|
|
510
507
|
if (fieldSelector) {
|
|
511
508
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
512
509
|
}
|
|
510
|
+
if (page !== void 0) {
|
|
511
|
+
localVarQueryParameter["page"] = page;
|
|
512
|
+
}
|
|
513
513
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
514
514
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
515
515
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -572,8 +572,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
572
572
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
573
573
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
574
574
|
},
|
|
575
|
-
async listPosts(sort,
|
|
576
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
575
|
+
async listPosts(sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
576
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
577
577
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
578
578
|
},
|
|
579
579
|
async publishPost(name, options) {
|
|
@@ -592,8 +592,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
592
592
|
draftPost(postRequest, options) {
|
|
593
593
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
594
594
|
},
|
|
595
|
-
listPosts(sort,
|
|
596
|
-
return localVarFp.listPosts(sort,
|
|
595
|
+
listPosts(sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
596
|
+
return localVarFp.listPosts(sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
597
597
|
},
|
|
598
598
|
publishPost(name, options) {
|
|
599
599
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -608,7 +608,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
608
608
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
609
609
|
}
|
|
610
610
|
listPosts(requestParameters = {}, options) {
|
|
611
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
611
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.contributor, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.tag, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
612
612
|
}
|
|
613
613
|
publishPost(requestParameters, options) {
|
|
614
614
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -620,7 +620,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
620
620
|
|
|
621
621
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
622
622
|
return {
|
|
623
|
-
listReplies: async (commentName, size,
|
|
623
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
624
624
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
625
625
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
626
626
|
let baseOptions;
|
|
@@ -638,15 +638,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
638
638
|
if (size !== void 0) {
|
|
639
639
|
localVarQueryParameter["size"] = size;
|
|
640
640
|
}
|
|
641
|
-
if (page !== void 0) {
|
|
642
|
-
localVarQueryParameter["page"] = page;
|
|
643
|
-
}
|
|
644
641
|
if (labelSelector) {
|
|
645
642
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
646
643
|
}
|
|
647
644
|
if (fieldSelector) {
|
|
648
645
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
649
646
|
}
|
|
647
|
+
if (page !== void 0) {
|
|
648
|
+
localVarQueryParameter["page"] = page;
|
|
649
|
+
}
|
|
650
650
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
651
651
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
652
652
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -660,8 +660,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
660
660
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
661
661
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
662
662
|
return {
|
|
663
|
-
async listReplies(commentName, size,
|
|
664
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size,
|
|
663
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
664
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
665
665
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
666
666
|
}
|
|
667
667
|
};
|
|
@@ -669,14 +669,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
669
669
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
670
670
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
671
671
|
return {
|
|
672
|
-
listReplies(commentName, size,
|
|
673
|
-
return localVarFp.listReplies(commentName, size,
|
|
672
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
673
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
674
674
|
}
|
|
675
675
|
};
|
|
676
676
|
};
|
|
677
677
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
678
678
|
listReplies(requestParameters = {}, options) {
|
|
679
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
679
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
|
|
@@ -705,7 +705,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
705
705
|
options: localVarRequestOptions
|
|
706
706
|
};
|
|
707
707
|
},
|
|
708
|
-
listSinglePages: async (
|
|
708
|
+
listSinglePages: async (sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
709
709
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
710
710
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
711
711
|
let baseOptions;
|
|
@@ -717,21 +717,36 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
717
717
|
const localVarQueryParameter = {};
|
|
718
718
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
719
719
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
720
|
-
if (
|
|
721
|
-
localVarQueryParameter["
|
|
720
|
+
if (sort !== void 0) {
|
|
721
|
+
localVarQueryParameter["sort"] = sort;
|
|
722
|
+
}
|
|
723
|
+
if (contributor) {
|
|
724
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
725
|
+
}
|
|
726
|
+
if (sortOrder !== void 0) {
|
|
727
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
728
|
+
}
|
|
729
|
+
if (publishPhase !== void 0) {
|
|
730
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
731
|
+
}
|
|
732
|
+
if (keyword !== void 0) {
|
|
733
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
734
|
+
}
|
|
735
|
+
if (visible !== void 0) {
|
|
736
|
+
localVarQueryParameter["visible"] = visible;
|
|
722
737
|
}
|
|
723
738
|
if (size !== void 0) {
|
|
724
739
|
localVarQueryParameter["size"] = size;
|
|
725
740
|
}
|
|
726
|
-
if (page !== void 0) {
|
|
727
|
-
localVarQueryParameter["page"] = page;
|
|
728
|
-
}
|
|
729
741
|
if (labelSelector) {
|
|
730
742
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
731
743
|
}
|
|
732
744
|
if (fieldSelector) {
|
|
733
745
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
734
746
|
}
|
|
747
|
+
if (page !== void 0) {
|
|
748
|
+
localVarQueryParameter["page"] = page;
|
|
749
|
+
}
|
|
735
750
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
736
751
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
737
752
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -794,8 +809,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
794
809
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
795
810
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
796
811
|
},
|
|
797
|
-
async listSinglePages(
|
|
798
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(
|
|
812
|
+
async listSinglePages(sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
813
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
799
814
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
800
815
|
},
|
|
801
816
|
async publishSinglePage(name, options) {
|
|
@@ -814,8 +829,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
814
829
|
draftSinglePage(singlePageRequest, options) {
|
|
815
830
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
816
831
|
},
|
|
817
|
-
listSinglePages(
|
|
818
|
-
return localVarFp.listSinglePages(
|
|
832
|
+
listSinglePages(sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
833
|
+
return localVarFp.listSinglePages(sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
819
834
|
},
|
|
820
835
|
publishSinglePage(name, options) {
|
|
821
836
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -830,7 +845,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
830
845
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
831
846
|
}
|
|
832
847
|
listSinglePages(requestParameters = {}, options) {
|
|
833
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.
|
|
848
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.contributor, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
834
849
|
}
|
|
835
850
|
publishSinglePage(requestParameters, options) {
|
|
836
851
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1189,12 +1204,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1189
1204
|
if (version !== void 0) {
|
|
1190
1205
|
localVarQueryParameter["version"] = version;
|
|
1191
1206
|
}
|
|
1192
|
-
if (group !== void 0) {
|
|
1193
|
-
localVarQueryParameter["group"] = group;
|
|
1194
|
-
}
|
|
1195
1207
|
if (kind !== void 0) {
|
|
1196
1208
|
localVarQueryParameter["kind"] = kind;
|
|
1197
1209
|
}
|
|
1210
|
+
if (group !== void 0) {
|
|
1211
|
+
localVarQueryParameter["group"] = group;
|
|
1212
|
+
}
|
|
1198
1213
|
if (size !== void 0) {
|
|
1199
1214
|
localVarQueryParameter["size"] = size;
|
|
1200
1215
|
}
|
|
@@ -3418,7 +3433,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
3418
3433
|
options: localVarRequestOptions
|
|
3419
3434
|
};
|
|
3420
3435
|
},
|
|
3421
|
-
searchAttachments: async (policy, displayName, group, uploadedBy, size,
|
|
3436
|
+
searchAttachments: async (policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
3422
3437
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
3423
3438
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3424
3439
|
let baseOptions;
|
|
@@ -3445,15 +3460,15 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
3445
3460
|
if (size !== void 0) {
|
|
3446
3461
|
localVarQueryParameter["size"] = size;
|
|
3447
3462
|
}
|
|
3448
|
-
if (page !== void 0) {
|
|
3449
|
-
localVarQueryParameter["page"] = page;
|
|
3450
|
-
}
|
|
3451
3463
|
if (labelSelector) {
|
|
3452
3464
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
3453
3465
|
}
|
|
3454
3466
|
if (fieldSelector) {
|
|
3455
3467
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
3456
3468
|
}
|
|
3469
|
+
if (page !== void 0) {
|
|
3470
|
+
localVarQueryParameter["page"] = page;
|
|
3471
|
+
}
|
|
3457
3472
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3458
3473
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3459
3474
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3540,8 +3555,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
3540
3555
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
3541
3556
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3542
3557
|
},
|
|
3543
|
-
async searchAttachments(policy, displayName, group, uploadedBy, size,
|
|
3544
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size,
|
|
3558
|
+
async searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
3559
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options);
|
|
3545
3560
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
3546
3561
|
},
|
|
3547
3562
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
@@ -3569,8 +3584,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
3569
3584
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
3570
3585
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
3571
3586
|
},
|
|
3572
|
-
searchAttachments(policy, displayName, group, uploadedBy, size,
|
|
3573
|
-
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size,
|
|
3587
|
+
searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
3588
|
+
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
3574
3589
|
},
|
|
3575
3590
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
3576
3591
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
@@ -3594,7 +3609,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
3594
3609
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
3595
3610
|
}
|
|
3596
3611
|
searchAttachments(requestParameters = {}, options) {
|
|
3597
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.
|
|
3612
|
+
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
3613
|
}
|
|
3599
3614
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
3600
3615
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5852,12 +5867,6 @@ class Configuration {
|
|
|
5852
5867
|
}
|
|
5853
5868
|
}
|
|
5854
5869
|
|
|
5855
|
-
const CompactPostVisibleEnum = {
|
|
5856
|
-
Public: "PUBLIC",
|
|
5857
|
-
Internal: "INTERNAL",
|
|
5858
|
-
Private: "PRIVATE"
|
|
5859
|
-
};
|
|
5860
|
-
|
|
5861
5870
|
const ConditionStatusEnum = {
|
|
5862
5871
|
True: "TRUE",
|
|
5863
5872
|
False: "FALSE",
|
|
@@ -5921,7 +5930,6 @@ exports.ApiHaloRunV1alpha1CommentApi = ApiHaloRunV1alpha1CommentApi;
|
|
|
5921
5930
|
exports.ApiHaloRunV1alpha1CommentApiAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator;
|
|
5922
5931
|
exports.ApiHaloRunV1alpha1CommentApiFactory = ApiHaloRunV1alpha1CommentApiFactory;
|
|
5923
5932
|
exports.ApiHaloRunV1alpha1CommentApiFp = ApiHaloRunV1alpha1CommentApiFp;
|
|
5924
|
-
exports.CompactPostVisibleEnum = CompactPostVisibleEnum;
|
|
5925
5933
|
exports.ConditionStatusEnum = ConditionStatusEnum;
|
|
5926
5934
|
exports.Configuration = Configuration;
|
|
5927
5935
|
exports.ContentHaloRunV1alpha1CategoryApi = ContentHaloRunV1alpha1CategoryApi;
|