@halo-dev/api-client 0.0.22 → 0.0.24
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 +207 -185
- package/dist/index.d.ts +466 -364
- package/dist/index.mjs +175 -154
- 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 (sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, 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,42 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
474
474
|
const localVarQueryParameter = {};
|
|
475
475
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
476
476
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
477
|
-
if (
|
|
478
|
-
localVarQueryParameter["
|
|
477
|
+
if (sort !== void 0) {
|
|
478
|
+
localVarQueryParameter["sort"] = sort;
|
|
479
479
|
}
|
|
480
|
-
if (
|
|
481
|
-
localVarQueryParameter["
|
|
480
|
+
if (publishPhase !== void 0) {
|
|
481
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
482
|
+
}
|
|
483
|
+
if (category) {
|
|
484
|
+
localVarQueryParameter["category"] = Array.from(category);
|
|
485
|
+
}
|
|
486
|
+
if (sortOrder !== void 0) {
|
|
487
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
488
|
+
}
|
|
489
|
+
if (contributor) {
|
|
490
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
491
|
+
}
|
|
492
|
+
if (keyword !== void 0) {
|
|
493
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
482
494
|
}
|
|
483
|
-
if (
|
|
484
|
-
localVarQueryParameter["
|
|
495
|
+
if (visible !== void 0) {
|
|
496
|
+
localVarQueryParameter["visible"] = visible;
|
|
497
|
+
}
|
|
498
|
+
if (tag) {
|
|
499
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
485
500
|
}
|
|
486
501
|
if (size !== void 0) {
|
|
487
502
|
localVarQueryParameter["size"] = size;
|
|
488
503
|
}
|
|
489
|
-
if (page !== void 0) {
|
|
490
|
-
localVarQueryParameter["page"] = page;
|
|
491
|
-
}
|
|
492
504
|
if (labelSelector) {
|
|
493
505
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
494
506
|
}
|
|
495
507
|
if (fieldSelector) {
|
|
496
508
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
497
509
|
}
|
|
510
|
+
if (page !== void 0) {
|
|
511
|
+
localVarQueryParameter["page"] = page;
|
|
512
|
+
}
|
|
498
513
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
499
514
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
500
515
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -505,7 +520,7 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
505
520
|
},
|
|
506
521
|
publishPost: async (name, options = {}) => {
|
|
507
522
|
assertParamExists("publishPost", "name", name);
|
|
508
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/posts/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
523
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
509
524
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
510
525
|
let baseOptions;
|
|
511
526
|
if (configuration) {
|
|
@@ -527,7 +542,7 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
527
542
|
updateDraftPost: async (name, postRequest, options = {}) => {
|
|
528
543
|
assertParamExists("updateDraftPost", "name", name);
|
|
529
544
|
assertParamExists("updateDraftPost", "postRequest", postRequest);
|
|
530
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/posts/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
545
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
531
546
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
532
547
|
let baseOptions;
|
|
533
548
|
if (configuration) {
|
|
@@ -550,15 +565,15 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
550
565
|
}
|
|
551
566
|
};
|
|
552
567
|
};
|
|
553
|
-
const
|
|
554
|
-
const localVarAxiosParamCreator =
|
|
568
|
+
const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
569
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
555
570
|
return {
|
|
556
571
|
async draftPost(postRequest, options) {
|
|
557
572
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
558
573
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
559
574
|
},
|
|
560
|
-
async listPosts(
|
|
561
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(
|
|
575
|
+
async listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
576
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
|
|
562
577
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
563
578
|
},
|
|
564
579
|
async publishPost(name, options) {
|
|
@@ -571,14 +586,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
571
586
|
}
|
|
572
587
|
};
|
|
573
588
|
};
|
|
574
|
-
const
|
|
575
|
-
const localVarFp =
|
|
589
|
+
const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
590
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1PostApiFp(configuration);
|
|
576
591
|
return {
|
|
577
592
|
draftPost(postRequest, options) {
|
|
578
593
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
579
594
|
},
|
|
580
|
-
listPosts(
|
|
581
|
-
return localVarFp.listPosts(
|
|
595
|
+
listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
596
|
+
return localVarFp.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
582
597
|
},
|
|
583
598
|
publishPost(name, options) {
|
|
584
599
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -588,25 +603,25 @@ const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios
|
|
|
588
603
|
}
|
|
589
604
|
};
|
|
590
605
|
};
|
|
591
|
-
class
|
|
606
|
+
class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
592
607
|
draftPost(requestParameters, options) {
|
|
593
|
-
return
|
|
608
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
594
609
|
}
|
|
595
610
|
listPosts(requestParameters = {}, options) {
|
|
596
|
-
return
|
|
611
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
597
612
|
}
|
|
598
613
|
publishPost(requestParameters, options) {
|
|
599
|
-
return
|
|
614
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
600
615
|
}
|
|
601
616
|
updateDraftPost(requestParameters, options) {
|
|
602
|
-
return
|
|
617
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
603
618
|
}
|
|
604
619
|
}
|
|
605
620
|
|
|
606
|
-
const
|
|
621
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
607
622
|
return {
|
|
608
|
-
listReplies: async (commentName, size,
|
|
609
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/replies`;
|
|
623
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
624
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
610
625
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
611
626
|
let baseOptions;
|
|
612
627
|
if (configuration) {
|
|
@@ -623,15 +638,15 @@ const ApiHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
|
623
638
|
if (size !== void 0) {
|
|
624
639
|
localVarQueryParameter["size"] = size;
|
|
625
640
|
}
|
|
626
|
-
if (page !== void 0) {
|
|
627
|
-
localVarQueryParameter["page"] = page;
|
|
628
|
-
}
|
|
629
641
|
if (labelSelector) {
|
|
630
642
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
631
643
|
}
|
|
632
644
|
if (fieldSelector) {
|
|
633
645
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
634
646
|
}
|
|
647
|
+
if (page !== void 0) {
|
|
648
|
+
localVarQueryParameter["page"] = page;
|
|
649
|
+
}
|
|
635
650
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
636
651
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
637
652
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -642,34 +657,34 @@ const ApiHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
|
642
657
|
}
|
|
643
658
|
};
|
|
644
659
|
};
|
|
645
|
-
const
|
|
646
|
-
const localVarAxiosParamCreator =
|
|
660
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
661
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
647
662
|
return {
|
|
648
|
-
async listReplies(commentName, size,
|
|
649
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size,
|
|
663
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
664
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
650
665
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
651
666
|
}
|
|
652
667
|
};
|
|
653
668
|
};
|
|
654
|
-
const
|
|
655
|
-
const localVarFp =
|
|
669
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
670
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
656
671
|
return {
|
|
657
|
-
listReplies(commentName, size,
|
|
658
|
-
return localVarFp.listReplies(commentName, size,
|
|
672
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
673
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
659
674
|
}
|
|
660
675
|
};
|
|
661
676
|
};
|
|
662
|
-
class
|
|
677
|
+
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
663
678
|
listReplies(requestParameters = {}, options) {
|
|
664
|
-
return
|
|
679
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
665
680
|
}
|
|
666
681
|
}
|
|
667
682
|
|
|
668
|
-
const
|
|
683
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration) {
|
|
669
684
|
return {
|
|
670
685
|
draftSinglePage: async (singlePageRequest, options = {}) => {
|
|
671
686
|
assertParamExists("draftSinglePage", "singlePageRequest", singlePageRequest);
|
|
672
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
687
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
673
688
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
674
689
|
let baseOptions;
|
|
675
690
|
if (configuration) {
|
|
@@ -690,8 +705,8 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
690
705
|
options: localVarRequestOptions
|
|
691
706
|
};
|
|
692
707
|
},
|
|
693
|
-
listSinglePages: async (contributors, size,
|
|
694
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
708
|
+
listSinglePages: async (contributors, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
709
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
695
710
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
696
711
|
let baseOptions;
|
|
697
712
|
if (configuration) {
|
|
@@ -708,15 +723,15 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
708
723
|
if (size !== void 0) {
|
|
709
724
|
localVarQueryParameter["size"] = size;
|
|
710
725
|
}
|
|
711
|
-
if (page !== void 0) {
|
|
712
|
-
localVarQueryParameter["page"] = page;
|
|
713
|
-
}
|
|
714
726
|
if (labelSelector) {
|
|
715
727
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
716
728
|
}
|
|
717
729
|
if (fieldSelector) {
|
|
718
730
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
719
731
|
}
|
|
732
|
+
if (page !== void 0) {
|
|
733
|
+
localVarQueryParameter["page"] = page;
|
|
734
|
+
}
|
|
720
735
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
721
736
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
722
737
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -727,7 +742,7 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
727
742
|
},
|
|
728
743
|
publishSinglePage: async (name, options = {}) => {
|
|
729
744
|
assertParamExists("publishSinglePage", "name", name);
|
|
730
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
745
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
731
746
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
732
747
|
let baseOptions;
|
|
733
748
|
if (configuration) {
|
|
@@ -749,7 +764,7 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
749
764
|
updateDraftSinglePage: async (name, singlePageRequest, options = {}) => {
|
|
750
765
|
assertParamExists("updateDraftSinglePage", "name", name);
|
|
751
766
|
assertParamExists("updateDraftSinglePage", "singlePageRequest", singlePageRequest);
|
|
752
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
767
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
753
768
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
754
769
|
let baseOptions;
|
|
755
770
|
if (configuration) {
|
|
@@ -772,15 +787,15 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
772
787
|
}
|
|
773
788
|
};
|
|
774
789
|
};
|
|
775
|
-
const
|
|
776
|
-
const localVarAxiosParamCreator =
|
|
790
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
791
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration);
|
|
777
792
|
return {
|
|
778
793
|
async draftSinglePage(singlePageRequest, options) {
|
|
779
794
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
780
795
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
781
796
|
},
|
|
782
|
-
async listSinglePages(contributors, size,
|
|
783
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size,
|
|
797
|
+
async listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
|
|
798
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options);
|
|
784
799
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
785
800
|
},
|
|
786
801
|
async publishSinglePage(name, options) {
|
|
@@ -793,14 +808,14 @@ const ApiHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
793
808
|
}
|
|
794
809
|
};
|
|
795
810
|
};
|
|
796
|
-
const
|
|
797
|
-
const localVarFp =
|
|
811
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath, axios) {
|
|
812
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1SinglePageApiFp(configuration);
|
|
798
813
|
return {
|
|
799
814
|
draftSinglePage(singlePageRequest, options) {
|
|
800
815
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
801
816
|
},
|
|
802
|
-
listSinglePages(contributors, size,
|
|
803
|
-
return localVarFp.listSinglePages(contributors, size,
|
|
817
|
+
listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
|
|
818
|
+
return localVarFp.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
804
819
|
},
|
|
805
820
|
publishSinglePage(name, options) {
|
|
806
821
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -810,26 +825,26 @@ const ApiHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath,
|
|
|
810
825
|
}
|
|
811
826
|
};
|
|
812
827
|
};
|
|
813
|
-
class
|
|
828
|
+
class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
814
829
|
draftSinglePage(requestParameters, options) {
|
|
815
|
-
return
|
|
830
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
816
831
|
}
|
|
817
832
|
listSinglePages(requestParameters = {}, options) {
|
|
818
|
-
return
|
|
833
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.contributors, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
819
834
|
}
|
|
820
835
|
publishSinglePage(requestParameters, options) {
|
|
821
|
-
return
|
|
836
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
822
837
|
}
|
|
823
838
|
updateDraftSinglePage(requestParameters, options) {
|
|
824
|
-
return
|
|
839
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
825
840
|
}
|
|
826
841
|
}
|
|
827
842
|
|
|
828
|
-
const
|
|
843
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
829
844
|
return {
|
|
830
845
|
installTheme: async (file, options = {}) => {
|
|
831
846
|
assertParamExists("installTheme", "file", file);
|
|
832
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/themes/install`;
|
|
847
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/install`;
|
|
833
848
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
834
849
|
let baseOptions;
|
|
835
850
|
if (configuration) {
|
|
@@ -856,8 +871,8 @@ const ApiHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
|
856
871
|
}
|
|
857
872
|
};
|
|
858
873
|
};
|
|
859
|
-
const
|
|
860
|
-
const localVarAxiosParamCreator =
|
|
874
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
875
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
|
861
876
|
return {
|
|
862
877
|
async installTheme(file, options) {
|
|
863
878
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
@@ -865,26 +880,26 @@ const ApiHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
865
880
|
}
|
|
866
881
|
};
|
|
867
882
|
};
|
|
868
|
-
const
|
|
869
|
-
const localVarFp =
|
|
883
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePath, axios) {
|
|
884
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration);
|
|
870
885
|
return {
|
|
871
886
|
installTheme(file, options) {
|
|
872
887
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
873
888
|
}
|
|
874
889
|
};
|
|
875
890
|
};
|
|
876
|
-
class
|
|
891
|
+
class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
877
892
|
installTheme(requestParameters, options) {
|
|
878
|
-
return
|
|
893
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
879
894
|
}
|
|
880
895
|
}
|
|
881
896
|
|
|
882
|
-
const
|
|
897
|
+
const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
883
898
|
return {
|
|
884
899
|
changePassword: async (name, changePasswordRequest, options = {}) => {
|
|
885
900
|
assertParamExists("changePassword", "name", name);
|
|
886
901
|
assertParamExists("changePassword", "changePasswordRequest", changePasswordRequest);
|
|
887
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/password`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
902
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/password`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
888
903
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
889
904
|
let baseOptions;
|
|
890
905
|
if (configuration) {
|
|
@@ -906,7 +921,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
906
921
|
};
|
|
907
922
|
},
|
|
908
923
|
getCurrentUserDetail: async (options = {}) => {
|
|
909
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/-`;
|
|
924
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-`;
|
|
910
925
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
911
926
|
let baseOptions;
|
|
912
927
|
if (configuration) {
|
|
@@ -927,7 +942,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
927
942
|
},
|
|
928
943
|
getPermissions: async (name, options = {}) => {
|
|
929
944
|
assertParamExists("getPermissions", "name", name);
|
|
930
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
945
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
931
946
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
932
947
|
let baseOptions;
|
|
933
948
|
if (configuration) {
|
|
@@ -949,7 +964,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
949
964
|
grantPermission: async (name, grantRequest, options = {}) => {
|
|
950
965
|
assertParamExists("grantPermission", "name", name);
|
|
951
966
|
assertParamExists("grantPermission", "grantRequest", grantRequest);
|
|
952
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
967
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
953
968
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
954
969
|
let baseOptions;
|
|
955
970
|
if (configuration) {
|
|
@@ -972,8 +987,8 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
972
987
|
}
|
|
973
988
|
};
|
|
974
989
|
};
|
|
975
|
-
const
|
|
976
|
-
const localVarAxiosParamCreator =
|
|
990
|
+
const ApiConsoleHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
991
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator(configuration);
|
|
977
992
|
return {
|
|
978
993
|
async changePassword(name, changePasswordRequest, options) {
|
|
979
994
|
const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(name, changePasswordRequest, options);
|
|
@@ -993,8 +1008,8 @@ const ApiHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
|
993
1008
|
}
|
|
994
1009
|
};
|
|
995
1010
|
};
|
|
996
|
-
const
|
|
997
|
-
const localVarFp =
|
|
1011
|
+
const ApiConsoleHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios) {
|
|
1012
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1UserApiFp(configuration);
|
|
998
1013
|
return {
|
|
999
1014
|
changePassword(name, changePasswordRequest, options) {
|
|
1000
1015
|
return localVarFp.changePassword(name, changePasswordRequest, options).then((request) => request(axios, basePath));
|
|
@@ -1010,18 +1025,18 @@ const ApiHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios
|
|
|
1010
1025
|
}
|
|
1011
1026
|
};
|
|
1012
1027
|
};
|
|
1013
|
-
class
|
|
1028
|
+
class ApiConsoleHaloRunV1alpha1UserApi extends BaseAPI {
|
|
1014
1029
|
changePassword(requestParameters, options) {
|
|
1015
|
-
return
|
|
1030
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).changePassword(requestParameters.name, requestParameters.changePasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1016
1031
|
}
|
|
1017
1032
|
getCurrentUserDetail(options) {
|
|
1018
|
-
return
|
|
1033
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getCurrentUserDetail(options).then((request) => request(this.axios, this.basePath));
|
|
1019
1034
|
}
|
|
1020
1035
|
getPermissions(requestParameters, options) {
|
|
1021
|
-
return
|
|
1036
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getPermissions(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1022
1037
|
}
|
|
1023
1038
|
grantPermission(requestParameters, options) {
|
|
1024
|
-
return
|
|
1039
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).grantPermission(requestParameters.name, requestParameters.grantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1025
1040
|
}
|
|
1026
1041
|
}
|
|
1027
1042
|
|
|
@@ -2797,8 +2812,8 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2797
2812
|
options: localVarRequestOptions
|
|
2798
2813
|
};
|
|
2799
2814
|
},
|
|
2800
|
-
searchAttachments: async (policy, displayName,
|
|
2801
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/attachments`;
|
|
2815
|
+
searchAttachments: async (policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
2816
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
2802
2817
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2803
2818
|
let baseOptions;
|
|
2804
2819
|
if (configuration) {
|
|
@@ -2815,24 +2830,24 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2815
2830
|
if (displayName !== void 0) {
|
|
2816
2831
|
localVarQueryParameter["displayName"] = displayName;
|
|
2817
2832
|
}
|
|
2818
|
-
if (group !== void 0) {
|
|
2819
|
-
localVarQueryParameter["group"] = group;
|
|
2820
|
-
}
|
|
2821
2833
|
if (uploadedBy !== void 0) {
|
|
2822
2834
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
2823
2835
|
}
|
|
2836
|
+
if (group !== void 0) {
|
|
2837
|
+
localVarQueryParameter["group"] = group;
|
|
2838
|
+
}
|
|
2824
2839
|
if (size !== void 0) {
|
|
2825
2840
|
localVarQueryParameter["size"] = size;
|
|
2826
2841
|
}
|
|
2827
|
-
if (page !== void 0) {
|
|
2828
|
-
localVarQueryParameter["page"] = page;
|
|
2829
|
-
}
|
|
2830
2842
|
if (labelSelector) {
|
|
2831
2843
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
2832
2844
|
}
|
|
2833
2845
|
if (fieldSelector) {
|
|
2834
2846
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
2835
2847
|
}
|
|
2848
|
+
if (page !== void 0) {
|
|
2849
|
+
localVarQueryParameter["page"] = page;
|
|
2850
|
+
}
|
|
2836
2851
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2837
2852
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2838
2853
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2867,7 +2882,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2867
2882
|
uploadAttachment: async (file, policyName, groupName, options = {}) => {
|
|
2868
2883
|
assertParamExists("uploadAttachment", "file", file);
|
|
2869
2884
|
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
2870
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/attachments/upload`;
|
|
2885
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
|
|
2871
2886
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2872
2887
|
let baseOptions;
|
|
2873
2888
|
if (configuration) {
|
|
@@ -2919,8 +2934,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
2919
2934
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
2920
2935
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2921
2936
|
},
|
|
2922
|
-
async searchAttachments(policy, displayName,
|
|
2923
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName,
|
|
2937
|
+
async searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
2938
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
|
|
2924
2939
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2925
2940
|
},
|
|
2926
2941
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
@@ -2948,8 +2963,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
2948
2963
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
2949
2964
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2950
2965
|
},
|
|
2951
|
-
searchAttachments(policy, displayName,
|
|
2952
|
-
return localVarFp.searchAttachments(policy, displayName,
|
|
2966
|
+
searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
2967
|
+
return localVarFp.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
2953
2968
|
},
|
|
2954
2969
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
2955
2970
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
@@ -2973,7 +2988,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
2973
2988
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2974
2989
|
}
|
|
2975
2990
|
searchAttachments(requestParameters = {}, options) {
|
|
2976
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.
|
|
2991
|
+
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
2992
|
}
|
|
2978
2993
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
2979
2994
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5231,6 +5246,12 @@ class Configuration {
|
|
|
5231
5246
|
}
|
|
5232
5247
|
}
|
|
5233
5248
|
|
|
5249
|
+
const CompactPostVisibleEnum = {
|
|
5250
|
+
Public: "PUBLIC",
|
|
5251
|
+
Internal: "INTERNAL",
|
|
5252
|
+
Private: "PRIVATE"
|
|
5253
|
+
};
|
|
5254
|
+
|
|
5234
5255
|
const ConditionStatusEnum = {
|
|
5235
5256
|
True: "TRUE",
|
|
5236
5257
|
False: "FALSE",
|
|
@@ -5258,38 +5279,39 @@ const SinglePageSpecVisibleEnum = {
|
|
|
5258
5279
|
Private: "PRIVATE"
|
|
5259
5280
|
};
|
|
5260
5281
|
|
|
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.
|
|
5282
|
+
exports.ApiConsoleHaloRunV1alpha1CommentApi = ApiConsoleHaloRunV1alpha1CommentApi;
|
|
5283
|
+
exports.ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator;
|
|
5284
|
+
exports.ApiConsoleHaloRunV1alpha1CommentApiFactory = ApiConsoleHaloRunV1alpha1CommentApiFactory;
|
|
5285
|
+
exports.ApiConsoleHaloRunV1alpha1CommentApiFp = ApiConsoleHaloRunV1alpha1CommentApiFp;
|
|
5286
|
+
exports.ApiConsoleHaloRunV1alpha1ContentApi = ApiConsoleHaloRunV1alpha1ContentApi;
|
|
5287
|
+
exports.ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator;
|
|
5288
|
+
exports.ApiConsoleHaloRunV1alpha1ContentApiFactory = ApiConsoleHaloRunV1alpha1ContentApiFactory;
|
|
5289
|
+
exports.ApiConsoleHaloRunV1alpha1ContentApiFp = ApiConsoleHaloRunV1alpha1ContentApiFp;
|
|
5290
|
+
exports.ApiConsoleHaloRunV1alpha1PluginApi = ApiConsoleHaloRunV1alpha1PluginApi;
|
|
5291
|
+
exports.ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator;
|
|
5292
|
+
exports.ApiConsoleHaloRunV1alpha1PluginApiFactory = ApiConsoleHaloRunV1alpha1PluginApiFactory;
|
|
5293
|
+
exports.ApiConsoleHaloRunV1alpha1PluginApiFp = ApiConsoleHaloRunV1alpha1PluginApiFp;
|
|
5294
|
+
exports.ApiConsoleHaloRunV1alpha1PostApi = ApiConsoleHaloRunV1alpha1PostApi;
|
|
5295
|
+
exports.ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator;
|
|
5296
|
+
exports.ApiConsoleHaloRunV1alpha1PostApiFactory = ApiConsoleHaloRunV1alpha1PostApiFactory;
|
|
5297
|
+
exports.ApiConsoleHaloRunV1alpha1PostApiFp = ApiConsoleHaloRunV1alpha1PostApiFp;
|
|
5298
|
+
exports.ApiConsoleHaloRunV1alpha1ReplyApi = ApiConsoleHaloRunV1alpha1ReplyApi;
|
|
5299
|
+
exports.ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator;
|
|
5300
|
+
exports.ApiConsoleHaloRunV1alpha1ReplyApiFactory = ApiConsoleHaloRunV1alpha1ReplyApiFactory;
|
|
5301
|
+
exports.ApiConsoleHaloRunV1alpha1ReplyApiFp = ApiConsoleHaloRunV1alpha1ReplyApiFp;
|
|
5302
|
+
exports.ApiConsoleHaloRunV1alpha1SinglePageApi = ApiConsoleHaloRunV1alpha1SinglePageApi;
|
|
5303
|
+
exports.ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator;
|
|
5304
|
+
exports.ApiConsoleHaloRunV1alpha1SinglePageApiFactory = ApiConsoleHaloRunV1alpha1SinglePageApiFactory;
|
|
5305
|
+
exports.ApiConsoleHaloRunV1alpha1SinglePageApiFp = ApiConsoleHaloRunV1alpha1SinglePageApiFp;
|
|
5306
|
+
exports.ApiConsoleHaloRunV1alpha1ThemeApi = ApiConsoleHaloRunV1alpha1ThemeApi;
|
|
5307
|
+
exports.ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator;
|
|
5308
|
+
exports.ApiConsoleHaloRunV1alpha1ThemeApiFactory = ApiConsoleHaloRunV1alpha1ThemeApiFactory;
|
|
5309
|
+
exports.ApiConsoleHaloRunV1alpha1ThemeApiFp = ApiConsoleHaloRunV1alpha1ThemeApiFp;
|
|
5310
|
+
exports.ApiConsoleHaloRunV1alpha1UserApi = ApiConsoleHaloRunV1alpha1UserApi;
|
|
5311
|
+
exports.ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator;
|
|
5312
|
+
exports.ApiConsoleHaloRunV1alpha1UserApiFactory = ApiConsoleHaloRunV1alpha1UserApiFactory;
|
|
5313
|
+
exports.ApiConsoleHaloRunV1alpha1UserApiFp = ApiConsoleHaloRunV1alpha1UserApiFp;
|
|
5314
|
+
exports.CompactPostVisibleEnum = CompactPostVisibleEnum;
|
|
5293
5315
|
exports.ConditionStatusEnum = ConditionStatusEnum;
|
|
5294
5316
|
exports.Configuration = Configuration;
|
|
5295
5317
|
exports.ContentHaloRunV1alpha1CategoryApi = ContentHaloRunV1alpha1CategoryApi;
|