@halo-dev/api-client 0.0.47 → 0.0.48
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 +167 -102
- package/dist/index.d.ts +273 -210
- package/dist/index.mjs +167 -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,
|
|
80
|
+
searchAttachments: async (policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, 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;
|
|
@@ -92,9 +92,6 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
92
92
|
if (policy !== void 0) {
|
|
93
93
|
localVarQueryParameter["policy"] = policy;
|
|
94
94
|
}
|
|
95
|
-
if (sort) {
|
|
96
|
-
localVarQueryParameter["sort"] = Array.from(sort);
|
|
97
|
-
}
|
|
98
95
|
if (displayName !== void 0) {
|
|
99
96
|
localVarQueryParameter["displayName"] = displayName;
|
|
100
97
|
}
|
|
@@ -107,15 +104,15 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
107
104
|
if (size !== void 0) {
|
|
108
105
|
localVarQueryParameter["size"] = size;
|
|
109
106
|
}
|
|
110
|
-
if (page !== void 0) {
|
|
111
|
-
localVarQueryParameter["page"] = page;
|
|
112
|
-
}
|
|
113
107
|
if (labelSelector) {
|
|
114
108
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
115
109
|
}
|
|
116
110
|
if (fieldSelector) {
|
|
117
111
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
118
112
|
}
|
|
113
|
+
if (page !== void 0) {
|
|
114
|
+
localVarQueryParameter["page"] = page;
|
|
115
|
+
}
|
|
119
116
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
120
117
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
118
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -163,8 +160,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
163
160
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
164
161
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
165
162
|
return {
|
|
166
|
-
async searchAttachments(policy,
|
|
167
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy,
|
|
163
|
+
async searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
164
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options);
|
|
168
165
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
169
166
|
},
|
|
170
167
|
async uploadAttachment(file, policyName, groupName, options) {
|
|
@@ -176,8 +173,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
176
173
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
177
174
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
178
175
|
return {
|
|
179
|
-
searchAttachments(policy,
|
|
180
|
-
return localVarFp.searchAttachments(policy,
|
|
176
|
+
searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options) {
|
|
177
|
+
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
181
178
|
},
|
|
182
179
|
uploadAttachment(file, policyName, groupName, options) {
|
|
183
180
|
return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
|
|
@@ -186,7 +183,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
|
|
|
186
183
|
};
|
|
187
184
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
188
185
|
searchAttachments(requestParameters = {}, options) {
|
|
189
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.
|
|
186
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
190
187
|
}
|
|
191
188
|
uploadAttachment(requestParameters, options) {
|
|
192
189
|
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -242,7 +239,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
242
239
|
options: localVarRequestOptions
|
|
243
240
|
};
|
|
244
241
|
},
|
|
245
|
-
listComments: async (sort,
|
|
242
|
+
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
246
243
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
247
244
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
248
245
|
let baseOptions;
|
|
@@ -257,15 +254,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
257
254
|
if (sort !== void 0) {
|
|
258
255
|
localVarQueryParameter["sort"] = sort;
|
|
259
256
|
}
|
|
260
|
-
if (keyword !== void 0) {
|
|
261
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
262
|
-
}
|
|
263
|
-
if (hidden !== void 0) {
|
|
264
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
265
|
-
}
|
|
266
|
-
if (top !== void 0) {
|
|
267
|
-
localVarQueryParameter["top"] = top;
|
|
268
|
-
}
|
|
269
257
|
if (sortOrder !== void 0) {
|
|
270
258
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
271
259
|
}
|
|
@@ -287,18 +275,27 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
287
275
|
if (subjectName !== void 0) {
|
|
288
276
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
289
277
|
}
|
|
278
|
+
if (keyword !== void 0) {
|
|
279
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
280
|
+
}
|
|
281
|
+
if (hidden !== void 0) {
|
|
282
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
283
|
+
}
|
|
284
|
+
if (top !== void 0) {
|
|
285
|
+
localVarQueryParameter["top"] = top;
|
|
286
|
+
}
|
|
290
287
|
if (size !== void 0) {
|
|
291
288
|
localVarQueryParameter["size"] = size;
|
|
292
289
|
}
|
|
293
|
-
if (page !== void 0) {
|
|
294
|
-
localVarQueryParameter["page"] = page;
|
|
295
|
-
}
|
|
296
290
|
if (labelSelector) {
|
|
297
291
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
298
292
|
}
|
|
299
293
|
if (fieldSelector) {
|
|
300
294
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
301
295
|
}
|
|
296
|
+
if (page !== void 0) {
|
|
297
|
+
localVarQueryParameter["page"] = page;
|
|
298
|
+
}
|
|
302
299
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
303
300
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
304
301
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -320,8 +317,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
320
317
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
321
318
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
322
319
|
},
|
|
323
|
-
async listComments(sort,
|
|
324
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort,
|
|
320
|
+
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
321
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
|
|
325
322
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
326
323
|
}
|
|
327
324
|
};
|
|
@@ -335,8 +332,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
335
332
|
createReply(name, replyRequest, options) {
|
|
336
333
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
337
334
|
},
|
|
338
|
-
listComments(sort,
|
|
339
|
-
return localVarFp.listComments(sort,
|
|
335
|
+
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
336
|
+
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
340
337
|
}
|
|
341
338
|
};
|
|
342
339
|
};
|
|
@@ -348,7 +345,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
348
345
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
349
346
|
}
|
|
350
347
|
listComments(requestParameters = {}, options) {
|
|
351
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.
|
|
348
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
352
349
|
}
|
|
353
350
|
}
|
|
354
351
|
|
|
@@ -543,7 +540,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
543
540
|
options: localVarRequestOptions
|
|
544
541
|
};
|
|
545
542
|
},
|
|
546
|
-
listPlugins: async (sort, enabled, keyword, size,
|
|
543
|
+
listPlugins: async (sort, enabled, keyword, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
547
544
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
548
545
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
549
546
|
let baseOptions;
|
|
@@ -567,15 +564,15 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
567
564
|
if (size !== void 0) {
|
|
568
565
|
localVarQueryParameter["size"] = size;
|
|
569
566
|
}
|
|
570
|
-
if (page !== void 0) {
|
|
571
|
-
localVarQueryParameter["page"] = page;
|
|
572
|
-
}
|
|
573
567
|
if (labelSelector) {
|
|
574
568
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
575
569
|
}
|
|
576
570
|
if (fieldSelector) {
|
|
577
571
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
578
572
|
}
|
|
573
|
+
if (page !== void 0) {
|
|
574
|
+
localVarQueryParameter["page"] = page;
|
|
575
|
+
}
|
|
579
576
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
580
577
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
581
578
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -621,8 +618,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
621
618
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
622
619
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
623
620
|
},
|
|
624
|
-
async listPlugins(sort, enabled, keyword, size,
|
|
625
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size,
|
|
621
|
+
async listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
622
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options);
|
|
626
623
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
627
624
|
},
|
|
628
625
|
async upgradePlugin(name, file, options) {
|
|
@@ -637,8 +634,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
637
634
|
installPlugin(file, options) {
|
|
638
635
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
639
636
|
},
|
|
640
|
-
listPlugins(sort, enabled, keyword, size,
|
|
641
|
-
return localVarFp.listPlugins(sort, enabled, keyword, size,
|
|
637
|
+
listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
638
|
+
return localVarFp.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
642
639
|
},
|
|
643
640
|
upgradePlugin(name, file, options) {
|
|
644
641
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -650,7 +647,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
650
647
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
651
648
|
}
|
|
652
649
|
listPlugins(requestParameters = {}, options) {
|
|
653
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.
|
|
650
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
654
651
|
}
|
|
655
652
|
upgradePlugin(requestParameters, options) {
|
|
656
653
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -682,7 +679,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
682
679
|
options: localVarRequestOptions
|
|
683
680
|
};
|
|
684
681
|
},
|
|
685
|
-
listPosts: async (sort,
|
|
682
|
+
listPosts: async (sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
686
683
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
687
684
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
688
685
|
let baseOptions;
|
|
@@ -697,15 +694,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
697
694
|
if (sort !== void 0) {
|
|
698
695
|
localVarQueryParameter["sort"] = sort;
|
|
699
696
|
}
|
|
700
|
-
if (tag) {
|
|
701
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
702
|
-
}
|
|
703
|
-
if (keyword !== void 0) {
|
|
704
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
705
|
-
}
|
|
706
|
-
if (visible !== void 0) {
|
|
707
|
-
localVarQueryParameter["visible"] = visible;
|
|
708
|
-
}
|
|
709
697
|
if (contributor) {
|
|
710
698
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
711
699
|
}
|
|
@@ -718,18 +706,27 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
718
706
|
if (sortOrder !== void 0) {
|
|
719
707
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
720
708
|
}
|
|
709
|
+
if (tag) {
|
|
710
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
711
|
+
}
|
|
712
|
+
if (keyword !== void 0) {
|
|
713
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
714
|
+
}
|
|
715
|
+
if (visible !== void 0) {
|
|
716
|
+
localVarQueryParameter["visible"] = visible;
|
|
717
|
+
}
|
|
721
718
|
if (size !== void 0) {
|
|
722
719
|
localVarQueryParameter["size"] = size;
|
|
723
720
|
}
|
|
724
|
-
if (page !== void 0) {
|
|
725
|
-
localVarQueryParameter["page"] = page;
|
|
726
|
-
}
|
|
727
721
|
if (labelSelector) {
|
|
728
722
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
729
723
|
}
|
|
730
724
|
if (fieldSelector) {
|
|
731
725
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
732
726
|
}
|
|
727
|
+
if (page !== void 0) {
|
|
728
|
+
localVarQueryParameter["page"] = page;
|
|
729
|
+
}
|
|
733
730
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
734
731
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
735
732
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -827,6 +824,30 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
827
824
|
url: toPathString(localVarUrlObj),
|
|
828
825
|
options: localVarRequestOptions
|
|
829
826
|
};
|
|
827
|
+
},
|
|
828
|
+
updatePostContent: async (name, content, options = {}) => {
|
|
829
|
+
assertParamExists("updatePostContent", "name", name);
|
|
830
|
+
assertParamExists("updatePostContent", "content", content);
|
|
831
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
832
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
833
|
+
let baseOptions;
|
|
834
|
+
if (configuration) {
|
|
835
|
+
baseOptions = configuration.baseOptions;
|
|
836
|
+
}
|
|
837
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
838
|
+
const localVarHeaderParameter = {};
|
|
839
|
+
const localVarQueryParameter = {};
|
|
840
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
841
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
842
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
843
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
844
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
845
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
846
|
+
localVarRequestOptions.data = serializeDataIfNeeded(content, localVarRequestOptions, configuration);
|
|
847
|
+
return {
|
|
848
|
+
url: toPathString(localVarUrlObj),
|
|
849
|
+
options: localVarRequestOptions
|
|
850
|
+
};
|
|
830
851
|
}
|
|
831
852
|
};
|
|
832
853
|
};
|
|
@@ -837,8 +858,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
837
858
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
838
859
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
839
860
|
},
|
|
840
|
-
async listPosts(sort,
|
|
841
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort,
|
|
861
|
+
async listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
862
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
842
863
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
843
864
|
},
|
|
844
865
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -856,6 +877,10 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
856
877
|
async updateDraftPost(name, postRequest, options) {
|
|
857
878
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost(name, postRequest, options);
|
|
858
879
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
880
|
+
},
|
|
881
|
+
async updatePostContent(name, content, options) {
|
|
882
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePostContent(name, content, options);
|
|
883
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
859
884
|
}
|
|
860
885
|
};
|
|
861
886
|
};
|
|
@@ -865,8 +890,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
865
890
|
draftPost(postRequest, options) {
|
|
866
891
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
867
892
|
},
|
|
868
|
-
listPosts(sort,
|
|
869
|
-
return localVarFp.listPosts(sort,
|
|
893
|
+
listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
894
|
+
return localVarFp.listPosts(sort, contributor, publishPhase, category, sortOrder, tag, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
870
895
|
},
|
|
871
896
|
publishPost(name, headSnapshot, options) {
|
|
872
897
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -879,6 +904,9 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
879
904
|
},
|
|
880
905
|
updateDraftPost(name, postRequest, options) {
|
|
881
906
|
return localVarFp.updateDraftPost(name, postRequest, options).then((request) => request(axios, basePath));
|
|
907
|
+
},
|
|
908
|
+
updatePostContent(name, content, options) {
|
|
909
|
+
return localVarFp.updatePostContent(name, content, options).then((request) => request(axios, basePath));
|
|
882
910
|
}
|
|
883
911
|
};
|
|
884
912
|
};
|
|
@@ -887,7 +915,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
887
915
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
888
916
|
}
|
|
889
917
|
listPosts(requestParameters = {}, options) {
|
|
890
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
918
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.contributor, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.tag, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
891
919
|
}
|
|
892
920
|
publishPost(requestParameters, options) {
|
|
893
921
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -901,11 +929,14 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
901
929
|
updateDraftPost(requestParameters, options) {
|
|
902
930
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
903
931
|
}
|
|
932
|
+
updatePostContent(requestParameters, options) {
|
|
933
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updatePostContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
|
|
934
|
+
}
|
|
904
935
|
}
|
|
905
936
|
|
|
906
937
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
907
938
|
return {
|
|
908
|
-
listReplies: async (commentName, size,
|
|
939
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
909
940
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
910
941
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
911
942
|
let baseOptions;
|
|
@@ -923,15 +954,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
923
954
|
if (size !== void 0) {
|
|
924
955
|
localVarQueryParameter["size"] = size;
|
|
925
956
|
}
|
|
926
|
-
if (page !== void 0) {
|
|
927
|
-
localVarQueryParameter["page"] = page;
|
|
928
|
-
}
|
|
929
957
|
if (labelSelector) {
|
|
930
958
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
931
959
|
}
|
|
932
960
|
if (fieldSelector) {
|
|
933
961
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
934
962
|
}
|
|
963
|
+
if (page !== void 0) {
|
|
964
|
+
localVarQueryParameter["page"] = page;
|
|
965
|
+
}
|
|
935
966
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
936
967
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
937
968
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -945,8 +976,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
945
976
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
946
977
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
947
978
|
return {
|
|
948
|
-
async listReplies(commentName, size,
|
|
949
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size,
|
|
979
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
980
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
950
981
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
951
982
|
}
|
|
952
983
|
};
|
|
@@ -954,14 +985,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
954
985
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
955
986
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
956
987
|
return {
|
|
957
|
-
listReplies(commentName, size,
|
|
958
|
-
return localVarFp.listReplies(commentName, size,
|
|
988
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
989
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
959
990
|
}
|
|
960
991
|
};
|
|
961
992
|
};
|
|
962
993
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
963
994
|
listReplies(requestParameters = {}, options) {
|
|
964
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.
|
|
995
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
965
996
|
}
|
|
966
997
|
}
|
|
967
998
|
|
|
@@ -990,7 +1021,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
990
1021
|
options: localVarRequestOptions
|
|
991
1022
|
};
|
|
992
1023
|
},
|
|
993
|
-
listSinglePages: async (sort,
|
|
1024
|
+
listSinglePages: async (sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
994
1025
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
995
1026
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
996
1027
|
let baseOptions;
|
|
@@ -1005,12 +1036,6 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1005
1036
|
if (sort !== void 0) {
|
|
1006
1037
|
localVarQueryParameter["sort"] = sort;
|
|
1007
1038
|
}
|
|
1008
|
-
if (keyword !== void 0) {
|
|
1009
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1010
|
-
}
|
|
1011
|
-
if (visible !== void 0) {
|
|
1012
|
-
localVarQueryParameter["visible"] = visible;
|
|
1013
|
-
}
|
|
1014
1039
|
if (contributor) {
|
|
1015
1040
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1016
1041
|
}
|
|
@@ -1020,18 +1045,24 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1020
1045
|
if (sortOrder !== void 0) {
|
|
1021
1046
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1022
1047
|
}
|
|
1048
|
+
if (keyword !== void 0) {
|
|
1049
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1050
|
+
}
|
|
1051
|
+
if (visible !== void 0) {
|
|
1052
|
+
localVarQueryParameter["visible"] = visible;
|
|
1053
|
+
}
|
|
1023
1054
|
if (size !== void 0) {
|
|
1024
1055
|
localVarQueryParameter["size"] = size;
|
|
1025
1056
|
}
|
|
1026
|
-
if (page !== void 0) {
|
|
1027
|
-
localVarQueryParameter["page"] = page;
|
|
1028
|
-
}
|
|
1029
1057
|
if (labelSelector) {
|
|
1030
1058
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1031
1059
|
}
|
|
1032
1060
|
if (fieldSelector) {
|
|
1033
1061
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1034
1062
|
}
|
|
1063
|
+
if (page !== void 0) {
|
|
1064
|
+
localVarQueryParameter["page"] = page;
|
|
1065
|
+
}
|
|
1035
1066
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1036
1067
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1037
1068
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1084,6 +1115,30 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1084
1115
|
url: toPathString(localVarUrlObj),
|
|
1085
1116
|
options: localVarRequestOptions
|
|
1086
1117
|
};
|
|
1118
|
+
},
|
|
1119
|
+
updateSinglePageContent: async (name, content, options = {}) => {
|
|
1120
|
+
assertParamExists("updateSinglePageContent", "name", name);
|
|
1121
|
+
assertParamExists("updateSinglePageContent", "content", content);
|
|
1122
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1123
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1124
|
+
let baseOptions;
|
|
1125
|
+
if (configuration) {
|
|
1126
|
+
baseOptions = configuration.baseOptions;
|
|
1127
|
+
}
|
|
1128
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1129
|
+
const localVarHeaderParameter = {};
|
|
1130
|
+
const localVarQueryParameter = {};
|
|
1131
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1132
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1133
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1136
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1137
|
+
localVarRequestOptions.data = serializeDataIfNeeded(content, localVarRequestOptions, configuration);
|
|
1138
|
+
return {
|
|
1139
|
+
url: toPathString(localVarUrlObj),
|
|
1140
|
+
options: localVarRequestOptions
|
|
1141
|
+
};
|
|
1087
1142
|
}
|
|
1088
1143
|
};
|
|
1089
1144
|
};
|
|
@@ -1094,8 +1149,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1094
1149
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1095
1150
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1096
1151
|
},
|
|
1097
|
-
async listSinglePages(sort,
|
|
1098
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort,
|
|
1152
|
+
async listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
1153
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options);
|
|
1099
1154
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1100
1155
|
},
|
|
1101
1156
|
async publishSinglePage(name, options) {
|
|
@@ -1105,6 +1160,10 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1105
1160
|
async updateDraftSinglePage(name, singlePageRequest, options) {
|
|
1106
1161
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftSinglePage(name, singlePageRequest, options);
|
|
1107
1162
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1163
|
+
},
|
|
1164
|
+
async updateSinglePageContent(name, content, options) {
|
|
1165
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSinglePageContent(name, content, options);
|
|
1166
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1108
1167
|
}
|
|
1109
1168
|
};
|
|
1110
1169
|
};
|
|
@@ -1114,14 +1173,17 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1114
1173
|
draftSinglePage(singlePageRequest, options) {
|
|
1115
1174
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1116
1175
|
},
|
|
1117
|
-
listSinglePages(sort,
|
|
1118
|
-
return localVarFp.listSinglePages(sort,
|
|
1176
|
+
listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options) {
|
|
1177
|
+
return localVarFp.listSinglePages(sort, contributor, publishPhase, sortOrder, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1119
1178
|
},
|
|
1120
1179
|
publishSinglePage(name, options) {
|
|
1121
1180
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
1122
1181
|
},
|
|
1123
1182
|
updateDraftSinglePage(name, singlePageRequest, options) {
|
|
1124
1183
|
return localVarFp.updateDraftSinglePage(name, singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1184
|
+
},
|
|
1185
|
+
updateSinglePageContent(name, content, options) {
|
|
1186
|
+
return localVarFp.updateSinglePageContent(name, content, options).then((request) => request(axios, basePath));
|
|
1125
1187
|
}
|
|
1126
1188
|
};
|
|
1127
1189
|
};
|
|
@@ -1130,7 +1192,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1130
1192
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1131
1193
|
}
|
|
1132
1194
|
listSinglePages(requestParameters = {}, options) {
|
|
1133
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.
|
|
1195
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.contributor, requestParameters.publishPhase, requestParameters.sortOrder, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1134
1196
|
}
|
|
1135
1197
|
publishSinglePage(requestParameters, options) {
|
|
1136
1198
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1138,6 +1200,9 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1138
1200
|
updateDraftSinglePage(requestParameters, options) {
|
|
1139
1201
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1140
1202
|
}
|
|
1203
|
+
updateSinglePageContent(requestParameters, options) {
|
|
1204
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateSinglePageContent(requestParameters.name, requestParameters.content, options).then((request) => request(this.axios, this.basePath));
|
|
1205
|
+
}
|
|
1141
1206
|
}
|
|
1142
1207
|
|
|
1143
1208
|
const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function(configuration) {
|
|
@@ -1216,7 +1281,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1216
1281
|
options: localVarRequestOptions
|
|
1217
1282
|
};
|
|
1218
1283
|
},
|
|
1219
|
-
listThemes: async (uninstalled, size,
|
|
1284
|
+
listThemes: async (uninstalled, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
1220
1285
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1221
1286
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1222
1287
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1235,15 +1300,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1235
1300
|
if (size !== void 0) {
|
|
1236
1301
|
localVarQueryParameter["size"] = size;
|
|
1237
1302
|
}
|
|
1238
|
-
if (page !== void 0) {
|
|
1239
|
-
localVarQueryParameter["page"] = page;
|
|
1240
|
-
}
|
|
1241
1303
|
if (labelSelector) {
|
|
1242
1304
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1243
1305
|
}
|
|
1244
1306
|
if (fieldSelector) {
|
|
1245
1307
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1246
1308
|
}
|
|
1309
|
+
if (page !== void 0) {
|
|
1310
|
+
localVarQueryParameter["page"] = page;
|
|
1311
|
+
}
|
|
1247
1312
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1248
1313
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1249
1314
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1310,8 +1375,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1310
1375
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1311
1376
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1312
1377
|
},
|
|
1313
|
-
async listThemes(uninstalled, size,
|
|
1314
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size,
|
|
1378
|
+
async listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
|
|
1379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options);
|
|
1315
1380
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1316
1381
|
},
|
|
1317
1382
|
async reloadThemeSetting(name, options) {
|
|
@@ -1330,8 +1395,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1330
1395
|
installTheme(file, options) {
|
|
1331
1396
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1332
1397
|
},
|
|
1333
|
-
listThemes(uninstalled, size,
|
|
1334
|
-
return localVarFp.listThemes(uninstalled, size,
|
|
1398
|
+
listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
|
|
1399
|
+
return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1335
1400
|
},
|
|
1336
1401
|
reloadThemeSetting(name, options) {
|
|
1337
1402
|
return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
|
|
@@ -1346,7 +1411,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1346
1411
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1347
1412
|
}
|
|
1348
1413
|
listThemes(requestParameters, options) {
|
|
1349
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.
|
|
1414
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1350
1415
|
}
|
|
1351
1416
|
reloadThemeSetting(requestParameters, options) {
|
|
1352
1417
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1707,7 +1772,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1707
1772
|
|
|
1708
1773
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1709
1774
|
return {
|
|
1710
|
-
searchPost: async (keyword,
|
|
1775
|
+
searchPost: async (keyword, highlightPreTag, highlightPostTag, limit, options = {}) => {
|
|
1711
1776
|
assertParamExists("searchPost", "keyword", keyword);
|
|
1712
1777
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
1713
1778
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1720,18 +1785,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1720
1785
|
const localVarQueryParameter = {};
|
|
1721
1786
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1722
1787
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1723
|
-
if (limit !== void 0) {
|
|
1724
|
-
localVarQueryParameter["limit"] = limit;
|
|
1725
|
-
}
|
|
1726
|
-
if (keyword !== void 0) {
|
|
1727
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1728
|
-
}
|
|
1729
1788
|
if (highlightPreTag !== void 0) {
|
|
1730
1789
|
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1731
1790
|
}
|
|
1732
1791
|
if (highlightPostTag !== void 0) {
|
|
1733
1792
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1734
1793
|
}
|
|
1794
|
+
if (limit !== void 0) {
|
|
1795
|
+
localVarQueryParameter["limit"] = limit;
|
|
1796
|
+
}
|
|
1797
|
+
if (keyword !== void 0) {
|
|
1798
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1799
|
+
}
|
|
1735
1800
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1736
1801
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1737
1802
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1745,8 +1810,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1745
1810
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
1746
1811
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
1747
1812
|
return {
|
|
1748
|
-
async searchPost(keyword,
|
|
1749
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword,
|
|
1813
|
+
async searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
|
|
1814
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options);
|
|
1750
1815
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1751
1816
|
}
|
|
1752
1817
|
};
|
|
@@ -1754,14 +1819,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
1754
1819
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
1755
1820
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
1756
1821
|
return {
|
|
1757
|
-
searchPost(keyword,
|
|
1758
|
-
return localVarFp.searchPost(keyword,
|
|
1822
|
+
searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
|
|
1823
|
+
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options).then((request) => request(axios, basePath));
|
|
1759
1824
|
}
|
|
1760
1825
|
};
|
|
1761
1826
|
};
|
|
1762
1827
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
1763
1828
|
searchPost(requestParameters, options) {
|
|
1764
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
1829
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.highlightPreTag, requestParameters.highlightPostTag, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
1765
1830
|
}
|
|
1766
1831
|
}
|
|
1767
1832
|
|