@halo-dev/api-client 0.0.42 → 0.0.43
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 +94 -94
- package/dist/index.d.ts +177 -171
- package/dist/index.mjs +94 -94
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -69,7 +69,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
69
69
|
|
|
70
70
|
const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
|
|
71
71
|
return {
|
|
72
|
-
searchAttachments: async (policy, displayName,
|
|
72
|
+
searchAttachments: async (policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
73
73
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
74
74
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
75
75
|
let baseOptions;
|
|
@@ -87,24 +87,24 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
87
87
|
if (displayName !== void 0) {
|
|
88
88
|
localVarQueryParameter["displayName"] = displayName;
|
|
89
89
|
}
|
|
90
|
-
if (uploadedBy !== void 0) {
|
|
91
|
-
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
92
|
-
}
|
|
93
90
|
if (group !== void 0) {
|
|
94
91
|
localVarQueryParameter["group"] = group;
|
|
95
92
|
}
|
|
93
|
+
if (uploadedBy !== void 0) {
|
|
94
|
+
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
95
|
+
}
|
|
96
96
|
if (size !== void 0) {
|
|
97
97
|
localVarQueryParameter["size"] = size;
|
|
98
98
|
}
|
|
99
|
+
if (page !== void 0) {
|
|
100
|
+
localVarQueryParameter["page"] = page;
|
|
101
|
+
}
|
|
99
102
|
if (labelSelector) {
|
|
100
103
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
101
104
|
}
|
|
102
105
|
if (fieldSelector) {
|
|
103
106
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
104
107
|
}
|
|
105
|
-
if (page !== void 0) {
|
|
106
|
-
localVarQueryParameter["page"] = page;
|
|
107
|
-
}
|
|
108
108
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
109
109
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
110
110
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -152,8 +152,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
152
152
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
153
153
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
154
154
|
return {
|
|
155
|
-
async searchAttachments(policy, displayName,
|
|
156
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName,
|
|
155
|
+
async searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
156
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
157
157
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
158
158
|
},
|
|
159
159
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -165,8 +165,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
165
165
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
166
166
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
167
167
|
return {
|
|
168
|
-
searchAttachments(policy, displayName,
|
|
169
|
-
return localVarFp.searchAttachments(policy, displayName,
|
|
168
|
+
searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
169
|
+
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
170
170
|
},
|
|
171
171
|
uploadAttachment(file, policyName, groupName, options) {
|
|
172
172
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -175,7 +175,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
175
175
|
};
|
|
176
176
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
177
177
|
searchAttachments(requestParameters = {}, options) {
|
|
178
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.
|
|
178
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(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));
|
|
179
179
|
}
|
|
180
180
|
uploadAttachment(requestParameters, options) {
|
|
181
181
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -231,7 +231,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
231
231
|
options: localVarRequestOptions
|
|
232
232
|
};
|
|
233
233
|
},
|
|
234
|
-
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
234
|
+
listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
235
235
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
236
236
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
237
237
|
let baseOptions;
|
|
@@ -246,6 +246,15 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
246
246
|
if (sort !== void 0) {
|
|
247
247
|
localVarQueryParameter["sort"] = sort;
|
|
248
248
|
}
|
|
249
|
+
if (keyword !== void 0) {
|
|
250
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
251
|
+
}
|
|
252
|
+
if (hidden !== void 0) {
|
|
253
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
254
|
+
}
|
|
255
|
+
if (top !== void 0) {
|
|
256
|
+
localVarQueryParameter["top"] = top;
|
|
257
|
+
}
|
|
249
258
|
if (sortOrder !== void 0) {
|
|
250
259
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
251
260
|
}
|
|
@@ -267,27 +276,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
267
276
|
if (subjectName !== void 0) {
|
|
268
277
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
269
278
|
}
|
|
270
|
-
if (keyword !== void 0) {
|
|
271
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
272
|
-
}
|
|
273
|
-
if (hidden !== void 0) {
|
|
274
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
275
|
-
}
|
|
276
|
-
if (top !== void 0) {
|
|
277
|
-
localVarQueryParameter["top"] = top;
|
|
278
|
-
}
|
|
279
279
|
if (size !== void 0) {
|
|
280
280
|
localVarQueryParameter["size"] = size;
|
|
281
281
|
}
|
|
282
|
+
if (page !== void 0) {
|
|
283
|
+
localVarQueryParameter["page"] = page;
|
|
284
|
+
}
|
|
282
285
|
if (labelSelector) {
|
|
283
286
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
284
287
|
}
|
|
285
288
|
if (fieldSelector) {
|
|
286
289
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
287
290
|
}
|
|
288
|
-
if (page !== void 0) {
|
|
289
|
-
localVarQueryParameter["page"] = page;
|
|
290
|
-
}
|
|
291
291
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
292
292
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
293
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -309,8 +309,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
309
309
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
310
310
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
311
311
|
},
|
|
312
|
-
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
313
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
312
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
313
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
314
314
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
@@ -324,8 +324,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
324
324
|
createReply(name, replyRequest, options) {
|
|
325
325
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
326
326
|
},
|
|
327
|
-
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
328
|
-
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
327
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
328
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
329
329
|
}
|
|
330
330
|
};
|
|
331
331
|
};
|
|
@@ -337,7 +337,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
337
337
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
338
338
|
}
|
|
339
339
|
listComments(requestParameters = {}, options) {
|
|
340
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
340
|
+
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));
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
|
|
@@ -485,7 +485,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
485
485
|
options: localVarRequestOptions
|
|
486
486
|
};
|
|
487
487
|
},
|
|
488
|
-
listPlugins: async (sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
488
|
+
listPlugins: async (sort, enabled, keyword, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
489
489
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
490
490
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
491
491
|
let baseOptions;
|
|
@@ -509,15 +509,15 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
509
509
|
if (size !== void 0) {
|
|
510
510
|
localVarQueryParameter["size"] = size;
|
|
511
511
|
}
|
|
512
|
+
if (page !== void 0) {
|
|
513
|
+
localVarQueryParameter["page"] = page;
|
|
514
|
+
}
|
|
512
515
|
if (labelSelector) {
|
|
513
516
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
514
517
|
}
|
|
515
518
|
if (fieldSelector) {
|
|
516
519
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
517
520
|
}
|
|
518
|
-
if (page !== void 0) {
|
|
519
|
-
localVarQueryParameter["page"] = page;
|
|
520
|
-
}
|
|
521
521
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
522
522
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
523
523
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -563,8 +563,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
563
563
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
564
564
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
565
565
|
},
|
|
566
|
-
async listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
567
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
566
|
+
async listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
567
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options);
|
|
568
568
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
569
569
|
},
|
|
570
570
|
async upgradePlugin(name, file, options) {
|
|
@@ -579,8 +579,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
579
579
|
installPlugin(file, options) {
|
|
580
580
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
581
581
|
},
|
|
582
|
-
listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
583
|
-
return localVarFp.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
582
|
+
listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
583
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
584
584
|
},
|
|
585
585
|
upgradePlugin(name, file, options) {
|
|
586
586
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -592,7 +592,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
592
592
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
593
593
|
}
|
|
594
594
|
listPlugins(requestParameters = {}, options) {
|
|
595
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.
|
|
595
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
596
596
|
}
|
|
597
597
|
upgradePlugin(requestParameters, options) {
|
|
598
598
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -624,7 +624,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
624
624
|
options: localVarRequestOptions
|
|
625
625
|
};
|
|
626
626
|
},
|
|
627
|
-
listPosts: async (sort,
|
|
627
|
+
listPosts: async (sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
628
628
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
629
629
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
630
630
|
let baseOptions;
|
|
@@ -639,39 +639,39 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
639
639
|
if (sort !== void 0) {
|
|
640
640
|
localVarQueryParameter["sort"] = sort;
|
|
641
641
|
}
|
|
642
|
+
if (tag) {
|
|
643
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
644
|
+
}
|
|
645
|
+
if (keyword !== void 0) {
|
|
646
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
647
|
+
}
|
|
648
|
+
if (visible !== void 0) {
|
|
649
|
+
localVarQueryParameter["visible"] = visible;
|
|
650
|
+
}
|
|
642
651
|
if (contributor) {
|
|
643
652
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
644
653
|
}
|
|
645
|
-
if (sortOrder !== void 0) {
|
|
646
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
647
|
-
}
|
|
648
654
|
if (publishPhase !== void 0) {
|
|
649
655
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
650
656
|
}
|
|
651
657
|
if (category) {
|
|
652
658
|
localVarQueryParameter["category"] = Array.from(category);
|
|
653
659
|
}
|
|
654
|
-
if (
|
|
655
|
-
localVarQueryParameter["
|
|
656
|
-
}
|
|
657
|
-
if (keyword !== void 0) {
|
|
658
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
659
|
-
}
|
|
660
|
-
if (visible !== void 0) {
|
|
661
|
-
localVarQueryParameter["visible"] = visible;
|
|
660
|
+
if (sortOrder !== void 0) {
|
|
661
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
662
662
|
}
|
|
663
663
|
if (size !== void 0) {
|
|
664
664
|
localVarQueryParameter["size"] = size;
|
|
665
665
|
}
|
|
666
|
+
if (page !== void 0) {
|
|
667
|
+
localVarQueryParameter["page"] = page;
|
|
668
|
+
}
|
|
666
669
|
if (labelSelector) {
|
|
667
670
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
668
671
|
}
|
|
669
672
|
if (fieldSelector) {
|
|
670
673
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
671
674
|
}
|
|
672
|
-
if (page !== void 0) {
|
|
673
|
-
localVarQueryParameter["page"] = page;
|
|
674
|
-
}
|
|
675
675
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
676
676
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
677
677
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -734,8 +734,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
734
734
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
735
735
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
736
736
|
},
|
|
737
|
-
async listPosts(sort,
|
|
738
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
737
|
+
async listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
738
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options);
|
|
739
739
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
740
740
|
},
|
|
741
741
|
async publishPost(name, options) {
|
|
@@ -754,8 +754,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
754
754
|
draftPost(postRequest, options) {
|
|
755
755
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
756
756
|
},
|
|
757
|
-
listPosts(sort,
|
|
758
|
-
return localVarFp.listPosts(sort,
|
|
757
|
+
listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
758
|
+
return localVarFp.listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
759
759
|
},
|
|
760
760
|
publishPost(name, options) {
|
|
761
761
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -770,7 +770,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
770
770
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
771
771
|
}
|
|
772
772
|
listPosts(requestParameters = {}, options) {
|
|
773
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
773
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.tag, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
774
774
|
}
|
|
775
775
|
publishPost(requestParameters, options) {
|
|
776
776
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -782,7 +782,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
782
782
|
|
|
783
783
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
784
784
|
return {
|
|
785
|
-
listReplies: async (commentName, size, labelSelector, fieldSelector,
|
|
785
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
786
786
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
787
787
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
788
788
|
let baseOptions;
|
|
@@ -800,15 +800,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
800
800
|
if (size !== void 0) {
|
|
801
801
|
localVarQueryParameter["size"] = size;
|
|
802
802
|
}
|
|
803
|
+
if (page !== void 0) {
|
|
804
|
+
localVarQueryParameter["page"] = page;
|
|
805
|
+
}
|
|
803
806
|
if (labelSelector) {
|
|
804
807
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
805
808
|
}
|
|
806
809
|
if (fieldSelector) {
|
|
807
810
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
808
811
|
}
|
|
809
|
-
if (page !== void 0) {
|
|
810
|
-
localVarQueryParameter["page"] = page;
|
|
811
|
-
}
|
|
812
812
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
813
813
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
814
814
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -822,8 +822,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
822
822
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
823
823
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
824
824
|
return {
|
|
825
|
-
async listReplies(commentName, size, labelSelector, fieldSelector,
|
|
826
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
825
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
826
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
|
|
827
827
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
828
828
|
}
|
|
829
829
|
};
|
|
@@ -831,14 +831,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
831
831
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
832
832
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
833
833
|
return {
|
|
834
|
-
listReplies(commentName, size, labelSelector, fieldSelector,
|
|
835
|
-
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
834
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
835
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
836
836
|
}
|
|
837
837
|
};
|
|
838
838
|
};
|
|
839
839
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
840
840
|
listReplies(requestParameters = {}, options) {
|
|
841
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
841
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
|
|
@@ -867,7 +867,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
867
867
|
options: localVarRequestOptions
|
|
868
868
|
};
|
|
869
869
|
},
|
|
870
|
-
listSinglePages: async (sort,
|
|
870
|
+
listSinglePages: async (sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
871
871
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
872
872
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
873
873
|
let baseOptions;
|
|
@@ -882,33 +882,33 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
882
882
|
if (sort !== void 0) {
|
|
883
883
|
localVarQueryParameter["sort"] = sort;
|
|
884
884
|
}
|
|
885
|
+
if (keyword !== void 0) {
|
|
886
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
887
|
+
}
|
|
888
|
+
if (visible !== void 0) {
|
|
889
|
+
localVarQueryParameter["visible"] = visible;
|
|
890
|
+
}
|
|
885
891
|
if (contributor) {
|
|
886
892
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
887
893
|
}
|
|
888
|
-
if (sortOrder !== void 0) {
|
|
889
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
890
|
-
}
|
|
891
894
|
if (publishPhase !== void 0) {
|
|
892
895
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
893
896
|
}
|
|
894
|
-
if (
|
|
895
|
-
localVarQueryParameter["
|
|
896
|
-
}
|
|
897
|
-
if (visible !== void 0) {
|
|
898
|
-
localVarQueryParameter["visible"] = visible;
|
|
897
|
+
if (sortOrder !== void 0) {
|
|
898
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
899
899
|
}
|
|
900
900
|
if (size !== void 0) {
|
|
901
901
|
localVarQueryParameter["size"] = size;
|
|
902
902
|
}
|
|
903
|
+
if (page !== void 0) {
|
|
904
|
+
localVarQueryParameter["page"] = page;
|
|
905
|
+
}
|
|
903
906
|
if (labelSelector) {
|
|
904
907
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
905
908
|
}
|
|
906
909
|
if (fieldSelector) {
|
|
907
910
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
908
911
|
}
|
|
909
|
-
if (page !== void 0) {
|
|
910
|
-
localVarQueryParameter["page"] = page;
|
|
911
|
-
}
|
|
912
912
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
913
913
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
914
914
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -971,8 +971,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
971
971
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
972
972
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
973
973
|
},
|
|
974
|
-
async listSinglePages(sort,
|
|
975
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
974
|
+
async listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
975
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options);
|
|
976
976
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
977
977
|
},
|
|
978
978
|
async publishSinglePage(name, options) {
|
|
@@ -991,8 +991,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
991
991
|
draftSinglePage(singlePageRequest, options) {
|
|
992
992
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
993
993
|
},
|
|
994
|
-
listSinglePages(sort,
|
|
995
|
-
return localVarFp.listSinglePages(sort,
|
|
994
|
+
listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
995
|
+
return localVarFp.listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
996
996
|
},
|
|
997
997
|
publishSinglePage(name, options) {
|
|
998
998
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1007,7 +1007,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1007
1007
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1008
1008
|
}
|
|
1009
1009
|
listSinglePages(requestParameters = {}, options) {
|
|
1010
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1010
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.contributor, requestParameters.publishPhase, requestParameters.sortOrder, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1011
1011
|
}
|
|
1012
1012
|
publishSinglePage(requestParameters, options) {
|
|
1013
1013
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1093,7 +1093,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1093
1093
|
options: localVarRequestOptions
|
|
1094
1094
|
};
|
|
1095
1095
|
},
|
|
1096
|
-
listThemes: async (uninstalled, size, labelSelector, fieldSelector,
|
|
1096
|
+
listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1097
1097
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1098
1098
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1099
1099
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1112,15 +1112,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1112
1112
|
if (size !== void 0) {
|
|
1113
1113
|
localVarQueryParameter["size"] = size;
|
|
1114
1114
|
}
|
|
1115
|
+
if (page !== void 0) {
|
|
1116
|
+
localVarQueryParameter["page"] = page;
|
|
1117
|
+
}
|
|
1115
1118
|
if (labelSelector) {
|
|
1116
1119
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1117
1120
|
}
|
|
1118
1121
|
if (fieldSelector) {
|
|
1119
1122
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1120
1123
|
}
|
|
1121
|
-
if (page !== void 0) {
|
|
1122
|
-
localVarQueryParameter["page"] = page;
|
|
1123
|
-
}
|
|
1124
1124
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1125
1125
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1126
1126
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1187,8 +1187,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1187
1187
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1188
1188
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1189
1189
|
},
|
|
1190
|
-
async listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1191
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1190
|
+
async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1191
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
|
|
1192
1192
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1193
1193
|
},
|
|
1194
1194
|
async reloadThemeSetting(name, options) {
|
|
@@ -1207,8 +1207,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1207
1207
|
installTheme(file, options) {
|
|
1208
1208
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1209
1209
|
},
|
|
1210
|
-
listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1211
|
-
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1210
|
+
listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1211
|
+
return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1212
1212
|
},
|
|
1213
1213
|
reloadThemeSetting(name, options) {
|
|
1214
1214
|
return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
|
|
@@ -1223,7 +1223,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1223
1223
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1224
1224
|
}
|
|
1225
1225
|
listThemes(requestParameters, options) {
|
|
1226
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1226
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1227
1227
|
}
|
|
1228
1228
|
reloadThemeSetting(requestParameters, options) {
|
|
1229
1229
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|