@halo-dev/api-client 0.0.66 → 0.0.68
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 +259 -102
- package/dist/index.d.ts +391 -177
- package/dist/index.mjs +259 -102
- 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, sort, displayName, ungrouped, uploadedBy,
|
|
72
|
+
searchAttachments: async (policy, sort, displayName, group, ungrouped, 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;
|
|
@@ -90,27 +90,27 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
90
90
|
if (displayName !== void 0) {
|
|
91
91
|
localVarQueryParameter["displayName"] = displayName;
|
|
92
92
|
}
|
|
93
|
+
if (group !== void 0) {
|
|
94
|
+
localVarQueryParameter["group"] = group;
|
|
95
|
+
}
|
|
93
96
|
if (ungrouped !== void 0) {
|
|
94
97
|
localVarQueryParameter["ungrouped"] = ungrouped;
|
|
95
98
|
}
|
|
96
99
|
if (uploadedBy !== void 0) {
|
|
97
100
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
98
101
|
}
|
|
99
|
-
if (group !== void 0) {
|
|
100
|
-
localVarQueryParameter["group"] = group;
|
|
101
|
-
}
|
|
102
102
|
if (size !== void 0) {
|
|
103
103
|
localVarQueryParameter["size"] = size;
|
|
104
104
|
}
|
|
105
|
+
if (page !== void 0) {
|
|
106
|
+
localVarQueryParameter["page"] = page;
|
|
107
|
+
}
|
|
105
108
|
if (labelSelector) {
|
|
106
109
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
107
110
|
}
|
|
108
111
|
if (fieldSelector) {
|
|
109
112
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
110
113
|
}
|
|
111
|
-
if (page !== void 0) {
|
|
112
|
-
localVarQueryParameter["page"] = page;
|
|
113
|
-
}
|
|
114
114
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
115
115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
116
116
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -158,8 +158,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
158
158
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
159
159
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
160
160
|
return {
|
|
161
|
-
async searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
162
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
161
|
+
async searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
163
163
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
164
|
},
|
|
165
165
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -171,8 +171,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
171
171
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
172
172
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
173
173
|
return {
|
|
174
|
-
searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
175
|
-
return localVarFp.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
174
|
+
searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
175
|
+
return localVarFp.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
176
176
|
},
|
|
177
177
|
uploadAttachment(file, policyName, groupName, options) {
|
|
178
178
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -181,7 +181,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
181
181
|
};
|
|
182
182
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
183
183
|
searchAttachments(requestParameters = {}, options) {
|
|
184
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.
|
|
184
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.group, requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
185
185
|
}
|
|
186
186
|
uploadAttachment(requestParameters, options) {
|
|
187
187
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -237,7 +237,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
237
237
|
options: localVarRequestOptions
|
|
238
238
|
};
|
|
239
239
|
},
|
|
240
|
-
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
240
|
+
listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
241
241
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
242
242
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
243
243
|
let baseOptions;
|
|
@@ -252,6 +252,15 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
252
252
|
if (sort !== void 0) {
|
|
253
253
|
localVarQueryParameter["sort"] = sort;
|
|
254
254
|
}
|
|
255
|
+
if (keyword !== void 0) {
|
|
256
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
257
|
+
}
|
|
258
|
+
if (hidden !== void 0) {
|
|
259
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
260
|
+
}
|
|
261
|
+
if (top !== void 0) {
|
|
262
|
+
localVarQueryParameter["top"] = top;
|
|
263
|
+
}
|
|
255
264
|
if (sortOrder !== void 0) {
|
|
256
265
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
257
266
|
}
|
|
@@ -273,27 +282,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
273
282
|
if (subjectName !== void 0) {
|
|
274
283
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
275
284
|
}
|
|
276
|
-
if (keyword !== void 0) {
|
|
277
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
278
|
-
}
|
|
279
|
-
if (hidden !== void 0) {
|
|
280
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
281
|
-
}
|
|
282
|
-
if (top !== void 0) {
|
|
283
|
-
localVarQueryParameter["top"] = top;
|
|
284
|
-
}
|
|
285
285
|
if (size !== void 0) {
|
|
286
286
|
localVarQueryParameter["size"] = size;
|
|
287
287
|
}
|
|
288
|
+
if (page !== void 0) {
|
|
289
|
+
localVarQueryParameter["page"] = page;
|
|
290
|
+
}
|
|
288
291
|
if (labelSelector) {
|
|
289
292
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
290
293
|
}
|
|
291
294
|
if (fieldSelector) {
|
|
292
295
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
293
296
|
}
|
|
294
|
-
if (page !== void 0) {
|
|
295
|
-
localVarQueryParameter["page"] = page;
|
|
296
|
-
}
|
|
297
297
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
298
298
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
299
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -315,8 +315,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
315
315
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
316
316
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
317
317
|
},
|
|
318
|
-
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
318
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
320
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
321
|
}
|
|
322
322
|
};
|
|
@@ -330,8 +330,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
330
330
|
createReply(name, replyRequest, options) {
|
|
331
331
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
332
332
|
},
|
|
333
|
-
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
334
|
-
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
333
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
334
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
};
|
|
@@ -343,7 +343,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
343
343
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
344
344
|
}
|
|
345
345
|
listComments(requestParameters = {}, options) {
|
|
346
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
346
|
+
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));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
|
|
@@ -538,7 +538,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
538
538
|
options: localVarRequestOptions
|
|
539
539
|
};
|
|
540
540
|
},
|
|
541
|
-
listPlugins: async (sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
541
|
+
listPlugins: async (sort, enabled, keyword, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
542
542
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
543
543
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
544
544
|
let baseOptions;
|
|
@@ -562,15 +562,15 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
562
562
|
if (size !== void 0) {
|
|
563
563
|
localVarQueryParameter["size"] = size;
|
|
564
564
|
}
|
|
565
|
+
if (page !== void 0) {
|
|
566
|
+
localVarQueryParameter["page"] = page;
|
|
567
|
+
}
|
|
565
568
|
if (labelSelector) {
|
|
566
569
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
567
570
|
}
|
|
568
571
|
if (fieldSelector) {
|
|
569
572
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
570
573
|
}
|
|
571
|
-
if (page !== void 0) {
|
|
572
|
-
localVarQueryParameter["page"] = page;
|
|
573
|
-
}
|
|
574
574
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
575
575
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
576
576
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -637,8 +637,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
637
637
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
638
638
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
639
639
|
},
|
|
640
|
-
async listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
641
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
640
|
+
async listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options);
|
|
642
642
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
643
643
|
},
|
|
644
644
|
async resetPluginConfig(name, options) {
|
|
@@ -657,8 +657,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
657
657
|
installPlugin(file, options) {
|
|
658
658
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
659
659
|
},
|
|
660
|
-
listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
661
|
-
return localVarFp.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
660
|
+
listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
661
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
662
662
|
},
|
|
663
663
|
resetPluginConfig(name, options) {
|
|
664
664
|
return localVarFp.resetPluginConfig(name, options).then((request) => request(axios, basePath));
|
|
@@ -673,7 +673,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
673
673
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
674
674
|
}
|
|
675
675
|
listPlugins(requestParameters = {}, options) {
|
|
676
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.
|
|
676
|
+
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));
|
|
677
677
|
}
|
|
678
678
|
resetPluginConfig(requestParameters, options) {
|
|
679
679
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).resetPluginConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -708,7 +708,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
708
708
|
options: localVarRequestOptions
|
|
709
709
|
};
|
|
710
710
|
},
|
|
711
|
-
listPosts: async (sort,
|
|
711
|
+
listPosts: async (sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
712
712
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
713
713
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
714
714
|
let baseOptions;
|
|
@@ -723,6 +723,15 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
723
723
|
if (sort !== void 0) {
|
|
724
724
|
localVarQueryParameter["sort"] = sort;
|
|
725
725
|
}
|
|
726
|
+
if (tag) {
|
|
727
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
728
|
+
}
|
|
729
|
+
if (visible !== void 0) {
|
|
730
|
+
localVarQueryParameter["visible"] = visible;
|
|
731
|
+
}
|
|
732
|
+
if (keyword !== void 0) {
|
|
733
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
734
|
+
}
|
|
726
735
|
if (contributor) {
|
|
727
736
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
728
737
|
}
|
|
@@ -735,27 +744,18 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
735
744
|
if (category) {
|
|
736
745
|
localVarQueryParameter["category"] = Array.from(category);
|
|
737
746
|
}
|
|
738
|
-
if (tag) {
|
|
739
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
740
|
-
}
|
|
741
|
-
if (visible !== void 0) {
|
|
742
|
-
localVarQueryParameter["visible"] = visible;
|
|
743
|
-
}
|
|
744
|
-
if (keyword !== void 0) {
|
|
745
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
746
|
-
}
|
|
747
747
|
if (size !== void 0) {
|
|
748
748
|
localVarQueryParameter["size"] = size;
|
|
749
749
|
}
|
|
750
|
+
if (page !== void 0) {
|
|
751
|
+
localVarQueryParameter["page"] = page;
|
|
752
|
+
}
|
|
750
753
|
if (labelSelector) {
|
|
751
754
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
752
755
|
}
|
|
753
756
|
if (fieldSelector) {
|
|
754
757
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
755
758
|
}
|
|
756
|
-
if (page !== void 0) {
|
|
757
|
-
localVarQueryParameter["page"] = page;
|
|
758
|
-
}
|
|
759
759
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
760
760
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
761
761
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -887,8 +887,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
887
887
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
888
888
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
889
889
|
},
|
|
890
|
-
async listPosts(sort,
|
|
891
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
890
|
+
async listPosts(sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options) {
|
|
891
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options);
|
|
892
892
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
893
893
|
},
|
|
894
894
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -919,8 +919,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
919
919
|
draftPost(postRequest, options) {
|
|
920
920
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
921
921
|
},
|
|
922
|
-
listPosts(sort,
|
|
923
|
-
return localVarFp.listPosts(sort,
|
|
922
|
+
listPosts(sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options) {
|
|
923
|
+
return localVarFp.listPosts(sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
924
924
|
},
|
|
925
925
|
publishPost(name, headSnapshot, options) {
|
|
926
926
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -944,7 +944,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
944
944
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
945
945
|
}
|
|
946
946
|
listPosts(requestParameters = {}, options) {
|
|
947
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
947
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.tag, requestParameters.visible, requestParameters.keyword, requestParameters.contributor, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
948
948
|
}
|
|
949
949
|
publishPost(requestParameters, options) {
|
|
950
950
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -965,7 +965,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
965
965
|
|
|
966
966
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
967
967
|
return {
|
|
968
|
-
listReplies: async (commentName, size, labelSelector, fieldSelector,
|
|
968
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
969
969
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
970
970
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
971
971
|
let baseOptions;
|
|
@@ -983,15 +983,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
983
983
|
if (size !== void 0) {
|
|
984
984
|
localVarQueryParameter["size"] = size;
|
|
985
985
|
}
|
|
986
|
+
if (page !== void 0) {
|
|
987
|
+
localVarQueryParameter["page"] = page;
|
|
988
|
+
}
|
|
986
989
|
if (labelSelector) {
|
|
987
990
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
988
991
|
}
|
|
989
992
|
if (fieldSelector) {
|
|
990
993
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
991
994
|
}
|
|
992
|
-
if (page !== void 0) {
|
|
993
|
-
localVarQueryParameter["page"] = page;
|
|
994
|
-
}
|
|
995
995
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
996
996
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
997
997
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1005,8 +1005,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
1005
1005
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
1006
1006
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
1007
1007
|
return {
|
|
1008
|
-
async listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1009
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1008
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
1009
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
|
|
1010
1010
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1011
1011
|
}
|
|
1012
1012
|
};
|
|
@@ -1014,14 +1014,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
1014
1014
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
1015
1015
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
1016
1016
|
return {
|
|
1017
|
-
listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1018
|
-
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1017
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
1018
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
1021
1021
|
};
|
|
1022
1022
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
1023
1023
|
listReplies(requestParameters = {}, options) {
|
|
1024
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
1024
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
@@ -1050,7 +1050,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1050
1050
|
options: localVarRequestOptions
|
|
1051
1051
|
};
|
|
1052
1052
|
},
|
|
1053
|
-
listSinglePages: async (sort, contributor, sortOrder, publishPhase,
|
|
1053
|
+
listSinglePages: async (sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1054
1054
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1055
1055
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1056
1056
|
let baseOptions;
|
|
@@ -1065,6 +1065,12 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1065
1065
|
if (sort !== void 0) {
|
|
1066
1066
|
localVarQueryParameter["sort"] = sort;
|
|
1067
1067
|
}
|
|
1068
|
+
if (visible !== void 0) {
|
|
1069
|
+
localVarQueryParameter["visible"] = visible;
|
|
1070
|
+
}
|
|
1071
|
+
if (keyword !== void 0) {
|
|
1072
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1073
|
+
}
|
|
1068
1074
|
if (contributor) {
|
|
1069
1075
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1070
1076
|
}
|
|
@@ -1074,24 +1080,18 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1074
1080
|
if (publishPhase !== void 0) {
|
|
1075
1081
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1076
1082
|
}
|
|
1077
|
-
if (visible !== void 0) {
|
|
1078
|
-
localVarQueryParameter["visible"] = visible;
|
|
1079
|
-
}
|
|
1080
|
-
if (keyword !== void 0) {
|
|
1081
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1082
|
-
}
|
|
1083
1083
|
if (size !== void 0) {
|
|
1084
1084
|
localVarQueryParameter["size"] = size;
|
|
1085
1085
|
}
|
|
1086
|
+
if (page !== void 0) {
|
|
1087
|
+
localVarQueryParameter["page"] = page;
|
|
1088
|
+
}
|
|
1086
1089
|
if (labelSelector) {
|
|
1087
1090
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1088
1091
|
}
|
|
1089
1092
|
if (fieldSelector) {
|
|
1090
1093
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1091
1094
|
}
|
|
1092
|
-
if (page !== void 0) {
|
|
1093
|
-
localVarQueryParameter["page"] = page;
|
|
1094
|
-
}
|
|
1095
1095
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1096
1096
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1097
1097
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1178,8 +1178,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1178
1178
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1179
1179
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1180
1180
|
},
|
|
1181
|
-
async listSinglePages(sort, contributor, sortOrder, publishPhase,
|
|
1182
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, contributor, sortOrder, publishPhase,
|
|
1181
|
+
async listSinglePages(sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options) {
|
|
1182
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options);
|
|
1183
1183
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1184
1184
|
},
|
|
1185
1185
|
async publishSinglePage(name, options) {
|
|
@@ -1202,8 +1202,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1202
1202
|
draftSinglePage(singlePageRequest, options) {
|
|
1203
1203
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1204
1204
|
},
|
|
1205
|
-
listSinglePages(sort, contributor, sortOrder, publishPhase,
|
|
1206
|
-
return localVarFp.listSinglePages(sort, contributor, sortOrder, publishPhase,
|
|
1205
|
+
listSinglePages(sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options) {
|
|
1206
|
+
return localVarFp.listSinglePages(sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1207
1207
|
},
|
|
1208
1208
|
publishSinglePage(name, options) {
|
|
1209
1209
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1221,7 +1221,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1221
1221
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1222
1222
|
}
|
|
1223
1223
|
listSinglePages(requestParameters = {}, options) {
|
|
1224
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1224
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.visible, requestParameters.keyword, requestParameters.contributor, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1225
1225
|
}
|
|
1226
1226
|
publishSinglePage(requestParameters, options) {
|
|
1227
1227
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1283,6 +1283,89 @@ class ApiConsoleHaloRunV1alpha1StatsApi extends BaseAPI {
|
|
|
1283
1283
|
|
|
1284
1284
|
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
1285
1285
|
return {
|
|
1286
|
+
activateTheme: async (name, options = {}) => {
|
|
1287
|
+
assertParamExists("activateTheme", "name", name);
|
|
1288
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/activation`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1289
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1290
|
+
let baseOptions;
|
|
1291
|
+
if (configuration) {
|
|
1292
|
+
baseOptions = configuration.baseOptions;
|
|
1293
|
+
}
|
|
1294
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1295
|
+
const localVarHeaderParameter = {};
|
|
1296
|
+
const localVarQueryParameter = {};
|
|
1297
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1298
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1299
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1300
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1301
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1302
|
+
return {
|
|
1303
|
+
url: toPathString(localVarUrlObj),
|
|
1304
|
+
options: localVarRequestOptions
|
|
1305
|
+
};
|
|
1306
|
+
},
|
|
1307
|
+
fetchActivatedTheme: async (options = {}) => {
|
|
1308
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/-/activation`;
|
|
1309
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1310
|
+
let baseOptions;
|
|
1311
|
+
if (configuration) {
|
|
1312
|
+
baseOptions = configuration.baseOptions;
|
|
1313
|
+
}
|
|
1314
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1315
|
+
const localVarHeaderParameter = {};
|
|
1316
|
+
const localVarQueryParameter = {};
|
|
1317
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1318
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1319
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1320
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1321
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1322
|
+
return {
|
|
1323
|
+
url: toPathString(localVarUrlObj),
|
|
1324
|
+
options: localVarRequestOptions
|
|
1325
|
+
};
|
|
1326
|
+
},
|
|
1327
|
+
fetchThemeConfig: async (name, options = {}) => {
|
|
1328
|
+
assertParamExists("fetchThemeConfig", "name", name);
|
|
1329
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1330
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1331
|
+
let baseOptions;
|
|
1332
|
+
if (configuration) {
|
|
1333
|
+
baseOptions = configuration.baseOptions;
|
|
1334
|
+
}
|
|
1335
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1336
|
+
const localVarHeaderParameter = {};
|
|
1337
|
+
const localVarQueryParameter = {};
|
|
1338
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1339
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1340
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1341
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1342
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1343
|
+
return {
|
|
1344
|
+
url: toPathString(localVarUrlObj),
|
|
1345
|
+
options: localVarRequestOptions
|
|
1346
|
+
};
|
|
1347
|
+
},
|
|
1348
|
+
fetchThemeSetting: async (name, options = {}) => {
|
|
1349
|
+
assertParamExists("fetchThemeSetting", "name", name);
|
|
1350
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/setting`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1351
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1352
|
+
let baseOptions;
|
|
1353
|
+
if (configuration) {
|
|
1354
|
+
baseOptions = configuration.baseOptions;
|
|
1355
|
+
}
|
|
1356
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1357
|
+
const localVarHeaderParameter = {};
|
|
1358
|
+
const localVarQueryParameter = {};
|
|
1359
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1360
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1361
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1362
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1363
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1364
|
+
return {
|
|
1365
|
+
url: toPathString(localVarUrlObj),
|
|
1366
|
+
options: localVarRequestOptions
|
|
1367
|
+
};
|
|
1368
|
+
},
|
|
1286
1369
|
installTheme: async (file, options = {}) => {
|
|
1287
1370
|
assertParamExists("installTheme", "file", file);
|
|
1288
1371
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/install`;
|
|
@@ -1310,7 +1393,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1310
1393
|
options: localVarRequestOptions
|
|
1311
1394
|
};
|
|
1312
1395
|
},
|
|
1313
|
-
listThemes: async (uninstalled, size, labelSelector, fieldSelector,
|
|
1396
|
+
listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1314
1397
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1315
1398
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1316
1399
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1329,15 +1412,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1329
1412
|
if (size !== void 0) {
|
|
1330
1413
|
localVarQueryParameter["size"] = size;
|
|
1331
1414
|
}
|
|
1415
|
+
if (page !== void 0) {
|
|
1416
|
+
localVarQueryParameter["page"] = page;
|
|
1417
|
+
}
|
|
1332
1418
|
if (labelSelector) {
|
|
1333
1419
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1334
1420
|
}
|
|
1335
1421
|
if (fieldSelector) {
|
|
1336
1422
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1337
1423
|
}
|
|
1338
|
-
if (page !== void 0) {
|
|
1339
|
-
localVarQueryParameter["page"] = page;
|
|
1340
|
-
}
|
|
1341
1424
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1342
1425
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1343
1426
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1388,6 +1471,30 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1388
1471
|
options: localVarRequestOptions
|
|
1389
1472
|
};
|
|
1390
1473
|
},
|
|
1474
|
+
updateThemeConfig: async (name, configMap, options = {}) => {
|
|
1475
|
+
assertParamExists("updateThemeConfig", "name", name);
|
|
1476
|
+
assertParamExists("updateThemeConfig", "configMap", configMap);
|
|
1477
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1478
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1479
|
+
let baseOptions;
|
|
1480
|
+
if (configuration) {
|
|
1481
|
+
baseOptions = configuration.baseOptions;
|
|
1482
|
+
}
|
|
1483
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1484
|
+
const localVarHeaderParameter = {};
|
|
1485
|
+
const localVarQueryParameter = {};
|
|
1486
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1487
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1488
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1489
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1490
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1491
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1492
|
+
localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration);
|
|
1493
|
+
return {
|
|
1494
|
+
url: toPathString(localVarUrlObj),
|
|
1495
|
+
options: localVarRequestOptions
|
|
1496
|
+
};
|
|
1497
|
+
},
|
|
1391
1498
|
upgradeTheme: async (name, file, options = {}) => {
|
|
1392
1499
|
assertParamExists("upgradeTheme", "name", name);
|
|
1393
1500
|
assertParamExists("upgradeTheme", "file", file);
|
|
@@ -1421,12 +1528,28 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1421
1528
|
const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
1422
1529
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
|
1423
1530
|
return {
|
|
1531
|
+
async activateTheme(name, options) {
|
|
1532
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.activateTheme(name, options);
|
|
1533
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1534
|
+
},
|
|
1535
|
+
async fetchActivatedTheme(options) {
|
|
1536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchActivatedTheme(options);
|
|
1537
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1538
|
+
},
|
|
1539
|
+
async fetchThemeConfig(name, options) {
|
|
1540
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchThemeConfig(name, options);
|
|
1541
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1542
|
+
},
|
|
1543
|
+
async fetchThemeSetting(name, options) {
|
|
1544
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchThemeSetting(name, options);
|
|
1545
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1546
|
+
},
|
|
1424
1547
|
async installTheme(file, options) {
|
|
1425
1548
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1426
1549
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1427
1550
|
},
|
|
1428
|
-
async listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1429
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1551
|
+
async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1552
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
|
|
1430
1553
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1431
1554
|
},
|
|
1432
1555
|
async reload(name, options) {
|
|
@@ -1437,6 +1560,10 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1437
1560
|
const localVarAxiosArgs = await localVarAxiosParamCreator.resetThemeConfig(name, options);
|
|
1438
1561
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1439
1562
|
},
|
|
1563
|
+
async updateThemeConfig(name, configMap, options) {
|
|
1564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateThemeConfig(name, configMap, options);
|
|
1565
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1566
|
+
},
|
|
1440
1567
|
async upgradeTheme(name, file, options) {
|
|
1441
1568
|
const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeTheme(name, file, options);
|
|
1442
1569
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
@@ -1446,11 +1573,23 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1446
1573
|
const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePath, axios) {
|
|
1447
1574
|
const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration);
|
|
1448
1575
|
return {
|
|
1576
|
+
activateTheme(name, options) {
|
|
1577
|
+
return localVarFp.activateTheme(name, options).then((request) => request(axios, basePath));
|
|
1578
|
+
},
|
|
1579
|
+
fetchActivatedTheme(options) {
|
|
1580
|
+
return localVarFp.fetchActivatedTheme(options).then((request) => request(axios, basePath));
|
|
1581
|
+
},
|
|
1582
|
+
fetchThemeConfig(name, options) {
|
|
1583
|
+
return localVarFp.fetchThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1584
|
+
},
|
|
1585
|
+
fetchThemeSetting(name, options) {
|
|
1586
|
+
return localVarFp.fetchThemeSetting(name, options).then((request) => request(axios, basePath));
|
|
1587
|
+
},
|
|
1449
1588
|
installTheme(file, options) {
|
|
1450
1589
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1451
1590
|
},
|
|
1452
|
-
listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1453
|
-
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1591
|
+
listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1592
|
+
return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1454
1593
|
},
|
|
1455
1594
|
reload(name, options) {
|
|
1456
1595
|
return localVarFp.reload(name, options).then((request) => request(axios, basePath));
|
|
@@ -1458,17 +1597,32 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1458
1597
|
resetThemeConfig(name, options) {
|
|
1459
1598
|
return localVarFp.resetThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1460
1599
|
},
|
|
1600
|
+
updateThemeConfig(name, configMap, options) {
|
|
1601
|
+
return localVarFp.updateThemeConfig(name, configMap, options).then((request) => request(axios, basePath));
|
|
1602
|
+
},
|
|
1461
1603
|
upgradeTheme(name, file, options) {
|
|
1462
1604
|
return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
|
|
1463
1605
|
}
|
|
1464
1606
|
};
|
|
1465
1607
|
};
|
|
1466
1608
|
class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
1609
|
+
activateTheme(requestParameters, options) {
|
|
1610
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).activateTheme(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1611
|
+
}
|
|
1612
|
+
fetchActivatedTheme(options) {
|
|
1613
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchActivatedTheme(options).then((request) => request(this.axios, this.basePath));
|
|
1614
|
+
}
|
|
1615
|
+
fetchThemeConfig(requestParameters, options) {
|
|
1616
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1617
|
+
}
|
|
1618
|
+
fetchThemeSetting(requestParameters, options) {
|
|
1619
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1620
|
+
}
|
|
1467
1621
|
installTheme(requestParameters, options) {
|
|
1468
1622
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1469
1623
|
}
|
|
1470
1624
|
listThemes(requestParameters, options) {
|
|
1471
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1625
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1472
1626
|
}
|
|
1473
1627
|
reload(requestParameters, options) {
|
|
1474
1628
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1476,6 +1630,9 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1476
1630
|
resetThemeConfig(requestParameters, options) {
|
|
1477
1631
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).resetThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1478
1632
|
}
|
|
1633
|
+
updateThemeConfig(requestParameters, options) {
|
|
1634
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).updateThemeConfig(requestParameters.name, requestParameters.configMap, options).then((request) => request(this.axios, this.basePath));
|
|
1635
|
+
}
|
|
1479
1636
|
upgradeTheme(requestParameters, options) {
|
|
1480
1637
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1481
1638
|
}
|
|
@@ -1865,7 +2022,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1865
2022
|
|
|
1866
2023
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1867
2024
|
return {
|
|
1868
|
-
searchPost: async (keyword, highlightPreTag, highlightPostTag,
|
|
2025
|
+
searchPost: async (keyword, limit, highlightPreTag, highlightPostTag, options = {}) => {
|
|
1869
2026
|
assertParamExists("searchPost", "keyword", keyword);
|
|
1870
2027
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
1871
2028
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1878,18 +2035,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1878
2035
|
const localVarQueryParameter = {};
|
|
1879
2036
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1880
2037
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1881
|
-
if (highlightPreTag !== void 0) {
|
|
1882
|
-
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1883
|
-
}
|
|
1884
|
-
if (highlightPostTag !== void 0) {
|
|
1885
|
-
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1886
|
-
}
|
|
1887
2038
|
if (limit !== void 0) {
|
|
1888
2039
|
localVarQueryParameter["limit"] = limit;
|
|
1889
2040
|
}
|
|
1890
2041
|
if (keyword !== void 0) {
|
|
1891
2042
|
localVarQueryParameter["keyword"] = keyword;
|
|
1892
2043
|
}
|
|
2044
|
+
if (highlightPreTag !== void 0) {
|
|
2045
|
+
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
2046
|
+
}
|
|
2047
|
+
if (highlightPostTag !== void 0) {
|
|
2048
|
+
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
2049
|
+
}
|
|
1893
2050
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1894
2051
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1895
2052
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1903,8 +2060,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1903
2060
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
1904
2061
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
1905
2062
|
return {
|
|
1906
|
-
async searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1907
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
2063
|
+
async searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
2064
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options);
|
|
1908
2065
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1909
2066
|
}
|
|
1910
2067
|
};
|
|
@@ -1912,14 +2069,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
1912
2069
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
1913
2070
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
1914
2071
|
return {
|
|
1915
|
-
searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1916
|
-
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
2072
|
+
searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
2073
|
+
return localVarFp.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options).then((request) => request(axios, basePath));
|
|
1917
2074
|
}
|
|
1918
2075
|
};
|
|
1919
2076
|
};
|
|
1920
2077
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
1921
2078
|
searchPost(requestParameters, options) {
|
|
1922
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
2079
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(this.axios, this.basePath));
|
|
1923
2080
|
}
|
|
1924
2081
|
}
|
|
1925
2082
|
|