@halo-dev/api-client 0.0.22 → 0.0.23
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 +189 -182
- package/dist/index.d.ts +400 -355
- package/dist/index.mjs +157 -151
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -75,11 +75,11 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
const
|
|
78
|
+
const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
79
79
|
return {
|
|
80
80
|
createComment: async (commentRequest, options = {}) => {
|
|
81
81
|
assertParamExists("createComment", "commentRequest", commentRequest);
|
|
82
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
|
|
82
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
83
83
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
84
84
|
let baseOptions;
|
|
85
85
|
if (configuration) {
|
|
@@ -103,7 +103,7 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
103
103
|
createReply: async (name, replyRequest, options = {}) => {
|
|
104
104
|
assertParamExists("createReply", "name", name);
|
|
105
105
|
assertParamExists("createReply", "replyRequest", replyRequest);
|
|
106
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
106
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments/{name}/reply`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
107
107
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
108
108
|
let baseOptions;
|
|
109
109
|
if (configuration) {
|
|
@@ -124,8 +124,8 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
124
124
|
options: localVarRequestOptions
|
|
125
125
|
};
|
|
126
126
|
},
|
|
127
|
-
listComments: async (sort,
|
|
128
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
|
|
127
|
+
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
128
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
129
129
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
130
130
|
let baseOptions;
|
|
131
131
|
if (configuration) {
|
|
@@ -139,15 +139,6 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
139
139
|
if (sort !== void 0) {
|
|
140
140
|
localVarQueryParameter["sort"] = sort;
|
|
141
141
|
}
|
|
142
|
-
if (keyword !== void 0) {
|
|
143
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
144
|
-
}
|
|
145
|
-
if (hidden !== void 0) {
|
|
146
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
147
|
-
}
|
|
148
|
-
if (top !== void 0) {
|
|
149
|
-
localVarQueryParameter["top"] = top;
|
|
150
|
-
}
|
|
151
142
|
if (sortOrder !== void 0) {
|
|
152
143
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
153
144
|
}
|
|
@@ -169,18 +160,27 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
169
160
|
if (subjectName !== void 0) {
|
|
170
161
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
171
162
|
}
|
|
163
|
+
if (keyword !== void 0) {
|
|
164
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
165
|
+
}
|
|
166
|
+
if (hidden !== void 0) {
|
|
167
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
168
|
+
}
|
|
169
|
+
if (top !== void 0) {
|
|
170
|
+
localVarQueryParameter["top"] = top;
|
|
171
|
+
}
|
|
172
172
|
if (size !== void 0) {
|
|
173
173
|
localVarQueryParameter["size"] = size;
|
|
174
174
|
}
|
|
175
|
-
if (page !== void 0) {
|
|
176
|
-
localVarQueryParameter["page"] = page;
|
|
177
|
-
}
|
|
178
175
|
if (labelSelector) {
|
|
179
176
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
180
177
|
}
|
|
181
178
|
if (fieldSelector) {
|
|
182
179
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
183
180
|
}
|
|
181
|
+
if (page !== void 0) {
|
|
182
|
+
localVarQueryParameter["page"] = page;
|
|
183
|
+
}
|
|
184
184
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
185
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
186
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -191,8 +191,8 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
};
|
|
194
|
-
const
|
|
195
|
-
const localVarAxiosParamCreator =
|
|
194
|
+
const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
195
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator(configuration);
|
|
196
196
|
return {
|
|
197
197
|
async createComment(commentRequest, options) {
|
|
198
198
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createComment(commentRequest, options);
|
|
@@ -202,14 +202,14 @@ const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
202
202
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
203
203
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
204
204
|
},
|
|
205
|
-
async listComments(sort,
|
|
206
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort,
|
|
205
|
+
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
206
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
|
|
207
207
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
|
-
const
|
|
212
|
-
const localVarFp =
|
|
211
|
+
const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, axios) {
|
|
212
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1CommentApiFp(configuration);
|
|
213
213
|
return {
|
|
214
214
|
createComment(commentRequest, options) {
|
|
215
215
|
return localVarFp.createComment(commentRequest, options).then((request) => request(axios, basePath));
|
|
@@ -217,28 +217,28 @@ const ApiHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, ax
|
|
|
217
217
|
createReply(name, replyRequest, options) {
|
|
218
218
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
219
219
|
},
|
|
220
|
-
listComments(sort,
|
|
221
|
-
return localVarFp.listComments(sort,
|
|
220
|
+
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
221
|
+
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
};
|
|
225
|
-
class
|
|
225
|
+
class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
226
226
|
createComment(requestParameters, options) {
|
|
227
|
-
return
|
|
227
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createComment(requestParameters.commentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
228
228
|
}
|
|
229
229
|
createReply(requestParameters, options) {
|
|
230
|
-
return
|
|
230
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
231
231
|
}
|
|
232
232
|
listComments(requestParameters = {}, options) {
|
|
233
|
-
return
|
|
233
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
const
|
|
237
|
+
const ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator = function(configuration) {
|
|
238
238
|
return {
|
|
239
239
|
draftSnapshotContent: async (contentRequest, options = {}) => {
|
|
240
240
|
assertParamExists("draftSnapshotContent", "contentRequest", contentRequest);
|
|
241
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/contents`;
|
|
241
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/contents`;
|
|
242
242
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
243
243
|
let baseOptions;
|
|
244
244
|
if (configuration) {
|
|
@@ -261,7 +261,7 @@ const ApiHaloRunV1alpha1ContentApiAxiosParamCreator = function(configuration) {
|
|
|
261
261
|
},
|
|
262
262
|
obtainSnapshotContent: async (snapshotName, options = {}) => {
|
|
263
263
|
assertParamExists("obtainSnapshotContent", "snapshotName", snapshotName);
|
|
264
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/contents/{snapshotName}`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
|
|
264
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/contents/{snapshotName}`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
|
|
265
265
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
266
266
|
let baseOptions;
|
|
267
267
|
if (configuration) {
|
|
@@ -283,7 +283,7 @@ const ApiHaloRunV1alpha1ContentApiAxiosParamCreator = function(configuration) {
|
|
|
283
283
|
publishSnapshotContent: async (snapshotName, subjectRef, options = {}) => {
|
|
284
284
|
assertParamExists("publishSnapshotContent", "snapshotName", snapshotName);
|
|
285
285
|
assertParamExists("publishSnapshotContent", "subjectRef", subjectRef);
|
|
286
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/contents/{snapshotName}/publish`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
|
|
286
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/contents/{snapshotName}/publish`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
|
|
287
287
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
288
288
|
let baseOptions;
|
|
289
289
|
if (configuration) {
|
|
@@ -307,7 +307,7 @@ const ApiHaloRunV1alpha1ContentApiAxiosParamCreator = function(configuration) {
|
|
|
307
307
|
updateSnapshotContent: async (snapshotName, contentRequest, options = {}) => {
|
|
308
308
|
assertParamExists("updateSnapshotContent", "snapshotName", snapshotName);
|
|
309
309
|
assertParamExists("updateSnapshotContent", "contentRequest", contentRequest);
|
|
310
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/contents/{snapshotName}`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
|
|
310
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/contents/{snapshotName}`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
|
|
311
311
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
312
312
|
let baseOptions;
|
|
313
313
|
if (configuration) {
|
|
@@ -330,8 +330,8 @@ const ApiHaloRunV1alpha1ContentApiAxiosParamCreator = function(configuration) {
|
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
|
-
const
|
|
334
|
-
const localVarAxiosParamCreator =
|
|
333
|
+
const ApiConsoleHaloRunV1alpha1ContentApiFp = function(configuration) {
|
|
334
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator(configuration);
|
|
335
335
|
return {
|
|
336
336
|
async draftSnapshotContent(contentRequest, options) {
|
|
337
337
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSnapshotContent(contentRequest, options);
|
|
@@ -351,8 +351,8 @@ const ApiHaloRunV1alpha1ContentApiFp = function(configuration) {
|
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
353
|
};
|
|
354
|
-
const
|
|
355
|
-
const localVarFp =
|
|
354
|
+
const ApiConsoleHaloRunV1alpha1ContentApiFactory = function(configuration, basePath, axios) {
|
|
355
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1ContentApiFp(configuration);
|
|
356
356
|
return {
|
|
357
357
|
draftSnapshotContent(contentRequest, options) {
|
|
358
358
|
return localVarFp.draftSnapshotContent(contentRequest, options).then((request) => request(axios, basePath));
|
|
@@ -368,26 +368,26 @@ const ApiHaloRunV1alpha1ContentApiFactory = function(configuration, basePath, ax
|
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
};
|
|
371
|
-
class
|
|
371
|
+
class ApiConsoleHaloRunV1alpha1ContentApi extends BaseAPI {
|
|
372
372
|
draftSnapshotContent(requestParameters, options) {
|
|
373
|
-
return
|
|
373
|
+
return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).draftSnapshotContent(requestParameters.contentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
374
374
|
}
|
|
375
375
|
obtainSnapshotContent(requestParameters, options) {
|
|
376
|
-
return
|
|
376
|
+
return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).obtainSnapshotContent(requestParameters.snapshotName, options).then((request) => request(this.axios, this.basePath));
|
|
377
377
|
}
|
|
378
378
|
publishSnapshotContent(requestParameters, options) {
|
|
379
|
-
return
|
|
379
|
+
return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).publishSnapshotContent(requestParameters.snapshotName, requestParameters.subjectRef, options).then((request) => request(this.axios, this.basePath));
|
|
380
380
|
}
|
|
381
381
|
updateSnapshotContent(requestParameters, options) {
|
|
382
|
-
return
|
|
382
|
+
return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).updateSnapshotContent(requestParameters.snapshotName, requestParameters.contentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
const
|
|
386
|
+
const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configuration) {
|
|
387
387
|
return {
|
|
388
388
|
installPlugin: async (file, options = {}) => {
|
|
389
389
|
assertParamExists("installPlugin", "file", file);
|
|
390
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/plugins/install`;
|
|
390
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/install`;
|
|
391
391
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
392
392
|
let baseOptions;
|
|
393
393
|
if (configuration) {
|
|
@@ -414,8 +414,8 @@ const ApiHaloRunV1alpha1PluginApiAxiosParamCreator = function(configuration) {
|
|
|
414
414
|
}
|
|
415
415
|
};
|
|
416
416
|
};
|
|
417
|
-
const
|
|
418
|
-
const localVarAxiosParamCreator =
|
|
417
|
+
const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
418
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator(configuration);
|
|
419
419
|
return {
|
|
420
420
|
async installPlugin(file, options) {
|
|
421
421
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
@@ -423,25 +423,25 @@ const ApiHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
423
423
|
}
|
|
424
424
|
};
|
|
425
425
|
};
|
|
426
|
-
const
|
|
427
|
-
const localVarFp =
|
|
426
|
+
const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePath, axios) {
|
|
427
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1PluginApiFp(configuration);
|
|
428
428
|
return {
|
|
429
429
|
installPlugin(file, options) {
|
|
430
430
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
431
431
|
}
|
|
432
432
|
};
|
|
433
433
|
};
|
|
434
|
-
class
|
|
434
|
+
class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
435
435
|
installPlugin(requestParameters, options) {
|
|
436
|
-
return
|
|
436
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
const
|
|
440
|
+
const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
441
441
|
return {
|
|
442
442
|
draftPost: async (postRequest, options = {}) => {
|
|
443
443
|
assertParamExists("draftPost", "postRequest", postRequest);
|
|
444
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/posts`;
|
|
444
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
445
445
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
446
446
|
let baseOptions;
|
|
447
447
|
if (configuration) {
|
|
@@ -462,8 +462,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
462
462
|
options: localVarRequestOptions
|
|
463
463
|
};
|
|
464
464
|
},
|
|
465
|
-
listPosts: async (
|
|
466
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/posts`;
|
|
465
|
+
listPosts: async (contributors, categories, tags, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
466
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
467
467
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
468
468
|
let baseOptions;
|
|
469
469
|
if (configuration) {
|
|
@@ -474,27 +474,27 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
474
474
|
const localVarQueryParameter = {};
|
|
475
475
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
476
476
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
477
|
-
if (tags) {
|
|
478
|
-
localVarQueryParameter["tags"] = Array.from(tags);
|
|
479
|
-
}
|
|
480
477
|
if (contributors) {
|
|
481
478
|
localVarQueryParameter["contributors"] = Array.from(contributors);
|
|
482
479
|
}
|
|
483
480
|
if (categories) {
|
|
484
481
|
localVarQueryParameter["categories"] = Array.from(categories);
|
|
485
482
|
}
|
|
483
|
+
if (tags) {
|
|
484
|
+
localVarQueryParameter["tags"] = Array.from(tags);
|
|
485
|
+
}
|
|
486
486
|
if (size !== void 0) {
|
|
487
487
|
localVarQueryParameter["size"] = size;
|
|
488
488
|
}
|
|
489
|
-
if (page !== void 0) {
|
|
490
|
-
localVarQueryParameter["page"] = page;
|
|
491
|
-
}
|
|
492
489
|
if (labelSelector) {
|
|
493
490
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
494
491
|
}
|
|
495
492
|
if (fieldSelector) {
|
|
496
493
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
497
494
|
}
|
|
495
|
+
if (page !== void 0) {
|
|
496
|
+
localVarQueryParameter["page"] = page;
|
|
497
|
+
}
|
|
498
498
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
499
499
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
500
500
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -505,7 +505,7 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
505
505
|
},
|
|
506
506
|
publishPost: async (name, options = {}) => {
|
|
507
507
|
assertParamExists("publishPost", "name", name);
|
|
508
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/posts/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
508
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
509
509
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
510
510
|
let baseOptions;
|
|
511
511
|
if (configuration) {
|
|
@@ -527,7 +527,7 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
527
527
|
updateDraftPost: async (name, postRequest, options = {}) => {
|
|
528
528
|
assertParamExists("updateDraftPost", "name", name);
|
|
529
529
|
assertParamExists("updateDraftPost", "postRequest", postRequest);
|
|
530
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/posts/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
530
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
531
531
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
532
532
|
let baseOptions;
|
|
533
533
|
if (configuration) {
|
|
@@ -550,15 +550,15 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
552
|
};
|
|
553
|
-
const
|
|
554
|
-
const localVarAxiosParamCreator =
|
|
553
|
+
const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
554
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
555
555
|
return {
|
|
556
556
|
async draftPost(postRequest, options) {
|
|
557
557
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
558
558
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
559
559
|
},
|
|
560
|
-
async listPosts(
|
|
561
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(
|
|
560
|
+
async listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options) {
|
|
561
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options);
|
|
562
562
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
563
563
|
},
|
|
564
564
|
async publishPost(name, options) {
|
|
@@ -571,14 +571,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
571
571
|
}
|
|
572
572
|
};
|
|
573
573
|
};
|
|
574
|
-
const
|
|
575
|
-
const localVarFp =
|
|
574
|
+
const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
575
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1PostApiFp(configuration);
|
|
576
576
|
return {
|
|
577
577
|
draftPost(postRequest, options) {
|
|
578
578
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
579
579
|
},
|
|
580
|
-
listPosts(
|
|
581
|
-
return localVarFp.listPosts(
|
|
580
|
+
listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options) {
|
|
581
|
+
return localVarFp.listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
582
582
|
},
|
|
583
583
|
publishPost(name, options) {
|
|
584
584
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -588,25 +588,25 @@ const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios
|
|
|
588
588
|
}
|
|
589
589
|
};
|
|
590
590
|
};
|
|
591
|
-
class
|
|
591
|
+
class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
592
592
|
draftPost(requestParameters, options) {
|
|
593
|
-
return
|
|
593
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
594
594
|
}
|
|
595
595
|
listPosts(requestParameters = {}, options) {
|
|
596
|
-
return
|
|
596
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.contributors, requestParameters.categories, requestParameters.tags, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
597
597
|
}
|
|
598
598
|
publishPost(requestParameters, options) {
|
|
599
|
-
return
|
|
599
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
600
600
|
}
|
|
601
601
|
updateDraftPost(requestParameters, options) {
|
|
602
|
-
return
|
|
602
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
|
|
606
|
-
const
|
|
606
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
607
607
|
return {
|
|
608
|
-
listReplies: async (commentName, size,
|
|
609
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/replies`;
|
|
608
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
609
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
610
610
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
611
611
|
let baseOptions;
|
|
612
612
|
if (configuration) {
|
|
@@ -623,15 +623,15 @@ const ApiHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
|
623
623
|
if (size !== void 0) {
|
|
624
624
|
localVarQueryParameter["size"] = size;
|
|
625
625
|
}
|
|
626
|
-
if (page !== void 0) {
|
|
627
|
-
localVarQueryParameter["page"] = page;
|
|
628
|
-
}
|
|
629
626
|
if (labelSelector) {
|
|
630
627
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
631
628
|
}
|
|
632
629
|
if (fieldSelector) {
|
|
633
630
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
634
631
|
}
|
|
632
|
+
if (page !== void 0) {
|
|
633
|
+
localVarQueryParameter["page"] = page;
|
|
634
|
+
}
|
|
635
635
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
636
636
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
637
637
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -642,34 +642,34 @@ const ApiHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
|
642
642
|
}
|
|
643
643
|
};
|
|
644
644
|
};
|
|
645
|
-
const
|
|
646
|
-
const localVarAxiosParamCreator =
|
|
645
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
646
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
647
647
|
return {
|
|
648
|
-
async listReplies(commentName, size,
|
|
649
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size,
|
|
648
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
649
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
650
650
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
653
|
};
|
|
654
|
-
const
|
|
655
|
-
const localVarFp =
|
|
654
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
655
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
656
656
|
return {
|
|
657
|
-
listReplies(commentName, size,
|
|
658
|
-
return localVarFp.listReplies(commentName, size,
|
|
657
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
658
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
661
|
};
|
|
662
|
-
class
|
|
662
|
+
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
663
663
|
listReplies(requestParameters = {}, options) {
|
|
664
|
-
return
|
|
664
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
667
|
|
|
668
|
-
const
|
|
668
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration) {
|
|
669
669
|
return {
|
|
670
670
|
draftSinglePage: async (singlePageRequest, options = {}) => {
|
|
671
671
|
assertParamExists("draftSinglePage", "singlePageRequest", singlePageRequest);
|
|
672
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
672
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
673
673
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
674
674
|
let baseOptions;
|
|
675
675
|
if (configuration) {
|
|
@@ -690,8 +690,8 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
690
690
|
options: localVarRequestOptions
|
|
691
691
|
};
|
|
692
692
|
},
|
|
693
|
-
listSinglePages: async (contributors, size,
|
|
694
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
693
|
+
listSinglePages: async (contributors, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
694
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
695
695
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
696
696
|
let baseOptions;
|
|
697
697
|
if (configuration) {
|
|
@@ -708,15 +708,15 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
708
708
|
if (size !== void 0) {
|
|
709
709
|
localVarQueryParameter["size"] = size;
|
|
710
710
|
}
|
|
711
|
-
if (page !== void 0) {
|
|
712
|
-
localVarQueryParameter["page"] = page;
|
|
713
|
-
}
|
|
714
711
|
if (labelSelector) {
|
|
715
712
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
716
713
|
}
|
|
717
714
|
if (fieldSelector) {
|
|
718
715
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
719
716
|
}
|
|
717
|
+
if (page !== void 0) {
|
|
718
|
+
localVarQueryParameter["page"] = page;
|
|
719
|
+
}
|
|
720
720
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
721
721
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
722
722
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -727,7 +727,7 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
727
727
|
},
|
|
728
728
|
publishSinglePage: async (name, options = {}) => {
|
|
729
729
|
assertParamExists("publishSinglePage", "name", name);
|
|
730
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
730
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
731
731
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
732
732
|
let baseOptions;
|
|
733
733
|
if (configuration) {
|
|
@@ -749,7 +749,7 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
749
749
|
updateDraftSinglePage: async (name, singlePageRequest, options = {}) => {
|
|
750
750
|
assertParamExists("updateDraftSinglePage", "name", name);
|
|
751
751
|
assertParamExists("updateDraftSinglePage", "singlePageRequest", singlePageRequest);
|
|
752
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
752
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
753
753
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
754
754
|
let baseOptions;
|
|
755
755
|
if (configuration) {
|
|
@@ -772,15 +772,15 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
772
772
|
}
|
|
773
773
|
};
|
|
774
774
|
};
|
|
775
|
-
const
|
|
776
|
-
const localVarAxiosParamCreator =
|
|
775
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
776
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration);
|
|
777
777
|
return {
|
|
778
778
|
async draftSinglePage(singlePageRequest, options) {
|
|
779
779
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
780
780
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
781
781
|
},
|
|
782
|
-
async listSinglePages(contributors, size,
|
|
783
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size,
|
|
782
|
+
async listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
|
|
783
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options);
|
|
784
784
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
785
785
|
},
|
|
786
786
|
async publishSinglePage(name, options) {
|
|
@@ -793,14 +793,14 @@ const ApiHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
795
|
};
|
|
796
|
-
const
|
|
797
|
-
const localVarFp =
|
|
796
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath, axios) {
|
|
797
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1SinglePageApiFp(configuration);
|
|
798
798
|
return {
|
|
799
799
|
draftSinglePage(singlePageRequest, options) {
|
|
800
800
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
801
801
|
},
|
|
802
|
-
listSinglePages(contributors, size,
|
|
803
|
-
return localVarFp.listSinglePages(contributors, size,
|
|
802
|
+
listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
|
|
803
|
+
return localVarFp.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
804
804
|
},
|
|
805
805
|
publishSinglePage(name, options) {
|
|
806
806
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -810,26 +810,26 @@ const ApiHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath,
|
|
|
810
810
|
}
|
|
811
811
|
};
|
|
812
812
|
};
|
|
813
|
-
class
|
|
813
|
+
class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
814
814
|
draftSinglePage(requestParameters, options) {
|
|
815
|
-
return
|
|
815
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
816
816
|
}
|
|
817
817
|
listSinglePages(requestParameters = {}, options) {
|
|
818
|
-
return
|
|
818
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.contributors, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
819
819
|
}
|
|
820
820
|
publishSinglePage(requestParameters, options) {
|
|
821
|
-
return
|
|
821
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
822
822
|
}
|
|
823
823
|
updateDraftSinglePage(requestParameters, options) {
|
|
824
|
-
return
|
|
824
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
|
|
828
|
-
const
|
|
828
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
829
829
|
return {
|
|
830
830
|
installTheme: async (file, options = {}) => {
|
|
831
831
|
assertParamExists("installTheme", "file", file);
|
|
832
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/themes/install`;
|
|
832
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/install`;
|
|
833
833
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
834
834
|
let baseOptions;
|
|
835
835
|
if (configuration) {
|
|
@@ -856,8 +856,8 @@ const ApiHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
858
|
};
|
|
859
|
-
const
|
|
860
|
-
const localVarAxiosParamCreator =
|
|
859
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
860
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
|
861
861
|
return {
|
|
862
862
|
async installTheme(file, options) {
|
|
863
863
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
@@ -865,26 +865,26 @@ const ApiHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
865
865
|
}
|
|
866
866
|
};
|
|
867
867
|
};
|
|
868
|
-
const
|
|
869
|
-
const localVarFp =
|
|
868
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePath, axios) {
|
|
869
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration);
|
|
870
870
|
return {
|
|
871
871
|
installTheme(file, options) {
|
|
872
872
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
873
873
|
}
|
|
874
874
|
};
|
|
875
875
|
};
|
|
876
|
-
class
|
|
876
|
+
class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
877
877
|
installTheme(requestParameters, options) {
|
|
878
|
-
return
|
|
878
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
881
|
|
|
882
|
-
const
|
|
882
|
+
const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
883
883
|
return {
|
|
884
884
|
changePassword: async (name, changePasswordRequest, options = {}) => {
|
|
885
885
|
assertParamExists("changePassword", "name", name);
|
|
886
886
|
assertParamExists("changePassword", "changePasswordRequest", changePasswordRequest);
|
|
887
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/password`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
887
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/password`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
888
888
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
889
889
|
let baseOptions;
|
|
890
890
|
if (configuration) {
|
|
@@ -906,7 +906,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
906
906
|
};
|
|
907
907
|
},
|
|
908
908
|
getCurrentUserDetail: async (options = {}) => {
|
|
909
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/-`;
|
|
909
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-`;
|
|
910
910
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
911
911
|
let baseOptions;
|
|
912
912
|
if (configuration) {
|
|
@@ -927,7 +927,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
927
927
|
},
|
|
928
928
|
getPermissions: async (name, options = {}) => {
|
|
929
929
|
assertParamExists("getPermissions", "name", name);
|
|
930
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
930
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
931
931
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
932
932
|
let baseOptions;
|
|
933
933
|
if (configuration) {
|
|
@@ -949,7 +949,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
949
949
|
grantPermission: async (name, grantRequest, options = {}) => {
|
|
950
950
|
assertParamExists("grantPermission", "name", name);
|
|
951
951
|
assertParamExists("grantPermission", "grantRequest", grantRequest);
|
|
952
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
952
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
953
953
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
954
954
|
let baseOptions;
|
|
955
955
|
if (configuration) {
|
|
@@ -972,8 +972,8 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
972
972
|
}
|
|
973
973
|
};
|
|
974
974
|
};
|
|
975
|
-
const
|
|
976
|
-
const localVarAxiosParamCreator =
|
|
975
|
+
const ApiConsoleHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
976
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator(configuration);
|
|
977
977
|
return {
|
|
978
978
|
async changePassword(name, changePasswordRequest, options) {
|
|
979
979
|
const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(name, changePasswordRequest, options);
|
|
@@ -993,8 +993,8 @@ const ApiHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
|
993
993
|
}
|
|
994
994
|
};
|
|
995
995
|
};
|
|
996
|
-
const
|
|
997
|
-
const localVarFp =
|
|
996
|
+
const ApiConsoleHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios) {
|
|
997
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1UserApiFp(configuration);
|
|
998
998
|
return {
|
|
999
999
|
changePassword(name, changePasswordRequest, options) {
|
|
1000
1000
|
return localVarFp.changePassword(name, changePasswordRequest, options).then((request) => request(axios, basePath));
|
|
@@ -1010,18 +1010,18 @@ const ApiHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios
|
|
|
1010
1010
|
}
|
|
1011
1011
|
};
|
|
1012
1012
|
};
|
|
1013
|
-
class
|
|
1013
|
+
class ApiConsoleHaloRunV1alpha1UserApi extends BaseAPI {
|
|
1014
1014
|
changePassword(requestParameters, options) {
|
|
1015
|
-
return
|
|
1015
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).changePassword(requestParameters.name, requestParameters.changePasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1016
1016
|
}
|
|
1017
1017
|
getCurrentUserDetail(options) {
|
|
1018
|
-
return
|
|
1018
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getCurrentUserDetail(options).then((request) => request(this.axios, this.basePath));
|
|
1019
1019
|
}
|
|
1020
1020
|
getPermissions(requestParameters, options) {
|
|
1021
|
-
return
|
|
1021
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getPermissions(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1022
1022
|
}
|
|
1023
1023
|
grantPermission(requestParameters, options) {
|
|
1024
|
-
return
|
|
1024
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).grantPermission(requestParameters.name, requestParameters.grantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
@@ -2797,8 +2797,8 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2797
2797
|
options: localVarRequestOptions
|
|
2798
2798
|
};
|
|
2799
2799
|
},
|
|
2800
|
-
searchAttachments: async (policy, displayName,
|
|
2801
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/attachments`;
|
|
2800
|
+
searchAttachments: async (policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
2801
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
2802
2802
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2803
2803
|
let baseOptions;
|
|
2804
2804
|
if (configuration) {
|
|
@@ -2815,24 +2815,24 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2815
2815
|
if (displayName !== void 0) {
|
|
2816
2816
|
localVarQueryParameter["displayName"] = displayName;
|
|
2817
2817
|
}
|
|
2818
|
-
if (group !== void 0) {
|
|
2819
|
-
localVarQueryParameter["group"] = group;
|
|
2820
|
-
}
|
|
2821
2818
|
if (uploadedBy !== void 0) {
|
|
2822
2819
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
2823
2820
|
}
|
|
2821
|
+
if (group !== void 0) {
|
|
2822
|
+
localVarQueryParameter["group"] = group;
|
|
2823
|
+
}
|
|
2824
2824
|
if (size !== void 0) {
|
|
2825
2825
|
localVarQueryParameter["size"] = size;
|
|
2826
2826
|
}
|
|
2827
|
-
if (page !== void 0) {
|
|
2828
|
-
localVarQueryParameter["page"] = page;
|
|
2829
|
-
}
|
|
2830
2827
|
if (labelSelector) {
|
|
2831
2828
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
2832
2829
|
}
|
|
2833
2830
|
if (fieldSelector) {
|
|
2834
2831
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
2835
2832
|
}
|
|
2833
|
+
if (page !== void 0) {
|
|
2834
|
+
localVarQueryParameter["page"] = page;
|
|
2835
|
+
}
|
|
2836
2836
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2837
2837
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2838
2838
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2867,7 +2867,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2867
2867
|
uploadAttachment: async (file, policyName, groupName, options = {}) => {
|
|
2868
2868
|
assertParamExists("uploadAttachment", "file", file);
|
|
2869
2869
|
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
2870
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/attachments/upload`;
|
|
2870
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
|
|
2871
2871
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2872
2872
|
let baseOptions;
|
|
2873
2873
|
if (configuration) {
|
|
@@ -2919,8 +2919,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
2919
2919
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
2920
2920
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2921
2921
|
},
|
|
2922
|
-
async searchAttachments(policy, displayName,
|
|
2923
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName,
|
|
2922
|
+
async searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
2923
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
|
|
2924
2924
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2925
2925
|
},
|
|
2926
2926
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
@@ -2948,8 +2948,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
2948
2948
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
2949
2949
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2950
2950
|
},
|
|
2951
|
-
searchAttachments(policy, displayName,
|
|
2952
|
-
return localVarFp.searchAttachments(policy, displayName,
|
|
2951
|
+
searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
2952
|
+
return localVarFp.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
2953
2953
|
},
|
|
2954
2954
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
2955
2955
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
@@ -2973,7 +2973,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
2973
2973
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2974
2974
|
}
|
|
2975
2975
|
searchAttachments(requestParameters = {}, options) {
|
|
2976
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.
|
|
2976
|
+
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.uploadedBy, requestParameters.group, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
2977
2977
|
}
|
|
2978
2978
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
2979
2979
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5231,6 +5231,12 @@ class Configuration {
|
|
|
5231
5231
|
}
|
|
5232
5232
|
}
|
|
5233
5233
|
|
|
5234
|
+
const CompactPostVisibleEnum = {
|
|
5235
|
+
Public: "PUBLIC",
|
|
5236
|
+
Internal: "INTERNAL",
|
|
5237
|
+
Private: "PRIVATE"
|
|
5238
|
+
};
|
|
5239
|
+
|
|
5234
5240
|
const ConditionStatusEnum = {
|
|
5235
5241
|
True: "TRUE",
|
|
5236
5242
|
False: "FALSE",
|
|
@@ -5258,38 +5264,39 @@ const SinglePageSpecVisibleEnum = {
|
|
|
5258
5264
|
Private: "PRIVATE"
|
|
5259
5265
|
};
|
|
5260
5266
|
|
|
5261
|
-
exports.
|
|
5262
|
-
exports.
|
|
5263
|
-
exports.
|
|
5264
|
-
exports.
|
|
5265
|
-
exports.
|
|
5266
|
-
exports.
|
|
5267
|
-
exports.
|
|
5268
|
-
exports.
|
|
5269
|
-
exports.
|
|
5270
|
-
exports.
|
|
5271
|
-
exports.
|
|
5272
|
-
exports.
|
|
5273
|
-
exports.
|
|
5274
|
-
exports.
|
|
5275
|
-
exports.
|
|
5276
|
-
exports.
|
|
5277
|
-
exports.
|
|
5278
|
-
exports.
|
|
5279
|
-
exports.
|
|
5280
|
-
exports.
|
|
5281
|
-
exports.
|
|
5282
|
-
exports.
|
|
5283
|
-
exports.
|
|
5284
|
-
exports.
|
|
5285
|
-
exports.
|
|
5286
|
-
exports.
|
|
5287
|
-
exports.
|
|
5288
|
-
exports.
|
|
5289
|
-
exports.
|
|
5290
|
-
exports.
|
|
5291
|
-
exports.
|
|
5292
|
-
exports.
|
|
5267
|
+
exports.ApiConsoleHaloRunV1alpha1CommentApi = ApiConsoleHaloRunV1alpha1CommentApi;
|
|
5268
|
+
exports.ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator;
|
|
5269
|
+
exports.ApiConsoleHaloRunV1alpha1CommentApiFactory = ApiConsoleHaloRunV1alpha1CommentApiFactory;
|
|
5270
|
+
exports.ApiConsoleHaloRunV1alpha1CommentApiFp = ApiConsoleHaloRunV1alpha1CommentApiFp;
|
|
5271
|
+
exports.ApiConsoleHaloRunV1alpha1ContentApi = ApiConsoleHaloRunV1alpha1ContentApi;
|
|
5272
|
+
exports.ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator;
|
|
5273
|
+
exports.ApiConsoleHaloRunV1alpha1ContentApiFactory = ApiConsoleHaloRunV1alpha1ContentApiFactory;
|
|
5274
|
+
exports.ApiConsoleHaloRunV1alpha1ContentApiFp = ApiConsoleHaloRunV1alpha1ContentApiFp;
|
|
5275
|
+
exports.ApiConsoleHaloRunV1alpha1PluginApi = ApiConsoleHaloRunV1alpha1PluginApi;
|
|
5276
|
+
exports.ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator;
|
|
5277
|
+
exports.ApiConsoleHaloRunV1alpha1PluginApiFactory = ApiConsoleHaloRunV1alpha1PluginApiFactory;
|
|
5278
|
+
exports.ApiConsoleHaloRunV1alpha1PluginApiFp = ApiConsoleHaloRunV1alpha1PluginApiFp;
|
|
5279
|
+
exports.ApiConsoleHaloRunV1alpha1PostApi = ApiConsoleHaloRunV1alpha1PostApi;
|
|
5280
|
+
exports.ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator;
|
|
5281
|
+
exports.ApiConsoleHaloRunV1alpha1PostApiFactory = ApiConsoleHaloRunV1alpha1PostApiFactory;
|
|
5282
|
+
exports.ApiConsoleHaloRunV1alpha1PostApiFp = ApiConsoleHaloRunV1alpha1PostApiFp;
|
|
5283
|
+
exports.ApiConsoleHaloRunV1alpha1ReplyApi = ApiConsoleHaloRunV1alpha1ReplyApi;
|
|
5284
|
+
exports.ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator;
|
|
5285
|
+
exports.ApiConsoleHaloRunV1alpha1ReplyApiFactory = ApiConsoleHaloRunV1alpha1ReplyApiFactory;
|
|
5286
|
+
exports.ApiConsoleHaloRunV1alpha1ReplyApiFp = ApiConsoleHaloRunV1alpha1ReplyApiFp;
|
|
5287
|
+
exports.ApiConsoleHaloRunV1alpha1SinglePageApi = ApiConsoleHaloRunV1alpha1SinglePageApi;
|
|
5288
|
+
exports.ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator;
|
|
5289
|
+
exports.ApiConsoleHaloRunV1alpha1SinglePageApiFactory = ApiConsoleHaloRunV1alpha1SinglePageApiFactory;
|
|
5290
|
+
exports.ApiConsoleHaloRunV1alpha1SinglePageApiFp = ApiConsoleHaloRunV1alpha1SinglePageApiFp;
|
|
5291
|
+
exports.ApiConsoleHaloRunV1alpha1ThemeApi = ApiConsoleHaloRunV1alpha1ThemeApi;
|
|
5292
|
+
exports.ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator;
|
|
5293
|
+
exports.ApiConsoleHaloRunV1alpha1ThemeApiFactory = ApiConsoleHaloRunV1alpha1ThemeApiFactory;
|
|
5294
|
+
exports.ApiConsoleHaloRunV1alpha1ThemeApiFp = ApiConsoleHaloRunV1alpha1ThemeApiFp;
|
|
5295
|
+
exports.ApiConsoleHaloRunV1alpha1UserApi = ApiConsoleHaloRunV1alpha1UserApi;
|
|
5296
|
+
exports.ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator;
|
|
5297
|
+
exports.ApiConsoleHaloRunV1alpha1UserApiFactory = ApiConsoleHaloRunV1alpha1UserApiFactory;
|
|
5298
|
+
exports.ApiConsoleHaloRunV1alpha1UserApiFp = ApiConsoleHaloRunV1alpha1UserApiFp;
|
|
5299
|
+
exports.CompactPostVisibleEnum = CompactPostVisibleEnum;
|
|
5293
5300
|
exports.ConditionStatusEnum = ConditionStatusEnum;
|
|
5294
5301
|
exports.Configuration = Configuration;
|
|
5295
5302
|
exports.ContentHaloRunV1alpha1CategoryApi = ContentHaloRunV1alpha1CategoryApi;
|