@halo-dev/api-client 0.0.21 → 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 +237 -164
- package/dist/index.d.ts +729 -479
- package/dist/index.mjs +205 -137
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -67,11 +67,11 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
const
|
|
70
|
+
const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
71
71
|
return {
|
|
72
72
|
createComment: async (commentRequest, options = {}) => {
|
|
73
73
|
assertParamExists("createComment", "commentRequest", commentRequest);
|
|
74
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
|
|
74
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
75
75
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
76
76
|
let baseOptions;
|
|
77
77
|
if (configuration) {
|
|
@@ -95,7 +95,7 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
95
95
|
createReply: async (name, replyRequest, options = {}) => {
|
|
96
96
|
assertParamExists("createReply", "name", name);
|
|
97
97
|
assertParamExists("createReply", "replyRequest", replyRequest);
|
|
98
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
98
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments/{name}/reply`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
99
99
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
100
100
|
let baseOptions;
|
|
101
101
|
if (configuration) {
|
|
@@ -116,8 +116,8 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
116
116
|
options: localVarRequestOptions
|
|
117
117
|
};
|
|
118
118
|
},
|
|
119
|
-
listComments: async (sort,
|
|
120
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
|
|
119
|
+
listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
120
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
121
121
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
122
122
|
let baseOptions;
|
|
123
123
|
if (configuration) {
|
|
@@ -131,14 +131,8 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
131
131
|
if (sort !== void 0) {
|
|
132
132
|
localVarQueryParameter["sort"] = sort;
|
|
133
133
|
}
|
|
134
|
-
if (
|
|
135
|
-
localVarQueryParameter["
|
|
136
|
-
}
|
|
137
|
-
if (hidden !== void 0) {
|
|
138
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
139
|
-
}
|
|
140
|
-
if (top !== void 0) {
|
|
141
|
-
localVarQueryParameter["top"] = top;
|
|
134
|
+
if (sortOrder !== void 0) {
|
|
135
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
142
136
|
}
|
|
143
137
|
if (approved !== void 0) {
|
|
144
138
|
localVarQueryParameter["approved"] = approved;
|
|
@@ -158,21 +152,27 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
158
152
|
if (subjectName !== void 0) {
|
|
159
153
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
160
154
|
}
|
|
161
|
-
if (
|
|
162
|
-
localVarQueryParameter["
|
|
155
|
+
if (keyword !== void 0) {
|
|
156
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
157
|
+
}
|
|
158
|
+
if (hidden !== void 0) {
|
|
159
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
160
|
+
}
|
|
161
|
+
if (top !== void 0) {
|
|
162
|
+
localVarQueryParameter["top"] = top;
|
|
163
163
|
}
|
|
164
164
|
if (size !== void 0) {
|
|
165
165
|
localVarQueryParameter["size"] = size;
|
|
166
166
|
}
|
|
167
|
-
if (page !== void 0) {
|
|
168
|
-
localVarQueryParameter["page"] = page;
|
|
169
|
-
}
|
|
170
167
|
if (labelSelector) {
|
|
171
168
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
172
169
|
}
|
|
173
170
|
if (fieldSelector) {
|
|
174
171
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
175
172
|
}
|
|
173
|
+
if (page !== void 0) {
|
|
174
|
+
localVarQueryParameter["page"] = page;
|
|
175
|
+
}
|
|
176
176
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
177
177
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
178
178
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -183,8 +183,8 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
};
|
|
186
|
-
const
|
|
187
|
-
const localVarAxiosParamCreator =
|
|
186
|
+
const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
187
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator(configuration);
|
|
188
188
|
return {
|
|
189
189
|
async createComment(commentRequest, options) {
|
|
190
190
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createComment(commentRequest, options);
|
|
@@ -194,14 +194,14 @@ const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
194
194
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
|
|
195
195
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
196
196
|
},
|
|
197
|
-
async listComments(sort,
|
|
198
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort,
|
|
197
|
+
async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
198
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
|
|
199
199
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
const
|
|
204
|
-
const localVarFp =
|
|
203
|
+
const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, axios) {
|
|
204
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1CommentApiFp(configuration);
|
|
205
205
|
return {
|
|
206
206
|
createComment(commentRequest, options) {
|
|
207
207
|
return localVarFp.createComment(commentRequest, options).then((request) => request(axios, basePath));
|
|
@@ -209,28 +209,28 @@ const ApiHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, ax
|
|
|
209
209
|
createReply(name, replyRequest, options) {
|
|
210
210
|
return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
211
211
|
},
|
|
212
|
-
listComments(sort,
|
|
213
|
-
return localVarFp.listComments(sort,
|
|
212
|
+
listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
|
|
213
|
+
return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
|
-
class
|
|
217
|
+
class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
218
218
|
createComment(requestParameters, options) {
|
|
219
|
-
return
|
|
219
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createComment(requestParameters.commentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
220
220
|
}
|
|
221
221
|
createReply(requestParameters, options) {
|
|
222
|
-
return
|
|
222
|
+
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
223
223
|
}
|
|
224
224
|
listComments(requestParameters = {}, options) {
|
|
225
|
-
return
|
|
225
|
+
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));
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
const
|
|
229
|
+
const ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator = function(configuration) {
|
|
230
230
|
return {
|
|
231
231
|
draftSnapshotContent: async (contentRequest, options = {}) => {
|
|
232
232
|
assertParamExists("draftSnapshotContent", "contentRequest", contentRequest);
|
|
233
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/contents`;
|
|
233
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/contents`;
|
|
234
234
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
235
235
|
let baseOptions;
|
|
236
236
|
if (configuration) {
|
|
@@ -253,7 +253,7 @@ const ApiHaloRunV1alpha1ContentApiAxiosParamCreator = function(configuration) {
|
|
|
253
253
|
},
|
|
254
254
|
obtainSnapshotContent: async (snapshotName, options = {}) => {
|
|
255
255
|
assertParamExists("obtainSnapshotContent", "snapshotName", snapshotName);
|
|
256
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/contents/{snapshotName}`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
|
|
256
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/contents/{snapshotName}`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
|
|
257
257
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
258
258
|
let baseOptions;
|
|
259
259
|
if (configuration) {
|
|
@@ -275,7 +275,7 @@ const ApiHaloRunV1alpha1ContentApiAxiosParamCreator = function(configuration) {
|
|
|
275
275
|
publishSnapshotContent: async (snapshotName, subjectRef, options = {}) => {
|
|
276
276
|
assertParamExists("publishSnapshotContent", "snapshotName", snapshotName);
|
|
277
277
|
assertParamExists("publishSnapshotContent", "subjectRef", subjectRef);
|
|
278
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/contents/{snapshotName}/publish`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
|
|
278
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/contents/{snapshotName}/publish`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
|
|
279
279
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
280
280
|
let baseOptions;
|
|
281
281
|
if (configuration) {
|
|
@@ -299,7 +299,7 @@ const ApiHaloRunV1alpha1ContentApiAxiosParamCreator = function(configuration) {
|
|
|
299
299
|
updateSnapshotContent: async (snapshotName, contentRequest, options = {}) => {
|
|
300
300
|
assertParamExists("updateSnapshotContent", "snapshotName", snapshotName);
|
|
301
301
|
assertParamExists("updateSnapshotContent", "contentRequest", contentRequest);
|
|
302
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/contents/{snapshotName}`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
|
|
302
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/contents/{snapshotName}`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
|
|
303
303
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
304
304
|
let baseOptions;
|
|
305
305
|
if (configuration) {
|
|
@@ -322,8 +322,8 @@ const ApiHaloRunV1alpha1ContentApiAxiosParamCreator = function(configuration) {
|
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
324
|
};
|
|
325
|
-
const
|
|
326
|
-
const localVarAxiosParamCreator =
|
|
325
|
+
const ApiConsoleHaloRunV1alpha1ContentApiFp = function(configuration) {
|
|
326
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator(configuration);
|
|
327
327
|
return {
|
|
328
328
|
async draftSnapshotContent(contentRequest, options) {
|
|
329
329
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSnapshotContent(contentRequest, options);
|
|
@@ -343,8 +343,8 @@ const ApiHaloRunV1alpha1ContentApiFp = function(configuration) {
|
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
};
|
|
346
|
-
const
|
|
347
|
-
const localVarFp =
|
|
346
|
+
const ApiConsoleHaloRunV1alpha1ContentApiFactory = function(configuration, basePath, axios) {
|
|
347
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1ContentApiFp(configuration);
|
|
348
348
|
return {
|
|
349
349
|
draftSnapshotContent(contentRequest, options) {
|
|
350
350
|
return localVarFp.draftSnapshotContent(contentRequest, options).then((request) => request(axios, basePath));
|
|
@@ -360,26 +360,26 @@ const ApiHaloRunV1alpha1ContentApiFactory = function(configuration, basePath, ax
|
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
};
|
|
363
|
-
class
|
|
363
|
+
class ApiConsoleHaloRunV1alpha1ContentApi extends BaseAPI {
|
|
364
364
|
draftSnapshotContent(requestParameters, options) {
|
|
365
|
-
return
|
|
365
|
+
return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).draftSnapshotContent(requestParameters.contentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
366
366
|
}
|
|
367
367
|
obtainSnapshotContent(requestParameters, options) {
|
|
368
|
-
return
|
|
368
|
+
return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).obtainSnapshotContent(requestParameters.snapshotName, options).then((request) => request(this.axios, this.basePath));
|
|
369
369
|
}
|
|
370
370
|
publishSnapshotContent(requestParameters, options) {
|
|
371
|
-
return
|
|
371
|
+
return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).publishSnapshotContent(requestParameters.snapshotName, requestParameters.subjectRef, options).then((request) => request(this.axios, this.basePath));
|
|
372
372
|
}
|
|
373
373
|
updateSnapshotContent(requestParameters, options) {
|
|
374
|
-
return
|
|
374
|
+
return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).updateSnapshotContent(requestParameters.snapshotName, requestParameters.contentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
const
|
|
378
|
+
const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configuration) {
|
|
379
379
|
return {
|
|
380
380
|
installPlugin: async (file, options = {}) => {
|
|
381
381
|
assertParamExists("installPlugin", "file", file);
|
|
382
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/plugins/install`;
|
|
382
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins/install`;
|
|
383
383
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
384
384
|
let baseOptions;
|
|
385
385
|
if (configuration) {
|
|
@@ -406,8 +406,8 @@ const ApiHaloRunV1alpha1PluginApiAxiosParamCreator = function(configuration) {
|
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
};
|
|
409
|
-
const
|
|
410
|
-
const localVarAxiosParamCreator =
|
|
409
|
+
const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
410
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator(configuration);
|
|
411
411
|
return {
|
|
412
412
|
async installPlugin(file, options) {
|
|
413
413
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
|
|
@@ -415,25 +415,25 @@ const ApiHaloRunV1alpha1PluginApiFp = function(configuration) {
|
|
|
415
415
|
}
|
|
416
416
|
};
|
|
417
417
|
};
|
|
418
|
-
const
|
|
419
|
-
const localVarFp =
|
|
418
|
+
const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePath, axios) {
|
|
419
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1PluginApiFp(configuration);
|
|
420
420
|
return {
|
|
421
421
|
installPlugin(file, options) {
|
|
422
422
|
return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
|
|
423
423
|
}
|
|
424
424
|
};
|
|
425
425
|
};
|
|
426
|
-
class
|
|
426
|
+
class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
|
|
427
427
|
installPlugin(requestParameters, options) {
|
|
428
|
-
return
|
|
428
|
+
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
|
|
432
|
-
const
|
|
432
|
+
const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
433
433
|
return {
|
|
434
434
|
draftPost: async (postRequest, options = {}) => {
|
|
435
435
|
assertParamExists("draftPost", "postRequest", postRequest);
|
|
436
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/posts`;
|
|
436
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
437
437
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
438
438
|
let baseOptions;
|
|
439
439
|
if (configuration) {
|
|
@@ -454,8 +454,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
454
454
|
options: localVarRequestOptions
|
|
455
455
|
};
|
|
456
456
|
},
|
|
457
|
-
listPosts: async (
|
|
458
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/posts`;
|
|
457
|
+
listPosts: async (contributors, categories, tags, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
458
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
459
459
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
460
460
|
let baseOptions;
|
|
461
461
|
if (configuration) {
|
|
@@ -466,27 +466,27 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
466
466
|
const localVarQueryParameter = {};
|
|
467
467
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
468
468
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
469
|
-
if (
|
|
470
|
-
localVarQueryParameter["
|
|
469
|
+
if (contributors) {
|
|
470
|
+
localVarQueryParameter["contributors"] = Array.from(contributors);
|
|
471
471
|
}
|
|
472
472
|
if (categories) {
|
|
473
473
|
localVarQueryParameter["categories"] = Array.from(categories);
|
|
474
474
|
}
|
|
475
|
-
if (
|
|
476
|
-
localVarQueryParameter["
|
|
475
|
+
if (tags) {
|
|
476
|
+
localVarQueryParameter["tags"] = Array.from(tags);
|
|
477
477
|
}
|
|
478
478
|
if (size !== void 0) {
|
|
479
479
|
localVarQueryParameter["size"] = size;
|
|
480
480
|
}
|
|
481
|
-
if (page !== void 0) {
|
|
482
|
-
localVarQueryParameter["page"] = page;
|
|
483
|
-
}
|
|
484
481
|
if (labelSelector) {
|
|
485
482
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
486
483
|
}
|
|
487
484
|
if (fieldSelector) {
|
|
488
485
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
489
486
|
}
|
|
487
|
+
if (page !== void 0) {
|
|
488
|
+
localVarQueryParameter["page"] = page;
|
|
489
|
+
}
|
|
490
490
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
491
491
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
492
492
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -497,7 +497,7 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
497
497
|
},
|
|
498
498
|
publishPost: async (name, options = {}) => {
|
|
499
499
|
assertParamExists("publishPost", "name", name);
|
|
500
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/posts/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
500
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
501
501
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
502
502
|
let baseOptions;
|
|
503
503
|
if (configuration) {
|
|
@@ -519,7 +519,7 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
519
519
|
updateDraftPost: async (name, postRequest, options = {}) => {
|
|
520
520
|
assertParamExists("updateDraftPost", "name", name);
|
|
521
521
|
assertParamExists("updateDraftPost", "postRequest", postRequest);
|
|
522
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/posts/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
522
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
523
523
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
524
524
|
let baseOptions;
|
|
525
525
|
if (configuration) {
|
|
@@ -542,15 +542,15 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
542
542
|
}
|
|
543
543
|
};
|
|
544
544
|
};
|
|
545
|
-
const
|
|
546
|
-
const localVarAxiosParamCreator =
|
|
545
|
+
const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
546
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
547
547
|
return {
|
|
548
548
|
async draftPost(postRequest, options) {
|
|
549
549
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
550
550
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
551
551
|
},
|
|
552
|
-
async listPosts(
|
|
553
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(
|
|
552
|
+
async listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options) {
|
|
553
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options);
|
|
554
554
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
555
555
|
},
|
|
556
556
|
async publishPost(name, options) {
|
|
@@ -563,14 +563,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
563
563
|
}
|
|
564
564
|
};
|
|
565
565
|
};
|
|
566
|
-
const
|
|
567
|
-
const localVarFp =
|
|
566
|
+
const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
567
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1PostApiFp(configuration);
|
|
568
568
|
return {
|
|
569
569
|
draftPost(postRequest, options) {
|
|
570
570
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
571
571
|
},
|
|
572
|
-
listPosts(
|
|
573
|
-
return localVarFp.listPosts(
|
|
572
|
+
listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options) {
|
|
573
|
+
return localVarFp.listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
574
574
|
},
|
|
575
575
|
publishPost(name, options) {
|
|
576
576
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -580,26 +580,88 @@ const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios
|
|
|
580
580
|
}
|
|
581
581
|
};
|
|
582
582
|
};
|
|
583
|
-
class
|
|
583
|
+
class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
584
584
|
draftPost(requestParameters, options) {
|
|
585
|
-
return
|
|
585
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
586
586
|
}
|
|
587
587
|
listPosts(requestParameters = {}, options) {
|
|
588
|
-
return
|
|
588
|
+
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));
|
|
589
589
|
}
|
|
590
590
|
publishPost(requestParameters, options) {
|
|
591
|
-
return
|
|
591
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
592
592
|
}
|
|
593
593
|
updateDraftPost(requestParameters, options) {
|
|
594
|
-
return
|
|
594
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
const
|
|
598
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
599
|
+
return {
|
|
600
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
601
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
602
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
603
|
+
let baseOptions;
|
|
604
|
+
if (configuration) {
|
|
605
|
+
baseOptions = configuration.baseOptions;
|
|
606
|
+
}
|
|
607
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
608
|
+
const localVarHeaderParameter = {};
|
|
609
|
+
const localVarQueryParameter = {};
|
|
610
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
611
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
612
|
+
if (commentName !== void 0) {
|
|
613
|
+
localVarQueryParameter["commentName"] = commentName;
|
|
614
|
+
}
|
|
615
|
+
if (size !== void 0) {
|
|
616
|
+
localVarQueryParameter["size"] = size;
|
|
617
|
+
}
|
|
618
|
+
if (labelSelector) {
|
|
619
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
620
|
+
}
|
|
621
|
+
if (fieldSelector) {
|
|
622
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
623
|
+
}
|
|
624
|
+
if (page !== void 0) {
|
|
625
|
+
localVarQueryParameter["page"] = page;
|
|
626
|
+
}
|
|
627
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
628
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
629
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
630
|
+
return {
|
|
631
|
+
url: toPathString(localVarUrlObj),
|
|
632
|
+
options: localVarRequestOptions
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
638
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
639
|
+
return {
|
|
640
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
642
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
647
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
648
|
+
return {
|
|
649
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
650
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
651
|
+
}
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
655
|
+
listReplies(requestParameters = {}, options) {
|
|
656
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration) {
|
|
599
661
|
return {
|
|
600
662
|
draftSinglePage: async (singlePageRequest, options = {}) => {
|
|
601
663
|
assertParamExists("draftSinglePage", "singlePageRequest", singlePageRequest);
|
|
602
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
664
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
603
665
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
604
666
|
let baseOptions;
|
|
605
667
|
if (configuration) {
|
|
@@ -620,8 +682,8 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
620
682
|
options: localVarRequestOptions
|
|
621
683
|
};
|
|
622
684
|
},
|
|
623
|
-
listSinglePages: async (contributors, size,
|
|
624
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
685
|
+
listSinglePages: async (contributors, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
686
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
625
687
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
626
688
|
let baseOptions;
|
|
627
689
|
if (configuration) {
|
|
@@ -638,15 +700,15 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
638
700
|
if (size !== void 0) {
|
|
639
701
|
localVarQueryParameter["size"] = size;
|
|
640
702
|
}
|
|
641
|
-
if (page !== void 0) {
|
|
642
|
-
localVarQueryParameter["page"] = page;
|
|
643
|
-
}
|
|
644
703
|
if (labelSelector) {
|
|
645
704
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
646
705
|
}
|
|
647
706
|
if (fieldSelector) {
|
|
648
707
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
649
708
|
}
|
|
709
|
+
if (page !== void 0) {
|
|
710
|
+
localVarQueryParameter["page"] = page;
|
|
711
|
+
}
|
|
650
712
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
651
713
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
652
714
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -657,7 +719,7 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
657
719
|
},
|
|
658
720
|
publishSinglePage: async (name, options = {}) => {
|
|
659
721
|
assertParamExists("publishSinglePage", "name", name);
|
|
660
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
722
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
661
723
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
662
724
|
let baseOptions;
|
|
663
725
|
if (configuration) {
|
|
@@ -679,7 +741,7 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
679
741
|
updateDraftSinglePage: async (name, singlePageRequest, options = {}) => {
|
|
680
742
|
assertParamExists("updateDraftSinglePage", "name", name);
|
|
681
743
|
assertParamExists("updateDraftSinglePage", "singlePageRequest", singlePageRequest);
|
|
682
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
744
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
683
745
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
684
746
|
let baseOptions;
|
|
685
747
|
if (configuration) {
|
|
@@ -702,15 +764,15 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
702
764
|
}
|
|
703
765
|
};
|
|
704
766
|
};
|
|
705
|
-
const
|
|
706
|
-
const localVarAxiosParamCreator =
|
|
767
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
768
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration);
|
|
707
769
|
return {
|
|
708
770
|
async draftSinglePage(singlePageRequest, options) {
|
|
709
771
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
710
772
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
711
773
|
},
|
|
712
|
-
async listSinglePages(contributors, size,
|
|
713
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size,
|
|
774
|
+
async listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
|
|
775
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options);
|
|
714
776
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
715
777
|
},
|
|
716
778
|
async publishSinglePage(name, options) {
|
|
@@ -723,14 +785,14 @@ const ApiHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
723
785
|
}
|
|
724
786
|
};
|
|
725
787
|
};
|
|
726
|
-
const
|
|
727
|
-
const localVarFp =
|
|
788
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath, axios) {
|
|
789
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1SinglePageApiFp(configuration);
|
|
728
790
|
return {
|
|
729
791
|
draftSinglePage(singlePageRequest, options) {
|
|
730
792
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
731
793
|
},
|
|
732
|
-
listSinglePages(contributors, size,
|
|
733
|
-
return localVarFp.listSinglePages(contributors, size,
|
|
794
|
+
listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
|
|
795
|
+
return localVarFp.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
734
796
|
},
|
|
735
797
|
publishSinglePage(name, options) {
|
|
736
798
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -740,26 +802,26 @@ const ApiHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath,
|
|
|
740
802
|
}
|
|
741
803
|
};
|
|
742
804
|
};
|
|
743
|
-
class
|
|
805
|
+
class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
744
806
|
draftSinglePage(requestParameters, options) {
|
|
745
|
-
return
|
|
807
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
746
808
|
}
|
|
747
809
|
listSinglePages(requestParameters = {}, options) {
|
|
748
|
-
return
|
|
810
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.contributors, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
749
811
|
}
|
|
750
812
|
publishSinglePage(requestParameters, options) {
|
|
751
|
-
return
|
|
813
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
752
814
|
}
|
|
753
815
|
updateDraftSinglePage(requestParameters, options) {
|
|
754
|
-
return
|
|
816
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
755
817
|
}
|
|
756
818
|
}
|
|
757
819
|
|
|
758
|
-
const
|
|
820
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
759
821
|
return {
|
|
760
822
|
installTheme: async (file, options = {}) => {
|
|
761
823
|
assertParamExists("installTheme", "file", file);
|
|
762
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/themes/install`;
|
|
824
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/install`;
|
|
763
825
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
764
826
|
let baseOptions;
|
|
765
827
|
if (configuration) {
|
|
@@ -786,8 +848,8 @@ const ApiHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
|
786
848
|
}
|
|
787
849
|
};
|
|
788
850
|
};
|
|
789
|
-
const
|
|
790
|
-
const localVarAxiosParamCreator =
|
|
851
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
852
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
|
791
853
|
return {
|
|
792
854
|
async installTheme(file, options) {
|
|
793
855
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
@@ -795,26 +857,26 @@ const ApiHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
795
857
|
}
|
|
796
858
|
};
|
|
797
859
|
};
|
|
798
|
-
const
|
|
799
|
-
const localVarFp =
|
|
860
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePath, axios) {
|
|
861
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration);
|
|
800
862
|
return {
|
|
801
863
|
installTheme(file, options) {
|
|
802
864
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
803
865
|
}
|
|
804
866
|
};
|
|
805
867
|
};
|
|
806
|
-
class
|
|
868
|
+
class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
807
869
|
installTheme(requestParameters, options) {
|
|
808
|
-
return
|
|
870
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
809
871
|
}
|
|
810
872
|
}
|
|
811
873
|
|
|
812
|
-
const
|
|
874
|
+
const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
813
875
|
return {
|
|
814
876
|
changePassword: async (name, changePasswordRequest, options = {}) => {
|
|
815
877
|
assertParamExists("changePassword", "name", name);
|
|
816
878
|
assertParamExists("changePassword", "changePasswordRequest", changePasswordRequest);
|
|
817
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/password`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
879
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/password`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
818
880
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
819
881
|
let baseOptions;
|
|
820
882
|
if (configuration) {
|
|
@@ -836,7 +898,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
836
898
|
};
|
|
837
899
|
},
|
|
838
900
|
getCurrentUserDetail: async (options = {}) => {
|
|
839
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/-`;
|
|
901
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-`;
|
|
840
902
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
841
903
|
let baseOptions;
|
|
842
904
|
if (configuration) {
|
|
@@ -857,7 +919,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
857
919
|
},
|
|
858
920
|
getPermissions: async (name, options = {}) => {
|
|
859
921
|
assertParamExists("getPermissions", "name", name);
|
|
860
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
922
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
861
923
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
862
924
|
let baseOptions;
|
|
863
925
|
if (configuration) {
|
|
@@ -879,7 +941,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
879
941
|
grantPermission: async (name, grantRequest, options = {}) => {
|
|
880
942
|
assertParamExists("grantPermission", "name", name);
|
|
881
943
|
assertParamExists("grantPermission", "grantRequest", grantRequest);
|
|
882
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
944
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
883
945
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
884
946
|
let baseOptions;
|
|
885
947
|
if (configuration) {
|
|
@@ -902,8 +964,8 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
902
964
|
}
|
|
903
965
|
};
|
|
904
966
|
};
|
|
905
|
-
const
|
|
906
|
-
const localVarAxiosParamCreator =
|
|
967
|
+
const ApiConsoleHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
968
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator(configuration);
|
|
907
969
|
return {
|
|
908
970
|
async changePassword(name, changePasswordRequest, options) {
|
|
909
971
|
const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(name, changePasswordRequest, options);
|
|
@@ -923,8 +985,8 @@ const ApiHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
|
923
985
|
}
|
|
924
986
|
};
|
|
925
987
|
};
|
|
926
|
-
const
|
|
927
|
-
const localVarFp =
|
|
988
|
+
const ApiConsoleHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios) {
|
|
989
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1UserApiFp(configuration);
|
|
928
990
|
return {
|
|
929
991
|
changePassword(name, changePasswordRequest, options) {
|
|
930
992
|
return localVarFp.changePassword(name, changePasswordRequest, options).then((request) => request(axios, basePath));
|
|
@@ -940,18 +1002,18 @@ const ApiHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios
|
|
|
940
1002
|
}
|
|
941
1003
|
};
|
|
942
1004
|
};
|
|
943
|
-
class
|
|
1005
|
+
class ApiConsoleHaloRunV1alpha1UserApi extends BaseAPI {
|
|
944
1006
|
changePassword(requestParameters, options) {
|
|
945
|
-
return
|
|
1007
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).changePassword(requestParameters.name, requestParameters.changePasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
946
1008
|
}
|
|
947
1009
|
getCurrentUserDetail(options) {
|
|
948
|
-
return
|
|
1010
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getCurrentUserDetail(options).then((request) => request(this.axios, this.basePath));
|
|
949
1011
|
}
|
|
950
1012
|
getPermissions(requestParameters, options) {
|
|
951
|
-
return
|
|
1013
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getPermissions(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
952
1014
|
}
|
|
953
1015
|
grantPermission(requestParameters, options) {
|
|
954
|
-
return
|
|
1016
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).grantPermission(requestParameters.name, requestParameters.grantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
955
1017
|
}
|
|
956
1018
|
}
|
|
957
1019
|
|
|
@@ -2727,8 +2789,8 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2727
2789
|
options: localVarRequestOptions
|
|
2728
2790
|
};
|
|
2729
2791
|
},
|
|
2730
|
-
searchAttachments: async (policy, displayName,
|
|
2731
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/attachments`;
|
|
2792
|
+
searchAttachments: async (policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
2793
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
2732
2794
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2733
2795
|
let baseOptions;
|
|
2734
2796
|
if (configuration) {
|
|
@@ -2745,24 +2807,24 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2745
2807
|
if (displayName !== void 0) {
|
|
2746
2808
|
localVarQueryParameter["displayName"] = displayName;
|
|
2747
2809
|
}
|
|
2748
|
-
if (group !== void 0) {
|
|
2749
|
-
localVarQueryParameter["group"] = group;
|
|
2750
|
-
}
|
|
2751
2810
|
if (uploadedBy !== void 0) {
|
|
2752
2811
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
2753
2812
|
}
|
|
2813
|
+
if (group !== void 0) {
|
|
2814
|
+
localVarQueryParameter["group"] = group;
|
|
2815
|
+
}
|
|
2754
2816
|
if (size !== void 0) {
|
|
2755
2817
|
localVarQueryParameter["size"] = size;
|
|
2756
2818
|
}
|
|
2757
|
-
if (page !== void 0) {
|
|
2758
|
-
localVarQueryParameter["page"] = page;
|
|
2759
|
-
}
|
|
2760
2819
|
if (labelSelector) {
|
|
2761
2820
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
2762
2821
|
}
|
|
2763
2822
|
if (fieldSelector) {
|
|
2764
2823
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
2765
2824
|
}
|
|
2825
|
+
if (page !== void 0) {
|
|
2826
|
+
localVarQueryParameter["page"] = page;
|
|
2827
|
+
}
|
|
2766
2828
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2767
2829
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2768
2830
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2797,7 +2859,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2797
2859
|
uploadAttachment: async (file, policyName, groupName, options = {}) => {
|
|
2798
2860
|
assertParamExists("uploadAttachment", "file", file);
|
|
2799
2861
|
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
2800
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/attachments/upload`;
|
|
2862
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
|
|
2801
2863
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2802
2864
|
let baseOptions;
|
|
2803
2865
|
if (configuration) {
|
|
@@ -2849,8 +2911,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
2849
2911
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
2850
2912
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2851
2913
|
},
|
|
2852
|
-
async searchAttachments(policy, displayName,
|
|
2853
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName,
|
|
2914
|
+
async searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
2915
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
|
|
2854
2916
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2855
2917
|
},
|
|
2856
2918
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
@@ -2878,8 +2940,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
2878
2940
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
2879
2941
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2880
2942
|
},
|
|
2881
|
-
searchAttachments(policy, displayName,
|
|
2882
|
-
return localVarFp.searchAttachments(policy, displayName,
|
|
2943
|
+
searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
2944
|
+
return localVarFp.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
2883
2945
|
},
|
|
2884
2946
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
2885
2947
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
@@ -2903,7 +2965,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
2903
2965
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2904
2966
|
}
|
|
2905
2967
|
searchAttachments(requestParameters = {}, options) {
|
|
2906
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.
|
|
2968
|
+
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));
|
|
2907
2969
|
}
|
|
2908
2970
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
2909
2971
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5161,6 +5223,12 @@ class Configuration {
|
|
|
5161
5223
|
}
|
|
5162
5224
|
}
|
|
5163
5225
|
|
|
5226
|
+
const CompactPostVisibleEnum = {
|
|
5227
|
+
Public: "PUBLIC",
|
|
5228
|
+
Internal: "INTERNAL",
|
|
5229
|
+
Private: "PRIVATE"
|
|
5230
|
+
};
|
|
5231
|
+
|
|
5164
5232
|
const ConditionStatusEnum = {
|
|
5165
5233
|
True: "TRUE",
|
|
5166
5234
|
False: "FALSE",
|
|
@@ -5188,4 +5256,4 @@ const SinglePageSpecVisibleEnum = {
|
|
|
5188
5256
|
Private: "PRIVATE"
|
|
5189
5257
|
};
|
|
5190
5258
|
|
|
5191
|
-
export {
|
|
5259
|
+
export { ApiConsoleHaloRunV1alpha1CommentApi, ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1CommentApiFactory, ApiConsoleHaloRunV1alpha1CommentApiFp, ApiConsoleHaloRunV1alpha1ContentApi, ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ContentApiFactory, ApiConsoleHaloRunV1alpha1ContentApiFp, ApiConsoleHaloRunV1alpha1PluginApi, ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1PluginApiFactory, ApiConsoleHaloRunV1alpha1PluginApiFp, ApiConsoleHaloRunV1alpha1PostApi, ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1PostApiFactory, ApiConsoleHaloRunV1alpha1PostApiFp, ApiConsoleHaloRunV1alpha1ReplyApi, ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ReplyApiFactory, ApiConsoleHaloRunV1alpha1ReplyApiFp, ApiConsoleHaloRunV1alpha1SinglePageApi, ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1SinglePageApiFactory, ApiConsoleHaloRunV1alpha1SinglePageApiFp, ApiConsoleHaloRunV1alpha1ThemeApi, ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1ThemeApiFactory, ApiConsoleHaloRunV1alpha1ThemeApiFp, ApiConsoleHaloRunV1alpha1UserApi, ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator, ApiConsoleHaloRunV1alpha1UserApiFactory, ApiConsoleHaloRunV1alpha1UserApiFp, CompactPostVisibleEnum, ConditionStatusEnum, Configuration, ContentHaloRunV1alpha1CategoryApi, ContentHaloRunV1alpha1CategoryApiAxiosParamCreator, ContentHaloRunV1alpha1CategoryApiFactory, ContentHaloRunV1alpha1CategoryApiFp, ContentHaloRunV1alpha1CommentApi, ContentHaloRunV1alpha1CommentApiAxiosParamCreator, ContentHaloRunV1alpha1CommentApiFactory, ContentHaloRunV1alpha1CommentApiFp, ContentHaloRunV1alpha1PostApi, ContentHaloRunV1alpha1PostApiAxiosParamCreator, ContentHaloRunV1alpha1PostApiFactory, ContentHaloRunV1alpha1PostApiFp, ContentHaloRunV1alpha1ReplyApi, ContentHaloRunV1alpha1ReplyApiAxiosParamCreator, ContentHaloRunV1alpha1ReplyApiFactory, ContentHaloRunV1alpha1ReplyApiFp, ContentHaloRunV1alpha1SinglePageApi, ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator, ContentHaloRunV1alpha1SinglePageApiFactory, ContentHaloRunV1alpha1SinglePageApiFp, ContentHaloRunV1alpha1SnapshotApi, ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator, ContentHaloRunV1alpha1SnapshotApiFactory, ContentHaloRunV1alpha1SnapshotApiFp, ContentHaloRunV1alpha1TagApi, ContentHaloRunV1alpha1TagApiAxiosParamCreator, ContentHaloRunV1alpha1TagApiFactory, ContentHaloRunV1alpha1TagApiFp, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginStatusPhaseEnum, PostSpecVisibleEnum, SinglePageSpecVisibleEnum, StorageHaloRunV1alpha1AttachmentApi, StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator, StorageHaloRunV1alpha1AttachmentApiFactory, StorageHaloRunV1alpha1AttachmentApiFp, StorageHaloRunV1alpha1GroupApi, StorageHaloRunV1alpha1GroupApiAxiosParamCreator, StorageHaloRunV1alpha1GroupApiFactory, StorageHaloRunV1alpha1GroupApiFp, StorageHaloRunV1alpha1PolicyApi, StorageHaloRunV1alpha1PolicyApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyApiFactory, StorageHaloRunV1alpha1PolicyApiFp, StorageHaloRunV1alpha1PolicyTemplateApi, StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyTemplateApiFactory, StorageHaloRunV1alpha1PolicyTemplateApiFp, ThemeHaloRunV1alpha1ThemeApi, ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator, ThemeHaloRunV1alpha1ThemeApiFactory, ThemeHaloRunV1alpha1ThemeApiFp, V1alpha1ConfigMapApi, V1alpha1ConfigMapApiAxiosParamCreator, V1alpha1ConfigMapApiFactory, V1alpha1ConfigMapApiFp, V1alpha1MenuApi, V1alpha1MenuApiAxiosParamCreator, V1alpha1MenuApiFactory, V1alpha1MenuApiFp, V1alpha1MenuItemApi, V1alpha1MenuItemApiAxiosParamCreator, V1alpha1MenuItemApiFactory, V1alpha1MenuItemApiFp, V1alpha1PersonalAccessTokenApi, V1alpha1PersonalAccessTokenApiAxiosParamCreator, V1alpha1PersonalAccessTokenApiFactory, V1alpha1PersonalAccessTokenApiFp, V1alpha1RoleApi, V1alpha1RoleApiAxiosParamCreator, V1alpha1RoleApiFactory, V1alpha1RoleApiFp, V1alpha1RoleBindingApi, V1alpha1RoleBindingApiAxiosParamCreator, V1alpha1RoleBindingApiFactory, V1alpha1RoleBindingApiFp, V1alpha1SettingApi, V1alpha1SettingApiAxiosParamCreator, V1alpha1SettingApiFactory, V1alpha1SettingApiFp, V1alpha1UserApi, V1alpha1UserApiAxiosParamCreator, V1alpha1UserApiFactory, V1alpha1UserApiFp };
|