@halo-dev/api-client 0.0.54 → 0.0.56
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 +163 -163
- package/dist/index.d.ts +515 -518
- package/dist/index.mjs +163 -163
- 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 (
|
|
80
|
+
searchAttachments: async (ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, 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;
|
|
@@ -89,26 +89,26 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
89
89
|
const localVarQueryParameter = {};
|
|
90
90
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
91
91
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
92
|
+
if (ungrouped !== void 0) {
|
|
93
|
+
localVarQueryParameter["ungrouped"] = ungrouped;
|
|
94
|
+
}
|
|
95
|
+
if (uploadedBy !== void 0) {
|
|
96
|
+
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
97
|
+
}
|
|
92
98
|
if (policy !== void 0) {
|
|
93
99
|
localVarQueryParameter["policy"] = policy;
|
|
94
100
|
}
|
|
101
|
+
if (group !== void 0) {
|
|
102
|
+
localVarQueryParameter["group"] = group;
|
|
103
|
+
}
|
|
95
104
|
if (sort) {
|
|
96
105
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
97
106
|
}
|
|
98
107
|
if (displayName !== void 0) {
|
|
99
108
|
localVarQueryParameter["displayName"] = displayName;
|
|
100
109
|
}
|
|
101
|
-
if (
|
|
102
|
-
localVarQueryParameter["
|
|
103
|
-
}
|
|
104
|
-
if (ungrouped !== void 0) {
|
|
105
|
-
localVarQueryParameter["ungrouped"] = ungrouped;
|
|
106
|
-
}
|
|
107
|
-
if (uploadedBy !== void 0) {
|
|
108
|
-
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
109
|
-
}
|
|
110
|
-
if (size !== void 0) {
|
|
111
|
-
localVarQueryParameter["size"] = size;
|
|
110
|
+
if (page !== void 0) {
|
|
111
|
+
localVarQueryParameter["page"] = page;
|
|
112
112
|
}
|
|
113
113
|
if (labelSelector) {
|
|
114
114
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
@@ -116,8 +116,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
116
116
|
if (fieldSelector) {
|
|
117
117
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
118
118
|
}
|
|
119
|
-
if (
|
|
120
|
-
localVarQueryParameter["
|
|
119
|
+
if (size !== void 0) {
|
|
120
|
+
localVarQueryParameter["size"] = size;
|
|
121
121
|
}
|
|
122
122
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123
123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -127,9 +127,9 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
127
127
|
options: localVarRequestOptions
|
|
128
128
|
};
|
|
129
129
|
},
|
|
130
|
-
uploadAttachment: async (
|
|
131
|
-
assertParamExists("uploadAttachment", "file", file);
|
|
130
|
+
uploadAttachment: async (policyName, file, groupName, options = {}) => {
|
|
132
131
|
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
132
|
+
assertParamExists("uploadAttachment", "file", file);
|
|
133
133
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
|
|
134
134
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
135
135
|
let baseOptions;
|
|
@@ -142,15 +142,15 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
142
142
|
const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
|
|
143
143
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
144
144
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
145
|
-
if (file !== void 0) {
|
|
146
|
-
localVarFormParams.append("file", file);
|
|
147
|
-
}
|
|
148
145
|
if (policyName !== void 0) {
|
|
149
146
|
localVarFormParams.append("policyName", policyName);
|
|
150
147
|
}
|
|
151
148
|
if (groupName !== void 0) {
|
|
152
149
|
localVarFormParams.append("groupName", groupName);
|
|
153
150
|
}
|
|
151
|
+
if (file !== void 0) {
|
|
152
|
+
localVarFormParams.append("file", file);
|
|
153
|
+
}
|
|
154
154
|
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
155
155
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
156
156
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -166,12 +166,12 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
166
166
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
167
167
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
168
168
|
return {
|
|
169
|
-
async searchAttachments(
|
|
170
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(
|
|
169
|
+
async searchAttachments(ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options) {
|
|
170
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options);
|
|
171
171
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
172
172
|
},
|
|
173
|
-
async uploadAttachment(
|
|
174
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(
|
|
173
|
+
async uploadAttachment(policyName, file, groupName, options) {
|
|
174
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(policyName, file, groupName, options);
|
|
175
175
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
176
176
|
}
|
|
177
177
|
};
|
|
@@ -179,20 +179,20 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
179
179
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
180
180
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
181
181
|
return {
|
|
182
|
-
searchAttachments(
|
|
183
|
-
return localVarFp.searchAttachments(
|
|
182
|
+
searchAttachments(ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options) {
|
|
183
|
+
return localVarFp.searchAttachments(ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
184
184
|
},
|
|
185
|
-
uploadAttachment(
|
|
186
|
-
return localVarFp.uploadAttachment(
|
|
185
|
+
uploadAttachment(policyName, file, groupName, options) {
|
|
186
|
+
return localVarFp.uploadAttachment(policyName, file, groupName, options).then((request) => request(axios, basePath));
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
190
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
191
191
|
searchAttachments(requestParameters = {}, options) {
|
|
192
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.
|
|
192
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.policy, requestParameters.group, requestParameters.sort, requestParameters.displayName, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
193
193
|
}
|
|
194
194
|
uploadAttachment(requestParameters, options) {
|
|
195
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.
|
|
195
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.policyName, requestParameters.file, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
|
|
@@ -245,7 +245,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
245
245
|
options: localVarRequestOptions
|
|
246
246
|
};
|
|
247
247
|
},
|
|
248
|
-
listComments: async (
|
|
248
|
+
listComments: async (sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, 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;
|
|
@@ -257,15 +257,21 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
257
257
|
const localVarQueryParameter = {};
|
|
258
258
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
259
259
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
260
|
-
if (sort !== void 0) {
|
|
261
|
-
localVarQueryParameter["sort"] = sort;
|
|
262
|
-
}
|
|
263
260
|
if (sortOrder !== void 0) {
|
|
264
261
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
265
262
|
}
|
|
263
|
+
if (keyword !== void 0) {
|
|
264
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
265
|
+
}
|
|
266
266
|
if (approved !== void 0) {
|
|
267
267
|
localVarQueryParameter["approved"] = approved;
|
|
268
268
|
}
|
|
269
|
+
if (hidden !== void 0) {
|
|
270
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
271
|
+
}
|
|
272
|
+
if (top !== void 0) {
|
|
273
|
+
localVarQueryParameter["top"] = top;
|
|
274
|
+
}
|
|
269
275
|
if (allowNotification !== void 0) {
|
|
270
276
|
localVarQueryParameter["allowNotification"] = allowNotification;
|
|
271
277
|
}
|
|
@@ -281,17 +287,11 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
281
287
|
if (subjectName !== void 0) {
|
|
282
288
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
283
289
|
}
|
|
284
|
-
if (
|
|
285
|
-
localVarQueryParameter["
|
|
286
|
-
}
|
|
287
|
-
if (hidden !== void 0) {
|
|
288
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
289
|
-
}
|
|
290
|
-
if (top !== void 0) {
|
|
291
|
-
localVarQueryParameter["top"] = top;
|
|
290
|
+
if (sort !== void 0) {
|
|
291
|
+
localVarQueryParameter["sort"] = sort;
|
|
292
292
|
}
|
|
293
|
-
if (
|
|
294
|
-
localVarQueryParameter["
|
|
293
|
+
if (page !== void 0) {
|
|
294
|
+
localVarQueryParameter["page"] = page;
|
|
295
295
|
}
|
|
296
296
|
if (labelSelector) {
|
|
297
297
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
@@ -299,8 +299,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
299
299
|
if (fieldSelector) {
|
|
300
300
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
301
301
|
}
|
|
302
|
-
if (
|
|
303
|
-
localVarQueryParameter["
|
|
302
|
+
if (size !== void 0) {
|
|
303
|
+
localVarQueryParameter["size"] = size;
|
|
304
304
|
}
|
|
305
305
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
306
306
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.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(
|
|
327
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(
|
|
326
|
+
async listComments(sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, options) {
|
|
327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, 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(
|
|
342
|
-
return localVarFp.listComments(
|
|
341
|
+
listComments(sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, options) {
|
|
342
|
+
return localVarFp.listComments(sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, 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.
|
|
354
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sortOrder, requestParameters.keyword, requestParameters.approved, requestParameters.hidden, requestParameters.top, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.sort, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, 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 (
|
|
549
|
+
listPlugins: async (enabled, keyword, sort, page, labelSelector, fieldSelector, size, 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;
|
|
@@ -558,17 +558,17 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
558
558
|
const localVarQueryParameter = {};
|
|
559
559
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
560
560
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
561
|
-
if (
|
|
562
|
-
localVarQueryParameter["
|
|
561
|
+
if (enabled !== void 0) {
|
|
562
|
+
localVarQueryParameter["enabled"] = enabled;
|
|
563
563
|
}
|
|
564
564
|
if (keyword !== void 0) {
|
|
565
565
|
localVarQueryParameter["keyword"] = keyword;
|
|
566
566
|
}
|
|
567
|
-
if (
|
|
568
|
-
localVarQueryParameter["
|
|
567
|
+
if (sort) {
|
|
568
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
569
569
|
}
|
|
570
|
-
if (
|
|
571
|
-
localVarQueryParameter["
|
|
570
|
+
if (page !== void 0) {
|
|
571
|
+
localVarQueryParameter["page"] = page;
|
|
572
572
|
}
|
|
573
573
|
if (labelSelector) {
|
|
574
574
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
@@ -576,8 +576,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
576
576
|
if (fieldSelector) {
|
|
577
577
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
578
578
|
}
|
|
579
|
-
if (
|
|
580
|
-
localVarQueryParameter["
|
|
579
|
+
if (size !== void 0) {
|
|
580
|
+
localVarQueryParameter["size"] = size;
|
|
581
581
|
}
|
|
582
582
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
583
583
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -624,8 +624,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
624
624
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
625
625
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
626
626
|
},
|
|
627
|
-
async listPlugins(
|
|
628
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(
|
|
627
|
+
async listPlugins(enabled, keyword, sort, page, labelSelector, fieldSelector, size, options) {
|
|
628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(enabled, keyword, sort, page, labelSelector, fieldSelector, size, options);
|
|
629
629
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
630
630
|
},
|
|
631
631
|
async upgradePlugin(name, file, options) {
|
|
@@ -640,8 +640,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
640
640
|
installPlugin(file, options) {
|
|
641
641
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
642
642
|
},
|
|
643
|
-
listPlugins(
|
|
644
|
-
return localVarFp.listPlugins(
|
|
643
|
+
listPlugins(enabled, keyword, sort, page, labelSelector, fieldSelector, size, options) {
|
|
644
|
+
return localVarFp.listPlugins(enabled, keyword, sort, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
645
645
|
},
|
|
646
646
|
upgradePlugin(name, file, options) {
|
|
647
647
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -653,7 +653,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
653
653
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
654
654
|
}
|
|
655
655
|
listPlugins(requestParameters = {}, options) {
|
|
656
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.
|
|
656
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.enabled, requestParameters.keyword, requestParameters.sort, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
657
657
|
}
|
|
658
658
|
upgradePlugin(requestParameters, options) {
|
|
659
659
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -685,7 +685,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
685
685
|
options: localVarRequestOptions
|
|
686
686
|
};
|
|
687
687
|
},
|
|
688
|
-
listPosts: async (
|
|
688
|
+
listPosts: async (tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options = {}) => {
|
|
689
689
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
690
690
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
691
691
|
let baseOptions;
|
|
@@ -697,32 +697,32 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
697
697
|
const localVarQueryParameter = {};
|
|
698
698
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
699
699
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
700
|
-
if (
|
|
701
|
-
localVarQueryParameter["
|
|
700
|
+
if (tag) {
|
|
701
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
702
|
+
}
|
|
703
|
+
if (contributor) {
|
|
704
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
702
705
|
}
|
|
703
706
|
if (publishPhase !== void 0) {
|
|
704
707
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
705
708
|
}
|
|
709
|
+
if (visible !== void 0) {
|
|
710
|
+
localVarQueryParameter["visible"] = visible;
|
|
711
|
+
}
|
|
706
712
|
if (category) {
|
|
707
713
|
localVarQueryParameter["category"] = Array.from(category);
|
|
708
714
|
}
|
|
709
715
|
if (sortOrder !== void 0) {
|
|
710
716
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
711
717
|
}
|
|
712
|
-
if (contributor) {
|
|
713
|
-
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
714
|
-
}
|
|
715
718
|
if (keyword !== void 0) {
|
|
716
719
|
localVarQueryParameter["keyword"] = keyword;
|
|
717
720
|
}
|
|
718
|
-
if (
|
|
719
|
-
localVarQueryParameter["
|
|
720
|
-
}
|
|
721
|
-
if (tag) {
|
|
722
|
-
localVarQueryParameter["tag"] = Array.from(tag);
|
|
721
|
+
if (sort !== void 0) {
|
|
722
|
+
localVarQueryParameter["sort"] = sort;
|
|
723
723
|
}
|
|
724
|
-
if (
|
|
725
|
-
localVarQueryParameter["
|
|
724
|
+
if (page !== void 0) {
|
|
725
|
+
localVarQueryParameter["page"] = page;
|
|
726
726
|
}
|
|
727
727
|
if (labelSelector) {
|
|
728
728
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
@@ -730,8 +730,8 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
730
730
|
if (fieldSelector) {
|
|
731
731
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
732
732
|
}
|
|
733
|
-
if (
|
|
734
|
-
localVarQueryParameter["
|
|
733
|
+
if (size !== void 0) {
|
|
734
|
+
localVarQueryParameter["size"] = size;
|
|
735
735
|
}
|
|
736
736
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
737
737
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -864,8 +864,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
864
864
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
865
865
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
866
866
|
},
|
|
867
|
-
async listPosts(
|
|
868
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(
|
|
867
|
+
async listPosts(tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options) {
|
|
868
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options);
|
|
869
869
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
870
870
|
},
|
|
871
871
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -896,8 +896,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
896
896
|
draftPost(postRequest, options) {
|
|
897
897
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
898
898
|
},
|
|
899
|
-
listPosts(
|
|
900
|
-
return localVarFp.listPosts(
|
|
899
|
+
listPosts(tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options) {
|
|
900
|
+
return localVarFp.listPosts(tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
901
901
|
},
|
|
902
902
|
publishPost(name, headSnapshot, options) {
|
|
903
903
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -921,7 +921,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
921
921
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
922
922
|
}
|
|
923
923
|
listPosts(requestParameters = {}, options) {
|
|
924
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.
|
|
924
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.tag, requestParameters.contributor, requestParameters.publishPhase, requestParameters.visible, requestParameters.category, requestParameters.sortOrder, requestParameters.keyword, requestParameters.sort, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
925
925
|
}
|
|
926
926
|
publishPost(requestParameters, options) {
|
|
927
927
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -942,7 +942,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
942
942
|
|
|
943
943
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
944
944
|
return {
|
|
945
|
-
listReplies: async (commentName,
|
|
945
|
+
listReplies: async (commentName, page, labelSelector, fieldSelector, size, options = {}) => {
|
|
946
946
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
947
947
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
948
948
|
let baseOptions;
|
|
@@ -957,8 +957,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
957
957
|
if (commentName !== void 0) {
|
|
958
958
|
localVarQueryParameter["commentName"] = commentName;
|
|
959
959
|
}
|
|
960
|
-
if (
|
|
961
|
-
localVarQueryParameter["
|
|
960
|
+
if (page !== void 0) {
|
|
961
|
+
localVarQueryParameter["page"] = page;
|
|
962
962
|
}
|
|
963
963
|
if (labelSelector) {
|
|
964
964
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
@@ -966,8 +966,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
966
966
|
if (fieldSelector) {
|
|
967
967
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
968
968
|
}
|
|
969
|
-
if (
|
|
970
|
-
localVarQueryParameter["
|
|
969
|
+
if (size !== void 0) {
|
|
970
|
+
localVarQueryParameter["size"] = size;
|
|
971
971
|
}
|
|
972
972
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
973
973
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -982,8 +982,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
982
982
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
983
983
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
984
984
|
return {
|
|
985
|
-
async listReplies(commentName,
|
|
986
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName,
|
|
985
|
+
async listReplies(commentName, page, labelSelector, fieldSelector, size, options) {
|
|
986
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, page, labelSelector, fieldSelector, size, options);
|
|
987
987
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
988
988
|
}
|
|
989
989
|
};
|
|
@@ -991,14 +991,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
991
991
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
992
992
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
993
993
|
return {
|
|
994
|
-
listReplies(commentName,
|
|
995
|
-
return localVarFp.listReplies(commentName,
|
|
994
|
+
listReplies(commentName, page, labelSelector, fieldSelector, size, options) {
|
|
995
|
+
return localVarFp.listReplies(commentName, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
996
996
|
}
|
|
997
997
|
};
|
|
998
998
|
};
|
|
999
999
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
1000
1000
|
listReplies(requestParameters = {}, options) {
|
|
1001
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.
|
|
1001
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
@@ -1027,7 +1027,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1027
1027
|
options: localVarRequestOptions
|
|
1028
1028
|
};
|
|
1029
1029
|
},
|
|
1030
|
-
listSinglePages: async (
|
|
1030
|
+
listSinglePages: async (contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options = {}) => {
|
|
1031
1031
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1032
1032
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1033
1033
|
let baseOptions;
|
|
@@ -1039,26 +1039,26 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1039
1039
|
const localVarQueryParameter = {};
|
|
1040
1040
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1041
1041
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1042
|
-
if (
|
|
1043
|
-
localVarQueryParameter["
|
|
1042
|
+
if (contributor) {
|
|
1043
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1044
1044
|
}
|
|
1045
1045
|
if (publishPhase !== void 0) {
|
|
1046
1046
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1047
1047
|
}
|
|
1048
|
+
if (visible !== void 0) {
|
|
1049
|
+
localVarQueryParameter["visible"] = visible;
|
|
1050
|
+
}
|
|
1048
1051
|
if (sortOrder !== void 0) {
|
|
1049
1052
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1050
1053
|
}
|
|
1051
|
-
if (contributor) {
|
|
1052
|
-
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1053
|
-
}
|
|
1054
1054
|
if (keyword !== void 0) {
|
|
1055
1055
|
localVarQueryParameter["keyword"] = keyword;
|
|
1056
1056
|
}
|
|
1057
|
-
if (
|
|
1058
|
-
localVarQueryParameter["
|
|
1057
|
+
if (sort !== void 0) {
|
|
1058
|
+
localVarQueryParameter["sort"] = sort;
|
|
1059
1059
|
}
|
|
1060
|
-
if (
|
|
1061
|
-
localVarQueryParameter["
|
|
1060
|
+
if (page !== void 0) {
|
|
1061
|
+
localVarQueryParameter["page"] = page;
|
|
1062
1062
|
}
|
|
1063
1063
|
if (labelSelector) {
|
|
1064
1064
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
@@ -1066,8 +1066,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1066
1066
|
if (fieldSelector) {
|
|
1067
1067
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1068
1068
|
}
|
|
1069
|
-
if (
|
|
1070
|
-
localVarQueryParameter["
|
|
1069
|
+
if (size !== void 0) {
|
|
1070
|
+
localVarQueryParameter["size"] = size;
|
|
1071
1071
|
}
|
|
1072
1072
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1073
1073
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1155,8 +1155,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1155
1155
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1156
1156
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1157
1157
|
},
|
|
1158
|
-
async listSinglePages(
|
|
1159
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(
|
|
1158
|
+
async listSinglePages(contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options) {
|
|
1159
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options);
|
|
1160
1160
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1161
1161
|
},
|
|
1162
1162
|
async publishSinglePage(name, options) {
|
|
@@ -1179,8 +1179,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1179
1179
|
draftSinglePage(singlePageRequest, options) {
|
|
1180
1180
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1181
1181
|
},
|
|
1182
|
-
listSinglePages(
|
|
1183
|
-
return localVarFp.listSinglePages(
|
|
1182
|
+
listSinglePages(contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options) {
|
|
1183
|
+
return localVarFp.listSinglePages(contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
1184
1184
|
},
|
|
1185
1185
|
publishSinglePage(name, options) {
|
|
1186
1186
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1198,7 +1198,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1198
1198
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1199
1199
|
}
|
|
1200
1200
|
listSinglePages(requestParameters = {}, options) {
|
|
1201
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.
|
|
1201
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.contributor, requestParameters.publishPhase, requestParameters.visible, requestParameters.sortOrder, requestParameters.keyword, requestParameters.sort, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
1202
1202
|
}
|
|
1203
1203
|
publishSinglePage(requestParameters, options) {
|
|
1204
1204
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1287,7 +1287,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1287
1287
|
options: localVarRequestOptions
|
|
1288
1288
|
};
|
|
1289
1289
|
},
|
|
1290
|
-
listThemes: async (uninstalled,
|
|
1290
|
+
listThemes: async (uninstalled, page, labelSelector, fieldSelector, size, options = {}) => {
|
|
1291
1291
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1292
1292
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1293
1293
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1303,8 +1303,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1303
1303
|
if (uninstalled !== void 0) {
|
|
1304
1304
|
localVarQueryParameter["uninstalled"] = uninstalled;
|
|
1305
1305
|
}
|
|
1306
|
-
if (
|
|
1307
|
-
localVarQueryParameter["
|
|
1306
|
+
if (page !== void 0) {
|
|
1307
|
+
localVarQueryParameter["page"] = page;
|
|
1308
1308
|
}
|
|
1309
1309
|
if (labelSelector) {
|
|
1310
1310
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
@@ -1312,8 +1312,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1312
1312
|
if (fieldSelector) {
|
|
1313
1313
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1314
1314
|
}
|
|
1315
|
-
if (
|
|
1316
|
-
localVarQueryParameter["
|
|
1315
|
+
if (size !== void 0) {
|
|
1316
|
+
localVarQueryParameter["size"] = size;
|
|
1317
1317
|
}
|
|
1318
1318
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1319
1319
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1323,9 +1323,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1323
1323
|
options: localVarRequestOptions
|
|
1324
1324
|
};
|
|
1325
1325
|
},
|
|
1326
|
-
|
|
1327
|
-
assertParamExists("
|
|
1328
|
-
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload
|
|
1326
|
+
reload: async (name, options = {}) => {
|
|
1327
|
+
assertParamExists("reload", "name", name);
|
|
1328
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1329
1329
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1330
1330
|
let baseOptions;
|
|
1331
1331
|
if (configuration) {
|
|
@@ -1381,12 +1381,12 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1381
1381
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1382
1382
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1383
1383
|
},
|
|
1384
|
-
async listThemes(uninstalled,
|
|
1385
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled,
|
|
1384
|
+
async listThemes(uninstalled, page, labelSelector, fieldSelector, size, options) {
|
|
1385
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, page, labelSelector, fieldSelector, size, options);
|
|
1386
1386
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1387
1387
|
},
|
|
1388
|
-
async
|
|
1389
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1388
|
+
async reload(name, options) {
|
|
1389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reload(name, options);
|
|
1390
1390
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1391
1391
|
},
|
|
1392
1392
|
async upgradeTheme(name, file, options) {
|
|
@@ -1401,11 +1401,11 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1401
1401
|
installTheme(file, options) {
|
|
1402
1402
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1403
1403
|
},
|
|
1404
|
-
listThemes(uninstalled,
|
|
1405
|
-
return localVarFp.listThemes(uninstalled,
|
|
1404
|
+
listThemes(uninstalled, page, labelSelector, fieldSelector, size, options) {
|
|
1405
|
+
return localVarFp.listThemes(uninstalled, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
1406
1406
|
},
|
|
1407
|
-
|
|
1408
|
-
return localVarFp.
|
|
1407
|
+
reload(name, options) {
|
|
1408
|
+
return localVarFp.reload(name, options).then((request) => request(axios, basePath));
|
|
1409
1409
|
},
|
|
1410
1410
|
upgradeTheme(name, file, options) {
|
|
1411
1411
|
return localVarFp.upgradeTheme(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -1417,10 +1417,10 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1417
1417
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1418
1418
|
}
|
|
1419
1419
|
listThemes(requestParameters, options) {
|
|
1420
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.
|
|
1420
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
1421
1421
|
}
|
|
1422
|
-
|
|
1423
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).
|
|
1422
|
+
reload(requestParameters, options) {
|
|
1423
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1424
1424
|
}
|
|
1425
1425
|
upgradeTheme(requestParameters, options) {
|
|
1426
1426
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).upgradeTheme(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1643,7 +1643,7 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1643
1643
|
options: localVarRequestOptions
|
|
1644
1644
|
};
|
|
1645
1645
|
},
|
|
1646
|
-
listCommentReplies: async (name,
|
|
1646
|
+
listCommentReplies: async (name, page, size, options = {}) => {
|
|
1647
1647
|
assertParamExists("listCommentReplies", "name", name);
|
|
1648
1648
|
const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1649
1649
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1656,12 +1656,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1656
1656
|
const localVarQueryParameter = {};
|
|
1657
1657
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1658
1658
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1659
|
-
if (size !== void 0) {
|
|
1660
|
-
localVarQueryParameter["size"] = size;
|
|
1661
|
-
}
|
|
1662
1659
|
if (page !== void 0) {
|
|
1663
1660
|
localVarQueryParameter["page"] = page;
|
|
1664
1661
|
}
|
|
1662
|
+
if (size !== void 0) {
|
|
1663
|
+
localVarQueryParameter["size"] = size;
|
|
1664
|
+
}
|
|
1665
1665
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1666
1666
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1667
1667
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1670,10 +1670,10 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1670
1670
|
options: localVarRequestOptions
|
|
1671
1671
|
};
|
|
1672
1672
|
},
|
|
1673
|
-
listComments1: async (name, version,
|
|
1673
|
+
listComments1: async (kind, name, version, group, page, size, options = {}) => {
|
|
1674
|
+
assertParamExists("listComments1", "kind", kind);
|
|
1674
1675
|
assertParamExists("listComments1", "name", name);
|
|
1675
1676
|
assertParamExists("listComments1", "version", version);
|
|
1676
|
-
assertParamExists("listComments1", "kind", kind);
|
|
1677
1677
|
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
|
|
1678
1678
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1679
1679
|
let baseOptions;
|
|
@@ -1685,24 +1685,24 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1685
1685
|
const localVarQueryParameter = {};
|
|
1686
1686
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1687
1687
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1688
|
+
if (kind !== void 0) {
|
|
1689
|
+
localVarQueryParameter["kind"] = kind;
|
|
1690
|
+
}
|
|
1691
|
+
if (group !== void 0) {
|
|
1692
|
+
localVarQueryParameter["group"] = group;
|
|
1693
|
+
}
|
|
1688
1694
|
if (name !== void 0) {
|
|
1689
1695
|
localVarQueryParameter["name"] = name;
|
|
1690
1696
|
}
|
|
1691
1697
|
if (version !== void 0) {
|
|
1692
1698
|
localVarQueryParameter["version"] = version;
|
|
1693
1699
|
}
|
|
1694
|
-
if (
|
|
1695
|
-
localVarQueryParameter["
|
|
1696
|
-
}
|
|
1697
|
-
if (kind !== void 0) {
|
|
1698
|
-
localVarQueryParameter["kind"] = kind;
|
|
1700
|
+
if (page !== void 0) {
|
|
1701
|
+
localVarQueryParameter["page"] = page;
|
|
1699
1702
|
}
|
|
1700
1703
|
if (size !== void 0) {
|
|
1701
1704
|
localVarQueryParameter["size"] = size;
|
|
1702
1705
|
}
|
|
1703
|
-
if (page !== void 0) {
|
|
1704
|
-
localVarQueryParameter["page"] = page;
|
|
1705
|
-
}
|
|
1706
1706
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1707
1707
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1708
1708
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1728,12 +1728,12 @@ const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
1728
1728
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getComment(name, options);
|
|
1729
1729
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1730
1730
|
},
|
|
1731
|
-
async listCommentReplies(name,
|
|
1732
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommentReplies(name,
|
|
1731
|
+
async listCommentReplies(name, page, size, options) {
|
|
1732
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommentReplies(name, page, size, options);
|
|
1733
1733
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1734
1734
|
},
|
|
1735
|
-
async listComments1(name, version,
|
|
1736
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(name, version,
|
|
1735
|
+
async listComments1(kind, name, version, group, page, size, options) {
|
|
1736
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(kind, name, version, group, page, size, options);
|
|
1737
1737
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1738
1738
|
}
|
|
1739
1739
|
};
|
|
@@ -1750,11 +1750,11 @@ const ApiHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, ax
|
|
|
1750
1750
|
getComment(name, options) {
|
|
1751
1751
|
return localVarFp.getComment(name, options).then((request) => request(axios, basePath));
|
|
1752
1752
|
},
|
|
1753
|
-
listCommentReplies(name,
|
|
1754
|
-
return localVarFp.listCommentReplies(name,
|
|
1753
|
+
listCommentReplies(name, page, size, options) {
|
|
1754
|
+
return localVarFp.listCommentReplies(name, page, size, options).then((request) => request(axios, basePath));
|
|
1755
1755
|
},
|
|
1756
|
-
listComments1(name, version,
|
|
1757
|
-
return localVarFp.listComments1(name, version,
|
|
1756
|
+
listComments1(kind, name, version, group, page, size, options) {
|
|
1757
|
+
return localVarFp.listComments1(kind, name, version, group, page, size, options).then((request) => request(axios, basePath));
|
|
1758
1758
|
}
|
|
1759
1759
|
};
|
|
1760
1760
|
};
|
|
@@ -1769,16 +1769,16 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1769
1769
|
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).getComment(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1770
1770
|
}
|
|
1771
1771
|
listCommentReplies(requestParameters, options) {
|
|
1772
|
-
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listCommentReplies(requestParameters.name, requestParameters.
|
|
1772
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listCommentReplies(requestParameters.name, requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
1773
1773
|
}
|
|
1774
1774
|
listComments1(requestParameters, options) {
|
|
1775
|
-
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments1(requestParameters.
|
|
1775
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments1(requestParameters.kind, requestParameters.name, requestParameters.version, requestParameters.group, requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
1778
|
|
|
1779
1779
|
const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
1780
1780
|
return {
|
|
1781
|
-
searchPost: async (keyword, highlightPreTag, highlightPostTag,
|
|
1781
|
+
searchPost: async (keyword, limit, highlightPreTag, highlightPostTag, options = {}) => {
|
|
1782
1782
|
assertParamExists("searchPost", "keyword", keyword);
|
|
1783
1783
|
const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
|
|
1784
1784
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1791,6 +1791,9 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1791
1791
|
const localVarQueryParameter = {};
|
|
1792
1792
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1793
1793
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1794
|
+
if (limit !== void 0) {
|
|
1795
|
+
localVarQueryParameter["limit"] = limit;
|
|
1796
|
+
}
|
|
1794
1797
|
if (highlightPreTag !== void 0) {
|
|
1795
1798
|
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
|
|
1796
1799
|
}
|
|
@@ -1800,9 +1803,6 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1800
1803
|
if (keyword !== void 0) {
|
|
1801
1804
|
localVarQueryParameter["keyword"] = keyword;
|
|
1802
1805
|
}
|
|
1803
|
-
if (limit !== void 0) {
|
|
1804
|
-
localVarQueryParameter["limit"] = limit;
|
|
1805
|
-
}
|
|
1806
1806
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1807
1807
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1808
1808
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1816,8 +1816,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1816
1816
|
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
1817
1817
|
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
1818
1818
|
return {
|
|
1819
|
-
async searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1820
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1819
|
+
async searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
1820
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options);
|
|
1821
1821
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1822
1822
|
}
|
|
1823
1823
|
};
|
|
@@ -1825,14 +1825,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
1825
1825
|
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
1826
1826
|
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
1827
1827
|
return {
|
|
1828
|
-
searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1829
|
-
return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag,
|
|
1828
|
+
searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
|
|
1829
|
+
return localVarFp.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options).then((request) => request(axios, basePath));
|
|
1830
1830
|
}
|
|
1831
1831
|
};
|
|
1832
1832
|
};
|
|
1833
1833
|
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
1834
1834
|
searchPost(requestParameters, options) {
|
|
1835
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.
|
|
1835
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(this.axios, this.basePath));
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
1838
|
|