@halo-dev/api-client 0.0.22 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +207 -185
- package/dist/index.d.ts +466 -364
- package/dist/index.mjs +175 -154
- package/package.json +1 -1
package/dist/index.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 (sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, 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,42 @@ 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 (sort !== void 0) {
|
|
470
|
+
localVarQueryParameter["sort"] = sort;
|
|
471
471
|
}
|
|
472
|
-
if (
|
|
473
|
-
localVarQueryParameter["
|
|
472
|
+
if (publishPhase !== void 0) {
|
|
473
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
474
|
+
}
|
|
475
|
+
if (category) {
|
|
476
|
+
localVarQueryParameter["category"] = Array.from(category);
|
|
477
|
+
}
|
|
478
|
+
if (sortOrder !== void 0) {
|
|
479
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
480
|
+
}
|
|
481
|
+
if (contributor) {
|
|
482
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
483
|
+
}
|
|
484
|
+
if (keyword !== void 0) {
|
|
485
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
474
486
|
}
|
|
475
|
-
if (
|
|
476
|
-
localVarQueryParameter["
|
|
487
|
+
if (visible !== void 0) {
|
|
488
|
+
localVarQueryParameter["visible"] = visible;
|
|
489
|
+
}
|
|
490
|
+
if (tag) {
|
|
491
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
477
492
|
}
|
|
478
493
|
if (size !== void 0) {
|
|
479
494
|
localVarQueryParameter["size"] = size;
|
|
480
495
|
}
|
|
481
|
-
if (page !== void 0) {
|
|
482
|
-
localVarQueryParameter["page"] = page;
|
|
483
|
-
}
|
|
484
496
|
if (labelSelector) {
|
|
485
497
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
486
498
|
}
|
|
487
499
|
if (fieldSelector) {
|
|
488
500
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
489
501
|
}
|
|
502
|
+
if (page !== void 0) {
|
|
503
|
+
localVarQueryParameter["page"] = page;
|
|
504
|
+
}
|
|
490
505
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
491
506
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
492
507
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -497,7 +512,7 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
497
512
|
},
|
|
498
513
|
publishPost: async (name, options = {}) => {
|
|
499
514
|
assertParamExists("publishPost", "name", name);
|
|
500
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/posts/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
515
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
501
516
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
502
517
|
let baseOptions;
|
|
503
518
|
if (configuration) {
|
|
@@ -519,7 +534,7 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
519
534
|
updateDraftPost: async (name, postRequest, options = {}) => {
|
|
520
535
|
assertParamExists("updateDraftPost", "name", name);
|
|
521
536
|
assertParamExists("updateDraftPost", "postRequest", postRequest);
|
|
522
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/posts/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
537
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
523
538
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
524
539
|
let baseOptions;
|
|
525
540
|
if (configuration) {
|
|
@@ -542,15 +557,15 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
542
557
|
}
|
|
543
558
|
};
|
|
544
559
|
};
|
|
545
|
-
const
|
|
546
|
-
const localVarAxiosParamCreator =
|
|
560
|
+
const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
561
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
547
562
|
return {
|
|
548
563
|
async draftPost(postRequest, options) {
|
|
549
564
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
550
565
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
551
566
|
},
|
|
552
|
-
async listPosts(
|
|
553
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(
|
|
567
|
+
async listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
568
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
|
|
554
569
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
555
570
|
},
|
|
556
571
|
async publishPost(name, options) {
|
|
@@ -563,14 +578,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
563
578
|
}
|
|
564
579
|
};
|
|
565
580
|
};
|
|
566
|
-
const
|
|
567
|
-
const localVarFp =
|
|
581
|
+
const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
582
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1PostApiFp(configuration);
|
|
568
583
|
return {
|
|
569
584
|
draftPost(postRequest, options) {
|
|
570
585
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
571
586
|
},
|
|
572
|
-
listPosts(
|
|
573
|
-
return localVarFp.listPosts(
|
|
587
|
+
listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
588
|
+
return localVarFp.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
574
589
|
},
|
|
575
590
|
publishPost(name, options) {
|
|
576
591
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -580,25 +595,25 @@ const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios
|
|
|
580
595
|
}
|
|
581
596
|
};
|
|
582
597
|
};
|
|
583
|
-
class
|
|
598
|
+
class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
584
599
|
draftPost(requestParameters, options) {
|
|
585
|
-
return
|
|
600
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
586
601
|
}
|
|
587
602
|
listPosts(requestParameters = {}, options) {
|
|
588
|
-
return
|
|
603
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
589
604
|
}
|
|
590
605
|
publishPost(requestParameters, options) {
|
|
591
|
-
return
|
|
606
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
592
607
|
}
|
|
593
608
|
updateDraftPost(requestParameters, options) {
|
|
594
|
-
return
|
|
609
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
595
610
|
}
|
|
596
611
|
}
|
|
597
612
|
|
|
598
|
-
const
|
|
613
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
599
614
|
return {
|
|
600
|
-
listReplies: async (commentName, size,
|
|
601
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/replies`;
|
|
615
|
+
listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
616
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
602
617
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
603
618
|
let baseOptions;
|
|
604
619
|
if (configuration) {
|
|
@@ -615,15 +630,15 @@ const ApiHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
|
615
630
|
if (size !== void 0) {
|
|
616
631
|
localVarQueryParameter["size"] = size;
|
|
617
632
|
}
|
|
618
|
-
if (page !== void 0) {
|
|
619
|
-
localVarQueryParameter["page"] = page;
|
|
620
|
-
}
|
|
621
633
|
if (labelSelector) {
|
|
622
634
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
623
635
|
}
|
|
624
636
|
if (fieldSelector) {
|
|
625
637
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
626
638
|
}
|
|
639
|
+
if (page !== void 0) {
|
|
640
|
+
localVarQueryParameter["page"] = page;
|
|
641
|
+
}
|
|
627
642
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
628
643
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
629
644
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -634,34 +649,34 @@ const ApiHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
|
634
649
|
}
|
|
635
650
|
};
|
|
636
651
|
};
|
|
637
|
-
const
|
|
638
|
-
const localVarAxiosParamCreator =
|
|
652
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
653
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
639
654
|
return {
|
|
640
|
-
async listReplies(commentName, size,
|
|
641
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size,
|
|
655
|
+
async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
656
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
|
|
642
657
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
643
658
|
}
|
|
644
659
|
};
|
|
645
660
|
};
|
|
646
|
-
const
|
|
647
|
-
const localVarFp =
|
|
661
|
+
const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
|
|
662
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
|
|
648
663
|
return {
|
|
649
|
-
listReplies(commentName, size,
|
|
650
|
-
return localVarFp.listReplies(commentName, size,
|
|
664
|
+
listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
|
|
665
|
+
return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
651
666
|
}
|
|
652
667
|
};
|
|
653
668
|
};
|
|
654
|
-
class
|
|
669
|
+
class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
655
670
|
listReplies(requestParameters = {}, options) {
|
|
656
|
-
return
|
|
671
|
+
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
657
672
|
}
|
|
658
673
|
}
|
|
659
674
|
|
|
660
|
-
const
|
|
675
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration) {
|
|
661
676
|
return {
|
|
662
677
|
draftSinglePage: async (singlePageRequest, options = {}) => {
|
|
663
678
|
assertParamExists("draftSinglePage", "singlePageRequest", singlePageRequest);
|
|
664
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
679
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
665
680
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
666
681
|
let baseOptions;
|
|
667
682
|
if (configuration) {
|
|
@@ -682,8 +697,8 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
682
697
|
options: localVarRequestOptions
|
|
683
698
|
};
|
|
684
699
|
},
|
|
685
|
-
listSinglePages: async (contributors, size,
|
|
686
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
700
|
+
listSinglePages: async (contributors, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
701
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
687
702
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
688
703
|
let baseOptions;
|
|
689
704
|
if (configuration) {
|
|
@@ -700,15 +715,15 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
700
715
|
if (size !== void 0) {
|
|
701
716
|
localVarQueryParameter["size"] = size;
|
|
702
717
|
}
|
|
703
|
-
if (page !== void 0) {
|
|
704
|
-
localVarQueryParameter["page"] = page;
|
|
705
|
-
}
|
|
706
718
|
if (labelSelector) {
|
|
707
719
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
708
720
|
}
|
|
709
721
|
if (fieldSelector) {
|
|
710
722
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
711
723
|
}
|
|
724
|
+
if (page !== void 0) {
|
|
725
|
+
localVarQueryParameter["page"] = page;
|
|
726
|
+
}
|
|
712
727
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
713
728
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
714
729
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -719,7 +734,7 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
719
734
|
},
|
|
720
735
|
publishSinglePage: async (name, options = {}) => {
|
|
721
736
|
assertParamExists("publishSinglePage", "name", name);
|
|
722
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
737
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
723
738
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
724
739
|
let baseOptions;
|
|
725
740
|
if (configuration) {
|
|
@@ -741,7 +756,7 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
741
756
|
updateDraftSinglePage: async (name, singlePageRequest, options = {}) => {
|
|
742
757
|
assertParamExists("updateDraftSinglePage", "name", name);
|
|
743
758
|
assertParamExists("updateDraftSinglePage", "singlePageRequest", singlePageRequest);
|
|
744
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
759
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
745
760
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
746
761
|
let baseOptions;
|
|
747
762
|
if (configuration) {
|
|
@@ -764,15 +779,15 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
|
|
|
764
779
|
}
|
|
765
780
|
};
|
|
766
781
|
};
|
|
767
|
-
const
|
|
768
|
-
const localVarAxiosParamCreator =
|
|
782
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
783
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration);
|
|
769
784
|
return {
|
|
770
785
|
async draftSinglePage(singlePageRequest, options) {
|
|
771
786
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
772
787
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
773
788
|
},
|
|
774
|
-
async listSinglePages(contributors, size,
|
|
775
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size,
|
|
789
|
+
async listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
|
|
790
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options);
|
|
776
791
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
777
792
|
},
|
|
778
793
|
async publishSinglePage(name, options) {
|
|
@@ -785,14 +800,14 @@ const ApiHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
785
800
|
}
|
|
786
801
|
};
|
|
787
802
|
};
|
|
788
|
-
const
|
|
789
|
-
const localVarFp =
|
|
803
|
+
const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath, axios) {
|
|
804
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1SinglePageApiFp(configuration);
|
|
790
805
|
return {
|
|
791
806
|
draftSinglePage(singlePageRequest, options) {
|
|
792
807
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
793
808
|
},
|
|
794
|
-
listSinglePages(contributors, size,
|
|
795
|
-
return localVarFp.listSinglePages(contributors, size,
|
|
809
|
+
listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
|
|
810
|
+
return localVarFp.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
796
811
|
},
|
|
797
812
|
publishSinglePage(name, options) {
|
|
798
813
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -802,26 +817,26 @@ const ApiHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath,
|
|
|
802
817
|
}
|
|
803
818
|
};
|
|
804
819
|
};
|
|
805
|
-
class
|
|
820
|
+
class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
806
821
|
draftSinglePage(requestParameters, options) {
|
|
807
|
-
return
|
|
822
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
808
823
|
}
|
|
809
824
|
listSinglePages(requestParameters = {}, options) {
|
|
810
|
-
return
|
|
825
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.contributors, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
811
826
|
}
|
|
812
827
|
publishSinglePage(requestParameters, options) {
|
|
813
|
-
return
|
|
828
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
814
829
|
}
|
|
815
830
|
updateDraftSinglePage(requestParameters, options) {
|
|
816
|
-
return
|
|
831
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
817
832
|
}
|
|
818
833
|
}
|
|
819
834
|
|
|
820
|
-
const
|
|
835
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
821
836
|
return {
|
|
822
837
|
installTheme: async (file, options = {}) => {
|
|
823
838
|
assertParamExists("installTheme", "file", file);
|
|
824
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/themes/install`;
|
|
839
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/install`;
|
|
825
840
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
826
841
|
let baseOptions;
|
|
827
842
|
if (configuration) {
|
|
@@ -848,8 +863,8 @@ const ApiHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
|
848
863
|
}
|
|
849
864
|
};
|
|
850
865
|
};
|
|
851
|
-
const
|
|
852
|
-
const localVarAxiosParamCreator =
|
|
866
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
867
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator(configuration);
|
|
853
868
|
return {
|
|
854
869
|
async installTheme(file, options) {
|
|
855
870
|
const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
|
|
@@ -857,26 +872,26 @@ const ApiHaloRunV1alpha1ThemeApiFp = function(configuration) {
|
|
|
857
872
|
}
|
|
858
873
|
};
|
|
859
874
|
};
|
|
860
|
-
const
|
|
861
|
-
const localVarFp =
|
|
875
|
+
const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePath, axios) {
|
|
876
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1ThemeApiFp(configuration);
|
|
862
877
|
return {
|
|
863
878
|
installTheme(file, options) {
|
|
864
879
|
return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
|
|
865
880
|
}
|
|
866
881
|
};
|
|
867
882
|
};
|
|
868
|
-
class
|
|
883
|
+
class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
|
|
869
884
|
installTheme(requestParameters, options) {
|
|
870
|
-
return
|
|
885
|
+
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
871
886
|
}
|
|
872
887
|
}
|
|
873
888
|
|
|
874
|
-
const
|
|
889
|
+
const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
875
890
|
return {
|
|
876
891
|
changePassword: async (name, changePasswordRequest, options = {}) => {
|
|
877
892
|
assertParamExists("changePassword", "name", name);
|
|
878
893
|
assertParamExists("changePassword", "changePasswordRequest", changePasswordRequest);
|
|
879
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/password`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
894
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/password`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
880
895
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
881
896
|
let baseOptions;
|
|
882
897
|
if (configuration) {
|
|
@@ -898,7 +913,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
898
913
|
};
|
|
899
914
|
},
|
|
900
915
|
getCurrentUserDetail: async (options = {}) => {
|
|
901
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/-`;
|
|
916
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/-`;
|
|
902
917
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
903
918
|
let baseOptions;
|
|
904
919
|
if (configuration) {
|
|
@@ -919,7 +934,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
919
934
|
},
|
|
920
935
|
getPermissions: async (name, options = {}) => {
|
|
921
936
|
assertParamExists("getPermissions", "name", name);
|
|
922
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
937
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
923
938
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
924
939
|
let baseOptions;
|
|
925
940
|
if (configuration) {
|
|
@@ -941,7 +956,7 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
941
956
|
grantPermission: async (name, grantRequest, options = {}) => {
|
|
942
957
|
assertParamExists("grantPermission", "name", name);
|
|
943
958
|
assertParamExists("grantPermission", "grantRequest", grantRequest);
|
|
944
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
959
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
945
960
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
946
961
|
let baseOptions;
|
|
947
962
|
if (configuration) {
|
|
@@ -964,8 +979,8 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
|
|
|
964
979
|
}
|
|
965
980
|
};
|
|
966
981
|
};
|
|
967
|
-
const
|
|
968
|
-
const localVarAxiosParamCreator =
|
|
982
|
+
const ApiConsoleHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
983
|
+
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator(configuration);
|
|
969
984
|
return {
|
|
970
985
|
async changePassword(name, changePasswordRequest, options) {
|
|
971
986
|
const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(name, changePasswordRequest, options);
|
|
@@ -985,8 +1000,8 @@ const ApiHaloRunV1alpha1UserApiFp = function(configuration) {
|
|
|
985
1000
|
}
|
|
986
1001
|
};
|
|
987
1002
|
};
|
|
988
|
-
const
|
|
989
|
-
const localVarFp =
|
|
1003
|
+
const ApiConsoleHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios) {
|
|
1004
|
+
const localVarFp = ApiConsoleHaloRunV1alpha1UserApiFp(configuration);
|
|
990
1005
|
return {
|
|
991
1006
|
changePassword(name, changePasswordRequest, options) {
|
|
992
1007
|
return localVarFp.changePassword(name, changePasswordRequest, options).then((request) => request(axios, basePath));
|
|
@@ -1002,18 +1017,18 @@ const ApiHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios
|
|
|
1002
1017
|
}
|
|
1003
1018
|
};
|
|
1004
1019
|
};
|
|
1005
|
-
class
|
|
1020
|
+
class ApiConsoleHaloRunV1alpha1UserApi extends BaseAPI {
|
|
1006
1021
|
changePassword(requestParameters, options) {
|
|
1007
|
-
return
|
|
1022
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).changePassword(requestParameters.name, requestParameters.changePasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1008
1023
|
}
|
|
1009
1024
|
getCurrentUserDetail(options) {
|
|
1010
|
-
return
|
|
1025
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getCurrentUserDetail(options).then((request) => request(this.axios, this.basePath));
|
|
1011
1026
|
}
|
|
1012
1027
|
getPermissions(requestParameters, options) {
|
|
1013
|
-
return
|
|
1028
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).getPermissions(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1014
1029
|
}
|
|
1015
1030
|
grantPermission(requestParameters, options) {
|
|
1016
|
-
return
|
|
1031
|
+
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration).grantPermission(requestParameters.name, requestParameters.grantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1017
1032
|
}
|
|
1018
1033
|
}
|
|
1019
1034
|
|
|
@@ -2789,8 +2804,8 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2789
2804
|
options: localVarRequestOptions
|
|
2790
2805
|
};
|
|
2791
2806
|
},
|
|
2792
|
-
searchAttachments: async (policy, displayName,
|
|
2793
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/attachments`;
|
|
2807
|
+
searchAttachments: async (policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
2808
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
|
|
2794
2809
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2795
2810
|
let baseOptions;
|
|
2796
2811
|
if (configuration) {
|
|
@@ -2807,24 +2822,24 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2807
2822
|
if (displayName !== void 0) {
|
|
2808
2823
|
localVarQueryParameter["displayName"] = displayName;
|
|
2809
2824
|
}
|
|
2810
|
-
if (group !== void 0) {
|
|
2811
|
-
localVarQueryParameter["group"] = group;
|
|
2812
|
-
}
|
|
2813
2825
|
if (uploadedBy !== void 0) {
|
|
2814
2826
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
2815
2827
|
}
|
|
2828
|
+
if (group !== void 0) {
|
|
2829
|
+
localVarQueryParameter["group"] = group;
|
|
2830
|
+
}
|
|
2816
2831
|
if (size !== void 0) {
|
|
2817
2832
|
localVarQueryParameter["size"] = size;
|
|
2818
2833
|
}
|
|
2819
|
-
if (page !== void 0) {
|
|
2820
|
-
localVarQueryParameter["page"] = page;
|
|
2821
|
-
}
|
|
2822
2834
|
if (labelSelector) {
|
|
2823
2835
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
2824
2836
|
}
|
|
2825
2837
|
if (fieldSelector) {
|
|
2826
2838
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
2827
2839
|
}
|
|
2840
|
+
if (page !== void 0) {
|
|
2841
|
+
localVarQueryParameter["page"] = page;
|
|
2842
|
+
}
|
|
2828
2843
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2829
2844
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2830
2845
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2859,7 +2874,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2859
2874
|
uploadAttachment: async (file, policyName, groupName, options = {}) => {
|
|
2860
2875
|
assertParamExists("uploadAttachment", "file", file);
|
|
2861
2876
|
assertParamExists("uploadAttachment", "policyName", policyName);
|
|
2862
|
-
const localVarPath = `/apis/api.halo.run/v1alpha1/attachments/upload`;
|
|
2877
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments/upload`;
|
|
2863
2878
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2864
2879
|
let baseOptions;
|
|
2865
2880
|
if (configuration) {
|
|
@@ -2911,8 +2926,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
2911
2926
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
2912
2927
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2913
2928
|
},
|
|
2914
|
-
async searchAttachments(policy, displayName,
|
|
2915
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName,
|
|
2929
|
+
async searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
2930
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
|
|
2916
2931
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2917
2932
|
},
|
|
2918
2933
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
@@ -2940,8 +2955,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
2940
2955
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
2941
2956
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2942
2957
|
},
|
|
2943
|
-
searchAttachments(policy, displayName,
|
|
2944
|
-
return localVarFp.searchAttachments(policy, displayName,
|
|
2958
|
+
searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
2959
|
+
return localVarFp.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
2945
2960
|
},
|
|
2946
2961
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
2947
2962
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
@@ -2965,7 +2980,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
2965
2980
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2966
2981
|
}
|
|
2967
2982
|
searchAttachments(requestParameters = {}, options) {
|
|
2968
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.
|
|
2983
|
+
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
2984
|
}
|
|
2970
2985
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
2971
2986
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5223,6 +5238,12 @@ class Configuration {
|
|
|
5223
5238
|
}
|
|
5224
5239
|
}
|
|
5225
5240
|
|
|
5241
|
+
const CompactPostVisibleEnum = {
|
|
5242
|
+
Public: "PUBLIC",
|
|
5243
|
+
Internal: "INTERNAL",
|
|
5244
|
+
Private: "PRIVATE"
|
|
5245
|
+
};
|
|
5246
|
+
|
|
5226
5247
|
const ConditionStatusEnum = {
|
|
5227
5248
|
True: "TRUE",
|
|
5228
5249
|
False: "FALSE",
|
|
@@ -5250,4 +5271,4 @@ const SinglePageSpecVisibleEnum = {
|
|
|
5250
5271
|
Private: "PRIVATE"
|
|
5251
5272
|
};
|
|
5252
5273
|
|
|
5253
|
-
export {
|
|
5274
|
+
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 };
|