@halo-dev/api-client 0.0.55 → 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 +139 -139
- package/dist/index.d.ts +486 -489
- package/dist/index.mjs +139 -139
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -69,7 +69,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
69
69
|
|
|
70
70
|
const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
|
|
71
71
|
return {
|
|
72
|
-
searchAttachments: async (
|
|
72
|
+
searchAttachments: async (ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options = {}) => {
|
|
73
73
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
74
74
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
75
75
|
let baseOptions;
|
|
@@ -81,26 +81,23 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
81
81
|
const localVarQueryParameter = {};
|
|
82
82
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
83
83
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
84
|
-
if (policy !== void 0) {
|
|
85
|
-
localVarQueryParameter["policy"] = policy;
|
|
86
|
-
}
|
|
87
|
-
if (sort) {
|
|
88
|
-
localVarQueryParameter["sort"] = Array.from(sort);
|
|
89
|
-
}
|
|
90
|
-
if (displayName !== void 0) {
|
|
91
|
-
localVarQueryParameter["displayName"] = displayName;
|
|
92
|
-
}
|
|
93
84
|
if (ungrouped !== void 0) {
|
|
94
85
|
localVarQueryParameter["ungrouped"] = ungrouped;
|
|
95
86
|
}
|
|
96
87
|
if (uploadedBy !== void 0) {
|
|
97
88
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
98
89
|
}
|
|
90
|
+
if (policy !== void 0) {
|
|
91
|
+
localVarQueryParameter["policy"] = policy;
|
|
92
|
+
}
|
|
99
93
|
if (group !== void 0) {
|
|
100
94
|
localVarQueryParameter["group"] = group;
|
|
101
95
|
}
|
|
102
|
-
if (
|
|
103
|
-
localVarQueryParameter["
|
|
96
|
+
if (sort) {
|
|
97
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
98
|
+
}
|
|
99
|
+
if (displayName !== void 0) {
|
|
100
|
+
localVarQueryParameter["displayName"] = displayName;
|
|
104
101
|
}
|
|
105
102
|
if (page !== void 0) {
|
|
106
103
|
localVarQueryParameter["page"] = page;
|
|
@@ -111,6 +108,9 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
111
108
|
if (fieldSelector) {
|
|
112
109
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
113
110
|
}
|
|
111
|
+
if (size !== void 0) {
|
|
112
|
+
localVarQueryParameter["size"] = size;
|
|
113
|
+
}
|
|
114
114
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
115
115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
116
116
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -119,9 +119,9 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
119
119
|
options: localVarRequestOptions
|
|
120
120
|
};
|
|
121
121
|
},
|
|
122
|
-
uploadAttachment: async (
|
|
123
|
-
assertParamExists("uploadAttachment", "file", file);
|
|
122
|
+
uploadAttachment: async (policyName, file, groupName, options = {}) => {
|
|
124
123
|
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
124
|
+
assertParamExists("uploadAttachment", "file", file);
|
|
125
125
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
|
|
126
126
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
127
127
|
let baseOptions;
|
|
@@ -134,15 +134,15 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
134
134
|
const localVarFormParams = new (configuration && configuration.formDataCtor || FormData)();
|
|
135
135
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
136
136
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
137
|
-
if (file !== void 0) {
|
|
138
|
-
localVarFormParams.append("file", file);
|
|
139
|
-
}
|
|
140
137
|
if (policyName !== void 0) {
|
|
141
138
|
localVarFormParams.append("policyName", policyName);
|
|
142
139
|
}
|
|
143
140
|
if (groupName !== void 0) {
|
|
144
141
|
localVarFormParams.append("groupName", groupName);
|
|
145
142
|
}
|
|
143
|
+
if (file !== void 0) {
|
|
144
|
+
localVarFormParams.append("file", file);
|
|
145
|
+
}
|
|
146
146
|
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
147
147
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
148
148
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -158,12 +158,12 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
|
|
|
158
158
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
159
159
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
|
|
160
160
|
return {
|
|
161
|
-
async searchAttachments(
|
|
162
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(
|
|
161
|
+
async searchAttachments(ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options) {
|
|
162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options);
|
|
163
163
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
164
|
},
|
|
165
|
-
async uploadAttachment(
|
|
166
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(
|
|
165
|
+
async uploadAttachment(policyName, file, groupName, options) {
|
|
166
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAttachment(policyName, file, groupName, options);
|
|
167
167
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
168
168
|
}
|
|
169
169
|
};
|
|
@@ -171,20 +171,20 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
171
171
|
const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
|
|
172
172
|
const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
|
|
173
173
|
return {
|
|
174
|
-
searchAttachments(
|
|
175
|
-
return localVarFp.searchAttachments(
|
|
174
|
+
searchAttachments(ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options) {
|
|
175
|
+
return localVarFp.searchAttachments(ungrouped, uploadedBy, policy, group, sort, displayName, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
176
176
|
},
|
|
177
|
-
uploadAttachment(
|
|
178
|
-
return localVarFp.uploadAttachment(
|
|
177
|
+
uploadAttachment(policyName, file, groupName, options) {
|
|
178
|
+
return localVarFp.uploadAttachment(policyName, file, groupName, options).then((request) => request(axios, basePath));
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
182
|
class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
183
183
|
searchAttachments(requestParameters = {}, options) {
|
|
184
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.
|
|
184
|
+
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));
|
|
185
185
|
}
|
|
186
186
|
uploadAttachment(requestParameters, options) {
|
|
187
|
-
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.
|
|
187
|
+
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.policyName, requestParameters.file, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
|
|
@@ -237,7 +237,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
237
237
|
options: localVarRequestOptions
|
|
238
238
|
};
|
|
239
239
|
},
|
|
240
|
-
listComments: async (
|
|
240
|
+
listComments: async (sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, options = {}) => {
|
|
241
241
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
242
242
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
243
243
|
let baseOptions;
|
|
@@ -249,24 +249,21 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
249
249
|
const localVarQueryParameter = {};
|
|
250
250
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
251
251
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
252
|
-
if (
|
|
253
|
-
localVarQueryParameter["
|
|
252
|
+
if (sortOrder !== void 0) {
|
|
253
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
254
254
|
}
|
|
255
255
|
if (keyword !== void 0) {
|
|
256
256
|
localVarQueryParameter["keyword"] = keyword;
|
|
257
257
|
}
|
|
258
|
+
if (approved !== void 0) {
|
|
259
|
+
localVarQueryParameter["approved"] = approved;
|
|
260
|
+
}
|
|
258
261
|
if (hidden !== void 0) {
|
|
259
262
|
localVarQueryParameter["hidden"] = hidden;
|
|
260
263
|
}
|
|
261
264
|
if (top !== void 0) {
|
|
262
265
|
localVarQueryParameter["top"] = top;
|
|
263
266
|
}
|
|
264
|
-
if (sortOrder !== void 0) {
|
|
265
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
266
|
-
}
|
|
267
|
-
if (approved !== void 0) {
|
|
268
|
-
localVarQueryParameter["approved"] = approved;
|
|
269
|
-
}
|
|
270
267
|
if (allowNotification !== void 0) {
|
|
271
268
|
localVarQueryParameter["allowNotification"] = allowNotification;
|
|
272
269
|
}
|
|
@@ -282,8 +279,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
282
279
|
if (subjectName !== void 0) {
|
|
283
280
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
284
281
|
}
|
|
285
|
-
if (
|
|
286
|
-
localVarQueryParameter["
|
|
282
|
+
if (sort !== void 0) {
|
|
283
|
+
localVarQueryParameter["sort"] = sort;
|
|
287
284
|
}
|
|
288
285
|
if (page !== void 0) {
|
|
289
286
|
localVarQueryParameter["page"] = page;
|
|
@@ -294,6 +291,9 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
294
291
|
if (fieldSelector) {
|
|
295
292
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
296
293
|
}
|
|
294
|
+
if (size !== void 0) {
|
|
295
|
+
localVarQueryParameter["size"] = size;
|
|
296
|
+
}
|
|
297
297
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
298
298
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
299
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -315,8 +315,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
315
315
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
316
316
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
317
317
|
},
|
|
318
|
-
async listComments(
|
|
319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(
|
|
318
|
+
async listComments(sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, options) {
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, options);
|
|
320
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
321
|
}
|
|
322
322
|
};
|
|
@@ -330,8 +330,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
330
330
|
createReply(name, replyRequest, options) {
|
|
331
331
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
332
332
|
},
|
|
333
|
-
listComments(
|
|
334
|
-
return localVarFp.listComments(
|
|
333
|
+
listComments(sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, options) {
|
|
334
|
+
return localVarFp.listComments(sortOrder, keyword, approved, hidden, top, allowNotification, ownerKind, ownerName, subjectKind, subjectName, sort, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
};
|
|
@@ -343,7 +343,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
343
343
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
344
344
|
}
|
|
345
345
|
listComments(requestParameters = {}, options) {
|
|
346
|
-
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.
|
|
346
|
+
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));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
|
|
@@ -538,7 +538,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
538
538
|
options: localVarRequestOptions
|
|
539
539
|
};
|
|
540
540
|
},
|
|
541
|
-
listPlugins: async (
|
|
541
|
+
listPlugins: async (enabled, keyword, sort, page, labelSelector, fieldSelector, size, options = {}) => {
|
|
542
542
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
|
|
543
543
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
544
544
|
let baseOptions;
|
|
@@ -550,17 +550,14 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
550
550
|
const localVarQueryParameter = {};
|
|
551
551
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
552
552
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
553
|
-
if (
|
|
554
|
-
localVarQueryParameter["
|
|
553
|
+
if (enabled !== void 0) {
|
|
554
|
+
localVarQueryParameter["enabled"] = enabled;
|
|
555
555
|
}
|
|
556
556
|
if (keyword !== void 0) {
|
|
557
557
|
localVarQueryParameter["keyword"] = keyword;
|
|
558
558
|
}
|
|
559
|
-
if (
|
|
560
|
-
localVarQueryParameter["
|
|
561
|
-
}
|
|
562
|
-
if (size !== void 0) {
|
|
563
|
-
localVarQueryParameter["size"] = size;
|
|
559
|
+
if (sort) {
|
|
560
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
564
561
|
}
|
|
565
562
|
if (page !== void 0) {
|
|
566
563
|
localVarQueryParameter["page"] = page;
|
|
@@ -571,6 +568,9 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
|
|
|
571
568
|
if (fieldSelector) {
|
|
572
569
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
573
570
|
}
|
|
571
|
+
if (size !== void 0) {
|
|
572
|
+
localVarQueryParameter["size"] = size;
|
|
573
|
+
}
|
|
574
574
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
575
575
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
576
576
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -616,8 +616,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
616
616
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
617
617
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
618
618
|
},
|
|
619
|
-
async listPlugins(
|
|
620
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(
|
|
619
|
+
async listPlugins(enabled, keyword, sort, page, labelSelector, fieldSelector, size, options) {
|
|
620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(enabled, keyword, sort, page, labelSelector, fieldSelector, size, options);
|
|
621
621
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
622
622
|
},
|
|
623
623
|
async upgradePlugin(name, file, options) {
|
|
@@ -632,8 +632,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
|
|
|
632
632
|
installPlugin(file, options) {
|
|
633
633
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
634
634
|
},
|
|
635
|
-
listPlugins(
|
|
636
|
-
return localVarFp.listPlugins(
|
|
635
|
+
listPlugins(enabled, keyword, sort, page, labelSelector, fieldSelector, size, options) {
|
|
636
|
+
return localVarFp.listPlugins(enabled, keyword, sort, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
637
637
|
},
|
|
638
638
|
upgradePlugin(name, file, options) {
|
|
639
639
|
return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
|
|
@@ -645,7 +645,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
|
645
645
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
646
646
|
}
|
|
647
647
|
listPlugins(requestParameters = {}, options) {
|
|
648
|
-
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.
|
|
648
|
+
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));
|
|
649
649
|
}
|
|
650
650
|
upgradePlugin(requestParameters, options) {
|
|
651
651
|
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -677,7 +677,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
677
677
|
options: localVarRequestOptions
|
|
678
678
|
};
|
|
679
679
|
},
|
|
680
|
-
listPosts: async (
|
|
680
|
+
listPosts: async (tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options = {}) => {
|
|
681
681
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
682
682
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
683
683
|
let baseOptions;
|
|
@@ -689,32 +689,29 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
689
689
|
const localVarQueryParameter = {};
|
|
690
690
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
691
691
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
692
|
-
if (sort !== void 0) {
|
|
693
|
-
localVarQueryParameter["sort"] = sort;
|
|
694
|
-
}
|
|
695
|
-
if (keyword !== void 0) {
|
|
696
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
697
|
-
}
|
|
698
|
-
if (visible !== void 0) {
|
|
699
|
-
localVarQueryParameter["visible"] = visible;
|
|
700
|
-
}
|
|
701
692
|
if (tag) {
|
|
702
693
|
localVarQueryParameter["tag"] = Array.from(tag);
|
|
703
694
|
}
|
|
704
|
-
if (
|
|
705
|
-
localVarQueryParameter["
|
|
695
|
+
if (contributor) {
|
|
696
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
706
697
|
}
|
|
707
698
|
if (publishPhase !== void 0) {
|
|
708
699
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
709
700
|
}
|
|
701
|
+
if (visible !== void 0) {
|
|
702
|
+
localVarQueryParameter["visible"] = visible;
|
|
703
|
+
}
|
|
710
704
|
if (category) {
|
|
711
705
|
localVarQueryParameter["category"] = Array.from(category);
|
|
712
706
|
}
|
|
713
|
-
if (
|
|
714
|
-
localVarQueryParameter["
|
|
707
|
+
if (sortOrder !== void 0) {
|
|
708
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
715
709
|
}
|
|
716
|
-
if (
|
|
717
|
-
localVarQueryParameter["
|
|
710
|
+
if (keyword !== void 0) {
|
|
711
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
712
|
+
}
|
|
713
|
+
if (sort !== void 0) {
|
|
714
|
+
localVarQueryParameter["sort"] = sort;
|
|
718
715
|
}
|
|
719
716
|
if (page !== void 0) {
|
|
720
717
|
localVarQueryParameter["page"] = page;
|
|
@@ -725,6 +722,9 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
725
722
|
if (fieldSelector) {
|
|
726
723
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
727
724
|
}
|
|
725
|
+
if (size !== void 0) {
|
|
726
|
+
localVarQueryParameter["size"] = size;
|
|
727
|
+
}
|
|
728
728
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
729
729
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
730
730
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -856,8 +856,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
856
856
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
857
857
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
858
858
|
},
|
|
859
|
-
async listPosts(
|
|
860
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(
|
|
859
|
+
async listPosts(tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options) {
|
|
860
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options);
|
|
861
861
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
862
862
|
},
|
|
863
863
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -888,8 +888,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
888
888
|
draftPost(postRequest, options) {
|
|
889
889
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
890
890
|
},
|
|
891
|
-
listPosts(
|
|
892
|
-
return localVarFp.listPosts(
|
|
891
|
+
listPosts(tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options) {
|
|
892
|
+
return localVarFp.listPosts(tag, contributor, publishPhase, visible, category, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
893
893
|
},
|
|
894
894
|
publishPost(name, headSnapshot, options) {
|
|
895
895
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -913,7 +913,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
913
913
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
914
914
|
}
|
|
915
915
|
listPosts(requestParameters = {}, options) {
|
|
916
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.
|
|
916
|
+
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));
|
|
917
917
|
}
|
|
918
918
|
publishPost(requestParameters, options) {
|
|
919
919
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -934,7 +934,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
934
934
|
|
|
935
935
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
936
936
|
return {
|
|
937
|
-
listReplies: async (commentName,
|
|
937
|
+
listReplies: async (commentName, page, labelSelector, fieldSelector, size, options = {}) => {
|
|
938
938
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
939
939
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
940
940
|
let baseOptions;
|
|
@@ -949,9 +949,6 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
949
949
|
if (commentName !== void 0) {
|
|
950
950
|
localVarQueryParameter["commentName"] = commentName;
|
|
951
951
|
}
|
|
952
|
-
if (size !== void 0) {
|
|
953
|
-
localVarQueryParameter["size"] = size;
|
|
954
|
-
}
|
|
955
952
|
if (page !== void 0) {
|
|
956
953
|
localVarQueryParameter["page"] = page;
|
|
957
954
|
}
|
|
@@ -961,6 +958,9 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
961
958
|
if (fieldSelector) {
|
|
962
959
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
963
960
|
}
|
|
961
|
+
if (size !== void 0) {
|
|
962
|
+
localVarQueryParameter["size"] = size;
|
|
963
|
+
}
|
|
964
964
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
965
965
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
966
966
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -974,8 +974,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
974
974
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
975
975
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
976
976
|
return {
|
|
977
|
-
async listReplies(commentName,
|
|
978
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName,
|
|
977
|
+
async listReplies(commentName, page, labelSelector, fieldSelector, size, options) {
|
|
978
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, page, labelSelector, fieldSelector, size, options);
|
|
979
979
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
980
980
|
}
|
|
981
981
|
};
|
|
@@ -983,14 +983,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
|
983
983
|
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
984
984
|
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
985
985
|
return {
|
|
986
|
-
listReplies(commentName,
|
|
987
|
-
return localVarFp.listReplies(commentName,
|
|
986
|
+
listReplies(commentName, page, labelSelector, fieldSelector, size, options) {
|
|
987
|
+
return localVarFp.listReplies(commentName, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
988
988
|
}
|
|
989
989
|
};
|
|
990
990
|
};
|
|
991
991
|
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
992
992
|
listReplies(requestParameters = {}, options) {
|
|
993
|
-
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.
|
|
993
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
996
|
|
|
@@ -1019,7 +1019,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1019
1019
|
options: localVarRequestOptions
|
|
1020
1020
|
};
|
|
1021
1021
|
},
|
|
1022
|
-
listSinglePages: async (
|
|
1022
|
+
listSinglePages: async (contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options = {}) => {
|
|
1023
1023
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1024
1024
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1025
1025
|
let baseOptions;
|
|
@@ -1031,11 +1031,11 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1031
1031
|
const localVarQueryParameter = {};
|
|
1032
1032
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1033
1033
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1034
|
-
if (
|
|
1035
|
-
localVarQueryParameter["
|
|
1034
|
+
if (contributor) {
|
|
1035
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1036
1036
|
}
|
|
1037
|
-
if (
|
|
1038
|
-
localVarQueryParameter["
|
|
1037
|
+
if (publishPhase !== void 0) {
|
|
1038
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
1039
1039
|
}
|
|
1040
1040
|
if (visible !== void 0) {
|
|
1041
1041
|
localVarQueryParameter["visible"] = visible;
|
|
@@ -1043,14 +1043,11 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1043
1043
|
if (sortOrder !== void 0) {
|
|
1044
1044
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1045
1045
|
}
|
|
1046
|
-
if (
|
|
1047
|
-
localVarQueryParameter["
|
|
1048
|
-
}
|
|
1049
|
-
if (contributor) {
|
|
1050
|
-
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1046
|
+
if (keyword !== void 0) {
|
|
1047
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1051
1048
|
}
|
|
1052
|
-
if (
|
|
1053
|
-
localVarQueryParameter["
|
|
1049
|
+
if (sort !== void 0) {
|
|
1050
|
+
localVarQueryParameter["sort"] = sort;
|
|
1054
1051
|
}
|
|
1055
1052
|
if (page !== void 0) {
|
|
1056
1053
|
localVarQueryParameter["page"] = page;
|
|
@@ -1061,6 +1058,9 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1061
1058
|
if (fieldSelector) {
|
|
1062
1059
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1063
1060
|
}
|
|
1061
|
+
if (size !== void 0) {
|
|
1062
|
+
localVarQueryParameter["size"] = size;
|
|
1063
|
+
}
|
|
1064
1064
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1065
1065
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1066
1066
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1147,8 +1147,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1147
1147
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1148
1148
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1149
1149
|
},
|
|
1150
|
-
async listSinglePages(
|
|
1151
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(
|
|
1150
|
+
async listSinglePages(contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options) {
|
|
1151
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options);
|
|
1152
1152
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1153
1153
|
},
|
|
1154
1154
|
async publishSinglePage(name, options) {
|
|
@@ -1171,8 +1171,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1171
1171
|
draftSinglePage(singlePageRequest, options) {
|
|
1172
1172
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1173
1173
|
},
|
|
1174
|
-
listSinglePages(
|
|
1175
|
-
return localVarFp.listSinglePages(
|
|
1174
|
+
listSinglePages(contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options) {
|
|
1175
|
+
return localVarFp.listSinglePages(contributor, publishPhase, visible, sortOrder, keyword, sort, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
1176
1176
|
},
|
|
1177
1177
|
publishSinglePage(name, options) {
|
|
1178
1178
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1190,7 +1190,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1190
1190
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1191
1191
|
}
|
|
1192
1192
|
listSinglePages(requestParameters = {}, options) {
|
|
1193
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.
|
|
1193
|
+
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));
|
|
1194
1194
|
}
|
|
1195
1195
|
publishSinglePage(requestParameters, options) {
|
|
1196
1196
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1279,7 +1279,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1279
1279
|
options: localVarRequestOptions
|
|
1280
1280
|
};
|
|
1281
1281
|
},
|
|
1282
|
-
listThemes: async (uninstalled,
|
|
1282
|
+
listThemes: async (uninstalled, page, labelSelector, fieldSelector, size, options = {}) => {
|
|
1283
1283
|
assertParamExists("listThemes", "uninstalled", uninstalled);
|
|
1284
1284
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
|
|
1285
1285
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1295,9 +1295,6 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1295
1295
|
if (uninstalled !== void 0) {
|
|
1296
1296
|
localVarQueryParameter["uninstalled"] = uninstalled;
|
|
1297
1297
|
}
|
|
1298
|
-
if (size !== void 0) {
|
|
1299
|
-
localVarQueryParameter["size"] = size;
|
|
1300
|
-
}
|
|
1301
1298
|
if (page !== void 0) {
|
|
1302
1299
|
localVarQueryParameter["page"] = page;
|
|
1303
1300
|
}
|
|
@@ -1307,6 +1304,9 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1307
1304
|
if (fieldSelector) {
|
|
1308
1305
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1309
1306
|
}
|
|
1307
|
+
if (size !== void 0) {
|
|
1308
|
+
localVarQueryParameter["size"] = size;
|
|
1309
|
+
}
|
|
1310
1310
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1311
1311
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1312
1312
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1373,8 +1373,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
1373
1373
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
1374
1374
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1375
1375
|
},
|
|
1376
|
-
async listThemes(uninstalled,
|
|
1377
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled,
|
|
1376
|
+
async listThemes(uninstalled, page, labelSelector, fieldSelector, size, options) {
|
|
1377
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, page, labelSelector, fieldSelector, size, options);
|
|
1378
1378
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1379
1379
|
},
|
|
1380
1380
|
async reload(name, options) {
|
|
@@ -1393,8 +1393,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
|
|
|
1393
1393
|
installTheme(file, options) {
|
|
1394
1394
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
1395
1395
|
},
|
|
1396
|
-
listThemes(uninstalled,
|
|
1397
|
-
return localVarFp.listThemes(uninstalled,
|
|
1396
|
+
listThemes(uninstalled, page, labelSelector, fieldSelector, size, options) {
|
|
1397
|
+
return localVarFp.listThemes(uninstalled, page, labelSelector, fieldSelector, size, options).then((request) => request(axios, basePath));
|
|
1398
1398
|
},
|
|
1399
1399
|
reload(name, options) {
|
|
1400
1400
|
return localVarFp.reload(name, options).then((request) => request(axios, basePath));
|
|
@@ -1409,7 +1409,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
|
1409
1409
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1410
1410
|
}
|
|
1411
1411
|
listThemes(requestParameters, options) {
|
|
1412
|
-
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.
|
|
1412
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
1413
1413
|
}
|
|
1414
1414
|
reload(requestParameters, options) {
|
|
1415
1415
|
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reload(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1635,7 +1635,7 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1635
1635
|
options: localVarRequestOptions
|
|
1636
1636
|
};
|
|
1637
1637
|
},
|
|
1638
|
-
listCommentReplies: async (name,
|
|
1638
|
+
listCommentReplies: async (name, page, size, options = {}) => {
|
|
1639
1639
|
assertParamExists("listCommentReplies", "name", name);
|
|
1640
1640
|
const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1641
1641
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1648,12 +1648,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1648
1648
|
const localVarQueryParameter = {};
|
|
1649
1649
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1650
1650
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1651
|
-
if (size !== void 0) {
|
|
1652
|
-
localVarQueryParameter["size"] = size;
|
|
1653
|
-
}
|
|
1654
1651
|
if (page !== void 0) {
|
|
1655
1652
|
localVarQueryParameter["page"] = page;
|
|
1656
1653
|
}
|
|
1654
|
+
if (size !== void 0) {
|
|
1655
|
+
localVarQueryParameter["size"] = size;
|
|
1656
|
+
}
|
|
1657
1657
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1658
1658
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1659
1659
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1662,10 +1662,10 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1662
1662
|
options: localVarRequestOptions
|
|
1663
1663
|
};
|
|
1664
1664
|
},
|
|
1665
|
-
listComments1: async (name, version,
|
|
1665
|
+
listComments1: async (kind, name, version, group, page, size, options = {}) => {
|
|
1666
|
+
assertParamExists("listComments1", "kind", kind);
|
|
1666
1667
|
assertParamExists("listComments1", "name", name);
|
|
1667
1668
|
assertParamExists("listComments1", "version", version);
|
|
1668
|
-
assertParamExists("listComments1", "kind", kind);
|
|
1669
1669
|
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
|
|
1670
1670
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1671
1671
|
let baseOptions;
|
|
@@ -1677,24 +1677,24 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
1677
1677
|
const localVarQueryParameter = {};
|
|
1678
1678
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1679
1679
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1680
|
+
if (kind !== void 0) {
|
|
1681
|
+
localVarQueryParameter["kind"] = kind;
|
|
1682
|
+
}
|
|
1683
|
+
if (group !== void 0) {
|
|
1684
|
+
localVarQueryParameter["group"] = group;
|
|
1685
|
+
}
|
|
1680
1686
|
if (name !== void 0) {
|
|
1681
1687
|
localVarQueryParameter["name"] = name;
|
|
1682
1688
|
}
|
|
1683
1689
|
if (version !== void 0) {
|
|
1684
1690
|
localVarQueryParameter["version"] = version;
|
|
1685
1691
|
}
|
|
1686
|
-
if (
|
|
1687
|
-
localVarQueryParameter["
|
|
1688
|
-
}
|
|
1689
|
-
if (kind !== void 0) {
|
|
1690
|
-
localVarQueryParameter["kind"] = kind;
|
|
1692
|
+
if (page !== void 0) {
|
|
1693
|
+
localVarQueryParameter["page"] = page;
|
|
1691
1694
|
}
|
|
1692
1695
|
if (size !== void 0) {
|
|
1693
1696
|
localVarQueryParameter["size"] = size;
|
|
1694
1697
|
}
|
|
1695
|
-
if (page !== void 0) {
|
|
1696
|
-
localVarQueryParameter["page"] = page;
|
|
1697
|
-
}
|
|
1698
1698
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1699
1699
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1700
1700
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1720,12 +1720,12 @@ const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
1720
1720
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getComment(name, options);
|
|
1721
1721
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1722
1722
|
},
|
|
1723
|
-
async listCommentReplies(name,
|
|
1724
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommentReplies(name,
|
|
1723
|
+
async listCommentReplies(name, page, size, options) {
|
|
1724
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommentReplies(name, page, size, options);
|
|
1725
1725
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1726
1726
|
},
|
|
1727
|
-
async listComments1(name, version,
|
|
1728
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(name, version,
|
|
1727
|
+
async listComments1(kind, name, version, group, page, size, options) {
|
|
1728
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(kind, name, version, group, page, size, options);
|
|
1729
1729
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1730
1730
|
}
|
|
1731
1731
|
};
|
|
@@ -1742,11 +1742,11 @@ const ApiHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, ax
|
|
|
1742
1742
|
getComment(name, options) {
|
|
1743
1743
|
return localVarFp.getComment(name, options).then((request) => request(axios, basePath));
|
|
1744
1744
|
},
|
|
1745
|
-
listCommentReplies(name,
|
|
1746
|
-
return localVarFp.listCommentReplies(name,
|
|
1745
|
+
listCommentReplies(name, page, size, options) {
|
|
1746
|
+
return localVarFp.listCommentReplies(name, page, size, options).then((request) => request(axios, basePath));
|
|
1747
1747
|
},
|
|
1748
|
-
listComments1(name, version,
|
|
1749
|
-
return localVarFp.listComments1(name, version,
|
|
1748
|
+
listComments1(kind, name, version, group, page, size, options) {
|
|
1749
|
+
return localVarFp.listComments1(kind, name, version, group, page, size, options).then((request) => request(axios, basePath));
|
|
1750
1750
|
}
|
|
1751
1751
|
};
|
|
1752
1752
|
};
|
|
@@ -1761,10 +1761,10 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
1761
1761
|
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).getComment(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1762
1762
|
}
|
|
1763
1763
|
listCommentReplies(requestParameters, options) {
|
|
1764
|
-
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listCommentReplies(requestParameters.name, requestParameters.
|
|
1764
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listCommentReplies(requestParameters.name, requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
1765
1765
|
}
|
|
1766
1766
|
listComments1(requestParameters, options) {
|
|
1767
|
-
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments1(requestParameters.
|
|
1767
|
+
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));
|
|
1768
1768
|
}
|
|
1769
1769
|
}
|
|
1770
1770
|
|
|
@@ -1783,9 +1783,6 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1783
1783
|
const localVarQueryParameter = {};
|
|
1784
1784
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1785
1785
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1786
|
-
if (keyword !== void 0) {
|
|
1787
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1788
|
-
}
|
|
1789
1786
|
if (limit !== void 0) {
|
|
1790
1787
|
localVarQueryParameter["limit"] = limit;
|
|
1791
1788
|
}
|
|
@@ -1795,6 +1792,9 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
1795
1792
|
if (highlightPostTag !== void 0) {
|
|
1796
1793
|
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
|
|
1797
1794
|
}
|
|
1795
|
+
if (keyword !== void 0) {
|
|
1796
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1797
|
+
}
|
|
1798
1798
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1799
1799
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1800
1800
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|