@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.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, sort, displayName, ungrouped, uploadedBy,
|
|
80
|
+
searchAttachments: async (policy, sort, displayName, group, ungrouped, 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;
|
|
@@ -98,27 +98,27 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
98
98
|
if (displayName !== void 0) {
|
|
99
99
|
localVarQueryParameter["displayName"] = displayName;
|
|
100
100
|
}
|
|
101
|
+
if (group !== void 0) {
|
|
102
|
+
localVarQueryParameter["group"] = group;
|
|
103
|
+
}
|
|
101
104
|
if (ungrouped !== void 0) {
|
|
102
105
|
localVarQueryParameter["ungrouped"] = ungrouped;
|
|
103
106
|
}
|
|
104
107
|
if (uploadedBy !== void 0) {
|
|
105
108
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
106
109
|
}
|
|
107
|
-
if (group !== void 0) {
|
|
108
|
-
localVarQueryParameter["group"] = group;
|
|
109
|
-
}
|
|
110
110
|
if (size !== void 0) {
|
|
111
111
|
localVarQueryParameter["size"] = size;
|
|
112
112
|
}
|
|
113
|
+
if (page !== void 0) {
|
|
114
|
+
localVarQueryParameter["page"] = page;
|
|
115
|
+
}
|
|
113
116
|
if (labelSelector) {
|
|
114
117
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
115
118
|
}
|
|
116
119
|
if (fieldSelector) {
|
|
117
120
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
118
121
|
}
|
|
119
|
-
if (page !== void 0) {
|
|
120
|
-
localVarQueryParameter["page"] = page;
|
|
121
|
-
}
|
|
122
122
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123
123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
124
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -166,8 +166,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
166
166
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
167
167
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
168
168
|
return {
|
|
169
|
-
async searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
170
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
169
|
+
async searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
170
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
171
171
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
172
172
|
},
|
|
173
173
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -179,8 +179,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
179
179
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
180
180
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
181
181
|
return {
|
|
182
|
-
searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
183
|
-
return localVarFp.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy,
|
|
182
|
+
searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
183
|
+
return localVarFp.searchAttachments(policy, sort, displayName, group, ungrouped, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
184
184
|
},
|
|
185
185
|
uploadAttachment(file, policyName, groupName, options) {
|
|
186
186
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -189,7 +189,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
189
189
|
};
|
|
190
190
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
191
191
|
searchAttachments(requestParameters = {}, options) {
|
|
192
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.sort, requestParameters.displayName, requestParameters.
|
|
192
|
+
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));
|
|
193
193
|
}
|
|
194
194
|
uploadAttachment(requestParameters, options) {
|
|
195
195
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -245,7 +245,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
245
245
|
options: localVarRequestOptions
|
|
246
246
|
};
|
|
247
247
|
},
|
|
248
|
-
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
248
|
+
listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
249
249
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
250
250
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
251
251
|
let baseOptions;
|
|
@@ -260,6 +260,15 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
260
260
|
if (sort !== void 0) {
|
|
261
261
|
localVarQueryParameter["sort"] = sort;
|
|
262
262
|
}
|
|
263
|
+
if (keyword !== void 0) {
|
|
264
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
265
|
+
}
|
|
266
|
+
if (hidden !== void 0) {
|
|
267
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
268
|
+
}
|
|
269
|
+
if (top !== void 0) {
|
|
270
|
+
localVarQueryParameter["top"] = top;
|
|
271
|
+
}
|
|
263
272
|
if (sortOrder !== void 0) {
|
|
264
273
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
265
274
|
}
|
|
@@ -281,27 +290,18 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
281
290
|
if (subjectName !== void 0) {
|
|
282
291
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
283
292
|
}
|
|
284
|
-
if (keyword !== void 0) {
|
|
285
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
286
|
-
}
|
|
287
|
-
if (hidden !== void 0) {
|
|
288
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
289
|
-
}
|
|
290
|
-
if (top !== void 0) {
|
|
291
|
-
localVarQueryParameter["top"] = top;
|
|
292
|
-
}
|
|
293
293
|
if (size !== void 0) {
|
|
294
294
|
localVarQueryParameter["size"] = size;
|
|
295
295
|
}
|
|
296
|
+
if (page !== void 0) {
|
|
297
|
+
localVarQueryParameter["page"] = page;
|
|
298
|
+
}
|
|
296
299
|
if (labelSelector) {
|
|
297
300
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
298
301
|
}
|
|
299
302
|
if (fieldSelector) {
|
|
300
303
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
301
304
|
}
|
|
302
|
-
if (page !== void 0) {
|
|
303
|
-
localVarQueryParameter["page"] = page;
|
|
304
|
-
}
|
|
305
305
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
306
306
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
307
307
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -323,8 +323,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
323
323
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
324
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
325
325
|
},
|
|
326
|
-
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
327
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
326
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
328
328
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
329
329
|
}
|
|
330
330
|
};
|
|
@@ -338,8 +338,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
338
338
|
createReply(name, replyRequest, options) {
|
|
339
339
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
340
340
|
},
|
|
341
|
-
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
342
|
-
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName,
|
|
341
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
342
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
};
|
|
@@ -351,7 +351,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
351
351
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
352
352
|
}
|
|
353
353
|
listComments(requestParameters = {}, options) {
|
|
354
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
354
|
+
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));
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
|
|
@@ -546,7 +546,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
546
546
|
options: localVarRequestOptions
|
|
547
547
|
};
|
|
548
548
|
},
|
|
549
|
-
listPlugins: async (sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
549
|
+
listPlugins: async (sort, enabled, keyword, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
550
550
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
551
551
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
552
552
|
let baseOptions;
|
|
@@ -570,15 +570,15 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
570
570
|
if (size !== void 0) {
|
|
571
571
|
localVarQueryParameter["size"] = size;
|
|
572
572
|
}
|
|
573
|
+
if (page !== void 0) {
|
|
574
|
+
localVarQueryParameter["page"] = page;
|
|
575
|
+
}
|
|
573
576
|
if (labelSelector) {
|
|
574
577
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
575
578
|
}
|
|
576
579
|
if (fieldSelector) {
|
|
577
580
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
578
581
|
}
|
|
579
|
-
if (page !== void 0) {
|
|
580
|
-
localVarQueryParameter["page"] = page;
|
|
581
|
-
}
|
|
582
582
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
583
583
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
584
584
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -645,8 +645,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
645
645
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
646
646
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
647
647
|
},
|
|
648
|
-
async listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
649
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
648
|
+
async listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
649
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options);
|
|
650
650
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
651
651
|
},
|
|
652
652
|
async resetPluginConfig(name, options) {
|
|
@@ -665,8 +665,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
665
665
|
installPlugin(file, options) {
|
|
666
666
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
667
667
|
},
|
|
668
|
-
listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
669
|
-
return localVarFp.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector,
|
|
668
|
+
listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options) {
|
|
669
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
670
670
|
},
|
|
671
671
|
resetPluginConfig(name, options) {
|
|
672
672
|
return localVarFp.resetPluginConfig(name, options).then((request) => request(axios, basePath));
|
|
@@ -681,7 +681,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
681
681
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
682
682
|
}
|
|
683
683
|
listPlugins(requestParameters = {}, options) {
|
|
684
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.
|
|
684
|
+
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));
|
|
685
685
|
}
|
|
686
686
|
resetPluginConfig(requestParameters, options) {
|
|
687
687
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).resetPluginConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -716,7 +716,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
716
716
|
options: localVarRequestOptions
|
|
717
717
|
};
|
|
718
718
|
},
|
|
719
|
-
listPosts: async (sort,
|
|
719
|
+
listPosts: async (sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
720
720
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
721
721
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
722
722
|
let baseOptions;
|
|
@@ -731,6 +731,15 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
731
731
|
if (sort !== void 0) {
|
|
732
732
|
localVarQueryParameter["sort"] = sort;
|
|
733
733
|
}
|
|
734
|
+
if (tag) {
|
|
735
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
736
|
+
}
|
|
737
|
+
if (visible !== void 0) {
|
|
738
|
+
localVarQueryParameter["visible"] = visible;
|
|
739
|
+
}
|
|
740
|
+
if (keyword !== void 0) {
|
|
741
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
742
|
+
}
|
|
734
743
|
if (contributor) {
|
|
735
744
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
736
745
|
}
|
|
@@ -743,27 +752,18 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
743
752
|
if (category) {
|
|
744
753
|
localVarQueryParameter["category"] = Array.from(category);
|
|
745
754
|
}
|
|
746
|
-
if (tag) {
|
|
747
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
748
|
-
}
|
|
749
|
-
if (visible !== void 0) {
|
|
750
|
-
localVarQueryParameter["visible"] = visible;
|
|
751
|
-
}
|
|
752
|
-
if (keyword !== void 0) {
|
|
753
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
754
|
-
}
|
|
755
755
|
if (size !== void 0) {
|
|
756
756
|
localVarQueryParameter["size"] = size;
|
|
757
757
|
}
|
|
758
|
+
if (page !== void 0) {
|
|
759
|
+
localVarQueryParameter["page"] = page;
|
|
760
|
+
}
|
|
758
761
|
if (labelSelector) {
|
|
759
762
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
760
763
|
}
|
|
761
764
|
if (fieldSelector) {
|
|
762
765
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
763
766
|
}
|
|
764
|
-
if (page !== void 0) {
|
|
765
|
-
localVarQueryParameter["page"] = page;
|
|
766
|
-
}
|
|
767
767
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
768
768
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
769
769
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -895,8 +895,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
895
895
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
896
896
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
897
897
|
},
|
|
898
|
-
async listPosts(sort,
|
|
899
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
898
|
+
async listPosts(sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options) {
|
|
899
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options);
|
|
900
900
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
901
901
|
},
|
|
902
902
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -927,8 +927,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
927
927
|
draftPost(postRequest, options) {
|
|
928
928
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
929
929
|
},
|
|
930
|
-
listPosts(sort,
|
|
931
|
-
return localVarFp.listPosts(sort,
|
|
930
|
+
listPosts(sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options) {
|
|
931
|
+
return localVarFp.listPosts(sort, tag, visible, keyword, contributor, sortOrder, publishPhase, category, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
932
932
|
},
|
|
933
933
|
publishPost(name, headSnapshot, options) {
|
|
934
934
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -952,7 +952,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
952
952
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
953
953
|
}
|
|
954
954
|
listPosts(requestParameters = {}, options) {
|
|
955
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
955
|
+
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));
|
|
956
956
|
}
|
|
957
957
|
publishPost(requestParameters, options) {
|
|
958
958
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -973,7 +973,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
973
973
|
|
|
974
974
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
975
975
|
return {
|
|
976
|
-
listReplies: async (commentName, size, labelSelector, fieldSelector,
|
|
976
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
977
977
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
978
978
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
979
979
|
let baseOptions;
|
|
@@ -991,15 +991,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
991
991
|
if (size !== void 0) {
|
|
992
992
|
localVarQueryParameter["size"] = size;
|
|
993
993
|
}
|
|
994
|
+
if (page !== void 0) {
|
|
995
|
+
localVarQueryParameter["page"] = page;
|
|
996
|
+
}
|
|
994
997
|
if (labelSelector) {
|
|
995
998
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
996
999
|
}
|
|
997
1000
|
if (fieldSelector) {
|
|
998
1001
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
999
1002
|
}
|
|
1000
|
-
if (page !== void 0) {
|
|
1001
|
-
localVarQueryParameter["page"] = page;
|
|
1002
|
-
}
|
|
1003
1003
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1004
1004
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1005
1005
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1013,8 +1013,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
1013
1013
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
1014
1014
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
1015
1015
|
return {
|
|
1016
|
-
async listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1017
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1016
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
1017
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
|
|
1018
1018
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
@@ -1022,14 +1022,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
1022
1022
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
1023
1023
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
1024
1024
|
return {
|
|
1025
|
-
listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1026
|
-
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector,
|
|
1025
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
1026
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1027
1027
|
}
|
|
1028
1028
|
};
|
|
1029
1029
|
};
|
|
1030
1030
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
1031
1031
|
listReplies(requestParameters = {}, options) {
|
|
1032
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
1032
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
@@ -1058,7 +1058,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1058
1058
|
options: localVarRequestOptions
|
|
1059
1059
|
};
|
|
1060
1060
|
},
|
|
1061
|
-
listSinglePages: async (sort, contributor, sortOrder, publishPhase,
|
|
1061
|
+
listSinglePages: async (sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1062
1062
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1063
1063
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1064
1064
|
let baseOptions;
|
|
@@ -1073,6 +1073,12 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1073
1073
|
if (sort !== void 0) {
|
|
1074
1074
|
localVarQueryParameter["sort"] = sort;
|
|
1075
1075
|
}
|
|
1076
|
+
if (visible !== void 0) {
|
|
1077
|
+
localVarQueryParameter["visible"] = visible;
|
|
1078
|
+
}
|
|
1079
|
+
if (keyword !== void 0) {
|
|
1080
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1081
|
+
}
|
|
1076
1082
|
if (contributor) {
|
|
1077
1083
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1078
1084
|
}
|
|
@@ -1082,24 +1088,18 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1082
1088
|
if (publishPhase !== void 0) {
|
|
1083
1089
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1084
1090
|
}
|
|
1085
|
-
if (visible !== void 0) {
|
|
1086
|
-
localVarQueryParameter["visible"] = visible;
|
|
1087
|
-
}
|
|
1088
|
-
if (keyword !== void 0) {
|
|
1089
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1090
|
-
}
|
|
1091
1091
|
if (size !== void 0) {
|
|
1092
1092
|
localVarQueryParameter["size"] = size;
|
|
1093
1093
|
}
|
|
1094
|
+
if (page !== void 0) {
|
|
1095
|
+
localVarQueryParameter["page"] = page;
|
|
1096
|
+
}
|
|
1094
1097
|
if (labelSelector) {
|
|
1095
1098
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1096
1099
|
}
|
|
1097
1100
|
if (fieldSelector) {
|
|
1098
1101
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1099
1102
|
}
|
|
1100
|
-
if (page !== void 0) {
|
|
1101
|
-
localVarQueryParameter["page"] = page;
|
|
1102
|
-
}
|
|
1103
1103
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1104
1104
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1105
1105
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1186,8 +1186,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1186
1186
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1187
1187
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1188
1188
|
},
|
|
1189
|
-
async listSinglePages(sort, contributor, sortOrder, publishPhase,
|
|
1190
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, contributor, sortOrder, publishPhase,
|
|
1189
|
+
async listSinglePages(sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options) {
|
|
1190
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options);
|
|
1191
1191
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1192
1192
|
},
|
|
1193
1193
|
async publishSinglePage(name, options) {
|
|
@@ -1210,8 +1210,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1210
1210
|
draftSinglePage(singlePageRequest, options) {
|
|
1211
1211
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1212
1212
|
},
|
|
1213
|
-
listSinglePages(sort, contributor, sortOrder, publishPhase,
|
|
1214
|
-
return localVarFp.listSinglePages(sort, contributor, sortOrder, publishPhase,
|
|
1213
|
+
listSinglePages(sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options) {
|
|
1214
|
+
return localVarFp.listSinglePages(sort, visible, keyword, contributor, sortOrder, publishPhase, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1215
1215
|
},
|
|
1216
1216
|
publishSinglePage(name, options) {
|
|
1217
1217
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1229,7 +1229,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1229
1229
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1230
1230
|
}
|
|
1231
1231
|
listSinglePages(requestParameters = {}, options) {
|
|
1232
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1232
|
+
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));
|
|
1233
1233
|
}
|
|
1234
1234
|
publishSinglePage(requestParameters, options) {
|
|
1235
1235
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1291,6 +1291,89 @@ class ApiConsoleHaloRunV1alpha1StatsApi extends BaseAPI {
|
|
|
1291
1291
|
|
|
1292
1292
|
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
1293
1293
|
return {
|
|
1294
|
+
activateTheme: async (name, options = {}) => {
|
|
1295
|
+
assertParamExists("activateTheme", "name", name);
|
|
1296
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/activation`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1297
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1298
|
+
let baseOptions;
|
|
1299
|
+
if (configuration) {
|
|
1300
|
+
baseOptions = configuration.baseOptions;
|
|
1301
|
+
}
|
|
1302
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1303
|
+
const localVarHeaderParameter = {};
|
|
1304
|
+
const localVarQueryParameter = {};
|
|
1305
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1306
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1307
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1308
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1309
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1310
|
+
return {
|
|
1311
|
+
url: toPathString(localVarUrlObj),
|
|
1312
|
+
options: localVarRequestOptions
|
|
1313
|
+
};
|
|
1314
|
+
},
|
|
1315
|
+
fetchActivatedTheme: async (options = {}) => {
|
|
1316
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/-/activation`;
|
|
1317
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1318
|
+
let baseOptions;
|
|
1319
|
+
if (configuration) {
|
|
1320
|
+
baseOptions = configuration.baseOptions;
|
|
1321
|
+
}
|
|
1322
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1323
|
+
const localVarHeaderParameter = {};
|
|
1324
|
+
const localVarQueryParameter = {};
|
|
1325
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1326
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1327
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1328
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1329
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1330
|
+
return {
|
|
1331
|
+
url: toPathString(localVarUrlObj),
|
|
1332
|
+
options: localVarRequestOptions
|
|
1333
|
+
};
|
|
1334
|
+
},
|
|
1335
|
+
fetchThemeConfig: async (name, options = {}) => {
|
|
1336
|
+
assertParamExists("fetchThemeConfig", "name", name);
|
|
1337
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1338
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1339
|
+
let baseOptions;
|
|
1340
|
+
if (configuration) {
|
|
1341
|
+
baseOptions = configuration.baseOptions;
|
|
1342
|
+
}
|
|
1343
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1344
|
+
const localVarHeaderParameter = {};
|
|
1345
|
+
const localVarQueryParameter = {};
|
|
1346
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1347
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1348
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1349
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1350
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1351
|
+
return {
|
|
1352
|
+
url: toPathString(localVarUrlObj),
|
|
1353
|
+
options: localVarRequestOptions
|
|
1354
|
+
};
|
|
1355
|
+
},
|
|
1356
|
+
fetchThemeSetting: async (name, options = {}) => {
|
|
1357
|
+
assertParamExists("fetchThemeSetting", "name", name);
|
|
1358
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/setting`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1359
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1360
|
+
let baseOptions;
|
|
1361
|
+
if (configuration) {
|
|
1362
|
+
baseOptions = configuration.baseOptions;
|
|
1363
|
+
}
|
|
1364
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1365
|
+
const localVarHeaderParameter = {};
|
|
1366
|
+
const localVarQueryParameter = {};
|
|
1367
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1368
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1369
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1370
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1371
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1372
|
+
return {
|
|
1373
|
+
url: toPathString(localVarUrlObj),
|
|
1374
|
+
options: localVarRequestOptions
|
|
1375
|
+
};
|
|
1376
|
+
},
|
|
1294
1377
|
installTheme: async (file, options = {}) => {
|
|
1295
1378
|
assertParamExists("installTheme", "file", file);
|
|
1296
1379
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/install`;
|
|
@@ -1318,7 +1401,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1318
1401
|
options: localVarRequestOptions
|
|
1319
1402
|
};
|
|
1320
1403
|
},
|
|
1321
|
-
listThemes: async (uninstalled, size, labelSelector, fieldSelector,
|
|
1404
|
+
listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
1322
1405
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1323
1406
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1324
1407
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1337,15 +1420,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1337
1420
|
if (size !== void 0) {
|
|
1338
1421
|
localVarQueryParameter["size"] = size;
|
|
1339
1422
|
}
|
|
1423
|
+
if (page !== void 0) {
|
|
1424
|
+
localVarQueryParameter["page"] = page;
|
|
1425
|
+
}
|
|
1340
1426
|
if (labelSelector) {
|
|
1341
1427
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1342
1428
|
}
|
|
1343
1429
|
if (fieldSelector) {
|
|
1344
1430
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1345
1431
|
}
|
|
1346
|
-
if (page !== void 0) {
|
|
1347
|
-
localVarQueryParameter["page"] = page;
|
|
1348
|
-
}
|
|
1349
1432
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1350
1433
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1351
1434
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1396,6 +1479,30 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1396
1479
|
options: localVarRequestOptions
|
|
1397
1480
|
};
|
|
1398
1481
|
},
|
|
1482
|
+
updateThemeConfig: async (name, configMap, options = {}) => {
|
|
1483
|
+
assertParamExists("updateThemeConfig", "name", name);
|
|
1484
|
+
assertParamExists("updateThemeConfig", "configMap", configMap);
|
|
1485
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/config`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1486
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1487
|
+
let baseOptions;
|
|
1488
|
+
if (configuration) {
|
|
1489
|
+
baseOptions = configuration.baseOptions;
|
|
1490
|
+
}
|
|
1491
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1492
|
+
const localVarHeaderParameter = {};
|
|
1493
|
+
const localVarQueryParameter = {};
|
|
1494
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1495
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1496
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1497
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1498
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1499
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1500
|
+
localVarRequestOptions.data = serializeDataIfNeeded(configMap, localVarRequestOptions, configuration);
|
|
1501
|
+
return {
|
|
1502
|
+
url: toPathString(localVarUrlObj),
|
|
1503
|
+
options: localVarRequestOptions
|
|
1504
|
+
};
|
|
1505
|
+
},
|
|
1399
1506
|
upgradeTheme: async (name, file, options = {}) => {
|
|
1400
1507
|
assertParamExists("upgradeTheme", "name", name);
|
|
1401
1508
|
assertParamExists("upgradeTheme", "file", file);
|
|
@@ -1429,12 +1536,28 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1429
1536
|
const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
1430
1537
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
|
1431
1538
|
return {
|
|
1539
|
+
async activateTheme(name, options) {
|
|
1540
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.activateTheme(name, options);
|
|
1541
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1542
|
+
},
|
|
1543
|
+
async fetchActivatedTheme(options) {
|
|
1544
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchActivatedTheme(options);
|
|
1545
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1546
|
+
},
|
|
1547
|
+
async fetchThemeConfig(name, options) {
|
|
1548
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchThemeConfig(name, options);
|
|
1549
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1550
|
+
},
|
|
1551
|
+
async fetchThemeSetting(name, options) {
|
|
1552
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchThemeSetting(name, options);
|
|
1553
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1554
|
+
},
|
|
1432
1555
|
async installTheme(file, options) {
|
|
1433
1556
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1434
1557
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1435
1558
|
},
|
|
1436
|
-
async listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1437
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1559
|
+
async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1560
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
|
|
1438
1561
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1439
1562
|
},
|
|
1440
1563
|
async reload(name, options) {
|
|
@@ -1445,6 +1568,10 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1445
1568
|
const localVarAxiosArgs = await localVarAxiosParamCreator.resetThemeConfig(name, options);
|
|
1446
1569
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1447
1570
|
},
|
|
1571
|
+
async updateThemeConfig(name, configMap, options) {
|
|
1572
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateThemeConfig(name, configMap, options);
|
|
1573
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1574
|
+
},
|
|
1448
1575
|
async upgradeTheme(name, file, options) {
|
|
1449
1576
|
const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeTheme(name, file, options);
|
|
1450
1577
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
@@ -1454,11 +1581,23 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1454
1581
|
const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePath, axios) {
|
|
1455
1582
|
const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration);
|
|
1456
1583
|
return {
|
|
1584
|
+
activateTheme(name, options) {
|
|
1585
|
+
return localVarFp.activateTheme(name, options).then((request) => request(axios, basePath));
|
|
1586
|
+
},
|
|
1587
|
+
fetchActivatedTheme(options) {
|
|
1588
|
+
return localVarFp.fetchActivatedTheme(options).then((request) => request(axios, basePath));
|
|
1589
|
+
},
|
|
1590
|
+
fetchThemeConfig(name, options) {
|
|
1591
|
+
return localVarFp.fetchThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1592
|
+
},
|
|
1593
|
+
fetchThemeSetting(name, options) {
|
|
1594
|
+
return localVarFp.fetchThemeSetting(name, options).then((request) => request(axios, basePath));
|
|
1595
|
+
},
|
|
1457
1596
|
installTheme(file, options) {
|
|
1458
1597
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1459
1598
|
},
|
|
1460
|
-
listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1461
|
-
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector,
|
|
1599
|
+
listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1600
|
+
return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1462
1601
|
},
|
|
1463
1602
|
reload(name, options) {
|
|
1464
1603
|
return localVarFp.reload(name, options).then((request) => request(axios, basePath));
|
|
@@ -1466,17 +1605,32 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1466
1605
|
resetThemeConfig(name, options) {
|
|
1467
1606
|
return localVarFp.resetThemeConfig(name, options).then((request) => request(axios, basePath));
|
|
1468
1607
|
},
|
|
1608
|
+
updateThemeConfig(name, configMap, options) {
|
|
1609
|
+
return localVarFp.updateThemeConfig(name, configMap, options).then((request) => request(axios, basePath));
|
|
1610
|
+
},
|
|
1469
1611
|
upgradeTheme(name, file, options) {
|
|
1470
1612
|
return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
|
|
1471
1613
|
}
|
|
1472
1614
|
};
|
|
1473
1615
|
};
|
|
1474
1616
|
class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
1617
|
+
activateTheme(requestParameters, options) {
|
|
1618
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).activateTheme(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1619
|
+
}
|
|
1620
|
+
fetchActivatedTheme(options) {
|
|
1621
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchActivatedTheme(options).then((request) => request(this.axios, this.basePath));
|
|
1622
|
+
}
|
|
1623
|
+
fetchThemeConfig(requestParameters, options) {
|
|
1624
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1625
|
+
}
|
|
1626
|
+
fetchThemeSetting(requestParameters, options) {
|
|
1627
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).fetchThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1628
|
+
}
|
|
1475
1629
|
installTheme(requestParameters, options) {
|
|
1476
1630
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1477
1631
|
}
|
|
1478
1632
|
listThemes(requestParameters, options) {
|
|
1479
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1633
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1480
1634
|
}
|
|
1481
1635
|
reload(requestParameters, options) {
|
|
1482
1636
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1484,6 +1638,9 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1484
1638
|
resetThemeConfig(requestParameters, options) {
|
|
1485
1639
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).resetThemeConfig(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1486
1640
|
}
|
|
1641
|
+
updateThemeConfig(requestParameters, options) {
|
|
1642
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).updateThemeConfig(requestParameters.name, requestParameters.configMap, options).then((request) => request(this.axios, this.basePath));
|
|
1643
|
+
}
|
|
1487
1644
|
upgradeTheme(requestParameters, options) {
|
|
1488
1645
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1489
1646
|
}
|
|
@@ -1873,7 +2030,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1873
2030
|
|
|
1874
2031
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1875
2032
|
return {
|
|
1876
|
-
searchPost: async (keyword, highlightPreTag, highlightPostTag,
|
|
2033
|
+
searchPost: async (keyword, limit, highlightPreTag, highlightPostTag, options = {}) => {
|
|
1877
2034
|
assertParamExists("searchPost", "keyword", keyword);
|
|
1878
2035
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
1879
2036
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1886,18 +2043,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1886
2043
|
const localVarQueryParameter = {};
|
|
1887
2044
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1888
2045
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1889
|
-
if (highlightPreTag !== void 0) {
|
|
1890
|
-
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1891
|
-
}
|
|
1892
|
-
if (highlightPostTag !== void 0) {
|
|
1893
|
-
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1894
|
-
}
|
|
1895
2046
|
if (limit !== void 0) {
|
|
1896
2047
|
localVarQueryParameter["limit"] = limit;
|
|
1897
2048
|
}
|
|
1898
2049
|
if (keyword !== void 0) {
|
|
1899
2050
|
localVarQueryParameter["keyword"] = keyword;
|
|
1900
2051
|
}
|
|
2052
|
+
if (highlightPreTag !== void 0) {
|
|
2053
|
+
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
2054
|
+
}
|
|
2055
|
+
if (highlightPostTag !== void 0) {
|
|
2056
|
+
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
2057
|
+
}
|
|
1901
2058
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1902
2059
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1903
2060
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1911,8 +2068,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1911
2068
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
1912
2069
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
1913
2070
|
return {
|
|
1914
|
-
async searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1915
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
2071
|
+
async searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
2072
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options);
|
|
1916
2073
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1917
2074
|
}
|
|
1918
2075
|
};
|
|
@@ -1920,14 +2077,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
1920
2077
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
1921
2078
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
1922
2079
|
return {
|
|
1923
|
-
searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1924
|
-
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
2080
|
+
searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
2081
|
+
return localVarFp.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options).then((request) => request(axios, basePath));
|
|
1925
2082
|
}
|
|
1926
2083
|
};
|
|
1927
2084
|
};
|
|
1928
2085
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
1929
2086
|
searchPost(requestParameters, options) {
|
|
1930
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
2087
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(this.axios, this.basePath));
|
|
1931
2088
|
}
|
|
1932
2089
|
}
|
|
1933
2090
|
|