@halo-dev/api-client 0.0.56 → 0.0.58
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 +139 -139
- package/dist/index.d.ts +431 -449
- package/dist/index.mjs +139 -139
- 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 (policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
81
81
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
82
82
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
83
83
|
let baseOptions;
|
|
@@ -89,23 +89,26 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
89
89
|
const localVarQueryParameter = {};
|
|
90
90
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
91
91
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
92
|
+
if (policy !== void 0) {
|
|
93
|
+
localVarQueryParameter["policy"] = policy;
|
|
94
|
+
}
|
|
95
|
+
if (sort) {
|
|
96
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
97
|
+
}
|
|
98
|
+
if (displayName !== void 0) {
|
|
99
|
+
localVarQueryParameter["displayName"] = displayName;
|
|
100
|
+
}
|
|
92
101
|
if (ungrouped !== void 0) {
|
|
93
102
|
localVarQueryParameter["ungrouped"] = ungrouped;
|
|
94
103
|
}
|
|
95
104
|
if (uploadedBy !== void 0) {
|
|
96
105
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
97
106
|
}
|
|
98
|
-
if (policy !== void 0) {
|
|
99
|
-
localVarQueryParameter["policy"] = policy;
|
|
100
|
-
}
|
|
101
107
|
if (group !== void 0) {
|
|
102
108
|
localVarQueryParameter["group"] = group;
|
|
103
109
|
}
|
|
104
|
-
if (
|
|
105
|
-
localVarQueryParameter["
|
|
106
|
-
}
|
|
107
|
-
if (displayName !== void 0) {
|
|
108
|
-
localVarQueryParameter["displayName"] = displayName;
|
|
110
|
+
if (size !== void 0) {
|
|
111
|
+
localVarQueryParameter["size"] = size;
|
|
109
112
|
}
|
|
110
113
|
if (page !== void 0) {
|
|
111
114
|
localVarQueryParameter["page"] = page;
|
|
@@ -116,9 +119,6 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
116
119
|
if (fieldSelector) {
|
|
117
120
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
118
121
|
}
|
|
119
|
-
if (size !== void 0) {
|
|
120
|
-
localVarQueryParameter["size"] = size;
|
|
121
|
-
}
|
|
122
122
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123
123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
124
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -127,9 +127,9 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
127
127
|
options: localVarRequestOptions
|
|
128
128
|
};
|
|
129
129
|
},
|
|
130
|
-
uploadAttachment: async (
|
|
131
|
-
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
130
|
+
uploadAttachment: async (file, policyName, groupName, options = {}) => {
|
|
132
131
|
assertParamExists("uploadAttachment", "file", file);
|
|
132
|
+
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
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
|
+
}
|
|
145
148
|
if (policyName !== void 0) {
|
|
146
149
|
localVarFormParams.append("policyName", policyName);
|
|
147
150
|
}
|
|
148
151
|
if (groupName !== void 0) {
|
|
149
152
|
localVarFormParams.append("groupName", groupName);
|
|
150
153
|
}
|
|
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(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options) {
|
|
170
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, 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(file, policyName, groupName, options) {
|
|
174
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(file, policyName, 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(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options) {
|
|
183
|
+
return localVarFp.searchAttachments(policy, sort, displayName, ungrouped, uploadedBy, group, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
184
184
|
},
|
|
185
|
-
uploadAttachment(
|
|
186
|
-
return localVarFp.uploadAttachment(
|
|
185
|
+
uploadAttachment(file, policyName, groupName, options) {
|
|
186
|
+
return localVarFp.uploadAttachment(file, policyName, 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.policy, requestParameters.sort, requestParameters.displayName, requestParameters.ungrouped, requestParameters.uploadedBy, requestParameters.group, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, 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.file, requestParameters.policyName, 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 (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
249
249
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
250
250
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
251
251
|
let baseOptions;
|
|
@@ -257,21 +257,24 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
257
257
|
const localVarQueryParameter = {};
|
|
258
258
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
259
259
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
260
|
-
if (
|
|
261
|
-
localVarQueryParameter["
|
|
260
|
+
if (sort !== void 0) {
|
|
261
|
+
localVarQueryParameter["sort"] = sort;
|
|
262
262
|
}
|
|
263
263
|
if (keyword !== void 0) {
|
|
264
264
|
localVarQueryParameter["keyword"] = keyword;
|
|
265
265
|
}
|
|
266
|
-
if (approved !== void 0) {
|
|
267
|
-
localVarQueryParameter["approved"] = approved;
|
|
268
|
-
}
|
|
269
266
|
if (hidden !== void 0) {
|
|
270
267
|
localVarQueryParameter["hidden"] = hidden;
|
|
271
268
|
}
|
|
272
269
|
if (top !== void 0) {
|
|
273
270
|
localVarQueryParameter["top"] = top;
|
|
274
271
|
}
|
|
272
|
+
if (sortOrder !== void 0) {
|
|
273
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
274
|
+
}
|
|
275
|
+
if (approved !== void 0) {
|
|
276
|
+
localVarQueryParameter["approved"] = approved;
|
|
277
|
+
}
|
|
275
278
|
if (allowNotification !== void 0) {
|
|
276
279
|
localVarQueryParameter["allowNotification"] = allowNotification;
|
|
277
280
|
}
|
|
@@ -287,8 +290,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
287
290
|
if (subjectName !== void 0) {
|
|
288
291
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
289
292
|
}
|
|
290
|
-
if (
|
|
291
|
-
localVarQueryParameter["
|
|
293
|
+
if (size !== void 0) {
|
|
294
|
+
localVarQueryParameter["size"] = size;
|
|
292
295
|
}
|
|
293
296
|
if (page !== void 0) {
|
|
294
297
|
localVarQueryParameter["page"] = page;
|
|
@@ -299,9 +302,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
299
302
|
if (fieldSelector) {
|
|
300
303
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
301
304
|
}
|
|
302
|
-
if (size !== void 0) {
|
|
303
|
-
localVarQueryParameter["size"] = size;
|
|
304
|
-
}
|
|
305
305
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
306
306
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
307
307
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -323,8 +323,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
323
323
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
324
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
325
325
|
},
|
|
326
|
-
async listComments(
|
|
327
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(
|
|
326
|
+
async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
328
328
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
329
329
|
}
|
|
330
330
|
};
|
|
@@ -338,8 +338,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
338
338
|
createReply(name, replyRequest, options) {
|
|
339
339
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
340
340
|
},
|
|
341
|
-
listComments(
|
|
342
|
-
return localVarFp.listComments(
|
|
341
|
+
listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
342
|
+
return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
};
|
|
@@ -351,7 +351,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
351
351
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
352
352
|
}
|
|
353
353
|
listComments(requestParameters = {}, options) {
|
|
354
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.
|
|
354
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
|
|
@@ -546,7 +546,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
546
546
|
options: localVarRequestOptions
|
|
547
547
|
};
|
|
548
548
|
},
|
|
549
|
-
listPlugins: async (
|
|
549
|
+
listPlugins: async (sort, keyword, enabled, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
550
550
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
551
551
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
552
552
|
let baseOptions;
|
|
@@ -558,14 +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 (sort) {
|
|
562
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
563
563
|
}
|
|
564
564
|
if (keyword !== void 0) {
|
|
565
565
|
localVarQueryParameter["keyword"] = keyword;
|
|
566
566
|
}
|
|
567
|
-
if (
|
|
568
|
-
localVarQueryParameter["
|
|
567
|
+
if (enabled !== void 0) {
|
|
568
|
+
localVarQueryParameter["enabled"] = enabled;
|
|
569
|
+
}
|
|
570
|
+
if (size !== void 0) {
|
|
571
|
+
localVarQueryParameter["size"] = size;
|
|
569
572
|
}
|
|
570
573
|
if (page !== void 0) {
|
|
571
574
|
localVarQueryParameter["page"] = page;
|
|
@@ -576,9 +579,6 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
576
579
|
if (fieldSelector) {
|
|
577
580
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
578
581
|
}
|
|
579
|
-
if (size !== void 0) {
|
|
580
|
-
localVarQueryParameter["size"] = size;
|
|
581
|
-
}
|
|
582
582
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
583
583
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
584
584
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
|
|
628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, 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(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
|
|
644
|
+
return localVarFp.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, 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.sort, requestParameters.keyword, requestParameters.enabled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, 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 (sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, 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,29 +697,32 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
697
697
|
const localVarQueryParameter = {};
|
|
698
698
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
699
699
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
700
|
+
if (sort !== void 0) {
|
|
701
|
+
localVarQueryParameter["sort"] = sort;
|
|
702
|
+
}
|
|
703
|
+
if (keyword !== void 0) {
|
|
704
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
705
|
+
}
|
|
706
|
+
if (visible !== void 0) {
|
|
707
|
+
localVarQueryParameter["visible"] = visible;
|
|
708
|
+
}
|
|
700
709
|
if (tag) {
|
|
701
710
|
localVarQueryParameter["tag"] = Array.from(tag);
|
|
702
711
|
}
|
|
703
|
-
if (
|
|
704
|
-
localVarQueryParameter["
|
|
712
|
+
if (sortOrder !== void 0) {
|
|
713
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
705
714
|
}
|
|
706
715
|
if (publishPhase !== void 0) {
|
|
707
716
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
708
717
|
}
|
|
709
|
-
if (visible !== void 0) {
|
|
710
|
-
localVarQueryParameter["visible"] = visible;
|
|
711
|
-
}
|
|
712
718
|
if (category) {
|
|
713
719
|
localVarQueryParameter["category"] = Array.from(category);
|
|
714
720
|
}
|
|
715
|
-
if (
|
|
716
|
-
localVarQueryParameter["
|
|
717
|
-
}
|
|
718
|
-
if (keyword !== void 0) {
|
|
719
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
721
|
+
if (contributor) {
|
|
722
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
720
723
|
}
|
|
721
|
-
if (
|
|
722
|
-
localVarQueryParameter["
|
|
724
|
+
if (size !== void 0) {
|
|
725
|
+
localVarQueryParameter["size"] = size;
|
|
723
726
|
}
|
|
724
727
|
if (page !== void 0) {
|
|
725
728
|
localVarQueryParameter["page"] = page;
|
|
@@ -730,9 +733,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
730
733
|
if (fieldSelector) {
|
|
731
734
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
732
735
|
}
|
|
733
|
-
if (size !== void 0) {
|
|
734
|
-
localVarQueryParameter["size"] = size;
|
|
735
|
-
}
|
|
736
736
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
737
737
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
738
738
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
868
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, 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(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
900
|
+
return localVarFp.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, 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.sort, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, 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, page, labelSelector, fieldSelector,
|
|
945
|
+
listReplies: async (commentName, size, page, labelSelector, fieldSelector, 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,6 +957,9 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
957
957
|
if (commentName !== void 0) {
|
|
958
958
|
localVarQueryParameter["commentName"] = commentName;
|
|
959
959
|
}
|
|
960
|
+
if (size !== void 0) {
|
|
961
|
+
localVarQueryParameter["size"] = size;
|
|
962
|
+
}
|
|
960
963
|
if (page !== void 0) {
|
|
961
964
|
localVarQueryParameter["page"] = page;
|
|
962
965
|
}
|
|
@@ -966,9 +969,6 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
966
969
|
if (fieldSelector) {
|
|
967
970
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
968
971
|
}
|
|
969
|
-
if (size !== void 0) {
|
|
970
|
-
localVarQueryParameter["size"] = size;
|
|
971
|
-
}
|
|
972
972
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
973
973
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
974
974
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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, page, labelSelector, fieldSelector,
|
|
986
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, page, labelSelector, fieldSelector,
|
|
985
|
+
async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
986
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, 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, page, labelSelector, fieldSelector,
|
|
995
|
-
return localVarFp.listReplies(commentName, page, labelSelector, fieldSelector,
|
|
994
|
+
listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
|
|
995
|
+
return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, 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.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, 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 (sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, 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,11 +1039,11 @@ 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 (sort !== void 0) {
|
|
1043
|
+
localVarQueryParameter["sort"] = sort;
|
|
1044
1044
|
}
|
|
1045
|
-
if (
|
|
1046
|
-
localVarQueryParameter["
|
|
1045
|
+
if (keyword !== void 0) {
|
|
1046
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1047
1047
|
}
|
|
1048
1048
|
if (visible !== void 0) {
|
|
1049
1049
|
localVarQueryParameter["visible"] = visible;
|
|
@@ -1051,11 +1051,14 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1051
1051
|
if (sortOrder !== void 0) {
|
|
1052
1052
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1053
1053
|
}
|
|
1054
|
-
if (
|
|
1055
|
-
localVarQueryParameter["
|
|
1054
|
+
if (publishPhase !== void 0) {
|
|
1055
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1056
1056
|
}
|
|
1057
|
-
if (
|
|
1058
|
-
localVarQueryParameter["
|
|
1057
|
+
if (contributor) {
|
|
1058
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1059
|
+
}
|
|
1060
|
+
if (size !== void 0) {
|
|
1061
|
+
localVarQueryParameter["size"] = size;
|
|
1059
1062
|
}
|
|
1060
1063
|
if (page !== void 0) {
|
|
1061
1064
|
localVarQueryParameter["page"] = page;
|
|
@@ -1066,9 +1069,6 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1066
1069
|
if (fieldSelector) {
|
|
1067
1070
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1068
1071
|
}
|
|
1069
|
-
if (size !== void 0) {
|
|
1070
|
-
localVarQueryParameter["size"] = size;
|
|
1071
|
-
}
|
|
1072
1072
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1073
1073
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1074
1074
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.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(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
1159
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, 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(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
|
|
1183
|
+
return localVarFp.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, 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.sort, requestParameters.keyword, requestParameters.visible, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.contributor, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, 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, page, labelSelector, fieldSelector,
|
|
1290
|
+
listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, 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,6 +1303,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1303
1303
|
if (uninstalled !== void 0) {
|
|
1304
1304
|
localVarQueryParameter["uninstalled"] = uninstalled;
|
|
1305
1305
|
}
|
|
1306
|
+
if (size !== void 0) {
|
|
1307
|
+
localVarQueryParameter["size"] = size;
|
|
1308
|
+
}
|
|
1306
1309
|
if (page !== void 0) {
|
|
1307
1310
|
localVarQueryParameter["page"] = page;
|
|
1308
1311
|
}
|
|
@@ -1312,9 +1315,6 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1312
1315
|
if (fieldSelector) {
|
|
1313
1316
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1314
1317
|
}
|
|
1315
|
-
if (size !== void 0) {
|
|
1316
|
-
localVarQueryParameter["size"] = size;
|
|
1317
|
-
}
|
|
1318
1318
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1319
1319
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1320
1320
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1381,8 +1381,8 @@ 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, page, labelSelector, fieldSelector,
|
|
1385
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, page, labelSelector, fieldSelector,
|
|
1384
|
+
async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1385
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
|
|
1386
1386
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1387
1387
|
},
|
|
1388
1388
|
async reload(name, options) {
|
|
@@ -1401,8 +1401,8 @@ 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, page, labelSelector, fieldSelector,
|
|
1405
|
-
return localVarFp.listThemes(uninstalled, page, labelSelector, fieldSelector,
|
|
1404
|
+
listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
|
|
1405
|
+
return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1406
1406
|
},
|
|
1407
1407
|
reload(name, options) {
|
|
1408
1408
|
return localVarFp.reload(name, options).then((request) => request(axios, basePath));
|
|
@@ -1417,7 +1417,7 @@ 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.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1421
1421
|
}
|
|
1422
1422
|
reload(requestParameters, options) {
|
|
1423
1423
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, 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, size, page, 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 (page !== void 0) {
|
|
1660
|
-
localVarQueryParameter["page"] = page;
|
|
1661
|
-
}
|
|
1662
1659
|
if (size !== void 0) {
|
|
1663
1660
|
localVarQueryParameter["size"] = size;
|
|
1664
1661
|
}
|
|
1662
|
+
if (page !== void 0) {
|
|
1663
|
+
localVarQueryParameter["page"] = page;
|
|
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 (
|
|
1674
|
-
assertParamExists("listComments1", "kind", kind);
|
|
1673
|
+
listComments1: async (name, version, kind, group, size, page, options = {}) => {
|
|
1675
1674
|
assertParamExists("listComments1", "name", name);
|
|
1676
1675
|
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
|
-
}
|
|
1694
1688
|
if (name !== void 0) {
|
|
1695
1689
|
localVarQueryParameter["name"] = name;
|
|
1696
1690
|
}
|
|
1697
1691
|
if (version !== void 0) {
|
|
1698
1692
|
localVarQueryParameter["version"] = version;
|
|
1699
1693
|
}
|
|
1700
|
-
if (
|
|
1701
|
-
localVarQueryParameter["
|
|
1694
|
+
if (group !== void 0) {
|
|
1695
|
+
localVarQueryParameter["group"] = group;
|
|
1696
|
+
}
|
|
1697
|
+
if (kind !== void 0) {
|
|
1698
|
+
localVarQueryParameter["kind"] = kind;
|
|
1702
1699
|
}
|
|
1703
1700
|
if (size !== void 0) {
|
|
1704
1701
|
localVarQueryParameter["size"] = size;
|
|
1705
1702
|
}
|
|
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, size, page, options) {
|
|
1732
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommentReplies(name, size, page, options);
|
|
1733
1733
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1734
1734
|
},
|
|
1735
|
-
async listComments1(
|
|
1736
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(
|
|
1735
|
+
async listComments1(name, version, kind, group, size, page, options) {
|
|
1736
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(name, version, kind, group, size, page, 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, size, page, options) {
|
|
1754
|
+
return localVarFp.listCommentReplies(name, size, page, options).then((request) => request(axios, basePath));
|
|
1755
1755
|
},
|
|
1756
|
-
listComments1(
|
|
1757
|
-
return localVarFp.listComments1(
|
|
1756
|
+
listComments1(name, version, kind, group, size, page, options) {
|
|
1757
|
+
return localVarFp.listComments1(name, version, kind, group, size, page, options).then((request) => request(axios, basePath));
|
|
1758
1758
|
}
|
|
1759
1759
|
};
|
|
1760
1760
|
};
|
|
@@ -1769,10 +1769,10 @@ 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.size, requestParameters.page, 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.name, requestParameters.version, requestParameters.kind, requestParameters.group, requestParameters.size, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
1778
|
|
|
@@ -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 (keyword !== void 0) {
|
|
1795
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1796
|
+
}
|
|
1794
1797
|
if (limit !== void 0) {
|
|
1795
1798
|
localVarQueryParameter["limit"] = limit;
|
|
1796
1799
|
}
|
|
@@ -1800,9 +1803,6 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1800
1803
|
if (highlightPostTag !== void 0) {
|
|
1801
1804
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1802
1805
|
}
|
|
1803
|
-
if (keyword !== void 0) {
|
|
1804
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1805
|
-
}
|
|
1806
1806
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1807
1807
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1808
1808
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|