@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.cjs
CHANGED
|
@@ -77,7 +77,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
77
77
|
|
|
78
78
|
const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
|
|
79
79
|
return {
|
|
80
|
-
searchAttachments: async (policy, displayName,
|
|
80
|
+
searchAttachments: async (policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
81
81
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
82
82
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
83
83
|
let baseOptions;
|
|
@@ -95,24 +95,24 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
95
95
|
if (displayName !== void 0) {
|
|
96
96
|
localVarQueryParameter["displayName"] = displayName;
|
|
97
97
|
}
|
|
98
|
-
if (uploadedBy !== void 0) {
|
|
99
|
-
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
100
|
-
}
|
|
101
98
|
if (group !== void 0) {
|
|
102
99
|
localVarQueryParameter["group"] = group;
|
|
103
100
|
}
|
|
101
|
+
if (uploadedBy !== void 0) {
|
|
102
|
+
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
103
|
+
}
|
|
104
104
|
if (size !== void 0) {
|
|
105
105
|
localVarQueryParameter["size"] = size;
|
|
106
106
|
}
|
|
107
|
+
if (page !== void 0) {
|
|
108
|
+
localVarQueryParameter["page"] = page;
|
|
109
|
+
}
|
|
107
110
|
if (labelSelector) {
|
|
108
111
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
109
112
|
}
|
|
110
113
|
if (fieldSelector) {
|
|
111
114
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
112
115
|
}
|
|
113
|
-
if (page !== void 0) {
|
|
114
|
-
localVarQueryParameter["page"] = page;
|
|
115
|
-
}
|
|
116
116
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
117
117
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
118
118
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -160,8 +160,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
160
160
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
161
161
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
162
162
|
return {
|
|
163
|
-
async searchAttachments(policy, displayName,
|
|
164
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName,
|
|
163
|
+
async searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
164
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
165
165
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
166
166
|
},
|
|
167
167
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -173,8 +173,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
173
173
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
174
174
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
175
175
|
return {
|
|
176
|
-
searchAttachments(policy, displayName,
|
|
177
|
-
return localVarFp.searchAttachments(policy, displayName,
|
|
176
|
+
searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
177
|
+
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
178
178
|
},
|
|
179
179
|
uploadAttachment(file, policyName, groupName, options) {
|
|
180
180
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -183,7 +183,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
183
183
|
};
|
|
184
184
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
185
185
|
searchAttachments(requestParameters = {}, options) {
|
|
186
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.
|
|
186
|
+
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));
|
|
187
187
|
}
|
|
188
188
|
uploadAttachment(requestParameters, options) {
|
|
189
189
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -239,7 +239,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
239
239
|
options: localVarRequestOptions
|
|
240
240
|
};
|
|
241
241
|
},
|
|
242
|
-
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
242
|
+
listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
243
243
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
244
244
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
245
245
|
let baseOptions;
|
|
@@ -254,6 +254,15 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
254
254
|
if (sort !== void 0) {
|
|
255
255
|
localVarQueryParameter["sort"] = sort;
|
|
256
256
|
}
|
|
257
|
+
if (keyword !== void 0) {
|
|
258
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
259
|
+
}
|
|
260
|
+
if (hidden !== void 0) {
|
|
261
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
262
|
+
}
|
|
263
|
+
if (top !== void 0) {
|
|
264
|
+
localVarQueryParameter["top"] = top;
|
|
265
|
+
}
|
|
257
266
|
if (sortOrder !== void 0) {
|
|
258
267
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
259
268
|
}
|
|
@@ -275,27 +284,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
275
284
|
if (subjectName !== void 0) {
|
|
276
285
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
277
286
|
}
|
|
278
|
-
if (keyword !== void 0) {
|
|
279
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
280
|
-
}
|
|
281
|
-
if (hidden !== void 0) {
|
|
282
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
283
|
-
}
|
|
284
|
-
if (top !== void 0) {
|
|
285
|
-
localVarQueryParameter["top"] = top;
|
|
286
|
-
}
|
|
287
287
|
if (size !== void 0) {
|
|
288
288
|
localVarQueryParameter["size"] = size;
|
|
289
289
|
}
|
|
290
|
+
if (page !== void 0) {
|
|
291
|
+
localVarQueryParameter["page"] = page;
|
|
292
|
+
}
|
|
290
293
|
if (labelSelector) {
|
|
291
294
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
292
295
|
}
|
|
293
296
|
if (fieldSelector) {
|
|
294
297
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
295
298
|
}
|
|
296
|
-
if (page !== void 0) {
|
|
297
|
-
localVarQueryParameter["page"] = page;
|
|
298
|
-
}
|
|
299
299
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
300
300
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
301
301
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -317,8 +317,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
317
317
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
318
318
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
319
319
|
},
|
|
320
|
-
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
321
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
320
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
321
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
322
322
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
323
323
|
}
|
|
324
324
|
};
|
|
@@ -332,8 +332,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
332
332
|
createReply(name, replyRequest, options) {
|
|
333
333
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
334
334
|
},
|
|
335
|
-
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
336
|
-
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
335
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
336
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
};
|
|
@@ -345,7 +345,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
345
345
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
346
346
|
}
|
|
347
347
|
listComments(requestParameters = {}, options) {
|
|
348
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
348
|
+
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));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
|
|
@@ -493,7 +493,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
493
493
|
options: localVarRequestOptions
|
|
494
494
|
};
|
|
495
495
|
},
|
|
496
|
-
listPlugins: async (sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
496
|
+
listPlugins: async (sort, enabled, keyword, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
497
497
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
498
498
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
499
499
|
let baseOptions;
|
|
@@ -517,15 +517,15 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
517
517
|
if (size !== void 0) {
|
|
518
518
|
localVarQueryParameter["size"] = size;
|
|
519
519
|
}
|
|
520
|
+
if (page !== void 0) {
|
|
521
|
+
localVarQueryParameter["page"] = page;
|
|
522
|
+
}
|
|
520
523
|
if (labelSelector) {
|
|
521
524
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
522
525
|
}
|
|
523
526
|
if (fieldSelector) {
|
|
524
527
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
525
528
|
}
|
|
526
|
-
if (page !== void 0) {
|
|
527
|
-
localVarQueryParameter["page"] = page;
|
|
528
|
-
}
|
|
529
529
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
530
530
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
531
531
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -571,8 +571,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
571
571
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
572
572
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
573
573
|
},
|
|
574
|
-
async listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
575
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
574
|
+
async listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
575
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options);
|
|
576
576
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
577
577
|
},
|
|
578
578
|
async upgradePlugin(name, file, options) {
|
|
@@ -587,8 +587,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
587
587
|
installPlugin(file, options) {
|
|
588
588
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
589
589
|
},
|
|
590
|
-
listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
591
|
-
return localVarFp.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
590
|
+
listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
591
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
592
592
|
},
|
|
593
593
|
upgradePlugin(name, file, options) {
|
|
594
594
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -600,7 +600,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
600
600
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
601
601
|
}
|
|
602
602
|
listPlugins(requestParameters = {}, options) {
|
|
603
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.
|
|
603
|
+
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));
|
|
604
604
|
}
|
|
605
605
|
upgradePlugin(requestParameters, options) {
|
|
606
606
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -632,7 +632,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
632
632
|
options: localVarRequestOptions
|
|
633
633
|
};
|
|
634
634
|
},
|
|
635
|
-
listPosts: async (sort,
|
|
635
|
+
listPosts: async (sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
636
636
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
637
637
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
638
638
|
let baseOptions;
|
|
@@ -647,39 +647,39 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
647
647
|
if (sort !== void 0) {
|
|
648
648
|
localVarQueryParameter["sort"] = sort;
|
|
649
649
|
}
|
|
650
|
+
if (tag) {
|
|
651
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
652
|
+
}
|
|
653
|
+
if (keyword !== void 0) {
|
|
654
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
655
|
+
}
|
|
656
|
+
if (visible !== void 0) {
|
|
657
|
+
localVarQueryParameter["visible"] = visible;
|
|
658
|
+
}
|
|
650
659
|
if (contributor) {
|
|
651
660
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
652
661
|
}
|
|
653
|
-
if (sortOrder !== void 0) {
|
|
654
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
655
|
-
}
|
|
656
662
|
if (publishPhase !== void 0) {
|
|
657
663
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
658
664
|
}
|
|
659
665
|
if (category) {
|
|
660
666
|
localVarQueryParameter["category"] = Array.from(category);
|
|
661
667
|
}
|
|
662
|
-
if (
|
|
663
|
-
localVarQueryParameter["
|
|
664
|
-
}
|
|
665
|
-
if (keyword !== void 0) {
|
|
666
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
667
|
-
}
|
|
668
|
-
if (visible !== void 0) {
|
|
669
|
-
localVarQueryParameter["visible"] = visible;
|
|
668
|
+
if (sortOrder !== void 0) {
|
|
669
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
670
670
|
}
|
|
671
671
|
if (size !== void 0) {
|
|
672
672
|
localVarQueryParameter["size"] = size;
|
|
673
673
|
}
|
|
674
|
+
if (page !== void 0) {
|
|
675
|
+
localVarQueryParameter["page"] = page;
|
|
676
|
+
}
|
|
674
677
|
if (labelSelector) {
|
|
675
678
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
676
679
|
}
|
|
677
680
|
if (fieldSelector) {
|
|
678
681
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
679
682
|
}
|
|
680
|
-
if (page !== void 0) {
|
|
681
|
-
localVarQueryParameter["page"] = page;
|
|
682
|
-
}
|
|
683
683
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
684
684
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
685
685
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -742,8 +742,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
742
742
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
743
743
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
744
744
|
},
|
|
745
|
-
async listPosts(sort,
|
|
746
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
745
|
+
async listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
746
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options);
|
|
747
747
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
748
748
|
},
|
|
749
749
|
async publishPost(name, options) {
|
|
@@ -762,8 +762,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
762
762
|
draftPost(postRequest, options) {
|
|
763
763
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
764
764
|
},
|
|
765
|
-
listPosts(sort,
|
|
766
|
-
return localVarFp.listPosts(sort,
|
|
765
|
+
listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
766
|
+
return localVarFp.listPosts(sort, tag, keyword, visible, contributor, publishPhase, category, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
767
767
|
},
|
|
768
768
|
publishPost(name, options) {
|
|
769
769
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -778,7 +778,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
778
778
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
779
779
|
}
|
|
780
780
|
listPosts(requestParameters = {}, options) {
|
|
781
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
781
|
+
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));
|
|
782
782
|
}
|
|
783
783
|
publishPost(requestParameters, options) {
|
|
784
784
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -790,7 +790,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
790
790
|
|
|
791
791
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
792
792
|
return {
|
|
793
|
-
listReplies: async (commentName, size, labelSelector, fieldSelector,
|
|
793
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
794
794
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
795
795
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
796
796
|
let baseOptions;
|
|
@@ -808,15 +808,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
808
808
|
if (size !== void 0) {
|
|
809
809
|
localVarQueryParameter["size"] = size;
|
|
810
810
|
}
|
|
811
|
+
if (page !== void 0) {
|
|
812
|
+
localVarQueryParameter["page"] = page;
|
|
813
|
+
}
|
|
811
814
|
if (labelSelector) {
|
|
812
815
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
813
816
|
}
|
|
814
817
|
if (fieldSelector) {
|
|
815
818
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
816
819
|
}
|
|
817
|
-
if (page !== void 0) {
|
|
818
|
-
localVarQueryParameter["page"] = page;
|
|
819
|
-
}
|
|
820
820
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
821
821
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
822
822
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -830,8 +830,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
830
830
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
831
831
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
832
832
|
return {
|
|
833
|
-
async listReplies(commentName, size, labelSelector, fieldSelector,
|
|
834
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
833
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
834
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
|
|
835
835
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
836
836
|
}
|
|
837
837
|
};
|
|
@@ -839,14 +839,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
839
839
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
840
840
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
841
841
|
return {
|
|
842
|
-
listReplies(commentName, size, labelSelector, fieldSelector,
|
|
843
|
-
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
842
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
843
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
844
844
|
}
|
|
845
845
|
};
|
|
846
846
|
};
|
|
847
847
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
848
848
|
listReplies(requestParameters = {}, options) {
|
|
849
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
849
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
852
|
|
|
@@ -875,7 +875,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
875
875
|
options: localVarRequestOptions
|
|
876
876
|
};
|
|
877
877
|
},
|
|
878
|
-
listSinglePages: async (sort,
|
|
878
|
+
listSinglePages: async (sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
879
879
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
880
880
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
881
881
|
let baseOptions;
|
|
@@ -890,33 +890,33 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
890
890
|
if (sort !== void 0) {
|
|
891
891
|
localVarQueryParameter["sort"] = sort;
|
|
892
892
|
}
|
|
893
|
+
if (keyword !== void 0) {
|
|
894
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
895
|
+
}
|
|
896
|
+
if (visible !== void 0) {
|
|
897
|
+
localVarQueryParameter["visible"] = visible;
|
|
898
|
+
}
|
|
893
899
|
if (contributor) {
|
|
894
900
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
895
901
|
}
|
|
896
|
-
if (sortOrder !== void 0) {
|
|
897
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
898
|
-
}
|
|
899
902
|
if (publishPhase !== void 0) {
|
|
900
903
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
901
904
|
}
|
|
902
|
-
if (
|
|
903
|
-
localVarQueryParameter["
|
|
904
|
-
}
|
|
905
|
-
if (visible !== void 0) {
|
|
906
|
-
localVarQueryParameter["visible"] = visible;
|
|
905
|
+
if (sortOrder !== void 0) {
|
|
906
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
907
907
|
}
|
|
908
908
|
if (size !== void 0) {
|
|
909
909
|
localVarQueryParameter["size"] = size;
|
|
910
910
|
}
|
|
911
|
+
if (page !== void 0) {
|
|
912
|
+
localVarQueryParameter["page"] = page;
|
|
913
|
+
}
|
|
911
914
|
if (labelSelector) {
|
|
912
915
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
913
916
|
}
|
|
914
917
|
if (fieldSelector) {
|
|
915
918
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
916
919
|
}
|
|
917
|
-
if (page !== void 0) {
|
|
918
|
-
localVarQueryParameter["page"] = page;
|
|
919
|
-
}
|
|
920
920
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
921
921
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
922
922
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -979,8 +979,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
979
979
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
980
980
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
981
981
|
},
|
|
982
|
-
async listSinglePages(sort,
|
|
983
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
982
|
+
async listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
983
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options);
|
|
984
984
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
985
985
|
},
|
|
986
986
|
async publishSinglePage(name, options) {
|
|
@@ -999,8 +999,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
999
999
|
draftSinglePage(singlePageRequest, options) {
|
|
1000
1000
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1001
1001
|
},
|
|
1002
|
-
listSinglePages(sort,
|
|
1003
|
-
return localVarFp.listSinglePages(sort,
|
|
1002
|
+
listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options) {
|
|
1003
|
+
return localVarFp.listSinglePages(sort, keyword, visible, contributor, publishPhase, sortOrder, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1004
1004
|
},
|
|
1005
1005
|
publishSinglePage(name, options) {
|
|
1006
1006
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1015,7 +1015,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1015
1015
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1016
1016
|
}
|
|
1017
1017
|
listSinglePages(requestParameters = {}, options) {
|
|
1018
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1018
|
+
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));
|
|
1019
1019
|
}
|
|
1020
1020
|
publishSinglePage(requestParameters, options) {
|
|
1021
1021
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1101,7 +1101,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1101
1101
|
options: localVarRequestOptions
|
|
1102
1102
|
};
|
|
1103
1103
|
},
|
|
1104
|
-
listThemes: async (uninstalled, size, labelSelector, fieldSelector,
|
|
1104
|
+
listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1105
1105
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1106
1106
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1107
1107
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1120,15 +1120,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1120
1120
|
if (size !== void 0) {
|
|
1121
1121
|
localVarQueryParameter["size"] = size;
|
|
1122
1122
|
}
|
|
1123
|
+
if (page !== void 0) {
|
|
1124
|
+
localVarQueryParameter["page"] = page;
|
|
1125
|
+
}
|
|
1123
1126
|
if (labelSelector) {
|
|
1124
1127
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1125
1128
|
}
|
|
1126
1129
|
if (fieldSelector) {
|
|
1127
1130
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1128
1131
|
}
|
|
1129
|
-
if (page !== void 0) {
|
|
1130
|
-
localVarQueryParameter["page"] = page;
|
|
1131
|
-
}
|
|
1132
1132
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1133
1133
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1134
1134
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1195,8 +1195,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1195
1195
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1196
1196
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1197
1197
|
},
|
|
1198
|
-
async listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1199
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1198
|
+
async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1199
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
|
|
1200
1200
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1201
1201
|
},
|
|
1202
1202
|
async reloadThemeSetting(name, options) {
|
|
@@ -1215,8 +1215,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1215
1215
|
installTheme(file, options) {
|
|
1216
1216
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1217
1217
|
},
|
|
1218
|
-
listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1219
|
-
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1218
|
+
listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1219
|
+
return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1220
1220
|
},
|
|
1221
1221
|
reloadThemeSetting(name, options) {
|
|
1222
1222
|
return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
|
|
@@ -1231,7 +1231,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1231
1231
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1232
1232
|
}
|
|
1233
1233
|
listThemes(requestParameters, options) {
|
|
1234
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1234
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1235
1235
|
}
|
|
1236
1236
|
reloadThemeSetting(requestParameters, options) {
|
|
1237
1237
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|