@halo-dev/api-client 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +189 -182
- package/dist/index.d.ts +400 -355
- package/dist/index.mjs +157 -151
- package/package.json +1 -1
package/dist/index.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,15 +131,6 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
131
131
|
if (sort !== void 0) {
|
|
132
132
|
localVarQueryParameter["sort"] = sort;
|
|
133
133
|
}
|
|
134
|
-
if (keyword !== void 0) {
|
|
135
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
136
|
-
}
|
|
137
|
-
if (hidden !== void 0) {
|
|
138
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
139
|
-
}
|
|
140
|
-
if (top !== void 0) {
|
|
141
|
-
localVarQueryParameter["top"] = top;
|
|
142
|
-
}
|
|
143
134
|
if (sortOrder !== void 0) {
|
|
144
135
|
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
145
136
|
}
|
|
@@ -161,18 +152,27 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
|
161
152
|
if (subjectName !== void 0) {
|
|
162
153
|
localVarQueryParameter["subjectName"] = subjectName;
|
|
163
154
|
}
|
|
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
|
+
}
|
|
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 (tags) {
|
|
470
|
-
localVarQueryParameter["tags"] = Array.from(tags);
|
|
471
|
-
}
|
|
472
469
|
if (contributors) {
|
|
473
470
|
localVarQueryParameter["contributors"] = Array.from(contributors);
|
|
474
471
|
}
|
|
475
472
|
if (categories) {
|
|
476
473
|
localVarQueryParameter["categories"] = Array.from(categories);
|
|
477
474
|
}
|
|
475
|
+
if (tags) {
|
|
476
|
+
localVarQueryParameter["tags"] = Array.from(tags);
|
|
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,25 +580,25 @@ 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
599
|
return {
|
|
600
|
-
listReplies: async (commentName, size,
|
|
601
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/replies`;
|
|
600
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
601
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
602
602
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
603
603
|
let baseOptions;
|
|
604
604
|
if (configuration) {
|
|
@@ -615,15 +615,15 @@ const ApiHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
|
615
615
|
if (size !== void 0) {
|
|
616
616
|
localVarQueryParameter["size"] = size;
|
|
617
617
|
}
|
|
618
|
-
if (page !== void 0) {
|
|
619
|
-
localVarQueryParameter["page"] = page;
|
|
620
|
-
}
|
|
621
618
|
if (labelSelector) {
|
|
622
619
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
623
620
|
}
|
|
624
621
|
if (fieldSelector) {
|
|
625
622
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
626
623
|
}
|
|
624
|
+
if (page !== void 0) {
|
|
625
|
+
localVarQueryParameter["page"] = page;
|
|
626
|
+
}
|
|
627
627
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
628
628
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
629
629
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -634,34 +634,34 @@ const ApiHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
636
|
};
|
|
637
|
-
const
|
|
638
|
-
const localVarAxiosParamCreator =
|
|
637
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
638
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
639
639
|
return {
|
|
640
|
-
async listReplies(commentName, size,
|
|
641
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size,
|
|
640
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
642
642
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
643
643
|
}
|
|
644
644
|
};
|
|
645
645
|
};
|
|
646
|
-
const
|
|
647
|
-
const localVarFp =
|
|
646
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
647
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
648
648
|
return {
|
|
649
|
-
listReplies(commentName, size,
|
|
650
|
-
return localVarFp.listReplies(commentName, size,
|
|
649
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
650
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
653
|
};
|
|
654
|
-
class
|
|
654
|
+
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
655
655
|
listReplies(requestParameters = {}, options) {
|
|
656
|
-
return
|
|
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
657
|
}
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
const
|
|
660
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration) {
|
|
661
661
|
return {
|
|
662
662
|
draftSinglePage: async (singlePageRequest, options = {}) => {
|
|
663
663
|
assertParamExists("draftSinglePage", "singlePageRequest", singlePageRequest);
|
|
664
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
664
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
665
665
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
666
666
|
let baseOptions;
|
|
667
667
|
if (configuration) {
|
|
@@ -682,8 +682,8 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
682
682
|
options: localVarRequestOptions
|
|
683
683
|
};
|
|
684
684
|
},
|
|
685
|
-
listSinglePages: async (contributors, size,
|
|
686
|
-
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`;
|
|
687
687
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
688
688
|
let baseOptions;
|
|
689
689
|
if (configuration) {
|
|
@@ -700,15 +700,15 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
700
700
|
if (size !== void 0) {
|
|
701
701
|
localVarQueryParameter["size"] = size;
|
|
702
702
|
}
|
|
703
|
-
if (page !== void 0) {
|
|
704
|
-
localVarQueryParameter["page"] = page;
|
|
705
|
-
}
|
|
706
703
|
if (labelSelector) {
|
|
707
704
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
708
705
|
}
|
|
709
706
|
if (fieldSelector) {
|
|
710
707
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
711
708
|
}
|
|
709
|
+
if (page !== void 0) {
|
|
710
|
+
localVarQueryParameter["page"] = page;
|
|
711
|
+
}
|
|
712
712
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
713
713
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
714
714
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -719,7 +719,7 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
719
719
|
},
|
|
720
720
|
publishSinglePage: async (name, options = {}) => {
|
|
721
721
|
assertParamExists("publishSinglePage", "name", name);
|
|
722
|
-
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)));
|
|
723
723
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
724
724
|
let baseOptions;
|
|
725
725
|
if (configuration) {
|
|
@@ -741,7 +741,7 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
741
741
|
updateDraftSinglePage: async (name, singlePageRequest, options = {}) => {
|
|
742
742
|
assertParamExists("updateDraftSinglePage", "name", name);
|
|
743
743
|
assertParamExists("updateDraftSinglePage", "singlePageRequest", singlePageRequest);
|
|
744
|
-
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)));
|
|
745
745
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
746
746
|
let baseOptions;
|
|
747
747
|
if (configuration) {
|
|
@@ -764,15 +764,15 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
764
764
|
}
|
|
765
765
|
};
|
|
766
766
|
};
|
|
767
|
-
const
|
|
768
|
-
const localVarAxiosParamCreator =
|
|
767
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
768
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration);
|
|
769
769
|
return {
|
|
770
770
|
async draftSinglePage(singlePageRequest, options) {
|
|
771
771
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
772
772
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
773
773
|
},
|
|
774
|
-
async listSinglePages(contributors, size,
|
|
775
|
-
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);
|
|
776
776
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
777
777
|
},
|
|
778
778
|
async publishSinglePage(name, options) {
|
|
@@ -785,14 +785,14 @@ const ApiHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
785
785
|
}
|
|
786
786
|
};
|
|
787
787
|
};
|
|
788
|
-
const
|
|
789
|
-
const localVarFp =
|
|
788
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath, axios) {
|
|
789
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1SinglePageApiFp(configuration);
|
|
790
790
|
return {
|
|
791
791
|
draftSinglePage(singlePageRequest, options) {
|
|
792
792
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
793
793
|
},
|
|
794
|
-
listSinglePages(contributors, size,
|
|
795
|
-
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));
|
|
796
796
|
},
|
|
797
797
|
publishSinglePage(name, options) {
|
|
798
798
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -802,26 +802,26 @@ const ApiHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath,
|
|
|
802
802
|
}
|
|
803
803
|
};
|
|
804
804
|
};
|
|
805
|
-
class
|
|
805
|
+
class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
806
806
|
draftSinglePage(requestParameters, options) {
|
|
807
|
-
return
|
|
807
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
808
808
|
}
|
|
809
809
|
listSinglePages(requestParameters = {}, options) {
|
|
810
|
-
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));
|
|
811
811
|
}
|
|
812
812
|
publishSinglePage(requestParameters, options) {
|
|
813
|
-
return
|
|
813
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
814
814
|
}
|
|
815
815
|
updateDraftSinglePage(requestParameters, options) {
|
|
816
|
-
return
|
|
816
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
|
|
820
|
-
const
|
|
820
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
821
821
|
return {
|
|
822
822
|
installTheme: async (file, options = {}) => {
|
|
823
823
|
assertParamExists("installTheme", "file", file);
|
|
824
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/themes/install`;
|
|
824
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/install`;
|
|
825
825
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
826
826
|
let baseOptions;
|
|
827
827
|
if (configuration) {
|
|
@@ -848,8 +848,8 @@ const ApiHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
|
848
848
|
}
|
|
849
849
|
};
|
|
850
850
|
};
|
|
851
|
-
const
|
|
852
|
-
const localVarAxiosParamCreator =
|
|
851
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
852
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
|
853
853
|
return {
|
|
854
854
|
async installTheme(file, options) {
|
|
855
855
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
@@ -857,26 +857,26 @@ const ApiHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
857
857
|
}
|
|
858
858
|
};
|
|
859
859
|
};
|
|
860
|
-
const
|
|
861
|
-
const localVarFp =
|
|
860
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePath, axios) {
|
|
861
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration);
|
|
862
862
|
return {
|
|
863
863
|
installTheme(file, options) {
|
|
864
864
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
865
865
|
}
|
|
866
866
|
};
|
|
867
867
|
};
|
|
868
|
-
class
|
|
868
|
+
class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
869
869
|
installTheme(requestParameters, options) {
|
|
870
|
-
return
|
|
870
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
873
|
|
|
874
|
-
const
|
|
874
|
+
const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
875
875
|
return {
|
|
876
876
|
changePassword: async (name, changePasswordRequest, options = {}) => {
|
|
877
877
|
assertParamExists("changePassword", "name", name);
|
|
878
878
|
assertParamExists("changePassword", "changePasswordRequest", changePasswordRequest);
|
|
879
|
-
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)));
|
|
880
880
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
881
881
|
let baseOptions;
|
|
882
882
|
if (configuration) {
|
|
@@ -898,7 +898,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
898
898
|
};
|
|
899
899
|
},
|
|
900
900
|
getCurrentUserDetail: async (options = {}) => {
|
|
901
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/-`;
|
|
901
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-`;
|
|
902
902
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
903
903
|
let baseOptions;
|
|
904
904
|
if (configuration) {
|
|
@@ -919,7 +919,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
919
919
|
},
|
|
920
920
|
getPermissions: async (name, options = {}) => {
|
|
921
921
|
assertParamExists("getPermissions", "name", name);
|
|
922
|
-
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)));
|
|
923
923
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
924
924
|
let baseOptions;
|
|
925
925
|
if (configuration) {
|
|
@@ -941,7 +941,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
941
941
|
grantPermission: async (name, grantRequest, options = {}) => {
|
|
942
942
|
assertParamExists("grantPermission", "name", name);
|
|
943
943
|
assertParamExists("grantPermission", "grantRequest", grantRequest);
|
|
944
|
-
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)));
|
|
945
945
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
946
946
|
let baseOptions;
|
|
947
947
|
if (configuration) {
|
|
@@ -964,8 +964,8 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
964
964
|
}
|
|
965
965
|
};
|
|
966
966
|
};
|
|
967
|
-
const
|
|
968
|
-
const localVarAxiosParamCreator =
|
|
967
|
+
const ApiConsoleHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
968
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator(configuration);
|
|
969
969
|
return {
|
|
970
970
|
async changePassword(name, changePasswordRequest, options) {
|
|
971
971
|
const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(name, changePasswordRequest, options);
|
|
@@ -985,8 +985,8 @@ const ApiHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
|
985
985
|
}
|
|
986
986
|
};
|
|
987
987
|
};
|
|
988
|
-
const
|
|
989
|
-
const localVarFp =
|
|
988
|
+
const ApiConsoleHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios) {
|
|
989
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1UserApiFp(configuration);
|
|
990
990
|
return {
|
|
991
991
|
changePassword(name, changePasswordRequest, options) {
|
|
992
992
|
return localVarFp.changePassword(name, changePasswordRequest, options).then((request) => request(axios, basePath));
|
|
@@ -1002,18 +1002,18 @@ const ApiHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios
|
|
|
1002
1002
|
}
|
|
1003
1003
|
};
|
|
1004
1004
|
};
|
|
1005
|
-
class
|
|
1005
|
+
class ApiConsoleHaloRunV1alpha1UserApi extends BaseAPI {
|
|
1006
1006
|
changePassword(requestParameters, options) {
|
|
1007
|
-
return
|
|
1007
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).changePassword(requestParameters.name, requestParameters.changePasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1008
1008
|
}
|
|
1009
1009
|
getCurrentUserDetail(options) {
|
|
1010
|
-
return
|
|
1010
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getCurrentUserDetail(options).then((request) => request(this.axios, this.basePath));
|
|
1011
1011
|
}
|
|
1012
1012
|
getPermissions(requestParameters, options) {
|
|
1013
|
-
return
|
|
1013
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getPermissions(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1014
1014
|
}
|
|
1015
1015
|
grantPermission(requestParameters, options) {
|
|
1016
|
-
return
|
|
1016
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).grantPermission(requestParameters.name, requestParameters.grantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
|
|
@@ -2789,8 +2789,8 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2789
2789
|
options: localVarRequestOptions
|
|
2790
2790
|
};
|
|
2791
2791
|
},
|
|
2792
|
-
searchAttachments: async (policy, displayName,
|
|
2793
|
-
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`;
|
|
2794
2794
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2795
2795
|
let baseOptions;
|
|
2796
2796
|
if (configuration) {
|
|
@@ -2807,24 +2807,24 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2807
2807
|
if (displayName !== void 0) {
|
|
2808
2808
|
localVarQueryParameter["displayName"] = displayName;
|
|
2809
2809
|
}
|
|
2810
|
-
if (group !== void 0) {
|
|
2811
|
-
localVarQueryParameter["group"] = group;
|
|
2812
|
-
}
|
|
2813
2810
|
if (uploadedBy !== void 0) {
|
|
2814
2811
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
2815
2812
|
}
|
|
2813
|
+
if (group !== void 0) {
|
|
2814
|
+
localVarQueryParameter["group"] = group;
|
|
2815
|
+
}
|
|
2816
2816
|
if (size !== void 0) {
|
|
2817
2817
|
localVarQueryParameter["size"] = size;
|
|
2818
2818
|
}
|
|
2819
|
-
if (page !== void 0) {
|
|
2820
|
-
localVarQueryParameter["page"] = page;
|
|
2821
|
-
}
|
|
2822
2819
|
if (labelSelector) {
|
|
2823
2820
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
2824
2821
|
}
|
|
2825
2822
|
if (fieldSelector) {
|
|
2826
2823
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
2827
2824
|
}
|
|
2825
|
+
if (page !== void 0) {
|
|
2826
|
+
localVarQueryParameter["page"] = page;
|
|
2827
|
+
}
|
|
2828
2828
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2829
2829
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2830
2830
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2859,7 +2859,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2859
2859
|
uploadAttachment: async (file, policyName, groupName, options = {}) => {
|
|
2860
2860
|
assertParamExists("uploadAttachment", "file", file);
|
|
2861
2861
|
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
2862
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/attachments/upload`;
|
|
2862
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
|
|
2863
2863
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2864
2864
|
let baseOptions;
|
|
2865
2865
|
if (configuration) {
|
|
@@ -2911,8 +2911,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
2911
2911
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
2912
2912
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2913
2913
|
},
|
|
2914
|
-
async searchAttachments(policy, displayName,
|
|
2915
|
-
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);
|
|
2916
2916
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2917
2917
|
},
|
|
2918
2918
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
@@ -2940,8 +2940,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
2940
2940
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
2941
2941
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2942
2942
|
},
|
|
2943
|
-
searchAttachments(policy, displayName,
|
|
2944
|
-
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));
|
|
2945
2945
|
},
|
|
2946
2946
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
2947
2947
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
@@ -2965,7 +2965,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
2965
2965
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2966
2966
|
}
|
|
2967
2967
|
searchAttachments(requestParameters = {}, options) {
|
|
2968
|
-
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));
|
|
2969
2969
|
}
|
|
2970
2970
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
2971
2971
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5223,6 +5223,12 @@ class Configuration {
|
|
|
5223
5223
|
}
|
|
5224
5224
|
}
|
|
5225
5225
|
|
|
5226
|
+
const CompactPostVisibleEnum = {
|
|
5227
|
+
Public: "PUBLIC",
|
|
5228
|
+
Internal: "INTERNAL",
|
|
5229
|
+
Private: "PRIVATE"
|
|
5230
|
+
};
|
|
5231
|
+
|
|
5226
5232
|
const ConditionStatusEnum = {
|
|
5227
5233
|
True: "TRUE",
|
|
5228
5234
|
False: "FALSE",
|
|
@@ -5250,4 +5256,4 @@ const SinglePageSpecVisibleEnum = {
|
|
|
5250
5256
|
Private: "PRIVATE"
|
|
5251
5257
|
};
|
|
5252
5258
|
|
|
5253
|
-
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 };
|